-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwiki.html
More file actions
443 lines (438 loc) · 12.5 KB
/
wiki.html
File metadata and controls
443 lines (438 loc) · 12.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<link rel="canonical" href="https://thedecklab.com/wiki" />
<link rel="icon" href="/image/favicon.png" type="image/png" sizes="64x64" />
<title>SBTI 人格图鉴</title>
<meta name="description" content="SBTI 人格图鉴:按类型查看解读、彩蛋与职场黑话;可与 SBKPI 工作搭子图鉴、SBTI test 测验结果对照浏览。" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="zh_CN" />
<meta property="og:title" content="SBTI 人格图鉴" />
<meta property="og:description" content="SBTI 人格图鉴:按类型查看解读、彩蛋与职场黑话;可与 SBKPI 工作搭子图鉴、SBTI test 测验结果对照浏览。" />
<meta property="og:url" content="https://thedecklab.com/wiki" />
<meta name="twitter:card" content="summary" />
<style>
:root {
--bg: #f6faf6;
--panel: #ffffff;
--text: #1e2a22;
--muted: #6a786f;
--line: #dbe8dd;
--soft: #edf6ef;
--accent: #6c8d71;
--accent-strong: #4d6a53;
--shadow: 0 12px 32px rgba(47, 73, 55, 0.08);
--radius: 20px;
--safe-b: env(safe-area-inset-bottom, 0px);
--safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
background: radial-gradient(circle at top left, #f8fff8 0, #f6faf6 40%, #f2f7f3 100%);
color: var(--text);
min-height: 100vh;
min-height: 100dvh;
padding-top: var(--safe-t);
}
.shell {
max-width: 720px;
margin: 0 auto;
padding: 16px 14px calc(28px + var(--safe-b));
}
.page-head {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
}
.page-head h1 {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
font-size: clamp(1.35rem, 4.5vw, 1.75rem);
margin: 0;
letter-spacing: -0.02em;
line-height: 1.25;
}
.page-title-logo {
width: 40px;
height: 40px;
object-fit: contain;
flex-shrink: 0;
}
.page-head p {
margin: 6px 0 0;
font-size: 0.88rem;
color: var(--muted);
line-height: 1.5;
}
.back-link {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 14px;
border-radius: 12px;
border: 1px solid var(--line);
background: var(--panel);
color: var(--accent-strong);
font-size: 0.88rem;
font-weight: 600;
text-decoration: none;
box-shadow: 0 4px 14px rgba(47, 73, 55, 0.06);
}
.back-link:hover {
background: #fafcfb;
border-color: #c5d8c9;
}
.page-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.type-dialog-poker-link {
display: inline-block;
margin-top: 12px;
font-size: 0.85rem;
font-weight: 600;
color: var(--accent-strong);
text-decoration: none;
}
.type-dialog-poker-link:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
.toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin-bottom: 14px;
}
.toolbar label {
flex: 1;
min-width: 200px;
}
.toolbar input[type="search"] {
width: 100%;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid var(--line);
font: inherit;
font-size: 0.95rem;
background: var(--panel);
}
.toolbar input[type="search"]:focus {
outline: 2px solid rgba(77, 106, 83, 0.25);
outline-offset: 1px;
}
.count-badge {
font-size: 0.82rem;
color: var(--muted);
white-space: nowrap;
}
.type-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
gap: 12px;
}
.type-card {
display: flex;
flex-direction: column;
text-align: left;
padding: 0;
margin: 0;
border: 1px solid var(--line);
border-radius: 16px;
overflow: hidden;
background: var(--panel);
cursor: pointer;
font: inherit;
color: inherit;
transition: box-shadow 0.15s ease, transform 0.12s ease;
-webkit-tap-highlight-color: transparent;
}
.type-card:hover {
box-shadow: var(--shadow);
}
.type-card:active {
transform: scale(0.98);
}
.type-card:focus-visible {
outline: 2px solid var(--accent-strong);
outline-offset: 2px;
}
/* hash 定位时短暂高亮目标卡片 */
.type-card.type-card--focus {
position: relative;
z-index: 1;
box-shadow: 0 0 0 2px var(--accent-strong), var(--shadow);
}
.type-card-thumb {
background: var(--soft);
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 8px;
}
.type-card-thumb img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
display: block;
}
.type-card-meta {
padding: 10px 11px 12px;
border-top: 1px solid var(--line);
}
.type-card-name {
font-size: 0.9rem;
font-weight: 700;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.type-card-code {
margin-top: 4px;
font-size: 0.75rem;
font-weight: 600;
color: var(--muted);
letter-spacing: 0.02em;
}
/* 详情弹层 */
dialog.type-dialog {
width: min(100vw - 24px, 420px);
max-height: min(88vh, 720px);
margin: auto;
padding: 0;
border: none;
border-radius: var(--radius);
box-shadow: var(--shadow);
background: var(--panel);
}
dialog.type-dialog::backdrop {
background: rgba(30, 42, 34, 0.45);
}
.type-dialog-inner {
display: flex;
flex-direction: column;
max-height: min(88vh, 720px);
}
.type-dialog-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
padding: 14px 14px 10px;
border-bottom: 1px solid var(--line);
flex-shrink: 0;
}
.type-dialog-head h2 {
margin: 0;
font-size: 1rem;
font-weight: 700;
line-height: 1.35;
}
.type-dialog-close {
flex-shrink: 0;
width: 36px;
height: 36px;
border: none;
border-radius: 10px;
background: var(--soft);
color: var(--accent-strong);
font-size: 1.25rem;
line-height: 1;
cursor: pointer;
font-weight: 700;
}
.type-dialog-close:hover {
background: #e2ebe4;
}
.type-dialog-body {
overflow: auto;
padding: 12px 14px 18px;
-webkit-overflow-scrolling: touch;
}
.type-dialog-poster {
width: 100%;
border-radius: 12px;
border: 1px solid var(--line);
background: var(--soft);
display: block;
}
.type-dialog-banner {
margin-top: 12px;
padding: 12px;
border-radius: 12px;
background: linear-gradient(180deg, #fbfffb, #f0f6f1);
border: 1px solid var(--line);
}
.type-dialog-banner .lead {
font-size: 0.78rem;
color: var(--muted);
}
.type-dialog-banner .name {
font-size: 1.15rem;
font-weight: 800;
margin-top: 4px;
letter-spacing: -0.02em;
}
.type-dialog-banner .code {
font-size: 0.85rem;
font-weight: 700;
color: var(--accent-strong);
margin-top: 2px;
}
.type-dialog-cn-note {
margin-top: 8px;
font-size: 0.8rem;
color: var(--muted);
}
.type-dialog-intro {
margin-top: 14px;
font-size: 0.95rem;
font-weight: 650;
line-height: 1.6;
}
.type-dialog-desc {
margin-top: 10px;
font-size: 0.9rem;
line-height: 1.75;
color: #304034;
}
/* 全站统一页脚 */
.site-footer {
margin-top: 28px;
padding-top: 18px;
border-top: 1px solid var(--line);
text-align: center;
font-size: 0.86rem;
color: var(--muted);
line-height: 1.65;
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
}
.site-footer-nav,
.site-footer-meta {
display: flex;
flex-wrap: wrap;
gap: 6px 10px;
justify-content: center;
align-items: center;
}
.site-footer-meta {
font-size: 0.82rem;
}
.site-footer a {
color: var(--accent-strong);
font-weight: 600;
text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer-sep {
color: #b8c9bc;
font-weight: 700;
user-select: none;
}
@media (min-width: 480px) {
.shell { padding-left: 20px; padding-right: 20px; }
}
</style>
</head>
<body>
<div class="shell">
<header class="page-head">
<div>
<h1>
<img src="/image/favicon.png" alt="" class="page-title-logo" width="64" height="64" decoding="async" />
<span>SBTI 人格图鉴</span>
</h1>
<p>点击卡片查看简介与完整解读;可通过链接加 <code>#类型代码</code> 分享。</p>
</div>
<div class="page-actions">
<a class="back-link" href="/sbkpi">SBKPI搭子图鉴</a>
<a class="back-link" href="/sbti">← 返回测验</a>
</div>
</header>
<div class="toolbar">
<label>
<span class="visually-hidden">搜索</span>
<input type="search" id="typeSearch" placeholder="搜索代码或名称…" autocomplete="off" />
</label>
<span class="count-badge">共 <strong id="typeCount">0</strong> 种</span>
</div>
<div id="typeGrid" class="type-grid" role="list"></div>
<footer class="site-footer" role="contentinfo">
<nav class="site-footer-nav" aria-label="主要页面">
<a href="/">首页</a>
<span class="site-footer-sep" aria-hidden="true">·</span>
<a href="/sbti">SBTI 测验</a>
<span class="site-footer-sep" aria-hidden="true">·</span>
<a href="/wiki" aria-current="page">人格图鉴</a>
<span class="site-footer-sep" aria-hidden="true">·</span>
<a href="/sbkpi">搭子图鉴</a>
</nav>
<div class="site-footer-meta">
<a href="https://thedecklab.com/">thedecklab.com</a>
<span class="site-footer-sep" aria-hidden="true">·</span>
<a href="https://github.com/cloudcreate-ai/SBKPI" target="_blank" rel="noopener noreferrer">GitHub</a>
<span class="site-footer-sep" aria-hidden="true">·</span>
<a href="/devlog.html">开发日志</a>
<span class="site-footer-sep" aria-hidden="true">·</span>
<a href="/privacy">隐私说明</a>
<span class="site-footer-sep" aria-hidden="true">·</span>
<a href="/terms">服务条款</a>
</div>
</footer>
</div>
<dialog id="typeDialog" class="type-dialog" aria-labelledby="typeDialogTitle">
<div class="type-dialog-inner">
<div class="type-dialog-head">
<div>
<h2 id="typeDialogTitle">人格详情</h2>
</div>
<button type="button" id="typeDialogClose" class="type-dialog-close" aria-label="关闭">×</button>
</div>
<div class="type-dialog-body">
<img id="typeDialogPoster" class="type-dialog-poster" src="" alt="" />
<div class="type-dialog-banner">
<div id="typeDialogLead" class="lead"></div>
<div id="typeDialogName" class="name"></div>
<div id="typeDialogCode" class="code"></div>
<div id="typeDialogCnNote" class="type-dialog-cn-note" hidden></div>
</div>
<p id="typeDialogIntro" class="type-dialog-intro"></p>
<p id="typeDialogDesc" class="type-dialog-desc"></p>
<a id="typeDialogPokerLink" class="type-dialog-poker-link" href="#">在 SBKPI搭子图鉴中查看</a>
</div>
</div>
</dialog>
<style>
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
</style>
<script type="module" src="./js/sbti-cards.js"></script>
</body>
</html>