-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1543 lines (1347 loc) · 53.7 KB
/
Copy pathindex.html
File metadata and controls
1543 lines (1347 loc) · 53.7 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
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Fairy的技术作品集 - 展示专业技能、项目经验和学习成果">
<meta name="keywords" content="技术作品集, 项目展示, 算法题库, 学习笔记, 计算机视觉, 深度学习">
<title>技术作品集 | Fairy</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
:root {
--primary-color: #2563eb;
--primary-dark: #1d4ed8;
--secondary-color: #f9fafb;
--accent-color: #0ea5e9;
--text-primary: #1f2937;
--text-secondary: #6b7280;
--bg-light: #ffffff;
--bg-dark: #111827;
--border-color: #e5e7eb;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--transition: all 0.3s ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--bg-light);
color: var(--text-primary);
line-height: 1.6;
}
/* 导航栏 */
.navbar {
position: fixed;
top: 0;
width: 100%;
background-color: var(--bg-light);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
box-shadow: var(--shadow);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
}
.logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
display: flex;
align-items: center;
gap: 0.5rem;
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
transition: var(--transition);
position: relative;
padding: 0.5rem 0;
}
.nav-links a:hover {
color: var(--primary-color);
}
.nav-links a.active {
color: var(--primary-color);
}
.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: var(--primary-color);
transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
width: 100%;
}
.mobile-menu-btn {
display: none;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--text-primary);
}
/* 主容器 */
.main-container {
margin-top: 80px;
min-height: calc(100vh - 80px);
padding: 2rem;
}
/* 各模块通用样式 */
.section {
display: none;
animation: fadeIn 0.5s ease-in-out;
}
.section.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.section-title {
font-size: 2.5rem;
margin-bottom: 2rem;
color: var(--text-primary);
text-align: center;
font-weight: 700;
}
.section-subtitle {
font-size: 1.2rem;
color: var(--text-secondary);
text-align: center;
margin-bottom: 3rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
/* 首页统计卡片 */
.stats-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin: 3rem 0;
}
.stat-card {
background: var(--bg-light);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 2rem;
text-align: center;
box-shadow: var(--shadow);
transition: var(--transition);
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.stat-label {
font-size: 1rem;
color: var(--text-secondary);
}
/* 操作按钮组 */
.action-buttons {
display: flex;
justify-content: center;
gap: 1rem;
margin: 2rem 0;
flex-wrap: wrap;
}
.btn {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 8px;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-weight: 500;
transition: var(--transition);
font-size: 1rem;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
}
.btn-secondary {
background-color: transparent;
color: var(--primary-color);
border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
background-color: var(--primary-color);
color: white;
}
.btn-large {
padding: 1rem 2rem;
font-size: 1.1rem;
}
/* 项目展示模块 */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.project-card {
background-color: var(--bg-light);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.5rem;
box-shadow: var(--shadow);
transition: var(--transition);
}
.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.project-title {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: var(--text-primary);
font-weight: 600;
}
.project-tech {
color: var(--accent-color);
margin-bottom: 1rem;
font-size: 0.9rem;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.project-tech span {
background-color: rgba(14, 165, 233, 0.1);
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.8rem;
}
.project-desc {
margin-bottom: 1.5rem;
color: var(--text-secondary);
}
.project-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
/* 学习笔记模块 */
.learning-container {
display: flex;
flex-direction: column;
gap: 2rem;
}
.note-filters {
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
}
.filter-btn {
padding: 0.5rem 1rem;
background-color: var(--bg-light);
color: var(--text-secondary);
border: 2px solid var(--border-color);
border-radius: 8px;
cursor: pointer;
transition: var(--transition);
font-weight: 500;
}
.filter-btn:hover {
border-color: var(--primary-color);
color: var(--primary-color);
}
.filter-btn.active {
background-color: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
.notes-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
}
.note-item {
background-color: var(--bg-light);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.5rem;
box-shadow: var(--shadow);
transition: var(--transition);
}
.note-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.note-title {
font-size: 1.2rem;
margin-bottom: 0.5rem;
color: var(--text-primary);
font-weight: 600;
}
.note-category {
color: var(--accent-color);
font-size: 0.9rem;
margin-bottom: 1rem;
display: inline-block;
background-color: rgba(14, 165, 233, 0.1);
padding: 0.25rem 0.75rem;
border-radius: 20px;
}
.note-content {
margin-bottom: 1rem;
color: var(--text-secondary);
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* 刷题模块 */
.problems-container {
display: flex;
flex-direction: column;
gap: 2rem;
}
.problem-filters {
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
}
.problem-item {
background-color: var(--bg-light);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.5rem;
box-shadow: var(--shadow);
margin-bottom: 1rem;
}
.problem-title {
font-size: 1.2rem;
margin-bottom: 0.5rem;
color: var(--text-primary);
font-weight: 600;
}
.problem-difficulty {
display: inline-block;
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 500;
margin-bottom: 1rem;
}
.difficulty-easy {
background-color: rgba(16, 185, 129, 0.1);
color: #065f46;
}
.difficulty-medium {
background-color: rgba(245, 158, 11, 0.1);
color: #92400e;
}
.difficulty-hard {
background-color: rgba(239, 68, 68, 0.1);
color: #7f1d1d;
}
.code-block {
background-color: #1e1e1e;
border-radius: 8px;
padding: 1.5rem;
margin-top: 1rem;
overflow-x: auto;
font-family: 'Courier New', monospace;
font-size: 0.9rem;
line-height: 1.5;
color: #d4d4d4;
}
.code-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.copy-btn {
background-color: #333;
color: #e0e0e0;
border: none;
padding: 0.3rem 0.6rem;
border-radius: 4px;
cursor: pointer;
transition: var(--transition);
}
.copy-btn:hover {
background-color: #555;
}
/* 关于我模块 */
.about-container {
max-width: 800px;
margin: 0 auto;
}
.profile-card {
background: var(--bg-light);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 2rem;
text-align: center;
box-shadow: var(--shadow);
margin-bottom: 2rem;
}
.profile-avatar {
width: 120px;
height: 120px;
border-radius: 50%;
background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
margin: 0 auto 1rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
color: white;
}
.contact-info {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}
.contact-item {
background-color: var(--bg-light);
padding: 1.5rem;
border: 1px solid var(--border-color);
border-radius: 8px;
text-align: center;
transition: var(--transition);
}
.contact-item:hover {
transform: translateY(-3px);
box-shadow: var(--shadow);
}
.contact-icon {
font-size: 1.5rem;
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.contact-link {
color: var(--primary-color);
text-decoration: none;
display: block;
margin-top: 0.5rem;
}
.contact-link:hover {
text-decoration: underline;
}
/* 留言板 */
.guestbook {
margin-top: 3rem;
}
.comment-form {
background-color: var(--bg-light);
padding: 2rem;
border: 1px solid var(--border-color);
border-radius: 12px;
margin-bottom: 2rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 0.75rem;
border-radius: 8px;
border: 2px solid var(--border-color);
background-color: var(--bg-light);
color: var(--text-primary);
font-size: 1rem;
transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.comments-list {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.comment-item {
background-color: var(--bg-light);
padding: 1.5rem;
border: 1px solid var(--border-color);
border-radius: 8px;
border-left: 4px solid var(--primary-color);
}
.comment-author {
font-weight: 600;
color: var(--primary-color);
margin-bottom: 0.25rem;
}
.comment-date {
font-size: 0.85rem;
color: var(--text-secondary);
margin-bottom: 0.5rem;
}
.comment-content {
color: var(--text-secondary);
}
/* 表单模态框 */
.modal {
display: none;
position: fixed;
z-index: 2000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.7);
backdrop-filter: blur(5px);
}
.modal-content {
background-color: var(--bg-light);
margin: 5% auto;
padding: 2rem;
border-radius: 12px;
width: 90%;
max-width: 600px;
color: var(--text-primary);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
max-height: 80vh;
overflow-y: auto;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.modal-title {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
}
.close {
color: var(--text-secondary);
font-size: 2rem;
font-weight: normal;
cursor: pointer;
transition: var(--transition);
}
.close:hover {
color: var(--primary-color);
}
/* 页脚 */
.footer {
background-color: var(--bg-dark);
color: var(--text-secondary);
padding: 3rem 2rem 1rem;
margin-top: 4rem;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
}
.footer-section h3 {
color: white;
margin-bottom: 1rem;
font-size: 1.2rem;
}
.footer-links {
list-style: none;
}
.footer-links li {
margin-bottom: 0.5rem;
}
.footer-links a {
color: var(--text-secondary);
text-decoration: none;
transition: var(--transition);
}
.footer-links a:hover {
color: var(--accent-color);
}
.footer-bottom {
text-align: center;
padding-top: 2rem;
margin-top: 2rem;
border-top: 1px solid rgba(255,255,255,0.1);
color: rgba(255,255,255,0.6);
}
/* 响应式设计 */
@media (max-width: 768px) {
.navbar {
flex-direction: column;
padding: 1rem;
}
.nav-links {
margin-top: 1rem;
flex-wrap: wrap;
justify-content: center;
}
.mobile-menu-btn {
display: block;
position: absolute;
right: 1rem;
top: 1rem;
}
.main-container {
margin-top: 120px;
padding: 1rem;
}
.section-title {
font-size: 2rem;
}
.projects-grid,
.notes-list {
grid-template-columns: 1fr;
}
.contact-info {
grid-template-columns: 1fr;
}
.action-buttons {
flex-direction: column;
align-items: center;
}
.btn {
width: 100%;
justify-content: center;
}
}
</style>
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar">
<div class="logo">
<i class="fas fa-code"></i>
Tech Portfolio
</div>
<div class="nav-links">
<a href="#" data-section="home" class="active">首页</a>
<a href="#" data-section="projects">项目展示</a>
<a href="#" data-section="learning">学习笔记</a>
<a href="#" data-section="problems">刷题题库</a>
<a href="#" data-section="about">关于我</a>
</div>
<button class="mobile-menu-btn">
<i class="fas fa-bars"></i>
</button>
</nav>
<div class="main-container">
<!-- 首页 -->
<section id="home" class="section active">
<h1 class="section-title">Welcome!这是Fairy的个人网站</h1>
<p class="section-subtitle">我的天啊 - 技术改变世界,创新成就未来</p>
<div class="stats-container">
<div class="stat-card">
<div class="stat-number" id="project-count">0</div>
<div class="stat-label">项目数量</div>
</div>
<div class="stat-card">
<div class="stat-number" id="problem-count">0</div>
<div class="stat-label">算法题</div>
</div>
<div class="stat-card">
<div class="stat-number" id="note-count">0</div>
<div class="stat-label">学习笔记</div>
</div>
</div>
<div class="action-buttons">
<button class="btn btn-primary btn-large" onclick="openModal('submit-project')">
<i class="fas fa-plus-circle"></i> 提交项目
</button>
<button class="btn btn-secondary btn-large" onclick="openModal('submit-problem')">
<i class="fas fa-puzzle-piece"></i> 提交算法题
</button>
<button class="btn btn-secondary btn-large" onclick="openModal('submit-note')">
<i class="fas fa-book"></i> 提交学习笔记
</button>
</div>
</section>
<!-- 项目展示模块 -->
<section id="projects" class="section">
<h2 class="section-title">项目展示</h2>
<p class="section-subtitle">精选技术项目,展示专业技能与实践经验</p>
<div class="action-buttons">
<button class="btn btn-primary" onclick="openModal('submit-project')">
<i class="fas fa-plus"></i> 添加新项目
</button>
</div>
<div class="projects-grid" id="projects-grid">
<!-- 项目卡片将通过JavaScript动态添加 -->
</div>
</section>
<!-- 学习笔记模块 -->
<section id="learning" class="section">
<h2 class="section-title">学习笔记</h2>
<p class="section-subtitle">记录技术学习过程,分享知识心得</p>
<div class="action-buttons">
<button class="btn btn-primary" onclick="openModal('submit-note')">
<i class="fas fa-plus"></i> 添加新笔记
</button>
</div>
<div class="learning-container">
<div class="note-filters">
<button class="filter-btn active" data-filter="all">全部</button>
<button class="filter-btn" data-filter="deep-learning">深度学习</button>
<button class="filter-btn" data-filter="computer-vision">计算机视觉</button>
<button class="filter-btn" data-filter="algorithm">算法基础</button>
<button class="filter-btn" data-filter="web-dev">Web开发</button>
</div>
<div class="notes-list" id="notes-list">
<!-- 笔记卡片将通过JavaScript动态添加 -->
</div>
</div>
</section>
<!-- 刷题模块 -->
<section id="problems" class="section">
<h2 class="section-title">刷题题库</h2>
<p class="section-subtitle">算法题解与代码实现,提升编程能力</p>
<div class="action-buttons">
<button class="btn btn-primary" onclick="openModal('submit-problem')">
<i class="fas fa-plus"></i> 添加新题目
</button>
</div>
<div class="problems-container">
<div class="problem-filters">
<button class="filter-btn active" data-filter="all">全部</button>
<button class="filter-btn" data-filter="easy">简单</button>
<button class="filter-btn" data-filter="medium">中等</button>
<button class="filter-btn" data-filter="hard">困难</button>
<button class="filter-btn" data-filter="algorithm">算法</button>
<button class="filter-btn" data-filter="data-structure">数据结构</button>
</div>
<div id="problems-list">
<!-- 题目卡片将通过JavaScript动态添加 -->
</div>
</div>
</section>
<!-- 关于我模块 -->
<section id="about" class="section">
<h2 class="section-title">关于我</h2>
<p class="section-subtitle">了解我的技术背景与专业能力</p>
<div class="about-container">
<div class="profile-card">
<div class="profile-avatar">
<i class="fas fa-user"></i>
</div>
<h3>Fairy</h3>
<p>实力无需多言</p>
<p style="margin-top: 1rem;">擅长技术栈:HTML5/CSS3/JavaScript, Python, C++, OpenCV, PyTorch, TensorFlow</p>
</div>
<div class="contact-info">
<div class="contact-item">
<div class="contact-icon">
<i class="fas fa-envelope"></i>
</div>
<h4>邮箱</h4>
<a href="mailto:3144001558@qq.com" class="contact-link">3144001558@qq.com</a>
</div>
</div>
<div class="guestbook">
<h3 style="color: var(--text-primary); margin-bottom: 1.5rem; text-align: center;">留言板</h3>
<div class="comment-form">
<div class="form-group">
<label for="comment-name">姓名 *</label>
<input type="text" id="comment-name" placeholder="请输入您的姓名">
</div>
<div class="form-group">
<label for="comment-email">邮箱 *</label>
<input type="email" id="comment-email" placeholder="请输入您的邮箱">
</div>
<div class="form-group">
<label for="comment-text">留言 *</label>
<textarea id="comment-text" rows="4" placeholder="请输入您的留言"></textarea>
</div>
<button class="btn btn-primary" onclick="addComment()" style="width: 100%;">
<i class="fas fa-paper-plane"></i> 提交留言
</button>
</div>
<div class="comments-list" id="comments-list">
<!-- 评论将通过JavaScript动态添加 -->
</div>
</div>
</div>
</section>
</div>
<!-- 提交项目模态框 -->
<div id="submit-project" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title">提交新项目</h2>
<span class="close" onclick="closeModal('submit-project')">×</span>
</div>
<div class="form-group">
<label for="project-title">项目名称 *</label>
<input type="text" id="project-title" placeholder="请输入项目名称">
</div>
<div class="form-group">
<label for="project-tech">技术栈 *</label>
<input type="text" id="project-tech" placeholder="例如:Python, OpenCV, YOLO, PyTorch">
</div>
<div class="form-group">
<label for="project-desc">项目描述 *</label>
<textarea id="project-desc" rows="4" placeholder="请输入项目详细描述"></textarea>
</div>
<div class="form-group">
<label for="project-demo">演示链接(可选)</label>
<input type="text" id="project-demo" placeholder="例如:https://...">
</div>
<div class="form-group">
<label for="project-github">GitHub链接(可选)</label>
<input type="text" id="project-github" placeholder="例如:https://github.com/...">
</div>
<button class="btn btn-primary" onclick="submitProject()" style="width: 100%;">
<i class="fas fa-upload"></i> 提交项目
</button>
</div>
</div>
<!-- 提交算法题模态框 -->
<div id="submit-problem" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title">提交新算法题</h2>
<span class="close" onclick="closeModal('submit-problem')">×</span>
</div>
<div class="form-group">
<label for="problem-title">题目名称 *</label>
<input type="text" id="problem-title" placeholder="请输入题目名称">
</div>
<div class="form-group">
<label for="problem-difficulty">难度 *</label>
<select id="problem-difficulty">
<option value="easy">简单</option>
<option value="medium">中等</option>
<option value="hard">困难</option>
</select>
</div>
<div class="form-group">
<label for="problem-desc">题目描述 *</label>
<textarea id="problem-desc" rows="4" placeholder="请输入题目描述"></textarea>
</div>
<div class="form-group">
<label for="problem-code">解法代码 *</label>
<textarea id="problem-code" rows="8" placeholder="请输入解法代码"></textarea>
</div>
<div class="form-group">
<label for="problem-lang">编程语言 *</label>
<select id="problem-lang">
<option value="python">Python</option>
<option value="cpp">C++</option>
<option value="java">Java</option>
<option value="javascript">JavaScript</option>
</select>
</div>
<button class="btn btn-primary" onclick="submitProblem()" style="width: 100%;">
<i class="fas fa-upload"></i> 提交题目
</button>
</div>
</div>
<!-- 提交学习笔记模态框 -->