-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
835 lines (808 loc) · 38 KB
/
Copy pathindex.html
File metadata and controls
835 lines (808 loc) · 38 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
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML 好用到难以置信 — 示例集</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600&display=swap" rel="stylesheet">
<style>
:root {
--ivory: #FAF9F5;
--paper: #FFFFFF;
--slate: #141413;
--clay: #D97757;
--clay-d: #B85C3E;
--oat: #E3DACC;
--olive: #788C5D;
--g100: #F0EEE6;
--g200: #E6E3DA;
--g300: #D1CFC5;
--g500: #87867F;
--g700: #3D3D3A;
--serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", ui-serif, Georgia, "Times New Roman", Times, serif;
--sans: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
--mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
background: var(--ivory);
color: var(--slate);
font-family: var(--sans);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px 140px; }
/* ── masthead ─────────────────────────── */
header.masthead {
padding: 80px 0 56px;
border-bottom: 1.5px solid var(--g300);
margin-bottom: 12px;
position: relative;
overflow: visible;
}
.eyebrow {
font-family: var(--mono);
font-size: 12px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--g500);
margin-bottom: 18px;
display: flex;
align-items: center;
gap: 12px;
}
.eyebrow::before {
content: "";
width: 24px; height: 1.5px;
background: var(--clay);
}
h1 {
font-family: var(--serif);
font-weight: 700;
font-size: clamp(36px, 5.2vw, 58px);
line-height: 1.18;
letter-spacing: 0.01em;
margin: 0 0 8px;
max-width: 20ch;
}
h1 em {
font-style: normal;
color: var(--clay);
font-weight: 700;
}
h1 .html-tag {
font-family: var(--mono);
font-weight: 600;
font-size: 0.82em;
letter-spacing: -0.04em;
color: var(--slate);
background: var(--g100);
border: 1.5px solid var(--g300);
border-radius: 8px;
padding: 2px 10px;
vertical-align: 4px;
margin-right: 4px;
display: inline-block;
line-height: 1.1;
}
.intro {
font-size: 16.5px;
color: var(--g700);
margin: 22px 0 0;
max-width: 620px;
line-height: 1.75;
}
.intro a { color: var(--clay); text-decoration-color: var(--oat); text-underline-offset: 3px; }
.intro a:hover { text-decoration-color: var(--clay); }
.hero-grid {
display: grid;
grid-template-columns: 1fr 340px;
gap: 48px;
align-items: end;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
/* hero figure — markdown vs html */
.hero-fig {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
align-items: end;
}
@media (max-width: 880px) { .hero-fig { max-width: 400px; margin-top: 28px; } }
.hero-fig .pane {
border-radius: 10px;
border: 1.5px solid var(--g300);
background: var(--paper);
padding: 14px;
aspect-ratio: 4/5;
display: flex;
flex-direction: column;
gap: 7px;
position: relative;
}
.hero-fig .pane.md {
background: var(--g100);
transform: rotate(-2.5deg) translateY(6px);
}
.hero-fig .pane.html {
transform: rotate(1.5deg);
border-color: var(--slate);
box-shadow: 0 12px 32px rgba(20,20,19,.10);
}
.hero-fig .tag {
position: absolute;
top: -10px; left: 12px;
font-family: var(--mono);
font-size: 9.5px;
letter-spacing: 0.08em;
text-transform: uppercase;
background: var(--ivory);
padding: 2px 7px;
border: 1.5px solid var(--g300);
border-radius: 6px;
color: var(--g500);
}
.hero-fig .pane.html .tag { border-color: var(--slate); color: var(--slate); }
.hero-fig .l { height: 6px; border-radius: 3px; background: var(--g300); }
.hero-fig .l.w90 { width: 90%; } .hero-fig .l.w75 { width: 75%; }
.hero-fig .l.w60 { width: 60%; } .hero-fig .l.w82 { width: 82%; }
.hero-fig .l.w70 { width: 70%; } .hero-fig .l.w50 { width: 50%; }
.hero-fig .pane.html .l { background: var(--g200); }
.hero-fig .pane.html .blk {
border-radius: 5px;
flex: 1;
background: linear-gradient(135deg, var(--oat), #ECE1CF);
position: relative;
overflow: hidden;
}
.hero-fig .pane.html .blk::after {
content: "";
position: absolute;
left: 18%; right: 18%; top: 28%;
height: 40%;
border: 2px solid var(--clay);
border-radius: 50%;
opacity: .7;
}
.hero-fig .pane.html .row {
display: flex; gap: 6px; align-items: flex-end;
}
.hero-fig .pane.html .bar { flex: 1; border-radius: 3px 3px 0 0; }
.hero-fig .pane.html .bar.b1 { height: 14px; background: var(--olive); }
.hero-fig .pane.html .bar.b2 { height: 26px; background: var(--clay); }
.hero-fig .pane.html .bar.b3 { height: 18px; background: var(--oat); }
.hero-fig .pane.html .bar.b4 { height: 30px; background: var(--slate); }
/* ── toc pills ────────────────────────── */
nav.toc {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 26px 0 0;
}
nav.toc a {
font-size: 12.5px;
padding: 7px 14px;
border: 1.5px solid var(--g300);
border-radius: 999px;
text-decoration: none;
color: var(--g700);
background: var(--paper);
transition: border-color 120ms, color 120ms, background 120ms;
display: inline-flex;
align-items: center;
gap: 7px;
}
nav.toc a .n {
font-family: var(--mono);
font-size: 10px;
color: var(--g500);
}
nav.toc a:hover { border-color: var(--slate); color: var(--slate); }
nav.toc a:hover .n { color: var(--clay); }
/* ── section ──────────────────────────── */
section {
margin-top: 72px;
scroll-margin-top: 28px;
}
.sec-head {
display: flex;
align-items: baseline;
gap: 16px;
margin-bottom: 10px;
}
.sec-head .idx {
font-family: var(--mono);
font-size: 13px;
color: var(--clay);
font-weight: 600;
width: 34px;
flex-shrink: 0;
}
.sec-head h2 {
font-family: var(--serif);
font-weight: 600;
font-size: 27px;
margin: 0;
letter-spacing: 0.01em;
}
.sec-head .count {
font-family: var(--mono);
font-size: 11px;
color: var(--g500);
background: var(--g100);
padding: 2px 8px;
border-radius: 999px;
}
.sec-intro {
font-size: 14.5px;
color: var(--g700);
max-width: 700px;
margin: 0 0 24px 50px;
line-height: 1.75;
}
@media (max-width: 640px) { .sec-intro { margin-left: 0; } }
/* ── cards ────────────────────────────── */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(316px, 1fr));
gap: 20px;
margin-left: 50px;
}
@media (max-width: 640px) { .grid { margin-left: 0; } }
a.card {
display: flex;
flex-direction: column;
background: var(--paper);
border: 1.5px solid var(--g300);
border-radius: 14px;
text-decoration: none;
color: inherit;
transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
overflow: hidden;
}
a.card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(20, 20, 19, 0.10);
border-color: var(--slate);
}
.thumb {
height: 132px;
background: var(--g100);
border-bottom: 1.5px solid var(--g200);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
transition: background 150ms ease;
}
a.card:hover .thumb { background: var(--oat); }
.thumb svg {
width: 100%; height: 100%;
overflow: visible;
}
.thumb svg .st { stroke: var(--g500); fill: none; stroke-width: 2.5; }
.thumb svg .fl { fill: var(--g300); }
.thumb svg .cl { fill: var(--clay); }
.thumb svg .ol { fill: var(--olive); }
.thumb svg .oa { fill: var(--oat); stroke: var(--g500); stroke-width: 2.5; }
.thumb svg .sl { fill: var(--slate); }
.thumb svg .wh { fill: var(--paper); stroke: var(--g500); stroke-width: 2.5; }
.thumb svg .ln { stroke: var(--g500); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.thumb svg .lc { stroke: var(--clay); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.thumb svg .da { stroke-dasharray: 4 4; }
a.card:hover .thumb svg .fl { fill: var(--g500); }
a.card:hover .thumb svg .oa { fill: var(--paper); }
.body { padding: 18px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.title {
font-family: var(--serif);
font-size: 19px;
font-weight: 600;
line-height: 1.35;
color: var(--slate);
margin-bottom: 7px;
letter-spacing: 0.01em;
}
.desc {
font-size: 13.5px;
color: var(--g700);
line-height: 1.65;
margin-bottom: 16px;
flex: 1;
}
.file {
font-family: var(--mono);
font-size: 11px;
color: var(--g500);
border-top: 1px solid var(--g100);
padding-top: 11px;
display: flex;
align-items: center;
justify-content: space-between;
}
.file .arrow { transition: transform 150ms ease; color: var(--g300); }
a.card:hover .file { color: var(--clay); }
a.card:hover .file .arrow { transform: translateX(3px); color: var(--clay); }
/* ── footer ───────────────────────────── */
footer {
margin-top: 100px;
border-top: 1.5px solid var(--g300);
padding-top: 36px;
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 20px;
flex-wrap: wrap;
font-size: 13px;
color: var(--g500);
}
footer .k { font-family: var(--serif); font-style: normal; color: var(--g700); font-size: 15px; font-weight: 500; }
footer a { color: var(--clay); text-decoration-color: var(--oat); text-underline-offset: 3px; }
</style>
</head>
<body>
<div class="wrap">
<header class="masthead">
<div class="hero-grid">
<div>
<div class="eyebrow">配套示例集</div>
<h1><span class="html-tag">HTML</span> 好用到<em>难以置信</em></h1>
<p class="intro">
这里有二十个 <code>.html</code> 文件,全部由 AI 生成,用来替代那些读不下去的 Markdown 长文。本来你只会扫一眼的东西,现在你会真的读完。浏览器直接打开就能看。
</p>
<nav class="toc">
<a href="#exploration">探索与规划 <span class="n">3</span></a>
<a href="#code-review">代码评审 <span class="n">3</span></a>
<a href="#design">设计 <span class="n">2</span></a>
<a href="#prototyping">原型 <span class="n">2</span></a>
<a href="#illustrations">图表 <span class="n">2</span></a>
<a href="#decks">演示 <span class="n">1</span></a>
<a href="#research">研究 <span class="n">2</span></a>
<a href="#reports">报告 <span class="n">2</span></a>
<a href="#editors">自定义编辑器 <span class="n">3</span></a>
</nav>
</div>
<div class="hero-fig" aria-hidden="true">
<div class="pane md">
<span class="tag">.md</span>
<span class="l w90"></span><span class="l w75"></span><span class="l w82"></span>
<span class="l w60"></span><span class="l w90"></span><span class="l w70"></span>
<span class="l w82"></span><span class="l w50"></span><span class="l w75"></span>
<span class="l w90"></span><span class="l w60"></span>
</div>
<div class="pane html">
<span class="tag">.html</span>
<span class="l w60"></span>
<span class="blk"></span>
<span class="row"><span class="bar b1"></span><span class="bar b2"></span><span class="bar b3"></span><span class="bar b4"></span></span>
<span class="l w75"></span><span class="l w50"></span>
</div>
</div>
</div>
</header>
<!-- ============================== Exploration & Planning ============================== -->
<section id="exploration">
<div class="sec-head"><span class="idx">01</span><h2>探索与规划</h2><span class="count">3 个演示</span></div>
<p class="sec-intro">
还不确定要什么的时候用。让 AI 同时往几个方向探索,摆在一起,直接指一个。
不用读三大段文字再在脑子里转。选定了,就让它输出一份执行者能直接看懂的方案。
</p>
<div class="grid">
<a class="card" href="01-exploration-code-approaches.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="wh" x="4" y="10" width="32" height="60" rx="5"/>
<rect class="wh" x="44" y="10" width="32" height="60" rx="5"/>
<rect class="oa" x="84" y="10" width="32" height="60" rx="5"/>
<line class="ln" x1="10" y1="26" x2="30" y2="26"/><line class="ln" x1="10" y1="36" x2="26" y2="36"/>
<line class="ln" x1="50" y1="26" x2="70" y2="26"/><line class="ln" x1="50" y1="36" x2="66" y2="36"/>
<line class="lc" x1="90" y1="26" x2="110" y2="26"/><line class="lc" x1="90" y1="36" x2="106" y2="36"/>
<circle class="cl" cx="100" cy="56" r="6"/>
</svg></div>
<div class="body">
<div class="title">三种代码方案</div>
<div class="desc">同一个问题,三种写法,并排放在一起。优劣势直接标在代码旁边。</div>
<div class="file"><span>01-exploration-code-approaches.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="02-exploration-visual-designs.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="wh" x="6" y="8" width="50" height="30" rx="4"/>
<rect class="oa" x="64" y="8" width="50" height="30" rx="4"/>
<rect class="oa" x="6" y="44" width="50" height="30" rx="4"/>
<rect class="wh" x="64" y="44" width="50" height="30" rx="4"/>
<circle class="cl" cx="18" cy="20" r="5"/><rect class="fl" x="28" y="16" width="22" height="4" rx="2"/>
<rect class="ol" x="72" y="16" width="34" height="6" rx="3"/>
<rect class="sl" x="14" y="54" width="34" height="6" rx="3"/>
<circle class="ol" cx="102" cy="58" r="6"/>
</svg></div>
<div class="body">
<div class="title">视觉设计方向</div>
<div class="desc">几套布局和配色直接渲染出来。看到实物再做判断,不用凭空想。</div>
<div class="file"><span>02-exploration-visual-designs.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="16-implementation-plan.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<line class="ln" x1="14" y1="12" x2="14" y2="68"/>
<circle class="cl" cx="14" cy="16" r="5"/><circle class="ol" cx="14" cy="40" r="5"/><circle class="fl" cx="14" cy="64" r="5"/>
<rect class="fl" x="28" y="12" width="48" height="4" rx="2"/><rect class="fl" x="28" y="21" width="34" height="4" rx="2"/>
<rect class="fl" x="28" y="36" width="42" height="4" rx="2"/><rect class="fl" x="28" y="45" width="28" height="4" rx="2"/>
<rect class="fl" x="28" y="60" width="44" height="4" rx="2"/>
<rect class="oa" x="86" y="12" width="28" height="24" rx="4"/>
<rect class="wh" x="86" y="44" width="28" height="24" rx="4"/>
<line class="lc" x1="92" y1="56" x2="108" y2="56"/>
</svg></div>
<div class="body">
<div class="title">实施计划</div>
<div class="desc">里程碑、数据流图、原型图、关键代码、风险表,全在一页里。拿到就能开干。</div>
<div class="file"><span>16-implementation-plan.html</span><span class="arrow">→</span></div>
</div>
</a>
</div>
</section>
<!-- ============================== Code Review & Understanding ============================== -->
<section id="code-review">
<div class="sec-head"><span class="idx">02</span><h2>代码评审与理解</h2><span class="count">3 个演示</span></div>
<p class="sec-intro">
Diff 和调用关系图是空间信息,Markdown 会把它们压平。用 HTML 就不一样了:
diff 可以带批注,模块可以画成方框和箭头,PR 说明可以写成评审者真正想看的样子。代码结构,一眼就懂。
</p>
<div class="grid">
<a class="card" href="03-code-review-pr.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="wh" x="6" y="8" width="72" height="64" rx="5"/>
<line class="ln" x1="14" y1="20" x2="66" y2="20"/>
<rect class="ol" x="14" y="28" width="56" height="7" rx="2" opacity=".5"/>
<rect class="cl" x="14" y="38" width="48" height="7" rx="2" opacity=".5"/>
<line class="ln" x1="14" y1="52" x2="58" y2="52"/><line class="ln" x1="14" y1="62" x2="50" y2="62"/>
<rect class="oa" x="86" y="22" width="28" height="20" rx="4"/>
<line class="lc da" x1="78" y1="32" x2="86" y2="32"/>
<circle class="cl" cx="100" cy="58" r="7"/>
</svg></div>
<div class="body">
<div class="title">带批注的 Pull Request</div>
<div class="desc">渲染好的 diff,旁边有批注,有严重性标签,有跳转链接。比在终端里滚好读太多了。</div>
<div class="file"><span>03-code-review-pr.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="17-pr-writeup.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="oa" x="6" y="8" width="48" height="28" rx="4"/>
<rect class="wh" x="6" y="44" width="48" height="28" rx="4"/>
<line class="ln" x1="14" y1="20" x2="46" y2="20"/><line class="ln" x1="14" y1="28" x2="38" y2="28"/>
<line class="lc" x1="14" y1="56" x2="46" y2="56"/><line class="ln" x1="14" y1="64" x2="38" y2="64"/>
<rect class="wh" x="64" y="8" width="50" height="64" rx="5"/>
<circle class="cl" cx="74" cy="22" r="5"/><rect class="fl" x="84" y="19" width="24" height="5" rx="2"/>
<circle class="ol" cx="74" cy="42" r="5"/><rect class="fl" x="84" y="39" width="22" height="5" rx="2"/>
<circle class="fl" cx="74" cy="62" r="5"/><rect class="fl" x="84" y="59" width="26" height="5" rx="2"/>
</svg></div>
<div class="body">
<div class="title">给评审者的 PR 说明</div>
<div class="desc">站在作者角度写:为什么改、改了什么、逐文件说明<em>原因</em>,还标出了评审重点。</div>
<div class="file"><span>17-pr-writeup.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="04-code-understanding.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="wh" x="44" y="8" width="32" height="20" rx="4"/>
<rect class="oa" x="8" y="52" width="32" height="20" rx="4"/>
<rect class="cl" x="44" y="52" width="32" height="20" rx="4"/>
<rect class="wh" x="80" y="52" width="32" height="20" rx="4"/>
<line class="ln" x1="50" y1="28" x2="26" y2="52"/>
<line class="lc" x1="60" y1="28" x2="60" y2="52"/>
<line class="ln" x1="70" y1="28" x2="94" y2="52"/>
</svg></div>
<div class="body">
<div class="title">模块关系图</div>
<div class="desc">不熟的代码包,画成方框和箭头。关键路径高亮,入口点一目了然。</div>
<div class="file"><span>04-code-understanding.html</span><span class="arrow">→</span></div>
</div>
</a>
</div>
</section>
<!-- ============================== Design ============================== -->
<section id="design">
<div class="sec-head"><span class="idx">03</span><h2>设计</h2><span class="count">2 个演示</span></div>
<p class="sec-intro">
HTML <em>本身</em>就是设计系统的载体,用它来说设计再合适不过。
颜色变量直接渲染成色板,组件直接摆成样品集。产出的文件还能直接喂给下一轮提示。
</p>
<div class="grid">
<a class="card" href="05-design-system.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="cl" x="8" y="10" width="22" height="22" rx="4"/>
<rect class="ol" x="36" y="10" width="22" height="22" rx="4"/>
<rect class="oa" x="64" y="10" width="22" height="22" rx="4"/>
<rect class="sl" x="92" y="10" width="22" height="22" rx="4"/>
<rect class="fl" x="8" y="42" width="80" height="8" rx="2"/>
<rect class="fl" x="8" y="56" width="56" height="6" rx="2"/>
<rect class="fl" x="8" y="68" width="40" height="5" rx="2"/>
</svg></div>
<div class="body">
<div class="title">活的设计系统</div>
<div class="desc">颜色、字号、间距变量从仓库里抽出来,直接渲染成可复制的色板。</div>
<div class="file"><span>05-design-system.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="06-component-variants.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="cl" x="10" y="14" width="44" height="14" rx="7"/>
<rect class="wh" x="10" y="34" width="44" height="14" rx="7"/>
<rect class="oa" x="10" y="54" width="44" height="14" rx="7"/>
<rect class="cl" x="66" y="14" width="34" height="11" rx="5.5"/>
<rect class="wh" x="66" y="32" width="34" height="11" rx="5.5"/>
<rect class="oa" x="66" y="50" width="34" height="11" rx="5.5"/>
<circle class="cl" cx="110" cy="20" r="4"/><circle class="fl" cx="110" cy="37" r="4"/><circle class="ol" cx="110" cy="56" r="4"/>
</svg></div>
<div class="body">
<div class="title">组件变体</div>
<div class="desc">一个组件的所有尺寸、状态、用途变体,铺在一张页面上,一次看完。</div>
<div class="file"><span>06-component-variants.html</span><span class="arrow">→</span></div>
</div>
</a>
</div>
</section>
<!-- ============================== Prototyping ============================== -->
<section id="prototyping">
<div class="sec-head"><span class="idx">04</span><h2>原型</h2><span class="count">2 个演示</span></div>
<p class="sec-intro">
动效和交互没法用文字描述,只能亲手去感受。一个丢弃式的页面,用真实的缓动曲线,用真实的点击流程,
五秒钟说清一段文字永远说不清的事。
</p>
<div class="grid">
<a class="card" href="07-prototype-animation.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="wh" x="8" y="10" width="104" height="34" rx="5"/>
<path class="lc" d="M16 38 C 40 38, 56 16, 104 16" fill="none"/>
<circle class="cl" cx="72" cy="23" r="4.5"/>
<line class="ln" x1="12" y1="58" x2="108" y2="58"/><circle class="cl" cx="44" cy="58" r="6"/>
<line class="ln" x1="12" y1="70" x2="108" y2="70"/><circle class="ol" cx="82" cy="70" r="6"/>
</svg></div>
<div class="body">
<div class="title">动画沙盒</div>
<div class="desc">把过渡动效单独拎出来,用滑块调时长和缓动。调好了再接进代码。</div>
<div class="file"><span>07-prototype-animation.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="08-prototype-interaction.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="wh" x="6" y="22" width="28" height="36" rx="4"/>
<rect class="oa" x="46" y="22" width="28" height="36" rx="4"/>
<rect class="wh" x="86" y="22" width="28" height="36" rx="4"/>
<line class="lc" x1="34" y1="40" x2="46" y2="40"/>
<line class="lc" x1="74" y1="40" x2="86" y2="40"/>
<circle class="cl" cx="20" cy="50" r="4"/><rect class="fl" x="52" y="30" width="16" height="4" rx="2"/><rect class="ol" x="92" y="46" width="16" height="6" rx="3"/>
</svg></div>
<div class="body">
<div class="title">可点击的交互流程</div>
<div class="desc">四个页面串起来,保真度刚好够你判断交互对不对。</div>
<div class="file"><span>08-prototype-interaction.html</span><span class="arrow">→</span></div>
</div>
</a>
</div>
</section>
<!-- ============================== Illustrations & Diagrams ============================== -->
<section id="illustrations">
<div class="sec-head"><span class="idx">05</span><h2>插图与图表</h2><span class="count">2 个演示</span></div>
<p class="sec-intro">
内联 SVG 相当于给了 AI 一支画笔。可以为文章画配图,也可以画流程图。
产出的是矢量图,能手动微调,也能直接粘到最终文档里。
</p>
<div class="grid">
<a class="card" href="10-svg-illustrations.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<circle class="oa" cx="32" cy="40" r="24"/>
<circle class="cl" cx="32" cy="40" r="11"/>
<path class="lc" d="M68 60 L86 20 L104 60" fill="none"/>
<line class="ln" x1="66" y1="66" x2="106" y2="66"/>
<circle class="ol" cx="86" cy="20" r="5"/>
</svg></div>
<div class="body">
<div class="title">SVG 配图集</div>
<div class="desc">为博文画的一组配图。内联绘制,逐张可调,逐张可复制。</div>
<div class="file"><span>10-svg-illustrations.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="13-flowchart-diagram.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="wh" x="10" y="10" width="30" height="16" rx="4"/>
<path class="oa" d="M60 34 L80 46 L60 58 L40 46 Z"/>
<rect class="wh" x="82" y="10" width="30" height="16" rx="4"/>
<rect class="cl" x="82" y="56" width="30" height="16" rx="4"/>
<line class="ln" x1="25" y1="26" x2="25" y2="46"/><line class="ln" x1="25" y1="46" x2="40" y2="46"/>
<line class="lc" x1="80" y1="46" x2="97" y2="46"/><line class="lc" x1="97" y1="46" x2="97" y2="56"/>
<line class="ln" x1="60" y1="34" x2="60" y2="22"/><line class="ln" x1="60" y1="22" x2="82" y2="22"/>
</svg></div>
<div class="body">
<div class="title">带标注的流程图</div>
<div class="desc">部署流水线画成真正的流程图。点任意一步,看它跑什么、要多久、哪里会出错。</div>
<div class="file"><span>13-flowchart-diagram.html</span><span class="arrow">→</span></div>
</div>
</a>
</div>
</section>
<!-- ============================== Decks ============================== -->
<section id="decks">
<div class="sec-head"><span class="idx">06</span><h2>演示文稿</h2><span class="count">1 个演示</span></div>
<p class="sec-intro">
几个 <code><section></code> 标签加二十行 JS,就是一套幻灯片。指给 AI 一条 Slack 讨论串或一份设计文档,
开会时直接用方向键翻页。不要 Keynote,不要导出。
</p>
<div class="grid">
<a class="card" href="09-slide-deck.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="oa" x="8" y="18" width="70" height="44" rx="5"/>
<rect class="wh" x="22" y="12" width="76" height="50" rx="5"/>
<rect class="cl" x="32" y="24" width="36" height="7" rx="3"/>
<rect class="fl" x="32" y="36" width="52" height="4" rx="2"/><rect class="fl" x="32" y="44" width="44" height="4" rx="2"/>
<circle class="fl" cx="50" cy="70" r="3"/><circle class="cl" cx="60" cy="70" r="3"/><circle class="fl" cx="70" cy="70" r="3"/>
</svg></div>
<div class="body">
<div class="title">方向键翻页的幻灯片</div>
<div class="desc">一个 HTML 文件就是一套简短演示。左右键翻页,零构建步骤。</div>
<div class="file"><span>09-slide-deck.html</span><span class="arrow">→</span></div>
</div>
</a>
</div>
</section>
<!-- ============================== Research & Learning ============================== -->
<section id="research">
<div class="sec-head"><span class="idx">07</span><h2>研究与学习</h2><span class="count">2 个演示</span></div>
<p class="sec-intro">
同样的内容,加上折叠章节、标签页代码示例、侧边栏术语表,读起来就是不一样。
一个陌生的话题,AI 能给它搭好导航的框架,让你快速搞懂。
</p>
<div class="grid">
<a class="card" href="14-research-feature-explainer.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="cl" x="8" y="8" width="104" height="20" rx="4" opacity=".35"/>
<rect class="fl" x="14" y="15" width="60" height="6" rx="3"/>
<rect class="wh" x="8" y="34" width="104" height="14" rx="4"/>
<rect class="wh" x="8" y="52" width="104" height="14" rx="4"/>
<path class="ln" d="M16 39 l4 4 l-4 4"/><rect class="fl" x="28" y="38" width="46" height="5" rx="2.5"/>
<path class="ln" d="M16 57 l4 4 l-4 4"/><rect class="fl" x="28" y="56" width="38" height="5" rx="2.5"/>
</svg></div>
<div class="body">
<div class="title">一个功能是怎么跑的</div>
<div class="desc">“解释这个仓库的限流机制”。有摘要、有可折叠的步骤说明、有 tab 切换的配置示例、还有 FAQ。</div>
<div class="file"><span>14-research-feature-explainer.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="15-research-concept-explainer.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<circle class="st" cx="42" cy="40" r="26"/>
<circle class="cl" cx="42" cy="14" r="5"/><circle class="ol" cx="68" cy="40" r="5"/>
<circle class="fl" cx="42" cy="66" r="5"/><circle class="fl" cx="16" cy="40" r="5"/>
<rect class="fl" x="82" y="20" width="30" height="5" rx="2.5"/><rect class="fl" x="82" y="32" width="24" height="5" rx="2.5"/>
<rect class="fl" x="82" y="44" width="28" height="5" rx="2.5"/><rect class="fl" x="82" y="56" width="20" height="5" rx="2.5"/>
</svg></div>
<div class="body">
<div class="title">概念讲解器</div>
<div class="desc">一致性哈希,用一个可交互的环来教。能加节点、能删节点,配有对比表和悬停联动的术语表。</div>
<div class="file"><span>15-research-concept-explainer.html</span><span class="arrow">→</span></div>
</div>
</a>
</div>
</section>
<!-- ============================== Reports ============================== -->
<section id="reports">
<div class="sec-head"><span class="idx">08</span><h2>报告</h2><span class="count">2 个演示</span></div>
<p class="sec-intro">
周报、复盘这类周而复始的文档,加一点结构和颜色就能脱胎换骨。
一张小图表,一条带颜色的时间线,别人就真的会读了。
</p>
<div class="grid">
<a class="card" href="11-status-report.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="fl" x="8" y="10" width="54" height="6" rx="3"/>
<rect class="ol" x="8" y="24" width="36" height="8" rx="3" opacity=".6"/>
<rect class="oa" x="8" y="38" width="28" height="8" rx="3"/>
<rect class="cl" x="8" y="52" width="20" height="8" rx="3" opacity=".6"/>
<rect class="wh" x="72" y="16" width="40" height="48" rx="5"/>
<rect class="ol" x="80" y="44" width="6" height="14"/>
<rect class="cl" x="90" y="34" width="6" height="24"/>
<rect class="fl" x="100" y="50" width="6" height="8"/>
</svg></div>
<div class="body">
<div class="title">每周状态报告</div>
<div class="desc">发了什么、延了什么,加一张小图表。专为周一早上快速扫一遍而设计。</div>
<div class="file"><span>11-status-report.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="12-incident-report.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<line class="ln" x1="18" y1="12" x2="18" y2="68"/>
<circle class="fl" cx="18" cy="16" r="5"/><circle class="cl" cx="18" cy="34" r="5"/>
<circle class="cl" cx="18" cy="50" r="5"/><circle class="ol" cx="18" cy="66" r="5"/>
<rect class="fl" x="32" y="13" width="40" height="5" rx="2.5"/>
<rect class="fl" x="32" y="31" width="56" height="5" rx="2.5"/>
<rect class="fl" x="32" y="47" width="48" height="5" rx="2.5"/>
<rect class="fl" x="32" y="63" width="36" height="5" rx="2.5"/>
<rect class="oa" x="94" y="26" width="20" height="30" rx="4"/>
</svg></div>
<div class="body">
<div class="title">故障时间线</div>
<div class="desc">事后复盘报告。逐分钟时间线、日志摘录、后续行动清单,一次看全。</div>
<div class="file"><span>12-incident-report.html</span><span class="arrow">→</span></div>
</div>
</a>
</div>
</section>
<!-- ============================== Custom Editing Interfaces ============================== -->
<section id="editors">
<div class="sec-head"><span class="idx">09</span><h2>自定义编辑界面</h2><span class="count">3 个演示</span></div>
<p class="sec-intro">
有些东西在文本框里说不清楚。让 AI 为你正在做的事造一个一次性编辑器,
最后加一个导出按钮,把你在界面上做的操作变成可粘贴、可提交的内容。
你始终在循环里,反馈越来越快。
</p>
<div class="grid">
<a class="card" href="18-editor-triage-board.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="wh" x="6" y="10" width="24" height="60" rx="4"/>
<rect class="wh" x="34" y="10" width="24" height="60" rx="4"/>
<rect class="wh" x="62" y="10" width="24" height="60" rx="4"/>
<rect class="wh" x="90" y="10" width="24" height="60" rx="4"/>
<rect class="cl" x="10" y="18" width="16" height="9" rx="2"/>
<rect class="fl" x="10" y="31" width="16" height="9" rx="2"/>
<rect class="fl" x="10" y="44" width="16" height="9" rx="2"/>
<rect class="fl" x="38" y="18" width="16" height="9" rx="2"/>
<rect class="ol" x="38" y="31" width="16" height="9" rx="2"/>
<rect class="fl" x="66" y="18" width="16" height="9" rx="2"/>
<rect class="oa" x="48" y="50" width="20" height="11" rx="2"/>
</svg></div>
<div class="body">
<div class="title">工单分拣看板</div>
<div class="desc">三十张工单,拖到 Now / Next / Later / Cut 四列里。分好了,一键复制成 Markdown。</div>
<div class="file"><span>18-editor-triage-board.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="19-editor-feature-flags.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="wh" x="8" y="10" width="104" height="14" rx="4"/>
<rect class="wh" x="8" y="30" width="104" height="14" rx="4"/>
<rect class="wh" x="8" y="50" width="104" height="14" rx="4"/>
<rect class="ol" x="88" y="13" width="18" height="8" rx="4"/><circle class="wh" cx="100" cy="17" r="3"/>
<rect class="fl" x="88" y="33" width="18" height="8" rx="4"/><circle class="wh" cx="93" cy="37" r="3"/>
<rect class="cl" x="88" y="53" width="18" height="8" rx="4"/><circle class="wh" cx="100" cy="57" r="3"/>
<rect class="fl" x="14" y="14" width="34" height="5" rx="2.5"/>
<rect class="fl" x="14" y="34" width="42" height="5" rx="2.5"/>
<rect class="fl" x="14" y="54" width="28" height="5" rx="2.5"/>
<line class="lc da" x1="62" y1="24" x2="62" y2="50"/>
</svg></div>
<div class="body">
<div class="title">功能开关编辑器</div>
<div class="desc">按模块分组。前置依赖没开?自动警告。「复制 diff」按钮只拿有变更的部分。</div>
<div class="file"><span>19-editor-feature-flags.html</span><span class="arrow">→</span></div>
</div>
</a>
<a class="card" href="20-editor-prompt-tuner.html">
<div class="thumb"><svg viewBox="0 0 120 80">
<rect class="wh" x="6" y="10" width="56" height="60" rx="4"/>
<rect class="fl" x="12" y="18" width="40" height="4" rx="2"/>
<rect class="cl" x="12" y="26" width="22" height="4" rx="2"/>
<rect class="fl" x="12" y="34" width="44" height="4" rx="2"/>
<rect class="ol" x="12" y="42" width="18" height="4" rx="2"/>
<rect class="fl" x="12" y="50" width="36" height="4" rx="2"/>
<rect class="oa" x="68" y="10" width="46" height="18" rx="4"/>
<rect class="oa" x="68" y="32" width="46" height="18" rx="4"/>
<rect class="oa" x="68" y="54" width="46" height="18" rx="4"/>
</svg></div>
<div class="body">
<div class="title">提示词调优器</div>
<div class="desc">左边编辑模板,变量槽位高亮。右边三个示例实时渲染,改一个字都能立刻看到效果。</div>
<div class="file"><span>20-editor-prompt-tuner.html</span><span class="arrow">→</span></div>
</div>
</a>
</div>
</section>
<footer>
<span class="k">这整个页面也是一个 <code>.html</code> 文件。</span>
<span>原仓库 · <a href="https://thariqs.github.io/html-effectiveness/">thariqs.github.io/html-effectiveness</a></span>
</footer>
</div>
</body>
</html>