forked from 20161314/UI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorials.html
More file actions
509 lines (463 loc) · 19.5 KB
/
Copy pathtutorials.html
File metadata and controls
509 lines (463 loc) · 19.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
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>禾语智宣 - 教程</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="css/animations.css">
<link rel="stylesheet" href="css/colors.css">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: #f5f7ee;
color: #333;
max-width: 100%;
overflow-x: hidden;
position: relative;
min-height: 100vh;
background-color: #bec381;
background-size: cover;
background-position: center center;
background-attachment: fixed;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(245, 247, 238, 0.85), rgba(245, 247, 238, 0.75));
z-index: -2;
}
#particles-js {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.6;
}
.app-header {
background: linear-gradient(135deg, rgba(154, 163, 56, 0.95), rgba(83, 122, 90, 0.95));
color: white;
padding: 10px 12px;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
position: sticky;
top: 0;
z-index: 100;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.search-bar {
background-color: rgba(255, 255, 255, 0.15);
border-radius: 20px;
padding: 5px 12px;
flex: 1;
margin: 0 8px;
display: flex;
align-items: center;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}
.search-bar:hover {
background-color: rgba(255, 255, 255, 0.25);
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
}
.search-bar input {
background: transparent;
border: none;
color: white;
font-size: 14px;
width: 100%;
padding: 5px;
}
.search-bar input::placeholder {
color: rgba(255, 255, 255, 0.8);
}
.search-bar input:focus {
outline: none;
}
.category-nav {
background: rgba(154, 163, 56, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
padding: 10px;
overflow-x: auto;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
.category-pill {
display: inline-block;
padding: 6px 16px;
margin: 0 4px;
border-radius: 20px;
font-size: 14px;
color: #537a5a;
background: rgba(255, 255, 255, 0.8);
border: 1px solid rgba(154, 163, 56, 0.2);
transition: all 0.3s ease;
cursor: pointer;
}
.category-pill.active {
background: linear-gradient(135deg, #9aa338, #537a5a);
color: white;
border: none;
}
.tutorial-card {
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 16px;
padding: 15px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.02);
margin-bottom: 12px;
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
cursor: pointer;
border: 1px solid rgba(255, 255, 255, 0.5);
position: relative;
overflow: hidden;
}
.tutorial-card:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: 0 15px 30px rgba(83, 122, 90, 0.1), 0 8px 15px rgba(83, 122, 90, 0.05);
border-color: rgba(154, 163, 56, 0.3);
}
.bottom-nav {
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-top: 1px solid rgba(0, 0, 0, 0.05);
padding: 8px 0;
box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 100;
}
.bottom-nav-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 5px 0;
color: #666;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.bottom-nav-item:hover{
color: #537a5a
}
.bottom-nav-item.active {
color: #537a5a;
}
.bottom-nav-item::after {
content: '';
position: absolute;
bottom: 0;
width: 0;
height: 3px;
background: linear-gradient(to right, #9aa338, #537a5a);
transition: width 0.3s ease;
left: 50%;
transform: translateX(-50%);
border-radius: 3px;
}
.bottom-nav-item.active::after {
width: 30px;
}
@media (max-width: 640px) {
.app-header {
padding: 8px 10px;
}
.search-bar {
margin: 0 6px;
padding: 4px 10px;
}
.tutorial-card {
margin: 8px;
}
.category-pill {
padding: 4px 12px;
font-size: 12px;
}
}
.floating-bg {
position: fixed;
border-radius: 50%;
background: linear-gradient(135deg, rgba(154, 163, 56, 0.1), rgba(83, 122, 90, 0.1));
z-index: -2;
animation: float 15s infinite ease-in-out;
}
.bg-1 {
width: 300px;
height: 300px;
top: 10%;
left: -100px;
animation-delay: 0s;
}
.bg-2 {
width: 200px;
height: 200px;
top: 40%;
right: -50px;
animation-delay: 5s;
}
.bg-3 {
width: 250px;
height: 250px;
bottom: 10%;
left: 20%;
animation-delay: 2s;
}
@keyframes float {
0% {
transform: translate(0, 0) rotate(0deg);
}
50% {
transform: translate(20px, 20px) rotate(5deg);
}
100% {
transform: translate(0, 0) rotate(0deg);
}
}
</style>
</head>
<body>
<!-- 浮动背景元素 -->
<div class="floating-bg bg-1"></div>
<div class="floating-bg bg-2"></div>
<div class="floating-bg bg-3"></div>
<div id="particles-js"></div>
<!-- 顶部导航 -->
<header class="app-header">
<h1 class="text-lg font-medium">教程中心</h1>
<div class="search-bar">
<i class="fas fa-search text-white opacity-80 mr-1"></i>
<input type="text" placeholder="搜索教程和模板" id="searchInput">
</div>
<a href="profile.html" class="text-white">
<i class="fas fa-user"></i>
</a>
</header>
<!-- 分类导航 -->
<div class="category-nav">
<span class="category-pill active">全部</span>
<span class="category-pill">新手入门</span>
<span class="category-pill">商品拍摄</span>
<span class="category-pill">文案撰写</span>
<span class="category-pill">引流技巧</span>
<span class="category-pill">客户维护</span>
</div>
<!-- 内容区域 -->
<div class="container mx-auto px-4 pb-24">
<!-- 推荐教程 -->
<div class="mt-4">
<h2 class="text-lg font-bold mb-3">推荐教程</h2>
<div class="tutorial-card">
<img src="https://images.unsplash.com/photo-1556155092-490a1ba16284" alt="教程封面"
class="w-full h-40 object-cover rounded-lg mb-4">
<div class="flex items-center mb-2">
<span class="text-xs px-2 py-1 bg-green-100 text-green-800 rounded-full">新手入门</span>
<span class="text-xs text-gray-500 ml-2">10分钟</span>
</div>
<h3 class="font-bold text-lg mb-2">农产品电商起步完全指南</h3>
<p class="text-sm text-gray-600 mb-3">从零开始,手把手教你入驻各大电商平台,选品、定价、上架全流程解析。</p>
<div class="flex items-center justify-between">
<div class="flex items-center">
<img src="https://images.unsplash.com/photo-1544005313-94ddf0286df2" alt="讲师头像"
class="w-6 h-6 rounded-full">
<span class="text-sm text-gray-500 ml-2">李老师 · 电商顾问</span>
</div>
<a href="tutoDetails0.html" class="text-green-700 text-sm font-medium">开始学习</a>
</div>
</div>
</div>
<!-- 全部教程列表 -->
<div class="mt-6">
<h2 class="text-lg font-bold mb-3">全部教程</h2>
<div class="space-y-4">
<!-- 教程卡片 -->
<div class="tutorial-card">
<div class="flex">
<img src="https://images.unsplash.com/photo-1589254065909-b7086229d08c"
alt="教程缩略图" class="w-24 h-24 rounded-lg object-cover">
<div class="ml-4 flex-1">
<div class="flex items-center mb-1">
<span class="text-xs px-2 py-0.5 bg-green-100 text-green-800 rounded-full">商品拍摄</span>
</div>
<h3 class="font-medium mb-1">农产品拍摄技巧:让你的产品更有吸引力</h3>
<p class="text-xs text-gray-500">15分钟 · 5.2万次播放</p>
<div class="flex items-center justify-between mt-2">
<span class="text-xs text-gray-500">王老师 · 摄影师</span>
<a href="tutoDetails1.html" class="text-green-700 text-sm">查看</a>
</div>
</div>
</div>
</div>
<div class="tutorial-card">
<div class="flex">
<img src="https://images.unsplash.com/photo-1595475207225-428b62bda831?ixlib=rb-4.0.3&auto=format&fit=crop&w=2340&q=80"
alt="教程缩略图" class="w-24 h-24 rounded-lg object-cover">
<div class="ml-4 flex-1">
<div class="flex items-center mb-1">
<span class="text-xs px-2 py-0.5 bg-green-100 text-green-800 rounded-full">文案撰写</span>
</div>
<h3 class="font-medium mb-1">农产品文案创作技巧,让顾客爱上你的产品</h3>
<p class="text-xs text-gray-500">12分钟 · 3.8万次播放</p>
<div class="flex items-center justify-between mt-2">
<span class="text-xs text-gray-500">张老师 · 文案策划</span>
<a href="tutoDetails2.html" class="text-green-700 text-sm">查看</a>
</div>
</div>
</div>
</div>
<div class="tutorial-card">
<div class="flex">
<img src="https://pic1.zhimg.com/v2-ca547f6646ef48702c1dd73ddcb6729c_1440w.jpg"
alt="教程缩略图" class="w-24 h-24 rounded-lg object-cover">
<div class="ml-4 flex-1">
<div class="flex items-center mb-1">
<span class="text-xs px-2 py-0.5 bg-green-100 text-green-800 rounded-full">引流技巧</span>
</div>
<h3 class="font-medium mb-1">如何利用小红书引流,打造爆款农产品</h3>
<p class="text-xs text-gray-500">20分钟 · 8.1万次播放</p>
<div class="flex items-center justify-between mt-2">
<span class="text-xs text-gray-500">赵老师 · 运营专家</span>
<a href="tutoDetails3.html" class="text-green-700 text-sm">查看</a>
</div>
</div>
</div>
</div>
<div class="tutorial-card">
<div class="flex">
<img src="https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2340&q=80"
alt="教程缩略图" class="w-24 h-24 rounded-lg object-cover">
<div class="ml-4 flex-1">
<div class="flex items-center mb-1">
<span class="text-xs px-2 py-0.5 bg-green-100 text-green-800 rounded-full">客户维护</span>
</div>
<h3 class="font-medium mb-1">客户复购率提升秘诀,让顾客持续下单</h3>
<p class="text-xs text-gray-500">18分钟 · 4.5万次播放</p>
<div class="flex items-center justify-between mt-2">
<span class="text-xs text-gray-500">刘老师 · 客户关系专家</span>
<a href="tutoDetails4.html" class="text-green-700 text-sm">查看</a>
</div>
</div>
</div>
</div>
<div class="tutorial-card">
<div class="flex">
<img src="https://images.unsplash.com/photo-1607619056574-7b8d3ee536b2?ixlib=rb-4.0.3&auto=format&fit=crop&w=2340&q=80"
alt="教程缩略图" class="w-24 h-24 rounded-lg object-cover">
<div class="ml-4 flex-1">
<div class="flex items-center mb-1">
<span class="text-xs px-2 py-0.5 bg-green-100 text-green-800 rounded-full">新手入门</span>
</div>
<h3 class="font-medium mb-1">农产品包装与发货,提升用户体验</h3>
<p class="text-xs text-gray-500">16分钟 · 3.2万次播放</p>
<div class="flex items-center justify-between mt-2">
<span class="text-xs text-gray-500">孙老师 · 物流专家</span>
<a href="tutoDetails5.html" class="text-green-700 text-sm">查看</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 底部导航 -->
<div class="bottom-nav">
<div class="flex justify-around">
<a href="index.html" class="bottom-nav-item">
<i class="fas fa-home text-xl"></i>
<span class="text-xs mt-1">首页</span>
</a>
<a href="upload.html" class="bottom-nav-item">
<i class="fas fa-plus-circle text-xl"></i>
<span class="text-xs mt-1">创建</span>
</a>
<a href="tutorials.html" class="bottom-nav-item active">
<i class="fas fa-book text-xl"></i>
<span class="text-xs mt-1">教程</span>
</a>
<a href="profile.html" class="bottom-nav-item">
<i class="fas fa-user text-xl"></i>
<span class="text-xs mt-1">我的</span>
</a>
</div>
</div>
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// 初始化粒子效果
particlesJS('particles-js', {
particles: {
number: { value: 20 },
color: { value: '#9aa338' },
shape: { type: 'circle' },
opacity: { value: 0.3, random: true },
size: { value: 5, random: true },
line_linked: {
enable: true,
distance: 150,
color: '#9aa338',
opacity: 0.2,
width: 1
},
move: {
enable: true,
speed: 2,
direction: 'none',
random: false,
straight: false,
out_mode: 'out',
bounce: false
}
},
interactivity: {
detect_on: 'canvas',
events: {
onhover: { enable: true, mode: 'grab' },
onclick: { enable: true, mode: 'push' },
resize: true
}
},
retina_detect: true
});
// 分类导航点击事件
document.querySelectorAll('.category-pill').forEach(pill => {
pill.addEventListener('click', function() {
document.querySelectorAll('.category-pill').forEach(p => p.classList.remove('active'));
this.classList.add('active');
});
});
// 搜索功能
const searchInput = document.getElementById('searchInput');
searchInput.addEventListener('input', function(e) {
const searchTerm = e.target.value.toLowerCase();
const tutorialCards = document.querySelectorAll('.tutorial-card');
tutorialCards.forEach(card => {
const title = card.querySelector('h3').textContent.toLowerCase();
const category = card.querySelector('.text-xs').textContent.toLowerCase();
if (title.includes(searchTerm) || category.includes(searchTerm)) {
card.style.display = 'block';
} else {
card.style.display = 'none';
}
});
});
});
</script>
</body>
</html>