-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
974 lines (920 loc) · 36.2 KB
/
Copy pathindex.html
File metadata and controls
974 lines (920 loc) · 36.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Rust Backend Engineer — Self Evaluation</title>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet"/>
<script src="/nav.js"></script>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--black: #0a0a0a;
--gray-950: #111111;
--gray-900: #1a1a1a;
--gray-800: #242424;
--gray-750: #2a2a2a;
--gray-700: #333333;
--gray-600: #4a4a4a;
--gray-400: #888888;
--gray-300: #aaaaaa;
--gray-200: #cccccc;
--gray-100: #e8e8e8;
--white: #f5f5f5;
--accent: #ff4500;
--accent2: #ff6a00;
--green: #22c55e;
--amber: #f59e0b;
--blue: #60a5fa;
--mono: 'JetBrains Mono', monospace;
--body: 'Inter', sans-serif;
}
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
background: var(--black);
color: var(--gray-200);
font-family: var(--body);
font-size: 15px;
line-height: 1.7;
min-height: 100vh;
scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }
/* ── STICKY TOPBAR ── */
.topbar {
background: var(--gray-950);
border-bottom: 1px solid var(--gray-700);
height: 48px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32px;
position: sticky;
top: 0;
z-index: 200;
}
.topbar-left {
display: flex;
align-items: center;
gap: 14px;
font-family: var(--mono);
font-size: 11px;
color: var(--gray-400);
}
.topbar-dot { width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; }
.topbar-path span { color: var(--white); }
.topbar-right {
font-family: var(--mono);
font-size: 11px;
color: var(--gray-600);
display: flex;
align-items: center;
gap: 16px;
}
.score-badge {
background: var(--gray-800);
border: 1px solid var(--gray-700);
padding: 3px 10px;
font-size: 11px;
font-family: var(--mono);
color: var(--accent);
font-weight: 700;
}
/* ── DAY NAVIGATION ── */
.day-nav {
background: var(--gray-900);
border-bottom: 1px solid var(--gray-800);
overflow-x: auto;
scrollbar-width: none;
}
.day-nav::-webkit-scrollbar { display: none; }
.day-nav-inner {
display: flex;
min-width: max-content;
}
.day-nav-label {
font-family: var(--mono);
font-size: 10px;
color: var(--gray-600);
letter-spacing: 2px;
text-transform: uppercase;
padding: 0 20px;
border-right: 1px solid var(--gray-800);
display: flex;
align-items: center;
flex-shrink: 0;
}
.day-link {
font-family: var(--mono);
font-size: 10px;
font-weight: 600;
color: var(--gray-600);
text-decoration: none;
padding: 10px 16px;
border-right: 1px solid var(--gray-800);
white-space: nowrap;
display: flex;
flex-direction: column;
gap: 2px;
transition: background 0.12s, color 0.12s;
position: relative;
}
.day-link:hover { background: var(--gray-800); color: var(--white); }
.day-link.active { color: var(--white); background: var(--gray-800); }
.day-link.active::after {
content: '';
position: absolute;
bottom: 0; left: 0; right: 0;
height: 2px;
background: var(--accent);
}
.day-link.done { color: var(--green); }
.day-link.done::after {
content: '';
position: absolute;
bottom: 0; left: 0; right: 0;
height: 2px;
background: var(--green);
}
.day-link .day-num { color: inherit; letter-spacing: 1px; }
.day-link .day-topic { font-size: 9px; color: var(--gray-600); font-weight: 400; }
.day-link.active .day-topic, .day-link:hover .day-topic { color: var(--gray-400); }
.day-link.done .day-topic { color: var(--green); opacity: 0.7; }
/* ── HERO ── */
.hero {
background: var(--gray-950);
border-bottom: 1px solid var(--gray-800);
padding: 56px 32px 44px;
position: relative;
overflow: hidden;
}
.hero::after {
content: '🦀';
position: absolute;
right: 32px;
top: 40px;
font-size: 100px;
opacity: 0.06;
pointer-events: none;
user-select: none;
}
.hero-eyebrow {
font-family: var(--mono);
font-size: 10px;
letter-spacing: 3px;
color: var(--accent);
text-transform: uppercase;
margin-bottom: 18px;
}
.hero h1 {
font-family: var(--mono);
font-size: clamp(28px, 5vw, 52px);
font-weight: 800;
color: var(--white);
line-height: 1.1;
letter-spacing: -1px;
margin-bottom: 10px;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
font-family: var(--mono);
font-size: 12px;
color: var(--gray-400);
margin-bottom: 28px;
}
.hero-stats {
display: flex;
gap: 0;
flex-wrap: wrap;
border: 1px solid var(--gray-800);
width: fit-content;
}
.hero-stat {
padding: 12px 24px;
border-right: 1px solid var(--gray-800);
font-family: var(--mono);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .val {
font-size: 22px;
font-weight: 800;
color: var(--white);
display: block;
line-height: 1;
}
.hero-stat .lbl {
font-size: 10px;
color: var(--gray-600);
letter-spacing: 1px;
margin-top: 4px;
display: block;
}
/* ── SCORE PANEL ── */
.score-panel {
background: var(--gray-900);
border: 1px solid var(--gray-800);
border-left: 3px solid var(--accent);
padding: 28px 32px;
margin: 32px 32px 0;
display: flex;
align-items: center;
gap: 36px;
flex-wrap: wrap;
}
.score-ring-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.score-ring-wrap svg { transform: rotate(-90deg); }
.score-track { fill: none; stroke: var(--gray-800); stroke-width: 7; }
.score-fill {
fill: none; stroke: var(--accent); stroke-width: 7;
stroke-linecap: square;
stroke-dasharray: 314;
stroke-dashoffset: 314;
transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1);
}
.score-center {
position: absolute; inset: 0;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
}
.score-num-big {
font-family: var(--mono);
font-size: 32px;
font-weight: 800;
color: var(--white);
line-height: 1;
}
.score-denom { font-family: var(--mono); font-size: 10px; color: var(--gray-600); }
.score-right { flex: 1; }
.score-title {
font-family: var(--mono);
font-size: 16px;
font-weight: 700;
color: var(--white);
margin-bottom: 6px;
}
.score-desc { font-size: 13px; color: var(--gray-400); margin-bottom: 16px; }
.score-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.score-pill {
font-family: var(--mono);
font-size: 10px;
background: var(--gray-800);
border: 1px solid var(--gray-700);
padding: 4px 10px;
color: var(--gray-400);
}
.score-pill span { color: var(--accent); }
/* ── MAIN LAYOUT ── */
.main { padding: 0 32px 80px; }
/* ── SECTION ── */
.sec { border-bottom: 1px solid var(--gray-800); padding: 40px 0; }
.sec:last-child { border-bottom: none; }
.sec-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
padding-bottom: 14px;
border-bottom: 1px solid var(--gray-800);
}
.sec-icon {
width: 32px; height: 32px;
background: var(--gray-800);
border: 1px solid var(--gray-700);
display: flex; align-items: center; justify-content: center;
font-size: 14px; flex-shrink: 0;
}
.sec-title {
font-family: var(--mono);
font-size: 13px;
font-weight: 700;
color: var(--white);
letter-spacing: 2px;
text-transform: uppercase;
}
.sec-weight {
margin-left: auto;
font-family: var(--mono);
font-size: 10px;
color: var(--accent);
border: 1px solid var(--gray-700);
padding: 2px 8px;
letter-spacing: 1px;
}
/* ── FILTER TABS ── */
.filter-row {
display: flex;
gap: 0;
margin-bottom: 16px;
border: 1px solid var(--gray-800);
width: fit-content;
flex-wrap: wrap;
}
.filter-btn {
font-family: var(--mono);
font-size: 10px;
font-weight: 600;
letter-spacing: 1px;
padding: 7px 14px;
background: transparent;
color: var(--gray-600);
border: none;
border-right: 1px solid var(--gray-800);
cursor: pointer;
transition: background 0.12s, color 0.12s;
}
.filter-btn:last-child { border-right: none; }
.filter-btn:hover { background: var(--gray-800); color: var(--white); }
.filter-btn.active { background: var(--accent); color: #fff; }
/* ── TOPIC GRID ── */
.topic-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1px;
background: var(--gray-800);
border: 1px solid var(--gray-800);
}
@media(max-width: 640px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-card {
background: var(--gray-950);
padding: 16px;
cursor: pointer;
transition: background 0.12s;
position: relative;
border-left: 2px solid transparent;
}
.topic-card:hover { background: var(--gray-900); border-left-color: var(--gray-600); }
.topic-card.checked { background: #0f1a10; border-left-color: var(--green); }
.topic-card.partial { background: #1a1500; border-left-color: var(--amber); }
.topic-top { display: flex; align-items: flex-start; gap: 10px; }
.check-btn {
width: 18px; height: 18px;
border: 1.5px solid var(--gray-700);
background: transparent;
cursor: pointer;
flex-shrink: 0;
margin-top: 2px;
display: flex; align-items: center; justify-content: center;
font-size: 11px;
color: transparent;
font-family: var(--mono);
}
.topic-card.checked .check-btn { background: var(--green); border-color: var(--green); color: #fff; }
.topic-card.partial .check-btn { background: var(--amber); border-color: var(--amber); color: #fff; }
.topic-name {
font-size: 13px;
font-weight: 600;
color: var(--white);
margin-bottom: 3px;
}
.topic-sub {
font-family: var(--mono);
font-size: 10px;
color: var(--gray-400);
line-height: 1.5;
}
.topic-level {
font-family: var(--mono);
font-size: 9px;
padding: 2px 7px;
margin-top: 6px;
display: inline-block;
letter-spacing: 0.5px;
}
.level-core { background: rgba(255,69,0,.12); color: var(--accent); border: 1px solid rgba(255,69,0,.25); }
.level-important{ background: rgba(245,158,11,.1); color: var(--amber); border: 1px solid rgba(245,158,11,.2); }
.level-bonus { background: rgba(96,165,250,.08); color: var(--blue); border: 1px solid rgba(96,165,250,.15); }
/* day link on topic card */
.topic-day-link {
font-family: var(--mono);
font-size: 9px;
color: var(--gray-600);
text-decoration: none;
position: absolute;
bottom: 10px; right: 12px;
border: 1px solid var(--gray-800);
padding: 2px 6px;
transition: color 0.12s, border-color 0.12s;
}
.topic-day-link:hover { color: var(--accent); border-color: var(--accent); }
/* ── PROJECT LIST ── */
.project-list { display: flex; flex-direction: column; gap: 1px; background: var(--gray-800); border: 1px solid var(--gray-800); }
.project-card {
background: var(--gray-950);
padding: 20px;
cursor: pointer;
display: flex;
align-items: flex-start;
gap: 20px;
transition: background 0.12s;
border-left: 2px solid transparent;
}
.project-card:hover { background: var(--gray-900); border-left-color: var(--gray-600); }
.project-card.done { background: #0f1a10; border-left-color: var(--green); }
.project-num {
font-family: var(--mono);
font-size: 28px;
font-weight: 800;
color: var(--gray-800);
line-height: 1;
flex-shrink: 0;
transition: color 0.12s;
width: 36px;
}
.project-card:hover .project-num { color: var(--accent); }
.project-card.done .project-num { color: var(--green); }
.project-body { flex: 1; }
.project-title { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.project-pts { font-family: var(--mono); font-size: 10px; color: var(--accent); margin-left: 8px; }
.project-desc { font-size: 12px; color: var(--gray-400); line-height: 1.6; }
.project-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ptag { font-family: var(--mono); font-size: 9px; padding: 2px 7px; border: 1px solid var(--gray-700); color: var(--gray-500); }
/* ── OSS GRID ── */
.oss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray-800); border: 1px solid var(--gray-800); }
@media(max-width: 640px) { .oss-grid { grid-template-columns: 1fr; } }
.oss-card {
background: var(--gray-950);
padding: 18px;
cursor: pointer;
transition: background 0.12s;
border-left: 2px solid transparent;
}
.oss-card:hover { background: var(--gray-900); border-left-color: var(--blue); }
.oss-card.done { background: #0f1a10; border-left-color: var(--green); }
.oss-card h4 { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.oss-pts { font-family: var(--mono); font-size: 10px; color: var(--accent); margin-left: 6px; }
.oss-card p { font-size: 11px; color: var(--gray-400); line-height: 1.55; }
/* ── SUMMARY TABLE ── */
.sum-table { width: 100%; border-collapse: collapse; border: 1px solid var(--gray-800); }
.sum-table th, .sum-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-800); font-size: 12px; }
.sum-table th { font-family: var(--mono); font-size: 10px; color: var(--gray-600); letter-spacing: 1.5px; text-transform: uppercase; background: var(--gray-900); }
.sum-table td:last-child { font-family: var(--mono); color: var(--accent); text-align: right; font-weight: 700; }
.sum-total { background: var(--gray-900); font-weight: 700; }
/* ── TOTAL SECTION ── */
.total-block {
border: 1px solid var(--gray-800);
border-left: 3px solid var(--accent);
padding: 36px 32px;
margin-top: 40px;
display: flex;
align-items: center;
gap: 32px;
flex-wrap: wrap;
}
.total-num {
font-family: var(--mono);
font-size: 72px;
font-weight: 800;
color: var(--white);
line-height: 1;
flex-shrink: 0;
}
.total-num span { color: var(--accent); font-size: 36px; }
.total-right { flex: 1; }
.total-right h3 {
font-family: var(--mono);
font-size: 14px;
font-weight: 700;
color: var(--white);
margin-bottom: 6px;
}
.total-right p { font-size: 13px; color: var(--gray-400); margin-bottom: 12px; }
.progress-bar { height: 4px; background: var(--gray-800); }
.progress-fill { height: 100%; background: var(--accent); transition: width 1.2s ease; width: 0%; }
.reset-btn {
font-family: var(--mono);
font-size: 10px;
padding: 8px 16px;
border: 1px solid var(--gray-700);
background: transparent;
color: var(--gray-600);
cursor: pointer;
letter-spacing: 1px;
transition: all 0.12s;
margin-top: 8px;
display: inline-block;
}
.reset-btn:hover { border-color: var(--accent); color: var(--accent); }
/* ── FOOTER ── */
footer {
background: var(--gray-950);
border-top: 1px solid var(--gray-800);
padding: 28px 32px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
}
.footer-left {
font-family: var(--mono);
font-size: 11px;
color: var(--gray-600);
line-height: 1.8;
}
.footer-links {
display: flex;
flex-direction: column;
gap: 6px;
}
.footer-link {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--mono);
font-size: 11px;
color: var(--gray-400);
text-decoration: none;
border: 1px solid var(--gray-800);
padding: 6px 12px;
transition: border-color 0.12s, color 0.12s;
}
.footer-link:hover { border-color: var(--accent); color: var(--white); }
.footer-link .ico { font-size: 13px; }
.footer-copy {
font-family: var(--mono);
font-size: 10px;
color: var(--gray-700);
margin-top: 12px;
}
</style>
</head>
<body>
<!-- ── TOPBAR ── -->
<div class="topbar">
<div class="topbar-left">
<div class="topbar-dot"></div>
<span class="topbar-path">rust-job-prep / <span>self-eval</span> / <span>index.html</span></span>
</div>
<div class="topbar-right">
<span>PHASE 01 · 15 DAYS</span>
<span class="score-badge" id="topbarScore">0 / 100</span>
</div>
</div>
<!-- ── DAY NAVIGATION ── -->
<nav class="day-nav" aria-label="Day Navigation">
<div class="day-nav-inner">
<span class="day-nav-label">// PHASE 01</span>
<a href="index.html" class="day-link active">
<span class="day-num">HOME</span>
<span class="day-topic">eval</span>
</a>
<a href="day01" class="day-link">
<span class="day-num">DAY 01</span>
<span class="day-topic">ownership</span>
</a>
<a href="day02" class="day-link">
<span class="day-num">DAY 02</span>
<span class="day-topic">lifetimes</span>
</a>
<a href="day03.html" class="day-link">
<span class="day-num">DAY 03</span>
<span class="day-topic">traits</span>
</a>
<a href="day04.html" class="day-link">
<span class="day-num">DAY 04</span>
<span class="day-topic">error handling</span>
</a>
<a href="day05.html" class="day-link">
<span class="day-num">DAY 05</span>
<span class="day-topic">enums</span>
</a>
<a href="day06.html" class="day-link">
<span class="day-num">DAY 06</span>
<span class="day-topic">iterators</span>
</a>
<a href="day07.html" class="day-link">
<span class="day-num">DAY 07</span>
<span class="day-topic">async/await</span>
</a>
<a href="day08.html" class="day-link">
<span class="day-num">DAY 08</span>
<span class="day-topic">concurrency</span>
</a>
<a href="day09.html" class="day-link">
<span class="day-num">DAY 09</span>
<span class="day-topic">smart ptrs</span>
</a>
<a href="day10.html" class="day-link">
<span class="day-num">DAY 10</span>
<span class="day-topic">macros</span>
</a>
<a href="day11.html" class="day-link">
<span class="day-num">DAY 11</span>
<span class="day-topic">unsafe rust</span>
</a>
<a href="day12.html" class="day-link">
<span class="day-num">DAY 12</span>
<span class="day-topic">proc macros</span>
</a>
<a href="day13.html" class="day-link">
<span class="day-num">DAY 13</span>
<span class="day-topic">ffi</span>
</a>
<a href="day14.html" class="day-link">
<span class="day-num">DAY 14</span>
<span class="day-topic">mem layout</span>
</a>
<a href="day15.html" class="day-link">
<span class="day-num">DAY 15</span>
<span class="day-topic">testing</span>
</a>
</div>
</nav>
<!-- ── HERO ── -->
<div class="hero">
<div class="hero-eyebrow">// rust job ready series — self evaluation dashboard</div>
<h1>RUST BACKEND<br/><span>ENGINEER</span> CHECKLIST</h1>
<div class="hero-sub">$ click topics to mark · score auto-calculates · mid-level target</div>
<div class="hero-stats">
<div class="hero-stat"><span class="val">3</span><span class="lbl">PHASES</span></div>
<div class="hero-stat"><span class="val">15</span><span class="lbl">DAYS / PHASE 01</span></div>
<div class="hero-stat"><span class="val">30</span><span class="lbl">TOPICS TOTAL</span></div>
<div class="hero-stat"><span class="val">100</span><span class="lbl">MAX SCORE</span></div>
</div>
</div>
<!-- ── SCORE PANEL ── -->
<div class="score-panel">
<div class="score-ring-wrap">
<svg width="120" height="120" viewBox="0 0 120 120">
<circle class="score-track" cx="60" cy="60" r="50"/>
<circle class="score-fill" id="scoreArc" cx="60" cy="60" r="50"/>
</svg>
<div class="score-center">
<span class="score-num-big" id="scoreNum">0</span>
<span class="score-denom">/ 100</span>
</div>
</div>
<div class="score-right">
<div class="score-title" id="verdictTitle">Start Evaluating</div>
<div class="score-desc" id="verdictDesc">Click topics below to mark what you know. Score auto-updates.</div>
<div class="score-pills">
<div class="score-pill">Topics <span id="topicScore">0</span>/60</div>
<div class="score-pill">Projects <span id="projScore">0</span>/25</div>
<div class="score-pill">OSS <span id="ossScore">0</span>/15</div>
</div>
</div>
</div>
<div class="main">
<!-- ── CORE RUST ── -->
<div class="sec">
<div class="sec-header">
<div class="sec-icon">⚙️</div>
<span class="sec-title">Core Rust Knowledge</span>
<span class="sec-weight">30 PTS</span>
</div>
<div class="filter-row">
<button class="filter-btn active" onclick="filterTopics(this,'coreGrid','all')">ALL</button>
<button class="filter-btn" onclick="filterTopics(this,'coreGrid','core')">🔴 MUST KNOW</button>
<button class="filter-btn" onclick="filterTopics(this,'coreGrid','important')">🟡 IMPORTANT</button>
<button class="filter-btn" onclick="filterTopics(this,'coreGrid','bonus')">🔵 BONUS</button>
</div>
<div class="topic-grid" id="coreGrid"></div>
</div>
<!-- ── BACKEND ── -->
<div class="sec">
<div class="sec-header">
<div class="sec-icon">🌐</div>
<span class="sec-title">Backend & Systems</span>
<span class="sec-weight">30 PTS</span>
</div>
<div class="topic-grid" id="backendGrid"></div>
</div>
<!-- ── PROJECTS ── -->
<div class="sec">
<div class="sec-header">
<div class="sec-icon">🛠️</div>
<span class="sec-title">Project Portfolio</span>
<span class="sec-weight">25 PTS</span>
</div>
<div class="project-list" id="projectList"></div>
</div>
<!-- ── OSS ── -->
<div class="sec">
<div class="sec-header">
<div class="sec-icon">🌍</div>
<span class="sec-title">Open Source Contributions</span>
<span class="sec-weight">15 PTS</span>
</div>
<div class="oss-grid" id="ossList"></div>
</div>
<!-- ── SUMMARY TABLE ── -->
<div class="sec">
<div class="sec-header">
<div class="sec-icon">📊</div>
<span class="sec-title">Score Breakdown</span>
</div>
<table class="sum-table">
<thead>
<tr>
<th>Category</th>
<th>Raw</th>
<th>Max</th>
<th>Score</th>
</tr>
</thead>
<tbody id="summaryBody"></tbody>
</table>
</div>
<!-- ── TOTAL ── -->
<div class="total-block">
<div class="total-num" id="bigScore">0<span>/100</span></div>
<div class="total-right">
<h3 id="totalTitle">Your Total Score</h3>
<p id="totalVerdict">// Mark topics above to see your score</p>
<div class="progress-bar"><div class="progress-fill" id="totalBar"></div></div>
<button class="reset-btn" onclick="resetAll()">↺ RESET ALL</button>
</div>
</div>
</div><!-- /main -->
<!-- ── FOOTER ── -->
<footer>
<div class="footer-left">
<div>// rust-job-prep · phase 01 · 15 days · 15 topics</div>
<div>built by mishal · entry-level → mid-level rust journey</div>
<div class="footer-copy">© 2025 · open source · keep shipping 🦀</div>
</div>
<div class="footer-links">
<a class="footer-link" href="https://github.com/mishalturkane/why_rust" target="_blank" rel="noopener">
<span class="ico">⌥</span>
github.com/mishalturkane/why_rust
</a>
<a class="footer-link" href="https://x.com/mishaldotrwa" target="_blank" rel="noopener">
<span class="ico">✕</span>
x.com/mishaldotrwa
</a>
</div>
</footer>
<script>
// ── DATA ──
const coreTopics = [
{id:'c1', name:'Ownership & Borrowing', sub:'move, copy, clone, references', level:'core', pts:3, day:'day01.html'},
{id:'c2', name:'Lifetimes', sub:"'a, 'static, lifetime elision rules", level:'core', pts:3, day:'day02.html'},
{id:'c3', name:'Traits & Generics', sub:'impl Trait, dyn Trait, where clauses', level:'core', pts:2, day:'day03.html'},
{id:'c4', name:'Error Handling', sub:'Result, Option, ?, thiserror, anyhow', level:'core', pts:2, day:'day04.html'},
{id:'c5', name:'Enums & Pattern Matching',sub:'match, if let, destructuring', level:'core', pts:2, day:'day05.html'},
{id:'c6', name:'Iterators & Closures', sub:'map, filter, collect, FnOnce/Fn/FnMut', level:'core', pts:2, day:'day06.html'},
{id:'c7', name:'Async / Await', sub:'Future trait, tokio runtime, async fn', level:'core', pts:3, day:'day07.html'},
{id:'c8', name:'Concurrency', sub:'Arc, Mutex, RwLock, channels (mpsc)', level:'core', pts:2, day:'day08.html'},
{id:'c9', name:'Smart Pointers', sub:'Box, Rc, Arc, Cell, RefCell', level:'important', pts:2, day:'day09.html'},
{id:'c10', name:'Macros (declarative)', sub:'macro_rules!, vec!, println!', level:'important', pts:1, day:'day10.html'},
{id:'c11', name:'Unsafe Rust', sub:'raw pointers, unsafe blocks, when to use',level:'important', pts:2, day:'day11.html'},
{id:'c12', name:'Proc Macros', sub:'derive, attribute, function-like macros', level:'bonus', pts:2, day:'day12.html'},
{id:'c13', name:'FFI / C Interop', sub:'extern "C", bindgen, cbindgen', level:'bonus', pts:2, day:'day13.html'},
{id:'c14', name:'Memory Layout', sub:'repr(C), alignment, stack vs heap', level:'important', pts:1, day:'day14.html'},
{id:'c15', name:'Testing', sub:'unit tests, integration tests, benchmarks',level:'core', pts:1, day:'day15.html'},
];
const backendTopics = [
{id:'b1', name:'tokio / async runtime', sub:'tasks, spawn, select!, JoinHandle', level:'core', pts:3},
{id:'b2', name:'axum or actix-web', sub:'routing, middleware, extractors, handlers', level:'core', pts:3},
{id:'b3', name:'REST API Design', sub:'CRUD, status codes, versioning, pagination',level:'core', pts:2},
{id:'b4', name:'serde (JSON)', sub:'Serialize, Deserialize, custom impls', level:'core', pts:2},
{id:'b5', name:'sqlx or diesel', sub:'async queries, migrations, pool', level:'core', pts:2},
{id:'b6', name:'PostgreSQL / SQL', sub:'joins, indexes, transactions, explain', level:'core', pts:2},
{id:'b7', name:'Redis (caching)', sub:'GET/SET, expiry, pub/sub basics', level:'important', pts:2},
{id:'b8', name:'Authentication', sub:'JWT, sessions, bcrypt, OAuth2 basics', level:'important', pts:2},
{id:'b9', name:'gRPC / tonic', sub:'proto files, service impl, streaming', level:'important', pts:2},
{id:'b10', name:'Docker', sub:'Dockerfile, multi-stage builds for Rust', level:'core', pts:2},
{id:'b11', name:'CI/CD basics', sub:'GitHub Actions, clippy, fmt, test pipeline',level:'important',pts:1},
{id:'b12', name:'Observability', sub:'tracing crate, spans, structured logging', level:'important', pts:2},
{id:'b13', name:'Message Queues', sub:'RabbitMQ or Kafka basics with Rust', level:'bonus', pts:2},
{id:'b14', name:'WebSockets', sub:'tokio-tungstenite, real-time handling', level:'bonus', pts:1},
{id:'b15', name:'System Design basics', sub:'caching, load balancing, DB scaling', level:'important', pts:2},
];
const projects = [
{id:'p1', title:'REST API Server', desc:'Full CRUD API with axum/actix + PostgreSQL + JWT auth + Docker.', tags:['axum','sqlx','JWT','Docker'], pts:6},
{id:'p2', title:'Async CLI Tool', desc:'CLI tool using tokio, clap, and an external API.', tags:['tokio','clap','reqwest'], pts:4},
{id:'p3', title:'Real-time WebSocket', desc:'WebSocket server handling multiple concurrent connections.', tags:['tokio','WebSocket','Arc<Mutex>'],pts:5},
{id:'p4', title:'gRPC Microservice', desc:'Two services communicating via tonic/gRPC with protobuf schemas.', tags:['tonic','protobuf','gRPC'], pts:5},
{id:'p5', title:'Caching Layer / Proxy', desc:'In-memory or Redis-backed caching layer showing perf thinking.', tags:['Redis','tokio','perf'], pts:5},
];
const ossItems = [
{id:'o1', title:'Fix a bug in a Rust crate', desc:'Find and fix a real bug in axum, tokio, serde, etc.', pts:4},
{id:'o2', title:'Add docs / examples', desc:'Improve docs or add code examples to an OSS Rust project.', pts:2},
{id:'o3', title:'Write a Rust crate', desc:'Publish your own crate on crates.io — even a small utility.',pts:5},
{id:'o4', title:'Contribute to ecosystem tools', desc:'rustfmt, clippy, cargo, or compiler contributions.', pts:5},
{id:'o5', title:'Regular GitHub activity', desc:'Consistent commits, PRs, reviews in public repos.', pts:3},
{id:'o6', title:'Write technical content', desc:'Blog post, YouTube, or talk about Rust.', pts:2},
];
// ── STATE ──
const state = { checked: new Set() };
// ── RENDER ──
function renderTopics(containerId, topics) {
document.getElementById(containerId).innerHTML = topics.map(t => `
<div class="topic-card" id="card_${t.id}" onclick="toggleItem('${t.id}','topic')">
<div class="topic-top">
<div class="check-btn" id="chk_${t.id}">✓</div>
<div>
<div class="topic-name">${t.name}</div>
<div class="topic-sub">${t.sub}</div>
<span class="topic-level level-${t.level}">
${t.level==='core'?'🔴 MUST KNOW':t.level==='important'?'🟡 IMPORTANT':'🔵 BONUS'} · ${t.pts}pts
</span>
</div>
</div>
${t.day ? `<a class="topic-day-link" href="${t.day}" onclick="event.stopPropagation()">→ study</a>` : ''}
</div>
`).join('');
}
function renderProjects() {
document.getElementById('projectList').innerHTML = projects.map((p,i) => `
<div class="project-card" id="card_${p.id}" onclick="toggleItem('${p.id}','project')">
<div class="project-num">0${i+1}</div>
<div class="project-body">
<div class="project-title">${p.title}<span class="project-pts">+${p.pts}pts</span></div>
<div class="project-desc">${p.desc}</div>
<div class="project-tags">${p.tags.map(t=>`<span class="ptag">${t}</span>`).join('')}</div>
</div>
</div>
`).join('');
}
function renderOSS() {
document.getElementById('ossList').innerHTML = ossItems.map(o => `
<div class="oss-card" id="card_${o.id}" onclick="toggleItem('${o.id}','oss')">
<h4>${o.title}<span class="oss-pts">+${o.pts}pts</span></h4>
<p>${o.desc}</p>
</div>
`).join('');
}
// ── TOGGLE ──
function toggleItem(id, type) {
const card = document.getElementById('card_'+id);
const isChecked = state.checked.has(id);
if(isChecked) {
state.checked.delete(id);
card.className = type === 'topic' ? 'topic-card' : type === 'project' ? 'project-card' : 'oss-card';
} else {
state.checked.add(id);
card.className = type === 'topic' ? 'topic-card checked' : type === 'project' ? 'project-card done' : 'oss-card done';
}
updateScore();
}
// ── FILTER ──
function filterTopics(btn, gridId, level) {
btn.closest('.filter-row').querySelectorAll('.filter-btn').forEach(b => b.classList.remove('active'));
btn.classList.add('active');
document.querySelectorAll(`#${gridId} .topic-card`).forEach(card => {
if(level === 'all') { card.style.display = ''; return; }
const lvlEl = card.querySelector('.topic-level');
card.style.display = (lvlEl && lvlEl.classList.contains('level-'+level)) ? '' : 'none';
});
}
// ── SCORE ──
function calcScore() {
let tPts=0, tMax=0, pPts=0, pMax=0, oPts=0, oMax=0;
[...coreTopics,...backendTopics].forEach(t => { tMax+=t.pts; if(state.checked.has(t.id)) tPts+=t.pts; });
projects.forEach(p => { pMax+=p.pts; if(state.checked.has(p.id)) pPts+=p.pts; });
ossItems.forEach(o => { oMax+=o.pts; if(state.checked.has(o.id)) oPts+=o.pts; });
const tScore = Math.round((tPts/tMax)*60);
const pScore = Math.round((pPts/pMax)*25);
const oScore = Math.round((oPts/oMax)*15);
return { tScore, pScore, oScore, total: tScore+pScore+oScore, tPts, tMax, pPts, pMax, oPts, oMax };
}
function updateScore() {
const { tScore, pScore, oScore, total, tPts, tMax, pPts, pMax, oPts, oMax } = calcScore();
// ring: circumference for r=50 = 2*π*50 ≈ 314
const circ = 314;
document.getElementById('scoreArc').style.strokeDashoffset = circ - (total/100)*circ;
document.getElementById('scoreNum').textContent = total;
document.getElementById('bigScore').innerHTML = `${total}<span>/100</span>`;
document.getElementById('totalBar').style.width = total + '%';
document.getElementById('topicScore').textContent = tScore;
document.getElementById('projScore').textContent = pScore;
document.getElementById('ossScore').textContent = oScore;
document.getElementById('topbarScore').textContent = `${total} / 100`;
const verdicts = [
[0, 'Start Evaluating', 'Click topics below to mark what you know. Score auto-updates.'],
[30, 'Early Stage', 'Good start! Focus on Rust core — ownership, async, error handling.'],
[50, 'Foundational', 'Solid basics. Now build real projects and go deeper on async/backend.'],
[70, 'Growing Engineer', 'Decent profile. Fill gaps in gRPC, observability, and OSS work.'],
[85, 'Mid-Level Ready ✓', 'Strong profile! Polish projects and start contributing to open source.'],
[95, 'Senior-Adjacent 🦀', 'Exceptional! You exceed mid-level. Start targeting senior roles.'],
];
const [,title,desc] = [...verdicts].reverse().find(([t]) => total >= t);
document.getElementById('verdictTitle').textContent = title;
document.getElementById('verdictDesc').textContent = desc;
document.getElementById('totalTitle').textContent = title;
document.getElementById('totalVerdict').textContent = `// ${title} — keep shipping!`;
document.getElementById('summaryBody').innerHTML = `
<tr><td>Core Rust + Backend Topics</td><td>${tPts} / ${tMax} raw pts</td><td>60</td><td>${tScore}</td></tr>
<tr><td>Project Portfolio</td><td>${pPts} / ${pMax} raw pts</td><td>25</td><td>${pScore}</td></tr>
<tr><td>Open Source Contributions</td><td>${oPts} / ${oMax} raw pts</td><td>15</td><td>${oScore}</td></tr>
<tr class="sum-total"><td colspan="3" style="color:var(--accent);font-family:var(--mono);font-size:11px;letter-spacing:1px;">TOTAL SCORE</td><td style="font-size:15px;">${total}</td></tr>
`;
}
function resetAll() {
state.checked.clear();
document.querySelectorAll('.topic-card').forEach(c => c.className = 'topic-card');
document.querySelectorAll('.project-card').forEach(c => c.className = 'project-card');
document.querySelectorAll('.oss-card').forEach(c => c.className = 'oss-card');
updateScore();
}
// ── INIT ──
renderTopics('coreGrid', coreTopics);
renderTopics('backendGrid', backendTopics);
renderProjects();
renderOSS();
updateScore();
</script>
</body>
</html>