-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorials.html
More file actions
287 lines (268 loc) · 14 KB
/
tutorials.html
File metadata and controls
287 lines (268 loc) · 14 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
<!DOCTYPE html>
<html lang="zh" class="scroll-smooth">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AI 教程 · Chen</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
ink: '#111827',
'ink-soft': '#374151',
'ink-muted':'#6B7280',
'ink-faint':'#9CA3AF',
paper: '#FAFAF8',
'paper-2': '#F3F1EC',
teal: '#0C6E6E',
'teal-dim': '#D4ECEC',
border: '#E5E1D8',
},
fontFamily: {
display: ['"Cormorant Garamond"', '"Noto Serif SC"', 'Georgia', 'serif'],
body: ['"Outfit"', '"PingFang SC"', '"Microsoft YaHei"', 'sans-serif'],
},
},
},
};
</script>
<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=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600&display=swap" rel="stylesheet" />
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
<style>
* { box-sizing: border-box; }
body {
background-color: #FAFAF8;
color: #111827;
font-family: 'Outfit', 'PingFang SC', 'Microsoft YaHei', sans-serif;
-webkit-font-smoothing: antialiased;
}
.chip {
display: inline-block;
font-size: 0.6rem;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
font-family: 'Outfit', sans-serif;
}
.lang-btn {
padding: 3px 10px;
font-size: 0.7rem;
font-weight: 500;
letter-spacing: 0.05em;
cursor: pointer;
transition: background 0.2s, color 0.2s;
border: none;
background: transparent;
color: #6B7280;
font-family: 'Outfit', sans-serif;
}
.lang-btn.active { background: #0C6E6E; color: #fff; }
.focus-card { background: #F3F1EC; border: 1px solid #E5E1D8; border-radius: 12px; }
.icon-box {
width: 40px; height: 40px;
background: #D4ECEC; border-radius: 8px;
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tut-row { border-bottom: 1px solid #E5E1D8; transition: border-color 0.2s; cursor: pointer; }
.tut-row:hover { border-color: #0C6E6E; }
.tut-row:hover .tut-title { color: #0C6E6E; }
.tut-row:hover .tut-arrow { color: #0C6E6E; }
.tut-title { transition: color 0.2s; }
.tut-arrow { transition: color 0.2s; }
</style>
</head>
<body class="min-h-screen">
<!-- Top bar -->
<div class="max-w-5xl mx-auto px-5 sm:px-8 pt-12 pb-0 flex items-center justify-between">
<a id="back-link" href="index.html" class="flex items-center gap-1.5 font-body text-sm text-ink-muted hover:text-teal transition-colors">
<i data-lucide="arrow-left" class="w-4 h-4"></i>
<span data-i18n="back">返回首页</span>
</a>
<div class="flex items-center border border-[#E5E1D8] rounded-full overflow-hidden">
<button id="btn-zh" class="lang-btn active" onclick="setLang('zh')">中</button>
<button id="btn-en" class="lang-btn" onclick="setLang('en')">EN</button>
</div>
</div>
<main class="max-w-5xl mx-auto px-5 sm:px-8 py-12">
<p class="chip text-teal mb-3" data-i18n="eyebrow">· AI 教程</p>
<h1 class="font-display text-4xl sm:text-5xl font-semibold text-ink mb-2" data-i18n="title">AI 产品教程</h1>
<p class="font-body text-sm text-ink-muted mb-10" data-i18n="desc">这里是教程页面的简介文案,描述本栏目的定位和目标读者</p>
<!-- Featured series card -->
<div class="focus-card p-6 mb-8">
<div class="flex items-center gap-2 mb-3">
<i data-lucide="star" class="w-3.5 h-3.5 text-teal"></i>
<span class="chip text-teal" data-i18n="featured">精选系列</span>
</div>
<h2 class="font-display text-2xl font-semibold text-ink mb-2" data-i18n="feat.title">
精选教程标题:这里是精选系列的标题
</h2>
<p class="font-body text-sm text-ink-muted leading-relaxed mb-4" data-i18n="feat.desc">
这里是精选系列的简介,描述本系列的核心内容、适合人群和学习收获。
</p>
<div class="flex items-center gap-5">
<span class="flex items-center gap-1.5 font-body text-xs text-ink-muted">
<i data-lucide="book-open" class="w-3.5 h-3.5"></i>
<span data-i18n="feat.chapters">共 6 章</span>
</span>
<span class="flex items-center gap-1.5 font-body text-xs text-ink-muted">
<i data-lucide="clock" class="w-3.5 h-3.5"></i>
<span data-i18n="feat.time">约 3 小时</span>
</span>
</div>
</div>
<!-- Tutorial rows -->
<div>
<div class="tut-row py-6">
<div class="flex items-start gap-4">
<div class="icon-box"><i data-lucide="zap" class="w-4 h-4 text-teal"></i></div>
<div class="flex-1 min-w-0">
<div class="flex items-center gap-3 mb-1">
<span class="chip text-teal" data-i18n="lvl.beginner">入门</span>
<span class="chip text-ink-faint" data-i18n="dur.30m">30 分钟</span>
</div>
<h3 class="tut-title font-body text-[0.95rem] font-semibold text-ink" data-i18n="t1.title">
教程标题:这里是第一个示例教程的标题
</h3>
<p class="font-body text-xs text-ink-muted mt-1" data-i18n="t1.desc">这里是教程简介,概括本教程的核心内容和主要知识点</p>
</div>
<i data-lucide="arrow-right" class="tut-arrow w-4 h-4 text-ink-faint mt-1 flex-shrink-0"></i>
</div>
</div>
<div class="tut-row py-6">
<div class="flex items-start gap-4">
<div class="icon-box"><i data-lucide="message-square" class="w-4 h-4 text-teal"></i></div>
<div class="flex-1 min-w-0">
<div class="flex items-center gap-3 mb-1">
<span class="chip text-teal" data-i18n="lvl.mid">进阶</span>
<span class="chip text-ink-faint" data-i18n="dur.60m">60 分钟</span>
</div>
<h3 class="tut-title font-body text-[0.95rem] font-semibold text-ink" data-i18n="t2.title">
教程标题:这里是第二个示例教程的标题
</h3>
<p class="font-body text-xs text-ink-muted mt-1" data-i18n="t2.desc">这里是教程简介,概括本教程的核心内容和主要知识点</p>
</div>
<i data-lucide="arrow-right" class="tut-arrow w-4 h-4 text-ink-faint mt-1 flex-shrink-0"></i>
</div>
</div>
<div class="tut-row py-6">
<div class="flex items-start gap-4">
<div class="icon-box"><i data-lucide="database" class="w-4 h-4 text-teal"></i></div>
<div class="flex-1 min-w-0">
<div class="flex items-center gap-3 mb-1">
<span class="chip text-teal" data-i18n="lvl.adv">高级</span>
<span class="chip text-ink-faint" data-i18n="dur.2h">2 小时</span>
</div>
<h3 class="tut-title font-body text-[0.95rem] font-semibold text-ink" data-i18n="t3.title">
教程标题:这里是第三个示例教程的标题
</h3>
<p class="font-body text-xs text-ink-muted mt-1" data-i18n="t3.desc">这里是教程简介,概括本教程的核心内容和主要知识点</p>
</div>
<i data-lucide="arrow-right" class="tut-arrow w-4 h-4 text-ink-faint mt-1 flex-shrink-0"></i>
</div>
</div>
<div class="tut-row py-6">
<div class="flex items-start gap-4">
<div class="icon-box"><i data-lucide="workflow" class="w-4 h-4 text-teal"></i></div>
<div class="flex-1 min-w-0">
<div class="flex items-center gap-3 mb-1">
<span class="chip text-teal" data-i18n="lvl.mid">进阶</span>
<span class="chip text-ink-faint" data-i18n="dur.90m">90 分钟</span>
</div>
<h3 class="tut-title font-body text-[0.95rem] font-semibold text-ink" data-i18n="t4.title">
教程标题:这里是第四个示例教程的标题
</h3>
<p class="font-body text-xs text-ink-muted mt-1" data-i18n="t4.desc">这里是教程简介,概括本教程的核心内容和主要知识点</p>
</div>
<i data-lucide="arrow-right" class="tut-arrow w-4 h-4 text-ink-faint mt-1 flex-shrink-0"></i>
</div>
</div>
<div class="tut-row py-6">
<div class="flex items-start gap-4">
<div class="icon-box"><i data-lucide="bot" class="w-4 h-4 text-teal"></i></div>
<div class="flex-1 min-w-0">
<div class="flex items-center gap-3 mb-1">
<span class="chip text-teal" data-i18n="lvl.adv">高级</span>
<span class="chip text-ink-faint" data-i18n="dur.3h">3 小时</span>
</div>
<h3 class="tut-title font-body text-[0.95rem] font-semibold text-ink" data-i18n="t5.title">
教程标题:这里是第五个示例教程的标题
</h3>
<p class="font-body text-xs text-ink-muted mt-1" data-i18n="t5.desc">这里是教程简介,概括本教程的核心内容和主要知识点</p>
</div>
<i data-lucide="arrow-right" class="tut-arrow w-4 h-4 text-ink-faint mt-1 flex-shrink-0"></i>
</div>
</div>
</div>
</main>
<footer class="border-t border-[#E5E1D8] mt-16">
<div class="max-w-5xl mx-auto px-5 sm:px-8 py-7 flex flex-wrap items-center justify-between gap-3">
<span class="font-body text-xs text-ink-faint" data-i18n="footer.copy">© 2025 昵称 · 保留所有权利</span>
<span class="font-body text-xs text-ink-faint" data-i18n="footer.made">用文字与代码构建</span>
</div>
</footer>
<script>
const strings = {
zh: {
'back': '返回首页', 'eyebrow': '· AI 教程', 'title': 'AI 产品教程',
'desc': '这里是教程页面的简介文案,描述本栏目的定位和目标读者',
'featured': '精选系列',
'feat.title': '精选教程标题:这里是精选系列的标题',
'feat.desc': '这里是精选系列的简介,描述本系列的核心内容、适合人群和学习收获。',
'feat.chapters': '共 X 章', 'feat.time': '约 X 小时',
'lvl.beginner': '入门', 'lvl.mid': '进阶', 'lvl.adv': '高级',
'dur.30m': '30 分钟', 'dur.60m': '60 分钟', 'dur.90m': '90 分钟', 'dur.2h': '2 小时', 'dur.3h': '3 小时',
't1.title': '教程标题:这里是第一个示例教程的标题',
't1.desc': '这里是教程简介,概括本教程的核心内容和主要知识点',
't2.title': '教程标题:这里是第二个示例教程的标题',
't2.desc': '这里是教程简介,概括本教程的核心内容和主要知识点',
't3.title': '教程标题:这里是第三个示例教程的标题',
't3.desc': '这里是教程简介,概括本教程的核心内容和主要知识点',
't4.title': '教程标题:这里是第四个示例教程的标题',
't4.desc': '这里是教程简介,概括本教程的核心内容和主要知识点',
't5.title': '教程标题:这里是第五个示例教程的标题',
't5.desc': '这里是教程简介,概括本教程的核心内容和主要知识点',
'footer.copy': '© 2025 昵称 · 保留所有权利', 'footer.made': '用文字与代码构建',
},
en: {
'back': 'Home', 'eyebrow': '· Tutorials', 'title': 'AI Product Tutorials',
'desc': 'This is the tutorial page description. Describe the focus and target audience of this section.',
'featured': 'Featured Series',
'feat.title': 'Featured Tutorial Title: This Is the Featured Series Title',
'feat.desc': 'This is the featured series description. Summarize the core content, target audience, and what readers will learn.',
'feat.chapters': 'X Chapters', 'feat.time': '~X Hours',
'lvl.beginner': 'Beginner', 'lvl.mid': 'Intermediate', 'lvl.adv': 'Advanced',
'dur.30m': '30 min', 'dur.60m': '60 min', 'dur.90m': '90 min', 'dur.2h': '2 hours', 'dur.3h': '3 hours',
't1.title': 'Tutorial Title: This Is the First Sample Tutorial',
't1.desc': 'Tutorial description summarizing the core content and key topics covered',
't2.title': 'Tutorial Title: This Is the Second Sample Tutorial',
't2.desc': 'Tutorial description summarizing the core content and key topics covered',
't3.title': 'Tutorial Title: This Is the Third Sample Tutorial',
't3.desc': 'Tutorial description summarizing the core content and key topics covered',
't4.title': 'Tutorial Title: This Is the Fourth Sample Tutorial',
't4.desc': 'Tutorial description summarizing the core content and key topics covered',
't5.title': 'Tutorial Title: This Is the Fifth Sample Tutorial',
't5.desc': 'Tutorial description summarizing the core content and key topics covered',
'footer.copy': '© 2025 Your Name · All rights reserved', 'footer.made': 'Built with words and code',
},
};
function setLang(l) {
document.documentElement.lang = l;
document.getElementById('btn-zh').classList.toggle('active', l === 'zh');
document.getElementById('btn-en').classList.toggle('active', l === 'en');
document.querySelectorAll('[data-i18n]').forEach(el => {
const k = el.getAttribute('data-i18n');
if (strings[l][k] !== undefined) el.textContent = strings[l][k];
});
document.title = l === 'zh' ? 'AI 教程 · Chen' : 'Tutorials · Chen';
document.getElementById('back-link').href = l === 'zh' ? 'index.html' : 'index.html?lang=en';
}
lucide.createIcons();
const _p = new URLSearchParams(location.search);
if (_p.get('lang') === 'en') setLang('en');
</script>
</body>
</html>