-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposite-scroll-picker.html
More file actions
240 lines (222 loc) · 11 KB
/
Copy pathcomposite-scroll-picker.html
File metadata and controls
240 lines (222 loc) · 11 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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<title>合成卷轴 Picker — 真实素材合成 (CC0)</title>
<meta name="robots" content="noindex,nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Reenie+Beanie&family=Indie+Flower&family=Zhi+Mang+Xing&family=Ma+Shan+Zheng&family=JetBrains+Mono:wght@400;700&display=swap">
<style>
:root {
--maroon-bright: oklch(0.55 0.20 27);
--maroon-orig: oklch(0.45 0.16 27);
--rule: oklch(0.45 0.10 50 / 0.30);
--ink-deep: oklch(0.10 0.04 30);
--ink-soft: oklch(0.40 0.05 30);
}
* { box-sizing: border-box; }
html, body {
margin: 0; padding: 0;
font-family: 'Ma Shan Zheng', 'LXGW WenKai', 'Indie Flower', serif;
color: var(--ink-deep);
min-height: 100%;
background: oklch(0.96 0.012 90);
font-size: 17px;
line-height: 1.7;
}
header { text-align: center; padding: 32px 24px 18px; border-bottom: 1px dashed var(--rule); }
header h1 { margin: 0 0 6px; font-family: 'Zhi Mang Xing', cursive; font-size: 38px; line-height: 1.05; }
header .sub { margin: 8px auto 0; max-width: 800px; font-size: 16px; color: var(--ink-soft); line-height: 1.6; }
header .sub strong { color: var(--maroon-orig); }
header .sub code { background: oklch(0.92 0.020 75); padding: 1px 6px; border-radius: 3px; font-size: 13px; font-family: 'JetBrains Mono', monospace; }
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
gap: 20px;
padding: 22px 24px;
max-width: 1700px;
margin: 0 auto;
}
.swatch {
border: 1px solid var(--rule);
border-radius: 4px;
overflow: hidden;
cursor: pointer;
transition: transform 0.25s ease, box-shadow 0.25s ease;
background: white;
}
.swatch:hover { transform: translateY(-4px); box-shadow: 0 12px 28px oklch(0.20 0.06 30 / 0.18); }
.swatch.active { outline: 3px solid var(--maroon-bright); outline-offset: 2px; }
.preview {
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
justify-content: center;
padding: 28px 60px;
min-height: 240px;
}
.preview .overlay {
color: var(--ink-deep);
text-shadow:
-1px -1px 0 rgba(255, 255, 255, 0.7),
1px 1px 1px rgba(20, 8, 0, 0.4);
width: fit-content;
margin: 0 auto;
}
.preview h2 { margin: 0 0 4px; font-family: 'Zhi Mang Xing', cursive; font-size: 24px; line-height: 1.05; letter-spacing: 0.04em; }
.preview .role { font-size: 12px; margin: 0 0 4px; font-style: italic; font-family: 'Spectral', serif; color: var(--ink-soft); }
.preview .badge {
display: inline-block; padding: 2px 8px;
background: var(--maroon-bright); color: white;
border-radius: 999px; font-size: 10px; font-weight: 600;
text-shadow: none; font-family: 'Indie Flower', cursive;
}
.meta { padding: 12px 16px; border-top: 1px solid oklch(0.88 0.014 75); }
.meta .name { font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-deep); }
.meta .desc { margin-top: 4px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; font-family: 'Ma Shan Zheng', serif; }
.meta .src { margin-top: 4px; font-size: 10px; color: var(--ink-soft); font-family: 'JetBrains Mono', monospace; }
#liveDemo {
margin: 24px;
padding: 24px;
border: 2px dashed var(--rule);
border-radius: 6px;
background: oklch(0.96 0.012 90);
text-align: center;
}
#liveDemo h3 { margin: 0 0 4px; font-family: 'Zhi Mang Xing', cursive; font-size: 28px; }
#liveDemo .demoArea {
margin-top: 16px;
min-height: 460px;
background-size: cover;
background-position: center;
border-radius: 4px;
transition: background 0.4s ease;
display: flex; flex-direction: column; justify-content: center;
padding: 50px 40px;
}
#liveDemo .demoText {
color: var(--ink-deep);
max-width: 720px;
margin: 0 auto;
text-align: left;
text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.5), 1px 1px 1px rgba(20, 8, 0, 0.3);
}
#liveDemo h2 { margin: 0 0 4px; font-family: 'Zhi Mang Xing', cursive; font-size: 44px; line-height: 1.05; letter-spacing: 0.04em; }
#liveDemo .role { font-style: italic; font-size: 16px; margin: 0 0 14px; font-family: 'Spectral', serif; color: var(--ink-soft); }
#liveDemo .body { font-family: 'Ma Shan Zheng', serif; font-size: 18px; line-height: 1.85; }
#liveDemo .key { color: var(--maroon-orig); font-weight: 800; text-shadow: 0 0 2.5px rgba(120, 30, 30, 0.55), 0 1px 1px rgba(60, 10, 10, 0.5); }
.controls { text-align: center; padding: 18px 24px 60px; font-size: 15px; color: var(--ink-soft); max-width: 760px; margin: 0 auto; font-family: 'Ma Shan Zheng', serif; }
.controls code { background: oklch(0.92 0.020 75); padding: 1px 6px; border-radius: 3px; font-size: 13px; font-family: 'JetBrains Mono', monospace; }
</style>
</head>
<body>
<header>
<h1>合成卷轴 Picker · 真实素材构建</h1>
<p class="sub">5 个 <strong>CC0 合成卷轴</strong> — 真实木纹理 + 真实金织锦 (Wikimedia PD) + 程序生成空白宣纸,ImageMagick 合成。<strong>不是 SVG 拼</strong>,但完全开源。中央区域留空白,可叠水墨内容。</p>
</header>
<div class="grid" id="grid">
<div class="swatch" data-src="res/parchment-options/composite-scrolls/c1-vertical-scroll.jpg">
<div class="preview" style="background-image:url('res/parchment-options/composite-scrolls/c1-vertical-scroll.jpg')">
<div class="overlay">
<h2>林林佳,博士</h2>
<p class="role">Open to ML RS · 2026</p>
<span class="badge">机器学习研究科学家</span>
</div>
</div>
<div class="meta">
<div class="name">C1 · 竖式·完整木轴 ★</div>
<div class="desc">70px 棕色木轴 + 金织锦带 + 空白宣纸。最完整、最像 616pic 卷轴风格。</div>
<div class="src">CC0 · 518K · 2400×1618</div>
</div>
</div>
<div class="swatch" data-src="res/parchment-options/composite-scrolls/c2-vertical-minimal.jpg">
<div class="preview" style="background-image:url('res/parchment-options/composite-scrolls/c2-vertical-minimal.jpg')">
<div class="overlay">
<h2>林林佳,博士</h2>
<p class="role">Open to ML RS · 2026</p>
<span class="badge">机器学习研究科学家</span>
</div>
</div>
<div class="meta">
<div class="name">C2 · 竖式·极简(无木轴)</div>
<div class="desc">没有木轴,只用深红 + 金织锦细带。极简,更"现代"。</div>
<div class="src">CC0 · 278K · 2400×1454</div>
</div>
</div>
<div class="swatch" data-src="res/parchment-options/composite-scrolls/c3-horizontal-handscroll.jpg">
<div class="preview" style="background-image:url('res/parchment-options/composite-scrolls/c3-horizontal-handscroll.jpg')">
<div class="overlay">
<h2>林林佳,博士</h2>
<p class="role">Open to ML RS · 2026</p>
<span class="badge">机器学习研究科学家</span>
</div>
</div>
<div class="meta">
<div class="name">C3 · 横式·完整手卷</div>
<div class="desc">70px 木轴 + 织锦 + 横向宣纸。手卷风格,左右木轴。</div>
<div class="src">CC0 · 431K · 2354×1400</div>
</div>
</div>
<div class="swatch" data-src="res/parchment-options/composite-scrolls/c4-horizontal-thin-handles.jpg">
<div class="preview" style="background-image:url('res/parchment-options/composite-scrolls/c4-horizontal-thin-handles.jpg')">
<div class="overlay">
<h2>林林佳,博士</h2>
<p class="role">Open to ML RS · 2026</p>
<span class="badge">机器学习研究科学家</span>
</div>
</div>
<div class="meta">
<div class="name">C4 · 横式·细木轴</div>
<div class="desc">36px 细木轴 + 织锦 + 横向宣纸。优雅,handles 不喧宾夺主。</div>
<div class="src">CC0 · 405K · 2272×1400</div>
</div>
</div>
<div class="swatch" data-src="res/parchment-options/composite-scrolls/c5-vertical-thin-handles.jpg">
<div class="preview" style="background-image:url('res/parchment-options/composite-scrolls/c5-vertical-thin-handles.jpg')">
<div class="overlay">
<h2>林林佳,博士</h2>
<p class="role">Open to ML RS · 2026</p>
<span class="badge">机器学习研究科学家</span>
</div>
</div>
<div class="meta">
<div class="name">C5 · 竖式·细木轴</div>
<div class="desc">36px 细木轴版本。与 C1 同布局但木轴更纤细。</div>
<div class="src">CC0 · 478K · 2400×1550</div>
</div>
</div>
</div>
<div id="liveDemo">
<h3>实时预览 · 真实文字 + 卷轴</h3>
<p style="margin:0;color:var(--ink-soft);font-size:14px">点击任一卷轴 → demo 切换。中央留空可叠你的水墨内容(之后用 chrome 工具叠加)。</p>
<div class="demoArea" id="demoArea" style="background-image:url('res/parchment-options/composite-scrolls/c1-vertical-scroll.jpg')">
<div class="demoText">
<h2>林林佳,博士</h2>
<p class="role">机器学习研究科学家 · 图人工智能 · Open to ML RS · 2026</p>
<p class="body">构建 <span class="key">时空 Transformer</span> 用于河水温度预测(<span class="key">ICPR 2026</span> 已录用)。开源工具包 <span class="key">graphkit-learn</span> 已获 130+ 引用。现为伯尔尼大学博士后。</p>
</div>
</div>
</div>
<div class="controls">
<p>挑一个 <code>C1–C5</code> 告诉我(如 "<code>用 C1 完整木轴</code>"),我接到 <code>parchment-overrides.css</code> 替换 wm-02。也可调整 — 木色 / 织锦色 / 宽度全部可参数化(如 "<code>C1 但木色更浅,去掉金边只留朱砂红</code>")。</p>
<p style="font-size:12px;color:var(--ink-soft);margin-top:10px">
全部 CC0 — ImageMagick 合成自 Wikimedia 公有领域织锦 + 程序生成的木轴/宣纸。详见 <a href="res/parchment-options/composite-scrolls/LICENSE.md" target="_blank" style="color:var(--maroon-orig)">LICENSE.md</a>
</p>
</div>
<script>
const demoArea = document.getElementById('demoArea');
document.querySelectorAll('.swatch').forEach(sw => {
sw.addEventListener('click', () => {
const src = sw.dataset.src;
demoArea.style.backgroundImage = `url('${src}')`;
document.querySelectorAll('.swatch').forEach(s => s.classList.remove('active'));
sw.classList.add('active');
demoArea.scrollIntoView({ behavior: 'smooth', block: 'center' });
});
});
</script>
</body>
</html>