-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1333 lines (1221 loc) · 56.1 KB
/
index.html
File metadata and controls
1333 lines (1221 loc) · 56.1 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="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>React Learning Skill Tree - Quest Mode</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: #050505;
background-image:
radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
min-height: 100vh;
padding: 20px;
color: #e2e8f0;
}
.container {
max-width: 1400px;
margin: 0 auto;
}
h1 {
text-align: center;
margin-bottom: 10px;
font-size: 3em;
font-weight: 900;
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -1px;
}
.progress-bar {
width: 100%;
height: 8px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
margin: 30px 0;
overflow: hidden;
position: relative;
border-radius: 100px;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
width: 0%;
transition: width 0.5s ease;
border-radius: 100px;
box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}
.progress-text {
position: absolute;
width: 100%;
text-align: center;
line-height: 30px;
font-weight: 600;
color: #94a3b8;
font-size: 0.9em;
top: -25px;
}
.skill-tree {
display: grid;
gap: 30px;
margin-top: 50px;
}
.tier {
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.08);
padding: 25px;
border-radius: 20px;
position: relative;
transition: all 0.3s ease;
}
.tier:hover {
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.12);
}
.tier-title {
font-size: 1.3em;
margin-bottom: 25px;
font-weight: 700;
display: flex;
align-items: center;
gap: 15px;
color: #e2e8f0;
}
.tier-icon {
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
padding: 8px 16px;
border-radius: 10px;
font-size: 0.9em;
font-weight: 900;
}
.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.skill {
background: rgba(255, 255, 255, 0.02);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 16px;
padding: 20px 15px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.skill::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
opacity: 0;
transition: opacity 0.3s ease;
}
.skill:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.05);
border-color: rgba(139, 92, 246, 0.3);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.skill:hover::before {
opacity: 1;
}
.skill.unlocked {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
border: 1px solid rgba(139, 92, 246, 0.4);
animation: unlock 0.5s ease;
}
.skill.unlocked::after {
content: '✓';
position: absolute;
top: 10px;
left: 10px;
width: 20px;
height: 20px;
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: bold;
}
.skill.locked {
opacity: 0.3;
cursor: not-allowed;
filter: grayscale(100%);
}
@keyframes unlock {
0% {
transform: scale(1) rotate(0deg);
}
50% {
transform: scale(1.05) rotate(1deg);
}
100% {
transform: scale(1) rotate(0deg);
}
}
.skill-icon {
font-size: 2em;
margin-bottom: 12px;
text-align: center;
opacity: 0.9;
}
.skill-name {
font-weight: 600;
margin-bottom: 5px;
text-align: center;
font-size: 0.95em;
color: #e2e8f0;
}
.skill-desc {
font-size: 0.8em;
opacity: 0.5;
text-align: center;
color: #94a3b8;
line-height: 1.4;
}
.skill-points {
position: absolute;
top: 10px;
right: 10px;
background: rgba(139, 92, 246, 0.2);
padding: 4px 10px;
border-radius: 20px;
font-size: 0.7em;
color: #a78bfa;
font-weight: 600;
}
.quest-indicator {
margin-top: 10px;
text-align: center;
font-size: 0.75em;
color: #3b82f6;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
opacity: 0.8;
}
.tier-1 {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
}
.tier-2 {
background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
}
.tier-3 {
background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, transparent 100%);
}
.tier-4 {
background: linear-gradient(135deg, rgba(217, 70, 239, 0.05) 0%, transparent 100%);
}
.stats {
display: flex;
justify-content: space-around;
margin: 30px 0;
gap: 20px;
}
.stat {
text-align: center;
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(10px);
padding: 20px;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.06);
flex: 1;
}
.stat-value {
font-size: 2.5em;
font-weight: 900;
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.stat-label {
font-size: 0.85em;
opacity: 0.5;
text-transform: uppercase;
letter-spacing: 1px;
margin-top: 5px;
color: #94a3b8;
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
}
.modal.show {
display: block;
}
.modal-content {
background: #0a0a0a;
background-image:
radial-gradient(ellipse at top, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
margin: 5% auto;
padding: 30px;
border: 1px solid rgba(139, 92, 246, 0.3);
width: 90%;
max-width: 600px;
border-radius: 24px;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
animation: modalSlide 0.3s ease;
backdrop-filter: blur(20px);
}
@keyframes modalSlide {
from {
transform: translateY(-50px) scale(0.95);
opacity: 0;
}
to {
transform: translateY(0) scale(1);
opacity: 1;
}
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-title {
font-size: 1.4em;
font-weight: 700;
display: flex;
align-items: center;
gap: 12px;
color: #e2e8f0;
}
.close {
color: #94a3b8;
font-size: 24px;
cursor: pointer;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
border-radius: 12px;
}
.close:hover {
background: rgba(139, 92, 246, 0.2);
border-color: rgba(139, 92, 246, 0.4);
color: #e2e8f0;
}
.quest-list {
margin: 20px 0;
}
.quest-section {
margin-bottom: 25px;
background: rgba(255, 255, 255, 0.02);
padding: 20px;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.quest-section-title {
font-weight: 600;
margin-bottom: 15px;
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 1.1em;
}
.quest-item {
display: flex;
align-items: flex-start;
margin-bottom: 10px;
padding: 10px;
background: rgba(255, 255, 255, 0.02);
border-radius: 10px;
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid transparent;
}
.quest-item:hover {
background: rgba(139, 92, 246, 0.05);
border-color: rgba(139, 92, 246, 0.2);
}
.quest-checkbox {
width: 20px;
height: 20px;
margin-right: 12px;
cursor: pointer;
accent-color: #8b5cf6;
}
.quest-text {
flex: 1;
font-size: 0.9em;
color: #94a3b8;
line-height: 1.5;
}
.quest-item.completed .quest-text {
text-decoration: line-through;
opacity: 0.4;
}
.mastery-button {
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
border: none;
color: white;
padding: 14px 30px;
font-size: 1em;
font-weight: 600;
cursor: pointer;
width: 100%;
transition: all 0.3s ease;
margin-top: 20px;
border-radius: 12px;
text-transform: uppercase;
letter-spacing: 1px;
}
.mastery-button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}
.mastery-button:disabled {
background: rgba(255, 255, 255, 0.05);
cursor: not-allowed;
color: #64748b;
}
.resources {
background: rgba(59, 130, 246, 0.05);
padding: 20px;
border-radius: 12px;
margin-top: 20px;
border: 1px solid rgba(59, 130, 246, 0.1);
}
.resources-title {
font-weight: 600;
margin-bottom: 12px;
color: #3b82f6;
}
.resource-link {
display: block;
color: #94a3b8;
margin-bottom: 8px;
text-decoration: none;
font-size: 0.9em;
transition: all 0.3s ease;
padding-left: 15px;
position: relative;
}
.resource-link:before {
content: '→';
position: absolute;
left: 0;
transition: transform 0.3s ease;
}
.resource-link:hover {
color: #3b82f6;
padding-left: 20px;
}
.resource-link:hover:before {
transform: translateX(5px);
}
.help-text {
text-align: center;
margin-top: 15px;
font-size: 0.85em;
opacity: 0.5;
color: #94a3b8;
}
</style>
</head>
<body>
<div class="container">
<h1>React Developer Skill Tree</h1>
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
<div class="progress-text" id="progressText">0% Complete</div>
</div>
<div class="stats">
<div class="stat">
<div class="stat-value" id="unlockedCount">0</div>
<div class="stat-label">Skills Unlocked</div>
</div>
<div class="stat">
<div class="stat-value" id="totalCount">24</div>
<div class="stat-label">Total Skills</div>
</div>
<div class="stat">
<div class="stat-value" id="questsComplete">0</div>
<div class="stat-label">Quests Complete</div>
</div>
</div>
<div class="help-text">Click any skill to view quests and resources</div>
<div class="skill-tree">
<!-- Tier 1: Foundation -->
<div class="tier tier-1">
<div class="tier-title">
<span class="tier-icon">LV.1</span>
Foundation
</div>
<div class="skills-grid">
<div class="skill" data-tier="1" data-skill="html-basics">
<div class="skill-points">+10 XP</div>
<div class="skill-icon">📄</div>
<div class="skill-name">HTML Basics</div>
<div class="skill-desc">Elements, attributes, semantic HTML</div>
<div class="quest-indicator">View Quests</div>
</div>
<div class="skill" data-tier="1" data-skill="css-basics">
<div class="skill-points">+10 XP</div>
<div class="skill-icon">🎨</div>
<div class="skill-name">CSS Basics</div>
<div class="skill-desc">Selectors, box model, flexbox</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill" data-tier="1" data-skill="js-variables">
<div class="skill-points">+15 XP</div>
<div class="skill-icon">📦</div>
<div class="skill-name">JS Variables & Types</div>
<div class="skill-desc">let, const, strings, numbers, arrays</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill" data-tier="1" data-skill="js-functions">
<div class="skill-points">+15 XP</div>
<div class="skill-icon">⚙️</div>
<div class="skill-name">JS Functions</div>
<div class="skill-desc">Function declaration, arrow functions</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill" data-tier="1" data-skill="js-arrays">
<div class="skill-points">+15 XP</div>
<div class="skill-icon">📊</div>
<div class="skill-name">Array Methods</div>
<div class="skill-desc">map, filter, reduce, forEach</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill" data-tier="1" data-skill="js-objects">
<div class="skill-points">+15 XP</div>
<div class="skill-icon">📘</div>
<div class="skill-name">Objects & JSON</div>
<div class="skill-desc">Object literals, JSON parsing</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
</div>
</div>
<!-- Tier 3: Advanced React -->
<div class="tier tier-3">
<div class="tier-title">
<span class="tier-icon">LV.3</span>
Advanced React
</div>
<div class="skills-grid">
<div class="skill locked" data-tier="3" data-skill="useEffect">
<div class="skill-points">+30 XP</div>
<div class="skill-icon">🔄</div>
<div class="skill-name">useEffect Hook</div>
<div class="skill-desc">Side effects, cleanup, dependencies</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="3" data-skill="fetch">
<div class="skill-points">+30 XP</div>
<div class="skill-icon">🌐</div>
<div class="skill-name">Data Fetching</div>
<div class="skill-desc">fetch API, async/await, loading states</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="3" data-skill="forms">
<div class="skill-points">+25 XP</div>
<div class="skill-icon">📝</div>
<div class="skill-name">Form Management</div>
<div class="skill-desc">Controlled components, validation</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="3" data-skill="lifting">
<div class="skill-points">+25 XP</div>
<div class="skill-icon">⬆️</div>
<div class="skill-name">Lifting State Up</div>
<div class="skill-desc">Shared state, prop drilling</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="3" data-skill="keys">
<div class="skill-points">+20 XP</div>
<div class="skill-icon">🔑</div>
<div class="skill-name">Lists & Keys</div>
<div class="skill-desc">Rendering lists, unique keys</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="3" data-skill="custom-hooks">
<div class="skill-points">+35 XP</div>
<div class="skill-icon">🪝</div>
<div class="skill-name">Custom Hooks</div>
<div class="skill-desc">Creating reusable logic</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
</div>
</div>
<!-- Tier 4: Professional -->
<div class="tier tier-4">
<div class="tier-title">
<span class="tier-icon">LV.4</span>
Professional Skills
</div>
<div class="skills-grid">
<div class="skill locked" data-tier="4" data-skill="routing">
<div class="skill-points">+40 XP</div>
<div class="skill-icon">🗺️</div>
<div class="skill-name">React Router</div>
<div class="skill-desc">Navigation, routes, params</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="4" data-skill="context">
<div class="skill-points">+40 XP</div>
<div class="skill-icon">🌍</div>
<div class="skill-name">Context API</div>
<div class="skill-desc">Global state management</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="4" data-skill="typescript">
<div class="skill-points">+45 XP</div>
<div class="skill-icon">📘</div>
<div class="skill-name">TypeScript + React</div>
<div class="skill-desc">Type safety, interfaces</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="4" data-skill="testing">
<div class="skill-points">+35 XP</div>
<div class="skill-icon">🧪</div>
<div class="skill-name">Testing</div>
<div class="skill-desc">Unit tests, React Testing Library</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="4" data-skill="optimization">
<div class="skill-points">+35 XP</div>
<div class="skill-icon">⚡</div>
<div class="skill-name">Performance</div>
<div class="skill-desc">useMemo, useCallback, React.memo</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="4" data-skill="deployment">
<div class="skill-points">+30 XP</div>
<div class="skill-icon">🚀</div>
<div class="skill-name">Deployment</div>
<div class="skill-desc">Build process, hosting, CI/CD</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
</div>
</div>
<!-- Other tiers remain the same structure -->
<div class="tier tier-2">
<div class="tier-title">
<span class="tier-icon">[02]</span>
Tier 2: React Core
</div>
<div class="skills-grid">
<div class="skill locked" data-tier="2" data-skill="jsx">
<div class="skill-points">+20 XP</div>
<div class="skill-icon">🔧</div>
<div class="skill-name">JSX Syntax</div>
<div class="skill-desc">JSX rules, expressions, fragments</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="2" data-skill="components">
<div class="skill-points">+20 XP</div>
<div class="skill-icon">🧩</div>
<div class="skill-name">Components</div>
<div class="skill-desc">Functional components, composition</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="2" data-skill="props">
<div class="skill-points">+20 XP</div>
<div class="skill-icon">📨</div>
<div class="skill-name">Props</div>
<div class="skill-desc">Passing data, prop types, children</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="2" data-skill="state">
<div class="skill-points">+25 XP</div>
<div class="skill-icon">💾</div>
<div class="skill-name">useState Hook</div>
<div class="skill-desc">State management, updates, arrays/objects</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="2" data-skill="events">
<div class="skill-points">+20 XP</div>
<div class="skill-icon">👆</div>
<div class="skill-name">Event Handling</div>
<div class="skill-desc">onClick, onChange, form handling</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
<div class="skill locked" data-tier="2" data-skill="conditional">
<div class="skill-points">+20 XP</div>
<div class="skill-icon">🔀</div>
<div class="skill-name">Conditional Rendering</div>
<div class="skill-desc">if/else, ternary, && operator</div>
<div class="quest-indicator">📋 View Quests</div>
</div>
</div>
</div>
</div>
</div>
<!-- Quest Modal -->
<div id="questModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<div class="modal-title" id="modalTitle">
<span id="modalIcon">📄</span>
<span id="modalSkillName">Skill Name</span>
</div>
<span class="close">×</span>
</div>
<div id="questContent">
<!-- Quest content will be dynamically inserted here -->
</div>
</div>
</div>
<script>
// Quest data for each skill
const skillQuests = {
'html-basics': {
icon: '📄',
quests: {
'Build Without Help': [
'Create a basic webpage with header, main, and footer sections',
'Build a navigation menu using <nav> and <ul>/<li> tags',
'Create a contact form with text inputs, email, and submit button',
'Build a table with headers and at least 5 rows of data'
],
'Understand & Explain': [
'Explain the difference between <div> and <span>',
'Know when to use semantic tags (article, section, aside, figure)',
'Understand the purpose of meta tags and DOCTYPE',
'Explain what accessibility attributes do (alt, aria-label)'
],
'Debug & Fix': [
'Fix broken HTML with missing closing tags',
'Validate HTML using W3C validator and fix all errors',
'Convert a div-soup layout to semantic HTML'
]
},
resources: [
{ name: 'MDN HTML Basics', url: 'https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics' },
{ name: 'FreeCodeCamp HTML', url: 'https://www.freecodecamp.org/learn/responsive-web-design/#basic-html-and-html5' },
{ name: 'HTML Reference', url: 'https://htmlreference.io/' }
]
},
'css-basics': {
icon: '🎨',
quests: {
'Build Without Help': [
'Style a webpage with custom fonts, colors, and spacing',
'Create a flexbox layout with centered content',
'Build a responsive navigation bar that works on mobile',
'Create hover effects for buttons and links',
'Build a card component with shadow and border-radius'
],
'Understand & Explain': [
'Explain the CSS box model (margin, border, padding, content)',
'Know the difference between inline, block, and inline-block',
'Understand CSS specificity and inheritance',
'Explain how flexbox main axis and cross axis work'
],
'Debug & Fix': [
'Fix layout issues using browser DevTools',
'Solve a centering problem (both horizontal and vertical)',
'Debug why styles aren\'t applying (specificity issues)'
]
},
resources: [
{ name: 'CSS Tricks Flexbox Guide', url: 'https://css-tricks.com/snippets/css/a-guide-to-flexbox/' },
{ name: 'MDN CSS Basics', url: 'https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/CSS_basics' },
{ name: 'Flexbox Froggy Game', url: 'https://flexboxfroggy.com/' }
]
},
'js-variables': {
icon: '📦',
quests: {
'Build Without Help': [
'Declare variables using let and const appropriately',
'Create and manipulate different data types (string, number, boolean)',
'Build a simple calculator that stores values in variables',
'Create a mad libs game using string concatenation/template literals'
],
'Understand & Explain': [
'Explain the difference between let, const, and var',
'Know what hoisting means and how it affects variables',
'Understand type coercion (automatic type conversion)',
'Explain the difference between == and ==='
],
'Common Pitfalls to Master': [
'Avoid accidental global variables',
'Handle undefined and null values properly',
'Use const by default, let when needed'
]
},
resources: [
{ name: 'JavaScript.info Variables', url: 'https://javascript.info/variables' },
{ name: 'MDN JavaScript Guide', url: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide' },
{ name: 'FreeCodeCamp JavaScript', url: 'https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/' }
]
},
'js-functions': {
icon: '⚙️',
quests: {
'Build Without Help': [
'Write a function that calculates the area of a rectangle',
'Create a function that validates email format',
'Build a temperature converter (Celsius to Fahrenheit)',
'Write both regular functions and arrow functions'
],
'Understand & Explain': [
'Explain function scope and closure',
'Know when to use arrow functions vs regular functions',
'Understand the "return" keyword and what happens without it',
'Explain what "this" refers to in different contexts'
],
'Advanced Patterns': [
'Use functions as arguments (callbacks)',
'Return functions from other functions',
'Use default parameters and rest parameters'
]
},
resources: [
{ name: 'MDN Functions Guide', url: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions' },
{ name: 'JavaScript.info Functions', url: 'https://javascript.info/function-basics' },
{ name: 'Arrow Functions Explained', url: 'https://www.freecodecamp.org/news/arrow-functions-in-javascript-explained/' }
]
},
'js-arrays': {
icon: '📊',
quests: {
'Build Without Help': [
'Filter an array to find all numbers greater than 10',
'Use map to transform an array of numbers (double each)',
'Find the sum of all numbers using reduce',
'Sort an array of objects by a property',
'Remove duplicates from an array'
],
'Understand & Explain': [
'Know which methods mutate arrays vs create new ones',
'Explain how map differs from forEach',
'Understand when to use filter vs find',
'Know how reduce works with accumulator'
],
'Real-World Tasks': [
'Process a list of products (filter by price, sort by name)',
'Calculate statistics from an array of numbers',
'Transform API data into the format your UI needs'
]
},
resources: [
{ name: 'MDN Array Methods', url: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array' },
{ name: 'JavaScript Array Methods Tutorial', url: 'https://www.freecodecamp.org/news/javascript-array-methods/' },
{ name: 'Array Explorer Tool', url: 'https://arrayexplorer.netlify.app/' }
]
},
'js-objects': {
icon: '📘',
quests: {
'Build Without Help': [
'Create an object representing a user with properties and methods',
'Access nested object properties safely',
'Convert JSON string to object and vice versa',
'Merge two objects together',
'Loop through object properties'
],
'Understand & Explain': [
'Know the difference between dot notation and bracket notation',
'Understand object destructuring',
'Explain pass-by-reference vs pass-by-value',
'Know what JSON can and cannot represent'
],
'API Readiness': [
'Parse JSON response from an API',
'Build an object to send as JSON to an API',
'Handle nested JSON data structures'
]
},
resources: [
{ name: 'MDN Working with Objects', url: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects' },
{ name: 'JSON Introduction', url: 'https://www.json.org/json-en.html' },
{ name: 'JavaScript.info Objects', url: 'https://javascript.info/object' }
]
},
'jsx': {
icon: '🔧',
quests: {
'Build Without Help': [
'Convert HTML to valid JSX (className, htmlFor, self-closing tags)',
'Embed JavaScript expressions in JSX using {}',
'Render a list of items using map()',
'Use React Fragments to avoid wrapper divs'
],
'Understand & Explain': [
'Explain why className is used instead of class',
'Know which attributes are camelCased in JSX',
'Understand what JSX compiles to (React.createElement)',
'Know the rules for JavaScript expressions in JSX'
],
'Common Patterns': [
'Conditionally add CSS classes',
'Inline styles using style object',
'Handle events in JSX'
]
},
resources: [
{ name: 'React Docs: JSX', url: 'https://react.dev/learn/writing-markup-with-jsx' },
{ name: 'JSX in Depth', url: 'https://legacy.reactjs.org/docs/jsx-in-depth.html' },
{ name: 'Transform HTML to JSX', url: 'https://transform.tools/html-to-jsx' }
]
},
'components': {
icon: '🧩',
quests: {
'Build Without Help': [
'Create a functional component that returns JSX',
'Build a Card component for displaying content',
'Create a Button component with different variants',
'Compose multiple components into a page'
],
'Understand & Explain': [
'Know when to split something into a component',
'Understand component naming conventions',
'Explain component composition vs inheritance',
'Know what makes a good reusable component'
],
'Best Practices': [
'Keep components small and focused',
'Make components reusable',
'Organize components in folders'
]
},
resources: [
{ name: 'React Docs: Your First Component', url: 'https://react.dev/learn/your-first-component' },
{ name: 'Thinking in React', url: 'https://react.dev/learn/thinking-in-react' },
{ name: 'Component Patterns', url: 'https://www.patterns.dev/posts/reactpatterns' }
]
},
'props': {
icon: '📨',
quests: {
'Build Without Help': [
'Pass different data types as props (strings, numbers, objects, functions)',
'Use destructuring to extract props',
'Set default props for a component',
'Pass all props to child using spread operator',
'Use children prop for component composition'
],
'Understand & Explain': [
'Explain why props are read-only',
'Know how data flows in React (one-way)',
'Understand prop drilling and its problems',
'Know when to use children vs regular props'
],
'Patterns to Master': [
'Create flexible components with props',
'Build a component with optional props',
'Type check props (PropTypes or TypeScript basics)'
]
},
resources: [