-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
968 lines (840 loc) · 41.5 KB
/
Copy pathindex.html
File metadata and controls
968 lines (840 loc) · 41.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
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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Helmet Engineer | Systems & Backend Notes</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap"
rel="stylesheet">
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['Inter', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', 'Helvetica', 'Arial', 'sans-serif'],
mono: ['JetBrains Mono', 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'monospace'],
},
colors: {
ig: {
blue: '#0095f6',
blueHover: '#1877f2',
darkBg: '#000000',
darkBorder: '#262626',
darkText: '#f5f5f5',
darkTextSecondary: '#a8a8a8',
lightBg: '#ffffff',
lightBorder: '#dbdbdb',
lightText: '#000000',
lightTextSecondary: '#737373',
hoverDark: '#121212',
hoverLight: '#fafafa',
}
},
backgroundImage: {
'ig-gradient': 'linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%)',
}
}
}
}
</script>
<!-- Syntax Highlighting -->
<link rel="stylesheet" id="hljs-theme"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github-dark.min.css">
<!-- Marked.js & Highlight.js -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<!-- GSAP -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<style>
/* Minimal Scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(168, 168, 168, 0.4);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(168, 168, 168, 0.6);
}
/* ===== READING PAGE TYPOGRAPHY (Premium) ===== */
.markdown-body {
font-family: 'Merriweather', Georgia, serif;
color: #c8c8c8;
font-size: 1.05rem;
line-height: 1.9;
word-wrap: break-word;
letter-spacing: 0.01em;
}
html:not(.dark) .markdown-body {
color: #374151;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
font-family: 'Inter', sans-serif;
color: #ffffff;
font-weight: 700;
margin-top: 2em;
margin-bottom: 0.6em;
scroll-margin-top: 80px;
letter-spacing: -0.03em;
line-height: 1.25;
}
html:not(.dark) .markdown-body h1,
html:not(.dark) .markdown-body h2,
html:not(.dark) .markdown-body h3,
html:not(.dark) .markdown-body h4 {
color: #111827;
}
.markdown-body h1 {
font-size: 2.2rem;
margin-top: 0;
padding-bottom: 0.4em;
border-bottom: none;
}
.markdown-body h2 {
font-size: 1.6rem;
border-bottom: 1px solid #1a1a1a;
padding-bottom: 0.3em;
}
html:not(.dark) .markdown-body h2 {
border-bottom-color: #eee;
}
.markdown-body h3 {
font-size: 1.3rem;
}
.markdown-body p,
.markdown-body ul,
.markdown-body ol {
margin-bottom: 1.5em;
}
.markdown-body a {
color: #0095f6;
text-decoration: none;
font-weight: 500;
transition: color 0.15s;
}
.markdown-body a:hover {
color: #1877f2;
text-decoration: underline;
}
.markdown-body code {
background-color: #1a1a1a;
color: #e5e7eb;
padding: 0.15em 0.4em;
border-radius: 6px;
font-size: 0.875em;
font-family: 'JetBrains Mono', ui-monospace, monospace;
border: 1px solid #333;
}
html:not(.dark) .markdown-body code {
background-color: #f3f4f6;
color: #1f2937;
border-color: #e5e7eb;
}
.markdown-body pre {
background: transparent;
padding: 0;
margin-bottom: 1.75em;
border-radius: 12px;
overflow: hidden;
position: relative;
border: 1px solid #262626;
}
html:not(.dark) .markdown-body pre {
border-color: #e5e7eb;
}
.markdown-body pre code {
background: #0d0d0d;
border: none;
display: block;
padding: 1.25rem 1.5rem;
overflow-x: auto;
color: #e5e7eb;
border-radius: 0;
font-size: 0.875rem;
line-height: 1.7;
}
html:not(.dark) .markdown-body pre code {
background: #f8f9fa;
color: #1f2937;
}
.markdown-body ul {
list-style-type: disc;
padding-left: 1.5em;
}
.markdown-body ol {
list-style-type: decimal;
padding-left: 1.5em;
}
.markdown-body li {
margin-bottom: 0.5em;
}
.markdown-body li>p {
margin-bottom: 0.5em;
}
.markdown-body blockquote {
border-left: 3px solid #333;
color: #a8a8a8;
padding: 0.75rem 1rem;
margin-bottom: 1.75em;
background: rgba(255, 255, 255, 0.02);
border-radius: 0 8px 8px 0;
}
html:not(.dark) .markdown-body blockquote {
border-left-color: #dbdbdb;
color: #737373;
background: rgba(0, 0, 0, 0.02);
}
.markdown-body table {
width: 100%;
border-collapse: collapse;
margin-bottom: 1.75em;
font-size: 0.9em;
border-radius: 8px;
overflow: hidden;
}
.markdown-body th,
.markdown-body td {
border: 1px solid #262626;
padding: 0.75rem 1rem;
text-align: left;
}
html:not(.dark) .markdown-body th,
html:not(.dark) .markdown-body td {
border-color: #e5e7eb;
}
.markdown-body th {
background-color: #0d0d0d;
font-weight: 600;
}
html:not(.dark) .markdown-body th {
background-color: #f9fafb;
}
.markdown-body video {
max-width: 100%;
border-radius: 8px;
margin-bottom: 1.75em;
border: 1px solid #262626;
}
html:not(.dark) .markdown-body video {
border-color: #e5e7eb;
}
.markdown-body strong {
color: #ffffff;
font-weight: 600;
}
html:not(.dark) .markdown-body strong {
color: #111827;
}
.markdown-body em {
color: #d1d5db;
font-style: italic;
}
html:not(.dark) .markdown-body em {
color: #4b5563;
}
.markdown-body hr {
border: none;
border-top: 1px solid #262626;
margin: 2.5em 0;
}
html:not(.dark) .markdown-body hr {
border-top-color: #e5e7eb;
}
/* Code Copy Button */
.copy-btn {
position: absolute;
top: 0.75rem;
right: 0.75rem;
padding: 0.25rem 0.6rem;
background: #1a1a1a;
color: #a8a8a8;
border-radius: 6px;
font-size: 0.75rem;
cursor: pointer;
transition: all 0.2s ease;
border: 1px solid #333;
opacity: 0;
font-family: 'Inter', sans-serif;
font-weight: 500;
}
.markdown-body pre:hover .copy-btn {
opacity: 1;
}
.copy-btn:hover {
background: #262626;
color: #fff;
}
.copy-btn.copied {
background: #0095f6;
color: white;
border-color: #0095f6;
}
html:not(.dark) .copy-btn {
background: #ffffff;
color: #666;
border-color: #e5e7eb;
}
html:not(.dark) .copy-btn:hover {
background: #f3f4f6;
color: #000;
}
.smooth-transition {
transition: all 0.2s ease;
}
/* Mobile Header */
.glass-header {
background: rgba(0, 0, 0, 0.9);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid #262626;
}
html:not(.dark) .glass-header {
background: rgba(255, 255, 255, 0.9);
border-bottom: 1px solid #dbdbdb;
}
/* Progress Bar */
#scroll-progress {
position: fixed;
top: 0;
left: 0;
height: 2px;
background: linear-gradient(90deg, #0095f6, #833ab4, #fd1d1d, #fcb045);
width: 0%;
z-index: 1000;
transition: width 0.1s linear;
}
/* TOC Links */
.toc-link {
display: block;
padding: 6px 12px;
margin-bottom: 2px;
color: #666;
font-size: 0.825rem;
transition: all 0.15s;
border-left: 2px solid transparent;
border-radius: 0 4px 4px 0;
}
html:not(.dark) .toc-link {
color: #999;
}
.toc-link:hover {
color: #f5f5f5;
background: rgba(255, 255, 255, 0.03);
}
html:not(.dark) .toc-link:hover {
color: #000;
background: rgba(0, 0, 0, 0.03);
}
.toc-link.active {
color: #ffffff !important;
font-weight: 600;
border-left-color: #0095f6;
background: rgba(0, 149, 246, 0.05);
}
html:not(.dark) .toc-link.active {
color: #000 !important;
border-left-color: #0095f6;
background: rgba(0, 149, 246, 0.05);
}
.toc-level-3 {
margin-left: 0.75rem;
font-size: 0.8rem;
}
.toc-level-4 {
margin-left: 1.5rem;
font-size: 0.75rem;
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in {
animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes noteFloat {
0%,
100% {
transform: translateY(0) scale(1);
}
50% {
transform: translateY(-4px) scale(1.01);
}
}
@keyframes noteShimmer {
0% {
background-position: -160% 0;
}
100% {
background-position: 160% 0;
}
}
@keyframes noteOrbDrift {
0%,
100% {
transform: translate3d(0, 0, 0) scale(1);
}
50% {
transform: translate3d(10px, -8px, 0) scale(1.06);
}
}
@keyframes noteSweep {
0% {
transform: translateX(-140%) rotate(10deg);
opacity: 0;
}
18% {
opacity: 0.32;
}
82% {
opacity: 0.32;
}
100% {
transform: translateX(180%) rotate(10deg);
opacity: 0;
}
}
@keyframes noteDotPulse {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.35);
opacity: 0.7;
}
}
@keyframes noteArrowNudge {
0%,
100% {
transform: translateX(0);
}
50% {
transform: translateX(2px);
}
}
.note-card-float {
animation: noteFloat 7s ease-in-out infinite;
}
.note-card-shimmer {
background-size: 220% 100%;
animation: noteShimmer 6s linear infinite;
}
.note-card-orb {
animation: noteOrbDrift 8s ease-in-out infinite;
}
.note-card-sweep {
animation: noteSweep 5.5s ease-in-out infinite;
}
.note-card-dot {
animation: noteDotPulse 2.2s ease-in-out infinite;
transform-origin: center;
}
.note-card-arrow {
animation: noteArrowNudge 2.6s ease-in-out infinite;
}
@media (max-width: 768px) {
.note-card-shimmer {
animation: none;
background-size: 100% 100%;
}
.note-card-orb {
animation: none;
opacity: 0.45;
}
}
@media (prefers-reduced-motion: reduce) {
.note-card-shimmer,
.note-card-orb,
.note-card-sweep,
.note-card-dot,
.note-card-arrow {
animation: none !important;
}
}
/* Story ring */
.story-ring {
position: relative;
z-index: 1;
padding: 2px;
border-radius: 50%;
background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.story-ring::before {
content: '';
position: absolute;
top: 2px;
right: 2px;
bottom: 2px;
left: 2px;
background-color: #000;
border-radius: inherit;
z-index: -1;
}
html:not(.dark) .story-ring::before {
background-color: #fff;
}
/* Landing Mode */
body.landing-mode #sidebar {
display: none !important;
}
body.landing-mode #layout-wrapper {
margin-left: 0 !important;
}
body.landing-mode .glass-header {
display: none !important;
}
body.landing-mode #toc-sidebar {
display: none !important;
}
</style>
</head>
<body
class="bg-ig-lightBg text-ig-lightText dark:bg-ig-darkBg dark:text-ig-darkText overflow-x-hidden selection:bg-ig-blue selection:text-white antialiased">
<div id="scroll-progress"></div>
<div id="mobile-overlay" class="fixed inset-0 bg-black/60 z-30 hidden transition-opacity lg:hidden"
onclick="toggleMobileMenu()"></div>
<!-- Layout Wrapper -->
<div class="flex flex-col lg:flex-row min-h-screen relative w-full">
<!-- Left Sidebar (Fixed) -->
<aside id="sidebar"
class="fixed inset-y-0 left-0 z-40 w-[244px] bg-ig-lightBg border-r border-ig-lightBorder dark:bg-ig-darkBg dark:border-ig-darkBorder transform -translate-x-full lg:translate-x-0 transition-transform duration-300 ease-in-out flex flex-col h-screen pt-4 pb-5 px-3">
<div class="px-3 mb-8 mt-2 flex items-center justify-between">
<a href="#" class="flex items-center gap-3 group" onclick="window.location.hash=''; return false;">
<div class="story-ring w-8 h-8 rounded-full flex items-center justify-center p-[2px]">
<video autoplay muted src="./assets/dp.mp4" loop alt="the.he24"
class="ig-avatar-img w-full h-full rounded-full border-[2px] md:border-[3px] border-ig-lightBg dark:border-ig-darkBg object-cover"></video>
</div>
<span class="font-bold text-lg tracking-tight">The Helmet Engineer</span>
</a>
<button id="theme-toggle"
class="text-ig-lightTextSecondary hover:text-ig-lightText dark:text-ig-darkTextSecondary dark:hover:text-ig-darkText transition-colors"
title="Toggle Theme">
<svg id="theme-toggle-dark-icon" class="hidden w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
<path
d="M12 21a9 9 0 1 1 9-9 9.01 9.01 0 0 1-9 9zm0-16a7 7 0 1 0 7 7 7.008 7.008 0 0 0-7-7zm0 12a5 5 0 1 1 5-5 5.006 5.006 0 0 1-5 5zm0-8a3 3 0 1 0 3 3 3.003 3.003 0 0 0-3-3z">
</path>
</svg>
<svg id="theme-toggle-light-icon" class="hidden w-5 h-5" fill="none" stroke="currentColor"
viewBox="0 0 24 24" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z">
</path>
</svg>
</button>
</div>
<div class="px-2 mb-4">
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<svg class="w-4 h-4 text-ig-lightTextSecondary dark:text-ig-darkTextSecondary" fill="none"
stroke="currentColor" viewBox="0 0 24 24" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
</div>
<input type="text" id="sidebar-search"
class="block w-full py-2 pl-9 pr-3 text-sm rounded-lg bg-ig-hoverLight dark:bg-[#121212] border-none text-ig-lightText dark:text-ig-darkText placeholder-ig-lightTextSecondary dark:placeholder-ig-darkTextSecondary focus:ring-1 focus:ring-ig-lightBorder dark:focus:ring-ig-darkBorder transition-colors outline-none"
placeholder="Search">
</div>
</div>
<div class="flex-1 overflow-y-auto w-full">
<ul id="notes-list" class="space-y-1"></ul>
<div id="no-search-results"
class="hidden py-4 text-sm text-center text-ig-lightTextSecondary dark:text-ig-darkTextSecondary">No
results found.</div>
</div>
<div class="mt-4 px-2 shrink-0">
<a href="https://www.instagram.com/the.he24" target="_blank"
class="flex items-center justify-center w-full gap-2 px-4 py-2 text-sm font-semibold rounded-lg bg-ig-blue text-white hover:bg-ig-blueHover transition-colors">
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
<path fill-rule="evenodd"
d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z"
clip-rule="evenodd" />
</svg>
Follow
</a>
</div>
</aside>
<!-- Main Feed Area -->
<div id="layout-wrapper" class="flex-1 lg:ml-[244px] w-full flex flex-col items-center">
<!-- Mobile Header -->
<header
class="glass-header sticky top-0 z-20 px-4 py-3 flex items-center justify-between lg:hidden border-b w-full shrink-0">
<div class="flex items-center gap-3">
<button onclick="toggleMobileMenu()"
class="p-1 -ml-1 text-ig-lightText dark:text-ig-darkText focus:outline-none">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
<div class="font-bold text-lg text-ig-lightText dark:text-ig-darkText tracking-tight">The Helmet
Engineer</div>
</div>
</header>
<!-- Feed wrapper -->
<div class="flex flex-row w-full max-w-[935px] mx-auto relative pt-4 lg:pt-8">
<!-- Main Content Column -->
<main
class="w-full max-w-[630px] px-4 mx-auto xl:mx-0 xl:mr-[32px] lg:px-4 mb-20 animate-fade-in z-0 shrink-0">
<!-- ===== LANDING PAGE (Instagram Profile) ===== -->
<div id="welcome-state"
class="hidden flex-col w-full max-w-[1024px] mx-auto pt-0 lg:pt-4 animate-fade-in px-0 lg:px-2">
<!-- Profile Header -->
<header class="flex flex-row mb-6 lg:mb-10 items-stretch px-4 lg:px-0">
<div class="mr-6 md:mr-20 shrink-0 flex items-center justify-center">
<div
class="w-[77px] h-[77px] md:w-[150px] md:h-[150px] story-ring rounded-full p-[2px] md:p-[3px] hover:scale-105 transition-transform duration-300">
<video autoplay muted src="./assets/dp.mp4" loop alt="the.he24" class="ig-avatar-img w-full h-full rounded-full border-[2px] md:border-[3px] border-ig-lightBg dark:border-ig-darkBg object-cover"></video>
</div>
</div>
<div class="flex flex-col flex-1 min-w-0">
<div class="flex flex-col md:flex-row md:items-center gap-3 md:gap-4 mb-3 md:mb-5">
<h2
class="text-[20px] md:text-[22px] font-normal text-ig-lightText dark:text-[#f5f5f5] truncate">
the.he24</h2>
<div class="flex gap-2">
<a href="https://www.instagram.com/the.he24" target="_blank"
class="px-5 py-1.5 text-[13px] font-semibold rounded-lg bg-ig-blue text-white hover:bg-ig-blueHover transition-colors text-center">Follow</a>
<a href="https://www.instagram.com/the.he24" target="_blank"
class="px-5 py-1.5 text-[13px] font-semibold rounded-lg bg-ig-lightBorder dark:bg-[#363636] text-ig-lightText dark:text-white hover:bg-[#dbdbdb] dark:hover:bg-[#262626] transition-colors text-center">Message</a>
</div>
</div>
<div
class="hidden md:flex gap-10 mb-4 text-[16px] text-ig-lightTextSecondary dark:text-ig-darkTextSecondary">
<span><span class="font-semibold text-ig-lightText dark:text-white"
id="profile-notes-count">0</span> posts</span>
<span><span
class="font-semibold text-ig-lightText dark:text-white ig-followers-count">1,627</span>
followers</span>
<span><span
class="font-semibold text-ig-lightText dark:text-white ig-following-count">32</span>
following</span>
</div>
<div class="text-[14px] leading-[20px]">
<span class="font-semibold text-ig-lightText dark:text-white block">The Helmet
Engineer</span>
<span
class="text-ig-lightText dark:text-[#e0e0e0] whitespace-pre-line block mt-0.5">Backend
engineer sharing real-world concepts, interviews & systems.
Building things behind the scenes ⚙️
Follow to think like a #backenddeveloper 🧠</span>
<a href="https://www.instagram.com/the.he24" target="_blank"
class="text-[#e0f1ff] dark:text-[#e0f1ff] font-semibold hover:underline mt-0.5 block text-[13px]">instagram.com/the.he24</a>
</div>
</div>
</header>
<!-- Mobile Stats -->
<div
class="flex md:hidden justify-around border-t border-ig-lightBorder dark:border-[#262626] py-2.5 text-[14px]">
<div class="flex flex-col items-center text-ig-lightTextSecondary dark:text-[#A8A8A8]">
<span class="font-semibold text-ig-lightText dark:text-white"
id="profile-notes-count-mobile">0</span> posts
</div>
<div class="flex flex-col items-center text-ig-lightTextSecondary dark:text-[#A8A8A8]">
<span
class="font-semibold text-ig-lightText dark:text-white ig-followers-count">1,627</span>
followers
</div>
<div class="flex flex-col items-center text-ig-lightTextSecondary dark:text-[#A8A8A8]">
<span
class="font-semibold text-ig-lightText dark:text-white ig-following-count">32</span>
following
</div>
</div>
<!-- Tabs -->
<div
class="flex justify-center border-t border-ig-lightBorder dark:border-[#262626] uppercase text-[12px] font-semibold tracking-widest text-ig-lightTextSecondary dark:text-[#a8a8a8]">
<span
class="flex items-center gap-1.5 h-[44px] border-t border-ig-lightText dark:border-white text-ig-lightText dark:text-white -mt-[1px]">
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 24 24">
<rect x="3" y="3" width="7" height="7" />
<rect x="14" y="3" width="7" height="7" />
<rect x="14" y="14" width="7" height="7" />
<rect x="3" y="14" width="7" height="7" />
</svg>
NOTES
</span>
</div>
<!-- README Callout -->
<a href="#README"
class="block mx-4 mt-4 mb-4 rounded-2xl border border-ig-lightBorder dark:border-[#262626] bg-[#fafafa] dark:bg-[#0b0b0b] px-4 py-4 md:px-5 md:py-5 transition-colors hover:border-ig-blue/60 hover:bg-[#f5faff] dark:hover:bg-[#111111]">
<div class="flex items-start justify-between gap-4">
<div class="min-w-0">
<p class="text-[11px] font-semibold uppercase tracking-[0.18em] text-ig-lightTextSecondary dark:text-ig-darkTextSecondary mb-2">
Start here
</p>
<h3 class="text-[18px] md:text-[20px] font-semibold text-ig-lightText dark:text-white leading-tight">
Read the README first
</h3>
<p class="mt-2 text-sm md:text-[15px] leading-6 text-ig-lightTextSecondary dark:text-ig-darkTextSecondary max-w-3xl">
The README explains what this repository is, how to use it, and the key disclaimers before you open any note.
</p>
</div>
<span class="shrink-0 inline-flex items-center justify-center rounded-full border border-ig-lightBorder dark:border-[#262626] px-3 py-1.5 text-xs font-semibold text-ig-lightText dark:text-ig-darkText bg-white/70 dark:bg-[#121212]">
Open
</span>
</div>
</a>
<!-- Notes Grid -->
<div id="notes-grid"
class="grid w-full grid-cols-[repeat(auto-fit,minmax(152px,1fr))] gap-2 md:gap-3 pb-20"></div>
</div>
<!-- ===== READING PAGE ===== -->
<div id="loader" class="hidden flex justify-center py-20 mt-10">
<svg class="animate-spin h-8 w-8 text-ig-lightTextSecondary dark:text-ig-darkTextSecondary"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4">
</circle>
<path class="opacity-75" fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
</path>
</svg>
</div>
<article id="content-container">
<!-- Article Header Card -->
<header id="article-header" class="hidden mb-8">
<div class="flex items-center gap-3 mb-6">
<div class="w-10 h-10 story-ring rounded-full p-[1.5px] shrink-0">
<video autoplay muted src="./assets/dp.mp4" loop alt="the.he24" class="ig-avatar-img w-full h-full rounded-full border-[2px] md:border-[3px] border-ig-lightBg dark:border-ig-darkBg object-cover"></video>
</div>
<div class="flex-1 min-w-0">
<div class="flex items-center gap-1.5">
<span
class="font-semibold text-[14px] text-ig-lightText dark:text-white">the.he24</span>
<svg class="w-3.5 h-3.5 text-ig-blue shrink-0" fill="currentColor"
viewBox="0 0 24 24">
<path
d="M12.001.504a11.5 11.5 0 1 0 11.5 11.5 11.513 11.513 0 0 0-11.5-11.5zm5.706 9.21l-6.5 6.495a1 1 0 0 1-1.414-.001l-3.5-3.503a1 1 0 1 1 1.414-1.414l2.794 2.796 5.793-5.79a1 1 0 0 1 1.414 1.416z">
</path>
</svg>
<span
class="text-ig-lightTextSecondary dark:text-ig-darkTextSecondary text-[12px] ml-1">·</span>
<a href="https://www.instagram.com/the.he24" target="_blank"
class="text-ig-blue text-[13px] font-semibold hover:text-ig-blueHover transition-colors">Follow</a>
</div>
<span id="read-time"
class="text-[12px] text-ig-lightTextSecondary dark:text-ig-darkTextSecondary">5
min read</span>
</div>
</div>
<div class="h-[1px] bg-ig-lightBorder dark:bg-[#262626]"></div>
</header>
<div id="markdown-body" class="markdown-body"></div>
<!-- End of article CTA -->
<div id="bottom-cta" class="hidden mt-12 pb-10 text-center">
<div
class="border border-ig-lightBorder dark:border-[#1a1a1a] rounded-2xl p-8 md:p-10 bg-[#fafafa] dark:bg-[#080808]">
<div
class="w-16 h-16 story-ring rounded-full flex items-center justify-center p-[2px] mx-auto mb-4">
<video autoplay muted src="./assets/dp.mp4" loop alt="the.he24" class="ig-avatar-img w-full h-full rounded-full border-[2px] md:border-[3px] border-ig-lightBg dark:border-ig-darkBg object-cover"></video>
</div>
<h3 class="text-lg font-bold text-ig-lightText dark:text-ig-darkText mb-1">More from The
Helmet Engineer</h3>
<p
class="text-sm text-ig-lightTextSecondary dark:text-ig-darkTextSecondary mb-6 max-w-sm mx-auto leading-relaxed">
Backend engineer sharing real-world concepts, interviews & systems. Follow for daily
insights.</p>
<a href="https://www.instagram.com/the.he24" target="_blank"
class="inline-flex items-center justify-center px-8 py-2.5 text-sm font-semibold text-white rounded-lg bg-ig-blue hover:bg-ig-blueHover transition-colors shadow-lg shadow-ig-blue/20">
Follow on Instagram
</a>
</div>
</div>
</article>
</main>
<!-- Right TOC Column -->
<aside id="toc-sidebar"
class="hidden xl:block w-[319px] shrink-0 sticky top-12 self-start max-h-[85vh] overflow-y-auto">
<div class="flex items-center justify-between mb-5 px-1">
<div class="flex items-center gap-3">
<div class="w-10 h-10 story-ring rounded-full p-[2px]">
<video autoplay muted src="./assets/dp.mp4" loop alt="the.he24" class="ig-avatar-img w-full h-full rounded-full border-[2px] md:border-[3px] border-ig-lightBg dark:border-ig-darkBg object-cover"></video>
</div>
<div class="flex flex-col">
<span
class="font-semibold text-sm text-ig-lightText dark:text-ig-darkText leading-tight">the.he24</span>
<span class="text-xs text-ig-lightTextSecondary dark:text-ig-darkTextSecondary">The
Helmet Engineer</span>
</div>
</div>
<a href="https://www.instagram.com/the.he24" target="_blank"
class="text-xs font-semibold text-ig-blue hover:text-ig-lightText dark:hover:text-ig-darkText transition-colors">Follow</a>
</div>
<h4
class="text-xs font-semibold uppercase tracking-wider text-ig-lightTextSecondary dark:text-ig-darkTextSecondary mb-3 px-1">
Contents</h4>
<div id="toc-content"
class="space-y-0 text-sm border-l border-ig-lightBorder dark:border-ig-darkBorder"></div>
</aside>
</div>
</div>
</div>
<!-- Instagram-style Modal Popup -->
<div id="entry-popup"
class="fixed inset-0 z-[100] flex items-center justify-center bg-black/65 opacity-0 pointer-events-none transition-opacity duration-300 hidden"
onclick="if(event.target===this)dismissPopup('entry-popup')">
<div
class="bg-ig-lightBg dark:bg-[#262626] border border-ig-lightBorder dark:border-[#333] rounded-[16px] shadow-2xl p-6 w-full max-w-[400px] mx-4 relative transform scale-95 transition-transform duration-300 flex flex-col items-center">
<button onclick="dismissPopup('entry-popup')"
class="absolute top-4 right-4 text-ig-lightTextSecondary dark:text-[#a8a8a8] hover:text-ig-lightText dark:hover:text-white transition-colors p-1">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12">
</path>
</svg>
</button>
<div class="w-[88px] h-[88px] story-ring rounded-full p-[2px] mt-2 mb-4">
<video autoplay muted src="./assets/dp.mp4" loop alt="the.he24" class="ig-avatar-img w-full h-full rounded-full border-[2px] md:border-[3px] border-ig-lightBg dark:border-ig-darkBg object-cover"></video>
</div>
<h3
class="text-ig-lightText dark:text-white text-center font-bold text-[18px] leading-[24px] mb-2 px-2 tracking-tight">
Level up your backend engineering skills with the.he24
</h3>
<p class="text-[14px] text-center text-ig-lightText dark:text-[#f5f5f5] mb-2 px-2">
Sign up and never miss a post from the.he24.
</p>
<p
class="text-[12px] text-center text-ig-lightTextSecondary dark:text-[#a8a8a8] mb-6 tracking-tight leading-tight">
By continuing, you agree to Instagram's Terms of Use and Privacy Policy.
</p>
<a href="https://www.instagram.com/the.he24" target="_blank" onclick="dismissPopup('entry-popup')"
class="w-full text-center py-[10px] text-[14px] font-semibold text-white bg-ig-blue hover:bg-ig-blueHover rounded-lg transition-colors mb-2 block">
Follow on Instagram
</a>
<a href="#" onclick="event.preventDefault(); dismissPopup('entry-popup')"
class="w-full text-center py-[10px] text-[14px] font-semibold text-ig-lightText dark:text-[#f5f5f5] hover:opacity-80 transition-opacity block">
Not Now
</a>
</div>
</div>
<!-- Mid Read Toast -->
<div id="mid-read-toast"
class="fixed bottom-6 left-1/2 transform -translate-x-1/2 z-50 py-2.5 px-5 bg-ig-lightText dark:bg-[#262626] text-ig-lightBg dark:text-white rounded-full shadow-2xl opacity-0 pointer-events-none transition-all duration-300 ease-out flex items-center gap-2 text-sm font-medium border border-transparent dark:border-[#333]">
<span>Enjoying this?</span>
<a href="https://www.instagram.com/the.he24" target="_blank"
class="text-ig-blue hover:text-ig-blueHover font-semibold">Follow ⚡</a>
</div>
<script src="script.js?v=20260403"></script>
</body>
</html>