-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
1071 lines (1012 loc) · 53.4 KB
/
index.html
File metadata and controls
1071 lines (1012 loc) · 53.4 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" class="overscroll-none" data-lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title data-i18n="meta.title">x402 Hackathon - Build Internet-Native Payments</title>
<meta
name="description"
data-i18n-attr="content"
data-i18n="meta.description"
content="Ship agents, protocols, and products on the x402 standard."
/>
<!-- OpenGraph Meta Tags -->
<meta property="og:type" content="website" />
<meta property="og:title" content="x402 Hackathon - Build Internet-Native Payments" />
<meta property="og:description" content="A 4 week virtual hackathon focused on shipping real products, apps, and impactful open source on the x402 standard. December 8, 2025 - January 5, 2026." />
<meta property="og:image" content="https://x402hackathon.com/assets/ogthumbnail.png" />
<meta property="og:image:alt" content="x402 Hackathon - Build the next era of agents and internet-native payments" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:site_name" content="x402 Hackathon" />
<meta property="og:locale" content="en_US" />
<!-- Twitter/X Card Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="x402 Hackathon - Build Internet-Native Payments" />
<meta name="twitter:description" content="A 4 week virtual hackathon focused on shipping real products, apps, and impactful open source on the x402 standard. December 8 - January 5." />
<meta name="twitter:image" content="https://x402hackathon.com/assets/ogthumbnail.png" />
<meta name="twitter:image:alt" content="x402 Hackathon - Build the next era of agents and internet-native payments" />
<!-- Additional SEO Meta Tags -->
<meta name="author" content="x402" />
<meta name="keywords" content="x402, hackathon, blockchain, payments, crypto, web3, agents, AI, decentralized" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="https://x402hackathon.com/" />
<link rel="icon" type="image/png" href="assets/favicon.png" />
<link rel="apple-touch-icon" href="assets/favicon.png" />
<!-- Preload custom font to prevent FOUT -->
<link rel="preload" href="./fonts/TINY5x3-160.woff2" as="font" type="font/woff2" crossorigin>
<!-- Preconnect to Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap"
/>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Space Grotesk', 'Inter', 'system-ui', 'sans-serif'],
tiny160: ['Tiny 160', 'monospace'],
},
colors: {
brand: {
cyan: '#5dd8ff',
indigo: '#8c7bff',
},
},
},
},
};
</script>
<style>
@font-face {
font-family: 'Tiny 160';
src: url('./fonts/TINY5x3-160.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: block;
}
/* Ensure background colors are applied immediately (not relying on Tailwind) */
html, body, main {
background-color: #1E243C;
}
html {
background-color: #030616;
min-height: 100vh;
}
/* Prevent FOUT by hiding content until fonts load */
.fonts-loading > *:not(script) {
opacity: 0;
}
.fonts-loaded > *:not(script) {
opacity: 1;
transition: opacity 0.2s ease-in;
}
h1.font-tiny160 {
font-family: 'Tiny 160', monospace;
font-weight: normal;
line-height: 0.85 !important;
}
body {
-ms-overflow-style: none;
scrollbar-width: none;
}
body::-webkit-scrollbar {
display: none;
}
.noise-layer {
background: #2c2e38;
filter: url(#noiseFilter);
}
.matrix-layer {
position: fixed;
inset: 0;
z-index: 5;
pointer-events: none;
mix-blend-mode: screen;
opacity: 0.7;
}
</style>
<svg style="position: absolute; width: 0; height: 0;">
<filter id="noiseFilter">
<feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="12" stitchTiles="stitch"/>
<feColorMatrix type="saturate" values="0"/>
</filter>
</svg>
</head>
<body class="fonts-loading relative min-h-screen bg-[#1E243C] text-slate-50 font-sans antialiased overscroll-none overflow-x-hidden">
<script>
// Wait for fonts to load before showing content to prevent FOUT
(function() {
var showContent = function() {
document.body.classList.remove('fonts-loading');
document.body.classList.add('fonts-loaded');
};
// Use Font Loading API if available
if (document.fonts && document.fonts.ready) {
document.fonts.ready.then(showContent);
} else {
// Fallback for older browsers
showContent();
}
// Safety timeout - always show content after 1.5s max
setTimeout(showContent, 1500);
})();
</script>
<div id="matrixLayer" class="matrix-layer"></div>
<header class="sticky top-0 z-30 w-full px-6 py-5 backdrop-blur-2xl" style="-webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%); mask-image: linear-gradient(to bottom, black 60%, transparent 100%);">
<div class="mx-auto flex w-full max-w-6xl items-center justify-between">
<a href="/" lass="flex items-center gap-3">
<img src="x402_logo.png" alt="x402 logo" class="h-8 w-auto drop-shadow-[0_15px_35px_rgba(3,7,18,0.45)]" />
</a>
<!-- Language Switcher -->
<div class="relative inline-flex items-center">
<select id="langSwitcher" class="appearance-none bg-white/20 backdrop-blur-sm border border-slate-700/50 rounded-full px-4 py-1.5 pr-8 text-xs font-semibold uppercase tracking-[0.3em] text-slate-800 cursor-pointer hover:bg-white/30 transition focus:outline-none">
<option value="en" class="bg-slate-900 text-white">EN</option>
<option value="es" class="bg-slate-900 text-white">ES</option>
<option value="fr" class="bg-slate-900 text-white">FR</option>
<option value="pt" class="bg-slate-900 text-white">PT</option>
</select>
<svg class="pointer-events-none absolute right-3 h-3 w-3 text-slate-700" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
</svg>
</div>
</div>
</header>
<main class="relative z-20 isolate flex min-h-[calc(100vh-80px)] mt-[-70px] items-start justify-center px-4 overflow-hidden">
<div class="relative w-full max-w-6xl pt-[70px] ">
<div class="grid gap-10">
<section class="relative w-screen left-1/2 -ml-[50vw] -mt-24 pt-24 overflow-hidden min-h-fit">
<div class="absolute -top-24 left-0 right-0 bottom-0 w-screen bg-[url('assets/background.png')] bg-cover bg-top bg-no-repeat z-0 pointer-events-none "></div>
<div class="absolute -top-24 left-0 right-0 bottom-0 w-screen z-[0.5] pointer-events-none flex items-center justify-center overflow-hidden">
<img src="assets/lines-star.svg" alt="" class="w-full h-full object-contain object-center transform scale-[1.55]" />
</div>
<div class="absolute -top-24 bottom-0 left-0 right-0 noise-layer z-[1] pointer-events-none opacity-30"></div>
<div class="absolute -top-24 bottom-0 left-0 right-0 z-[2] pointer-events-none" style="background: linear-gradient(to top, #1E243C 0%, #1E243C 2%, rgba(30, 36, 60, 0) 60%);"></div>
<div class="relative z-10 mx-auto w-full max-w-6xl px-4">
<div class="grid gap-6 p-6 sm:p-9 lg:p-12 pt-10 sm:pt-12 lg:pt-16">
<span class="inline-flex w-fit items-center gap-1 sm:gap-2 rounded-full border border-white/40 px-2.5 sm:px-4 py-0.5 sm:py-1 text-[10px] sm:text-xs uppercase tracking-[0.2em] sm:tracking-[0.3em] text-white font-semibold mx-auto" data-scramble data-scramble-nowrap data-i18n="hero.badge">
Open to all builders
</span>
<div class="max-w-4xl mx-auto">
<h1 class="font-tiny160 text-8xl text-center text-white sm:text-9xl md:text-9xl lg:text-[8rem] xl:text-[10rem]" data-scramble data-scramble-nowrap data-i18n="hero.title">
x402 Hackathon
</h1>
<p class="mt-5 text-base text-white/80 sm:text-lg md:text-xl text-center" data-scramble data-i18n="hero.tagline">
Build the next era of agents and internet-native payments.
</p>
</div>
<div class="flex flex-col items-center gap-6">
<dl class="flex flex-wrap gap-4 sm:gap-6 text-xs sm:text-sm text-slate-300 justify-center">
<div class="flex flex-col items-center">
<dt class="uppercase tracking-[0.25em] text-[10px] sm:text-xs" data-i18n="hero.timeline">Timeline</dt>
<dd class="text-sm sm:text-base font-semibold text-white" data-i18n="hero.date">December 8, 2025 - January 5, 2026</dd>
</div>
<div class="flex flex-col items-center">
<dt class="uppercase tracking-[0.25em] text-[10px] sm:text-xs" data-i18n="hero.format">Format</dt>
<dd class="text-sm sm:text-base font-semibold text-white" data-i18n="hero.virtual">Virtual</dd>
</div>
<div>
<!-- <dt class="uppercase tracking-[0.25em] text-xs">Prize Pool</dt>
<dd class="text-base font-semibold text-white">$50k + Grants</dd> -->
</div>
</dl>
<div class="flex flex-col sm:flex-row gap-3 sm:gap-4">
<a
class="inline-flex items-center justify-center text-xs sm:text-sm rounded-full px-6 sm:px-8 py-2.5 sm:py-3 text-sm sm:text-base font-semibold tracking-[0.2em] sm:tracking-[0.3em] text-white transition opacity-70 bg-gradient-to-r from-[rgba(56,189,248,0.25)] to-[rgba(74,222,128,0.3)] hover:opacity-100 transition-opacity duration-1000"
disabled
target="_blank"
rel="noreferrer"
>
<span data-i18n="hero.submit">SUBMISSIONS CLOSED</span>
</a>
<a
class="inline-flex items-center justify-center text-xs sm:text-sm rounded-full px-6 sm:px-8 py-2.5 sm:py-3 text-sm sm:text-base font-semibold tracking-[0.2em] sm:tracking-[0.3em] text-white transition border border-white/40 hover:bg-white/10 transition-all duration-300"
href="https://t.me/+Sw2XPHfLeIUzYjVh"
target="_blank"
rel="noreferrer"
>
<span data-i18n="hero.chat">JOIN HACKATHON CHAT</span>
</a>
</div>
</div>
<div class="max-w-2xl mx-auto">
<p class="text-base leading-relaxed text-center text-slate-300 mb-20 sm:text-lg" data-i18n="hero.description">
You do not need to apply to participate, just submit your project by January 5th, 2026. Code submitted must be written during this time period.
</p>
</div>
</div>
</div>
</section>
<section class="rounded-3xl border border-white/10 bg-white/5 p-6 sm:p-8">
<div class="flex flex-col gap-6">
<div>
<p data-scramble class="text-sm uppercase tracking-[0.35em] text-white/70" data-i18n="mentors.label">Mentor bench</p>
<h2 data-scramble class="mt-2 text-3xl font-semibold text-white" data-i18n="mentors.heading">Experts who ship with you</h2>
<p data-scramble class="mt-3 text-base text-slate-300" data-i18n="mentors.description">
A tight roster of hands-on mentors sharing expertise across product, AI, infrastructure, and GTM.
</p>
</div>
<div class="grid gap-4 sm:grid-cols-2">
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/binji_x"
target="_blank"
rel="noreferrer"
>
<img src="images/binji.jpg" alt="Binji" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Binji</p>
<p class="text-sm text-slate-300">Etherum Foundation</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/0xMasonH"
target="_blank"
rel="noreferrer"
>
<img src="images/masonhall.png" alt="Mason Hall" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Mason Hall</p>
<p class="text-sm text-slate-300">Merit Systems</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/13yearoldvc"
target="_blank"
rel="noreferrer"
>
<img src="images/jessy.jpg" alt="Dan Romero" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Jessy H</p>
<p class="text-sm text-slate-300">Ethereum Foundation</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/austingriffith"
target="_blank"
rel="noreferrer"
>
<img src="images/austin.jpg" alt="Arianna Vairo" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Austin Griffith</p>
<p class="text-sm text-slate-300">Buidlguidl / Ethereum Foundation</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/kleffew94"
target="_blank"
rel="noreferrer"
>
<img src="images/kevin.jpg" alt="Kevin Leffew" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Kevin Leffew</p>
<p class="text-sm text-slate-300">Coinbase</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/KhanAbbas201"
target="_blank"
rel="noreferrer"
>
<img src="images/abbas.jpg" alt="Kevin Leffew" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Abbas Khan</p>
<p class="text-sm text-slate-300">Ethereum Foundation</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/cryptomastery_"
target="_blank"
rel="noreferrer"
>
<img src="images/kevinj.jpg" alt="Kevin Jones" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Kevin Jones</p>
<p class="text-sm text-slate-300">Edge & Node</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/jarrodwatts"
target="_blank"
rel="noreferrer"
>
<img src="images/jarrod.jpg" alt="Abril Zucchi" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Jarrod Watts</p>
<p class="text-sm text-slate-300">Abstract</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/dabit3"
target="_blank"
rel="noreferrer"
>
<img src="images/naderdabit.jpg" alt="Nader Dabit" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Nader Dabit</p>
<p class="text-sm text-slate-300">Eigen Labs</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/bitfalls"
target="_blank"
rel="noreferrer"
>
<img src="images/bskvorc.jpg" alt="Bruno Skvorc" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Bruno Skvorc</p>
<p class="text-sm text-slate-300">Polygon</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/joenrv"
target="_blank"
rel="noreferrer"
>
<img src="images/joaquim.jpg" alt="Joaquim Verges" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Joaquim Verges</p>
<p class="text-sm text-slate-300">thirdweb</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/cryptofede"
target="_blank"
rel="noreferrer"
>
<img src="images/fede.png" alt="Fede" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Fede</p>
<p class="text-sm text-slate-300">Crossmint</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/probablyangg"
target="_blank"
rel="noreferrer"
>
<img src="images/angela.jpg" alt="Angela" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Angela</p>
<p class="text-sm text-slate-300">Crossmint</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/henloitsjoyce"
target="_blank"
rel="noreferrer"
>
<img src="images/joyce.png" alt="Joyce" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Joyce</p>
<p class="text-sm text-slate-300">Crossmint</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/classicscuba"
target="_blank"
rel="noreferrer"
>
<img src="images/pontus.jpg" alt="Pontus Andersson" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">Pontus Andersson</p>
<p class="text-sm text-slate-300">Corbits + Faremeter</p>
</div>
</a>
<a
class="flex items-center gap-4 rounded-2xl border border-white/10 bg-slate-900/40 p-4 transition hover:border-white/40"
href="https://x.com/0xultravioleta"
target="_blank"
rel="noreferrer"
>
<img src="images/0xultravioleta.png" alt="ultravioleta" class="h-16 w-16 rounded-full object-cover" />
<div>
<p class="text-lg font-semibold text-white">ultravioleta</p>
<p class="text-sm text-slate-300">Ultravioleta DAO</p>
</div>
</a>
</div>
</div>
</section>
<!-- Developer Resources Section -->
<section class="rounded-3xl border border-white/10 bg-gradient-to-br from-slate-900/80 via-slate-900/60 to-[#0d1424]/80 p-6 sm:p-8 overflow-hidden relative">
<div class="absolute top-0 right-0 w-64 h-64 bg-brand-cyan/5 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2 pointer-events-none"></div>
<div class="absolute bottom-0 left-0 w-48 h-48 bg-brand-indigo/5 rounded-full blur-3xl translate-y-1/2 -translate-x-1/2 pointer-events-none"></div>
<div class="relative z-10">
<div class="flex flex-col gap-2 mb-6">
<p data-scramble class="text-sm uppercase tracking-[0.35em] text-brand-cyan/80">Get Started</p>
<h2 data-scramble class="text-2xl font-semibold text-white sm:text-3xl">Developer Resources</h2>
<p class="text-base text-slate-300 max-w-2xl">
Use these resources to bootstrap your project and integrate x402 in novel ways.
</p>
</div>
<div class="grid gap-4 sm:grid-cols-2">
<!-- Builder Resources Card -->
<a
class="group relative flex flex-col gap-4 rounded-2xl border border-white/10 bg-slate-900/50 p-6 transition-all duration-300 hover:border-emerald-400/40 hover:bg-slate-900/70 hover:shadow-[0_0_30px_-5px_rgba(52,211,153,0.15)]"
href="https://www.notion.so/Builder-Resources-2bd3db1c88a78060bddfe8c03bf88c1a"
target="_blank"
rel="noreferrer"
>
<div class="flex items-start justify-between">
<div class="flex items-center gap-3">
<div class="flex h-12 w-12 items-center justify-center rounded-xl bg-gradient-to-br from-emerald-500/20 to-teal-500/20 border border-white/10">
<svg class="h-6 w-6 text-emerald-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/>
</svg>
</div>
<div>
<h3 class="text-lg font-semibold text-white group-hover:text-emerald-400 transition-colors">Builder Resources</h3>
<p class="text-xs text-slate-400 font-mono">From Contributors</p>
</div>
</div>
<svg class="h-5 w-5 text-slate-500 group-hover:text-emerald-400 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-all" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 17L17 7M17 7H7M17 7v10"/>
</svg>
</div>
<p class="text-sm text-slate-300 leading-relaxed">
Curated docs, tutorials, and tooling from hackathon contributors and their companies to help you build faster.
</p>
<div class="flex items-center gap-2 mt-auto pt-2">
<span class="inline-flex items-center gap-1.5 rounded-full bg-white/5 border border-white/10 px-2.5 py-1 text-xs text-slate-400">
<span class="h-1.5 w-1.5 rounded-full bg-emerald-400"></span>
Docs & Guides
</span>
<span class="inline-flex items-center gap-1.5 rounded-full bg-white/5 border border-white/10 px-2.5 py-1 text-xs text-slate-400">
Contributor Tools
</span>
</div>
</a>
<!-- create-x402 Card -->
<a
class="group relative flex flex-col gap-4 rounded-2xl border border-white/10 bg-slate-900/50 p-6 transition-all duration-300 hover:border-brand-cyan/40 hover:bg-slate-900/70 hover:shadow-[0_0_30px_-5px_rgba(93,216,255,0.15)]"
href="https://github.com/dabit3/create-x402"
target="_blank"
rel="noreferrer"
>
<div class="flex items-start justify-between">
<div class="flex items-center gap-3">
<div class="flex h-12 w-12 items-center justify-center rounded-xl bg-gradient-to-br from-brand-cyan/20 to-brand-indigo/20 border border-white/10">
<svg class="h-6 w-6 text-brand-cyan" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 6v6m0 0v6m0-6h6m-6 0H6"/>
</svg>
</div>
<div>
<h3 class="text-lg font-semibold text-white group-hover:text-brand-cyan transition-colors">create-x402</h3>
<p class="text-xs text-slate-400 font-mono">npx create-x402</p>
</div>
</div>
<svg class="h-5 w-5 text-slate-500 group-hover:text-brand-cyan group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-all" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 17L17 7M17 7H7M17 7v10"/>
</svg>
</div>
<p class="text-sm text-slate-300 leading-relaxed">
The fastest way to scaffold a new x402 project. One command to generate a fully configured payment-enabled application with all the essentials.
</p>
<div class="flex items-center gap-2 mt-auto pt-2">
<span class="inline-flex items-center gap-1.5 rounded-full bg-white/5 border border-white/10 px-2.5 py-1 text-xs text-slate-400">
<span class="h-1.5 w-1.5 rounded-full bg-emerald-400"></span>
CLI Tool
</span>
<span class="inline-flex items-center gap-1.5 rounded-full bg-white/5 border border-white/10 px-2.5 py-1 text-xs text-slate-400">
Quick Start
</span>
</div>
</a>
<!-- x402 Starter Kit Card -->
<a
class="group relative flex flex-col gap-4 rounded-2xl border border-white/10 bg-slate-900/50 p-6 transition-all duration-300 hover:border-brand-indigo/40 hover:bg-slate-900/70 hover:shadow-[0_0_30px_-5px_rgba(140,123,255,0.15)]"
href="https://github.com/dabit3/x402-starter-kit"
target="_blank"
rel="noreferrer"
>
<div class="flex items-start justify-between">
<div class="flex items-center gap-3">
<div class="flex h-12 w-12 items-center justify-center rounded-xl bg-gradient-to-br from-brand-indigo/20 to-brand-cyan/20 border border-white/10">
<svg class="h-6 w-6 text-brand-indigo" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"/>
</svg>
</div>
<div>
<h3 class="text-lg font-semibold text-white group-hover:text-brand-indigo transition-colors">x402 Starter Kit</h3>
<p class="text-xs text-slate-400 font-mono">Full Template</p>
</div>
</div>
<svg class="h-5 w-5 text-slate-500 group-hover:text-brand-indigo group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-all" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 17L17 7M17 7H7M17 7v10"/>
</svg>
</div>
<p class="text-sm text-slate-300 leading-relaxed">
A complete reference implementation with Express server, payment verification, OpenAI integration, and local or facilitator settlement modes.
</p>
<div class="flex items-center gap-2 mt-auto pt-2">
<span class="inline-flex items-center gap-1.5 rounded-full bg-white/5 border border-white/10 px-2.5 py-1 text-xs text-slate-400">
<span class="h-1.5 w-1.5 rounded-full bg-yellow-400"></span>
TypeScript
</span>
<span class="inline-flex items-center gap-1.5 rounded-full bg-white/5 border border-white/10 px-2.5 py-1 text-xs text-slate-400">
Reference App
</span>
</div>
</a>
<!-- Scaffold ETH x402 Extension Card -->
<a
class="group relative flex flex-col gap-4 rounded-2xl border border-white/10 bg-slate-900/50 p-6 transition-all duration-300 hover:border-pink-400/40 hover:bg-slate-900/70 hover:shadow-[0_0_30px_-5px_rgba(244,114,182,0.15)]"
href="https://github.com/scaffold-eth/create-eth-extensions/tree/x402"
target="_blank"
rel="noreferrer"
>
<div class="flex items-start justify-between">
<div class="flex items-center gap-3">
<div class="flex h-12 w-12 items-center justify-center rounded-xl bg-gradient-to-br from-pink-500/20 to-rose-500/20 border border-white/10">
<svg class="h-6 w-6 text-pink-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z"/>
</svg>
</div>
<div>
<h3 class="text-lg font-semibold text-white group-hover:text-pink-400 transition-colors">Scaffold ETH x402</h3>
<p class="text-xs text-slate-400 font-mono">npx create-eth@latest -e x402</p>
</div>
</div>
<svg class="h-5 w-5 text-slate-500 group-hover:text-pink-400 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-all" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 17L17 7M17 7H7M17 7v10"/>
</svg>
</div>
<p class="text-sm text-slate-300 leading-relaxed">
Scaffold-ETH 2 extension demonstrating how to monetize your APIs and pages with micropayments using the x402 protocol.
</p>
<div class="flex items-center gap-2 mt-auto pt-2">
<span class="inline-flex items-center gap-1.5 rounded-full bg-white/5 border border-white/10 px-2.5 py-1 text-xs text-slate-400">
<span class="h-1.5 w-1.5 rounded-full bg-pink-400"></span>
SE-2 Extension
</span>
<span class="inline-flex items-center gap-1.5 rounded-full bg-white/5 border border-white/10 px-2.5 py-1 text-xs text-slate-400">
Middleware
</span>
</div>
</a>
</div>
</div>
</section>
<section class="rounded-3xl border border-white/10 bg-slate-900/60 p-6 sm:p-8 lg:p-9">
<div class="flex flex-col gap-6">
<div class="space-y-4">
<h2 class="text-2xl font-semibold text-white sm:text-3xl" data-i18n="formatSection.heading">Format</h2>
<p class="text-base leading-relaxed text-slate-300 sm:text-lg" data-i18n="formatSection.description">
A 4 week virtual event focused on shipping real products, apps, and impactful open source. Participants will receive mentorship from industry experts. <br /><br />
Please note that there are no financial prizes for this hackathon. Winners will receive marketing and distribution support from contributors such as social posts and live streams. They will also have access to mentorship, invitations to major events and hacker houses, and potential grant opportunities.
</p>
</div>
<!-- <div class="grid flex-1 grid-cols-1 gap-4 sm:grid-cols-3">
<div class="rounded-2xl border border-white/10 bg-white/5 p-4">
<span class="text-xs uppercase tracking-[0.25em] text-slate-400">Focus</span>
<p class="mt-3 text-lg font-semibold text-white">Payments, Agents, Infra</p>
</div>
<div class="rounded-2xl border border-white/10 bg-white/5 p-4">
<span class="text-xs uppercase tracking-[0.25em] text-slate-400">Access</span>
<p class="mt-3 text-lg font-semibold text-white">Direct mentor hours</p>
</div>
<div class="rounded-2xl border border-white/10 bg-white/5 p-4">
<span class="text-xs uppercase tracking-[0.25em] text-slate-400">Outcomes</span>
<p class="mt-3 text-lg font-semibold text-white">Launch-ready pilots</p>
</div>
</div> -->
</div>
</section>
<section class="relative z-10 rounded-3xl border border-dashed border-white/20 backdrop-blur-sm p-6 sm:p-8">
<div class="flex flex-wrap items-center justify-between gap-4">
<div>
<h3 class="text-xl font-semibold text-white sm:text-2xl" data-i18n="contributors.heading">Contributors</h3>
<p class="text-sm text-slate-300" data-scramble data-i18n="contributors.slots">Slots available - inquire for details</p>
</div>
</div>
<div class="mt-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://ethereum.foundation"
target="_blank"
rel="noreferrer"
>
<img src="images/ef.png" alt="EF logo" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://www.coinbase.com"
target="_blank"
rel="noreferrer"
>
<img src="images/coinbase.png" alt="Coinbase logo" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://edgeandnode.com"
target="_blank"
rel="noreferrer"
>
<img src="images/edgeandnode.png" alt="Edge & Node logo" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://t.co/IJzUjmjXO6"
target="_blank"
rel="noreferrer"
>
<img src="images/meritsystems.png" alt="Merit Systems logo" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://www.abs.xyz"
target="_blank"
rel="noreferrer"
>
<img src="images/abstract.png" alt="Abstract logo" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://developers.eigencloud.xyz/"
target="_blank"
rel="noreferrer"
>
<img src="images/eigencloud.png" alt="Eigencloud logo" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://www.crossmint.com"
target="_blank"
rel="noreferrer"
>
<img src="images/crossmint.png" alt="Crossmint logo" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://www.polygon.technology"
target="_blank"
rel="noreferrer"
>
<img src="images/polygon.svg" alt="Polygon logo" style="width: 120px;" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://thirdweb.com"
target="_blank"
rel="noreferrer"
>
<img src="images/thirdweb.svg" alt="thirdweb logo" style="width: 120px;" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://corbits.dev"
target="_blank"
rel="noreferrer"
>
<img src="images/corbits.png" alt="corbits logo" style="width: 120px;" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://ultravioletadao.xyz"
target="_blank"
rel="noreferrer"
>
<img src="images/ultravioletadao.png" alt="Ultravioleta DAO logo" class="max-h-12 w-auto opacity-90" />
</a>
<a
class="flex h-28 items-center justify-center rounded-2xl border border-white/10 bg-slate-900/40 px-6 transition hover:border-white/40"
href="https://pinata.cloud/"
target="_blank"
rel="noreferrer"
>
<img src="images/pinata.png" alt="Pinata logo" style="width: 120px;" class="max-h-12 w-auto opacity-90" />
</a>
</div>
</section>
</div>
</div>
<div class="absolute translate-y-[80px] bottom-0 opacity-50 left-0 right-0 w-full z-[1] pointer-events-none">
<img src="assets/lines-waves.svg" alt="" class="w-full h-auto object-cover object-bottom transform scale-150" />
</div>
</main>
<footer class="relative z-20 px-6 py-10 text-center text-sm text-slate-400">
<p>
<span data-i18n="footer.learnMore">To learn more about x402, visit</span>
<a href="https://www.x402.org" target="_blank" rel="noreferrer" class="text-brand-cyan transition hover:text-white">
https://www.x402.org
</a>
</p>
<p class="mt-2">
<a href="terms.html" class="text-slate-500 transition hover:text-white" data-i18n="footer.terms">
Terms and Conditions
</a>
</p>
</footer>
<script src="https://cdn.jsdelivr.net/npm/three@0.158.0/build/three.min.js"></script>
<script>
window.addEventListener('load', () => {
const container = document.getElementById('matrixLayer');
if (!container || !window.THREE) return;
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
if (prefersReducedMotion.matches) return;
let renderer, scene, camera, points, speeds, positions, geometry;
const init = () => {
const width = window.innerWidth;
const height = window.innerHeight;
const particleCount = width < 768 ? 600 : 1100;
try {
renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true });
} catch (err) {
return;
}
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(width, height);
container.innerHTML = '';
container.appendChild(renderer.domElement);
scene = new THREE.Scene();
camera = new THREE.PerspectiveCamera(60, width / height, 0.1, 1000);
camera.position.set(0, 0, 35);
geometry = new THREE.BufferGeometry();
positions = new Float32Array(particleCount * 3);
speeds = new Float32Array(particleCount);
for (let i = 0; i < particleCount; i++) {
positions[i * 3] = (Math.random() - 0.5) * 60;
positions[i * 3 + 1] = Math.random() * 60;
positions[i * 3 + 2] = (Math.random() - 0.5) * 25;
speeds[i] = 0.05 + Math.random() * 0.12;
}
geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));
const material = new THREE.PointsMaterial({
color: 0x6dd2ff,
size: 0.15,
transparent: true,
opacity: 0.09,
blending: THREE.AdditiveBlending,
depthWrite: false,
});
points = new THREE.Points(geometry, material);
scene.add(points);
};
const animate = () => {
if (!renderer) return;
const array = geometry.attributes.position.array;
for (let i = 0; i < speeds.length; i++) {
array[i * 3 + 1] -= speeds[i];
if (array[i * 3 + 1] < -30) {
array[i * 3 + 1] = 30;
array[i * 3] = (Math.random() - 0.5) * 60;
array[i * 3 + 2] = (Math.random() - 0.5) * 25;
}
}
geometry.attributes.position.needsUpdate = true;
points.rotation.y += 0.0005;
renderer.render(scene, camera);
requestAnimationFrame(animate);
};
const onResize = () => {
if (!renderer || !camera) return;
const width = window.innerWidth;
const height = window.innerHeight;
renderer.setSize(width, height);
camera.aspect = width / height;
camera.updateProjectionMatrix();
};
init();
animate();
window.addEventListener('resize', onResize);
});
</script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
const targets = document.querySelectorAll('[data-scramble]');
const isDisabled = () => window.matchMedia('(max-width: 950px)').matches;
const applyScramble = (el) => {
el.dataset.scrambleOriginal = el.textContent;
const keepFixed = el.hasAttribute('data-scramble-lock');
const noWrap = el.hasAttribute('data-scramble-nowrap');
const shouldLockLayout = keepFixed || noWrap;
if (keepFixed) {
const width = el.getBoundingClientRect().width;
el.style.display = 'inline-block';
el.style.minWidth = `${width}px`;
el.style.whiteSpace = 'nowrap';
el.style.textAlign = 'center';
}
const lockLayout = () => {
if (!shouldLockLayout || el.dataset.scrambleLayoutLocked === 'true') return;
const rect = el.getBoundingClientRect();
el.dataset.scrambleLayoutLocked = 'true';
el.style.display = 'inline-block';
el.style.width = `${rect.width}px`;
el.style.height = `${rect.height}px`;
el.style.verticalAlign = 'top';
if (noWrap) {
el.style.whiteSpace = 'nowrap';
el.style.overflow = 'hidden';
}
};
const unlockLayout = () => {
if (!shouldLockLayout) return;
el.dataset.scrambleLayoutLocked = 'false';
if (!keepFixed) {
el.style.display = '';
el.style.width = '';
el.style.height = '';
el.style.verticalAlign = '';
if (noWrap) {
el.style.whiteSpace = '';
el.style.overflow = '';
}
}
};
const runScramble = () => {
lockLayout();
let iteration = 0;
const original = el.dataset.scrambleOriginal || '';
const characters = original.split('');
const scrambleCap = characters.length > 2 ? characters.length - 2 : characters.length;
const intervalTime = el.hasAttribute('data-scramble-slow') ? 40 : 15;
clearInterval(el._scrambleInterval);
el._scrambleInterval = setInterval(() => {
el.textContent = characters
.map((char, idx) => {
if (/\s/.test(char)) return char;
if (idx >= scrambleCap) return characters[idx];
if (idx < iteration) return characters[idx];
return letters[Math.floor(Math.random() * letters.length)];
})
.join('');
iteration += 1;
if (iteration > scrambleCap) {
clearInterval(el._scrambleInterval);
el.textContent = original;
unlockLayout();
}
}, intervalTime);
};
el.addEventListener('mouseenter', runScramble);
el.addEventListener('mouseleave', () => {
clearInterval(el._scrambleInterval);
el.textContent = el.dataset.scrambleOriginal || '';
unlockLayout();
});
};
const cleanup = () => {
document.querySelectorAll('[data-scramble]').forEach((el) => {
clearInterval(el._scrambleInterval);
el.textContent = el.dataset.scrambleOriginal || el.textContent;
el.style.display = '';
el.style.width = '';
el.style.height = '';
el.style.verticalAlign = '';
el.style.whiteSpace = '';
el.style.overflow = '';
el.dataset.scrambleLayoutLocked = 'false';
});
};
const init = () => {
cleanup();
if (isDisabled()) return;
document.querySelectorAll('[data-scramble]').forEach(applyScramble);
};
document.body.dataset.scrambleDisabled = isDisabled() ? 'true' : 'false';
init();
window.addEventListener('resize', () => {
const currentlyDisabled = document.body.dataset.scrambleDisabled === 'true';
const nextDisabled = isDisabled();
if (currentlyDisabled === nextDisabled) return;
document.body.dataset.scrambleDisabled = nextDisabled ? 'true' : 'false';
init();
});
});
</script>
<!-- i18n Internationalization -->
<script>
(function() {
const i18n = {
translations: {},
currentLang: 'en',
supportedLangs: ['en', 'es', 'fr', 'pt'],
async loadTranslations(lang) {
try {
const response = await fetch(`./i18n/${lang}.json`);
if (!response.ok) throw new Error('Translation file not found');
this.translations[lang] = await response.json();
return true;
} catch (error) {
console.error(`Failed to load translations for ${lang}:`, error);
return false;
}
},
getNestedValue(obj, path) {
return path.split('.').reduce((current, key) => current && current[key], obj);
},
translate(key) {
const translation = this.getNestedValue(this.translations[this.currentLang], key);
if (!translation) {
const fallback = this.getNestedValue(this.translations['en'], key);
return fallback || key;
}
return translation;
},
applyTranslations() {
document.querySelectorAll('[data-i18n]').forEach(el => {
const key = el.getAttribute('data-i18n');
const translation = this.translate(key);
const attrToUpdate = el.getAttribute('data-i18n-attr');
if (attrToUpdate) {
el.setAttribute(attrToUpdate, translation);