-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
961 lines (850 loc) · 53.5 KB
/
index.html
File metadata and controls
961 lines (850 loc) · 53.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
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lambda Client - Advanced Minecraft Automation</title>
<!-- SEO & Discord/Social Embeds -->
<meta name="description" content="The ultimate open-source Fabric utility mod for Minecraft. Autonomous building, modern GUI, and unmatched performance.">
<meta name="theme-color" content="#FF5E80">
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:title" content="Lambda Client">
<meta property="og:description" content="The ultimate open-source Fabric utility mod. Autonomous building, 1000+ settings, and a modern Dear ImGui interface.">
<meta property="og:image" content="https://raw.githubusercontent.com/lambda-client/assets/refs/heads/main/lambda%20logo%20color.svg">
<meta property="og:url" content="https://lambda-client.org">
<meta property="og:site_name" content="Lambda Client">
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Lambda Client">
<meta name="twitter:description" content="The ultimate open-source Fabric utility mod. Autonomous building, 1000+ settings, and a modern Dear ImGui interface.">
<meta name="twitter:image" content="https://raw.githubusercontent.com/lambda-client/assets/refs/heads/main/lambda%20logo%20color.svg">
<link rel="icon" type="image/svg+xml" href="https://raw.githubusercontent.com/lambda-client/assets/refs/heads/main/lambda%20logo%20color.svg">
<link rel="preload" as="image" href="https://raw.githubusercontent.com/lambda-client/assets/refs/heads/main/lambda%20logo%20text.svg">
<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=Fira+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<style>
/* --- 3D SCENE CONFIG --- */
.hero-scene {
width: 100%;
height: 500px;
perspective: 800px;
position: relative;
overflow: visible;
-webkit-font-smoothing: subpixel-antialiased;
image-rendering: auto;
}
.scene-3d {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
transform-style: preserve-3d;
pointer-events: none;
}
.scene-3d * {
pointer-events: auto;
}
.voxel-world {
position: relative;
transform-style: preserve-3d;
animation: worldRotate 40s linear infinite;
}
.voxel-world:hover {
animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
.voxel-world {
animation: none;
transform: rotateX(-20deg) rotateY(45deg);
}
}
.voxel {
position: absolute;
width: 70px;
height: 70px;
transform-style: preserve-3d;
-webkit-transform-style: preserve-3d;
}
.voxel-face {
position: absolute;
width: 70px;
height: 70px;
border: 1.5px solid;
background: transparent;
backface-visibility: visible;
cursor: pointer;
transition: all 0.15s;
pointer-events: auto;
}
.voxel-face.front { transform: translateZ(35px); }
.voxel-face.back { transform: translateZ(-35px) rotateY(180deg); }
.voxel-face.left { transform: translateX(-35px) rotateY(-90deg); }
.voxel-face.right { transform: translateX(35px) rotateY(90deg); }
.voxel-face.top { transform: translateY(-35px) rotateX(90deg); }
.voxel-face.bottom { transform: translateY(35px) rotateX(-90deg); }
.voxel.placing .voxel-face {
border-color: #38bdf8;
background: rgba(56, 189, 248, 0.06);
box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.15), 0 0 10px rgba(56, 189, 248, 0.3);
animation: pulseIn 0.4s ease-out;
}
.voxel.solid .voxel-face {
border-color: #0ea5e9;
background: rgba(14, 165, 233, 0.04);
box-shadow: 0 0 8px rgba(14, 165, 233, 0.2);
}
.voxel.breaking .voxel-face {
border-color: #FF5E80;
border-style: dashed;
background: rgba(255, 94, 128, 0.08);
box-shadow: 0 0 15px rgba(255, 94, 128, 0.4);
animation: pulseOut 0.5s ease-in forwards;
}
.voxel.hovered .voxel-face {
background: rgba(255, 255, 255, 0.12) !important;
border-width: 2px;
border-color: #fff !important;
box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), 0 0 25px rgba(255, 255, 255, 0.4);
}
@keyframes worldRotate {
from { transform: rotateX(-20deg) rotateY(0deg); }
to { transform: rotateX(-20deg) rotateY(360deg); }
}
@keyframes pulseIn {
0% { opacity: 0; border-color: #7dd3fc; box-shadow: 0 0 30px rgba(125, 211, 252, 0.6); }
50% { opacity: 1; box-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }
100% { opacity: 1; border-color: #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.3); }
}
@keyframes pulseOut {
0% { opacity: 1; border-color: #FF5E80; box-shadow: 0 0 15px rgba(255, 94, 128, 0.4); }
50% { border-color: #ff8fa3; box-shadow: 0 0 25px rgba(255, 94, 128, 0.6); }
100% { opacity: 0; border-color: #ff8fa3; box-shadow: 0 0 5px rgba(255, 94, 128, 0.2); }
}
/* --- SCROLL REVEAL --- */
.reveal {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
opacity: 1;
transform: translateY(0);
}
/* stagger children */
.reveal-children > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-children > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-children > .reveal:nth-child(4) { transition-delay: 0.25s; }
@media (prefers-reduced-motion: reduce) {
.reveal {
opacity: 1;
transform: none;
transition: none;
}
}
/* --- MOBILE MENU TRANSITION --- */
@media (max-width: 767px) {
#mobile-menu.mobile-collapsible {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
}
#mobile-menu.mobile-collapsible.open {
max-height: 300px;
}
}
</style>
</head>
<body class="text-slate-200 bg-slate-950 min-h-screen flex flex-col font-sans selection:bg-lambda-red selection:text-white overflow-x-hidden">
<div class="fixed inset-0 -z-50 pointer-events-none bg-[radial-gradient(circle_at_top_right,_var(--tw-gradient-stops))] from-slate-900 via-slate-950 to-black">
<div class="absolute top-0 right-0 w-[800px] h-[800px] bg-lambda-red/10 rounded-full blur-[100px] opacity-50"></div>
<div class="absolute bottom-0 left-0 w-[600px] h-[600px] bg-lambda-blue/5 rounded-full blur-[100px] opacity-30"></div>
</div>
<header class="fixed w-full z-50 top-0 start-0 border-b border-white/5 bg-slate-950/80 backdrop-blur-md">
<nav class="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-4">
<a href="#" class="flex items-center gap-3 rtl:space-x-reverse group">
<img src="https://raw.githubusercontent.com/lambda-client/assets/refs/heads/main/lambda%20logo%20color.svg"
class="h-10 w-auto hover:scale-110 transition-transform duration-300"
alt="Lambda Logo">
</a>
<!-- Mobile menu button -->
<button id="mobile-menu-btn" type="button" class="inline-flex items-center p-2 w-10 h-10 justify-center text-slate-400 rounded-lg md:hidden hover:bg-slate-800 focus:outline-none focus:ring-2 focus:ring-slate-600" aria-controls="mobile-menu" aria-expanded="false" aria-label="Toggle navigation menu">
<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="M4 6h16M4 12h16M4 18h16"/>
</svg>
</button>
<div class="flex md:order-2 space-x-3 md:space-x-0 rtl:space-x-reverse hidden md:flex">
<a href="#"
class="dynamic-dl-btn text-white bg-lambda-red hover:bg-lambda-dark shadow-lg shadow-lambda-red/20 hover:shadow-lambda-red/50 focus:ring-4 focus:outline-none focus:ring-lambda-red/30 font-medium rounded-lg text-sm px-5 py-2.5 text-center transition-all duration-300 flex items-center gap-2 group">
Download
<span class="text-xs bg-black/20 px-2 py-1 rounded text-white/90 font-mono group-hover:bg-black/30 transition-colors inline-flex items-center gap-1">
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" aria-hidden="true">
<rect x="4" y="8" width="16" height="12" fill="#8B4513"/>
<rect x="4" y="4" width="16" height="4" fill="#228B22"/>
<rect x="6" y="5" width="2" height="2" fill="#90EE90"/>
<rect x="10" y="6" width="2" height="1" fill="#90EE90"/>
<rect x="15" y="5" width="1" height="2" fill="#90EE90"/>
</svg>
<span class="dynamic-mc-ver">...</span>
</span>
</a>
</div>
<div id="mobile-menu" class="items-center justify-between w-full md:flex md:w-auto md:order-1 mobile-collapsible">
<ul class="flex flex-col p-4 md:p-0 mt-4 font-medium md:space-x-8 rtl:space-x-reverse md:flex-row md:mt-0">
<li><a href="#features" class="block py-2 px-3 text-slate-300 hover:text-lambda-pink md:p-0 transition-colors">Features</a></li>
<li><a href="#install" class="block py-2 px-3 text-slate-300 hover:text-lambda-pink md:p-0 transition-colors">Installation</a></li>
<li><a href="#versions" class="block py-2 px-3 text-slate-300 hover:text-lambda-pink md:p-0 transition-colors">Versions</a></li>
<li><a href="https://discord.gg/3y3ah5BtjB" class="block py-2 px-3 text-slate-300 hover:text-lambda-pink md:p-0 transition-colors">Support</a></li>
</ul>
</div>
</nav>
</header>
<main class="flex-grow pt-24 relative">
<section class="px-6 py-20 mx-auto max-w-7xl">
<div class="grid lg:grid-cols-2 gap-12 items-center">
<div class="animate-fade-in-up text-center lg:text-left z-10">
<div class="inline-flex items-center gap-2 px-4 py-1.5 mb-8 text-sm font-semibold text-amber-300 bg-amber-950/60 border border-amber-500/30 rounded-full backdrop-blur-md shadow-[0_0_15px_-3px_rgba(245,158,11,0.3)]">
<span class="relative flex h-2 w-2">
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-amber-400 opacity-75"></span>
<span class="relative inline-flex rounded-full h-2 w-2 bg-amber-500"></span>
</span>
<span class="dynamic-mod-title">Loading Latest Version...</span>
</div>
<img src="https://raw.githubusercontent.com/lambda-client/assets/refs/heads/main/lambda%20logo%20text.svg"
alt="Lambda Client"
class="w-3/4 md:w-2/3 lg:w-full max-w-md mx-auto lg:mx-0 mb-6 drop-shadow-2xl">
<p class="mb-8 text-lg font-normal text-slate-400 lg:text-xl leading-relaxed">
The ultimate open-source Fabric utility mod.
Experience <span class="text-lambda-pink font-semibold">autonomous building</span>
and a modern GUI designed for power users.
</p>
<div class="mb-10 inline-block bg-slate-900/80 backdrop-blur border border-slate-700/50 rounded-lg px-6 py-3 text-sm text-slate-300 shadow-xl">
<div class="flex flex-wrap items-center justify-center lg:justify-start gap-6">
<div class="flex items-center gap-2">
<kbd class="px-2 py-1 text-xs font-semibold text-white bg-slate-700 border border-slate-600 rounded-md shadow-sm font-mono">Y</kbd>
<span>Open GUI</span>
</div>
<div class="w-px h-4 bg-slate-700 hidden sm:block" aria-hidden="true"></div>
<div class="flex items-center gap-2">
<kbd class="px-2 py-1 text-xs font-semibold text-white bg-slate-700 border border-slate-600 rounded-md shadow-sm font-mono">;</kbd>
<span>Command Prefix</span>
</div>
</div>
</div>
<div class="flex flex-col sm:flex-row gap-4 justify-center lg:justify-start">
<a href="#"
class="dynamic-dl-btn inline-flex justify-center items-center py-3 px-6 text-base font-bold text-white rounded-xl bg-lambda-red hover:bg-lambda-dark shadow-lg shadow-lambda-red/30 transition-all duration-300 transform hover:-translate-y-1">
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg>
<span class="mr-2">Download <span class="dynamic-mod-ver">...</span></span>
<span class="text-xs bg-black/20 px-2 py-1 rounded text-white/90 font-mono inline-flex items-center gap-1">
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" aria-hidden="true">
<rect x="4" y="8" width="16" height="12" fill="#8B4513"/>
<rect x="4" y="4" width="16" height="4" fill="#228B22"/>
<rect x="6" y="5" width="2" height="2" fill="#90EE90"/>
<rect x="10" y="6" width="2" height="1" fill="#90EE90"/>
<rect x="15" y="5" width="1" height="2" fill="#90EE90"/>
</svg>
<span class="dynamic-mc-ver">...</span>
</span>
</a>
<a href="https://github.com/lambda-client/lambda"
class="inline-flex justify-center items-center py-3 px-6 text-base font-bold text-white rounded-xl bg-slate-800 border border-slate-700 hover:bg-slate-700 transition-all duration-300 transform hover:-translate-y-1">
<svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path></svg>
GitHub
</a>
<a href="https://discord.gg/3y3ah5BtjB"
class="inline-flex justify-center items-center py-3 px-6 text-base font-bold text-white rounded-xl bg-[#5865F2] hover:bg-[#4752C4] transition-all duration-300 transform hover:-translate-y-1">
<svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.772-.6083 1.1588a18.2915 18.2915 0 00-7.6511 0 13.7825 13.7825 0 00-.6146-1.1588.077.077 0 00-.0785-.0371 19.7738 19.7738 0 00-4.8852 1.5151.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561 19.968 19.968 0 005.9937 3.0337.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057 13.2553 13.2553 0 01-1.879-.8914.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286 20.005 20.005 0 005.9947-3.0338.077.077 0 00.0322-.0543c.49-5.177-1.3234-9.0207-3.5429-13.6827a.063.063 0 00-.032-.0277zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.419-2.1568 2.419zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.419-2.1568 2.419z"/></svg>
Discord
</a>
</div>
</div>
<div class="hidden lg:block relative z-0">
<div class="hero-scene" role="img" aria-label="Interactive 3D voxel building demo">
<div class="scene-3d">
<div class="voxel-world" id="voxel-world">
</div>
</div>
<div class="absolute inset-0 bg-lambda-red/10 blur-3xl -z-10 rounded-full"></div>
</div>
</div>
</div>
</section>
<section id="features" class="relative py-24 bg-slate-900/60 border-t border-white/5 backdrop-blur-md">
<div class="max-w-7xl mx-auto px-6">
<h2 class="text-3xl md:text-4xl font-bold text-center text-white mb-16">
Features
</h2>
<div class="grid md:grid-cols-2 gap-6 reveal-children">
<div class="reveal bg-slate-950/80 backdrop-blur p-6 rounded-xl border border-slate-800 hover:border-lambda-pink/40 transition-colors group">
<div class="flex items-center gap-4 mb-4">
<div class="w-12 h-12 bg-rose-900/30 text-lambda-pink rounded-lg flex items-center justify-center shrink-0 group-hover:scale-110 transition-transform">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.384-.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"></path></svg>
</div>
<h3 class="text-xl font-bold text-white">Automation Engine</h3>
</div>
<p class="text-slate-400 text-sm leading-relaxed">
Lambda can <span class="text-lambda-pink">autonomously build structures</span>. We use <strong>Litematica</strong> as an interface, while our building engine handles the complex orchestration, block states, and rotations.
</p>
</div>
<div class="reveal bg-slate-950/80 backdrop-blur p-6 rounded-xl border border-slate-800 hover:border-lambda-pink/40 transition-colors group">
<div class="flex items-center gap-4 mb-4">
<div class="w-12 h-12 bg-rose-900/30 text-lambda-pink rounded-lg flex items-center justify-center shrink-0 group-hover:scale-110 transition-transform">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg>
</div>
<h3 class="text-xl font-bold text-white">Unmatched Performance</h3>
</div>
<p class="text-slate-400 text-sm leading-relaxed">
Optimized rendering pipelines using batched rendering for superfast ESP. Modern frameworks ensure speed and responsiveness.
</p>
</div>
<div class="reveal bg-slate-950/80 backdrop-blur p-6 rounded-xl border border-slate-800 hover:border-lambda-pink/40 transition-colors group">
<div class="flex items-center gap-4 mb-4">
<div class="w-12 h-12 bg-rose-900/30 text-lambda-pink rounded-lg flex items-center justify-center shrink-0 group-hover:scale-110 transition-transform">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"></path></svg>
</div>
<h3 class="text-xl font-bold text-white">Sophisticated UX</h3>
</div>
<p class="text-slate-400 text-sm leading-relaxed">
Fine-tune over <strong>1000+ settings</strong> with the clean <strong>Dear ImGui</strong> interface. Use Automation Profiles to switch complex configs instantly.
</p>
</div>
<div class="reveal bg-slate-950/80 backdrop-blur p-6 rounded-xl border border-slate-800 hover:border-lambda-pink/40 transition-colors group">
<div class="flex items-center gap-4 mb-4">
<div class="w-12 h-12 bg-rose-900/30 text-lambda-pink rounded-lg flex items-center justify-center shrink-0 group-hover:scale-110 transition-transform">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path></svg>
</div>
<h3 class="text-xl font-bold text-white">Safety & Tools</h3>
</div>
<p class="text-slate-400 text-sm leading-relaxed">
Built with <strong>Grim Anticheat</strong> compatibility in mind. Includes the new <strong>HighwayTools</strong>, rewritten to use the powerful build engine for efficient maintenance.
</p>
</div>
</div>
</div>
</section>
<section id="versions" class="py-24 max-w-7xl mx-auto px-6 reveal">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold text-white mb-4">Version History</h2>
<p class="text-slate-400">Download stable releases or try out the latest development snapshots.</p>
</div>
<div class="grid md:grid-cols-2 gap-8">
<!-- Stable Releases column -->
<div>
<h3 class="text-xl font-bold text-white mb-6 flex items-center gap-2">
<svg class="w-5 h-5 text-lambda-blue" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
Stable Releases
</h3>
<div id="release-list" class="space-y-3">
<div class="skeleton-card bg-slate-900/50 border border-slate-800 rounded-lg p-4 flex items-center justify-between animate-pulse">
<div>
<div class="h-5 w-20 bg-slate-700 rounded mb-2"></div>
<div class="h-4 w-16 bg-slate-800 rounded"></div>
</div>
<div class="h-9 w-28 bg-slate-800 rounded-md"></div>
</div>
<div class="skeleton-card bg-slate-900/50 border border-slate-800 rounded-lg p-4 flex items-center justify-between animate-pulse">
<div>
<div class="h-5 w-24 bg-slate-700 rounded mb-2"></div>
<div class="h-4 w-16 bg-slate-800 rounded"></div>
</div>
<div class="h-9 w-28 bg-slate-800 rounded-md"></div>
</div>
<div class="skeleton-card bg-slate-900/50 border border-slate-800 rounded-lg p-4 flex items-center justify-between animate-pulse">
<div>
<div class="h-5 w-16 bg-slate-700 rounded mb-2"></div>
<div class="h-4 w-16 bg-slate-800 rounded"></div>
</div>
<div class="h-9 w-28 bg-slate-800 rounded-md"></div>
</div>
</div>
</div>
<!-- Development Snapshots column -->
<div>
<h3 class="text-xl font-bold text-white mb-6 flex items-center gap-2">
<svg class="w-5 h-5 text-amber-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.384-.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"></path></svg>
Development Snapshots
</h3>
<div id="snapshot-list" class="space-y-3">
<div class="skeleton-card bg-slate-900/50 border border-slate-800 rounded-lg p-4 flex items-center justify-between animate-pulse">
<div>
<div class="h-5 w-20 bg-slate-700 rounded mb-2"></div>
<div class="h-4 w-16 bg-slate-800 rounded"></div>
</div>
<div class="h-9 w-28 bg-slate-800 rounded-md"></div>
</div>
<div class="skeleton-card bg-slate-900/50 border border-slate-800 rounded-lg p-4 flex items-center justify-between animate-pulse">
<div>
<div class="h-5 w-24 bg-slate-700 rounded mb-2"></div>
<div class="h-4 w-16 bg-slate-800 rounded"></div>
</div>
<div class="h-9 w-28 bg-slate-800 rounded-md"></div>
</div>
<div class="skeleton-card bg-slate-900/50 border border-slate-800 rounded-lg p-4 flex items-center justify-between animate-pulse">
<div>
<div class="h-5 w-16 bg-slate-700 rounded mb-2"></div>
<div class="h-4 w-16 bg-slate-800 rounded"></div>
</div>
<div class="h-9 w-28 bg-slate-800 rounded-md"></div>
</div>
</div>
</div>
</div>
</section>
<!-- Discord Community Section -->
<section class="max-w-4xl mx-auto px-6 py-16 reveal">
<div class="text-center mb-8">
<h2 class="text-2xl md:text-3xl font-bold text-white mb-4">Join the Community</h2>
<p class="text-slate-400">Get support, share configs, and stay updated with development.</p>
</div>
<div class="flex justify-center">
<a href="https://discord.gg/3y3ah5BtjB" class="block hover:opacity-90 transition-opacity">
<img src="https://invidget.switchblade.xyz/3y3ah5BtjB"
alt="Join the Lambda Client Discord server"
class="rounded-xl shadow-2xl shadow-[#5865F2]/20 max-w-full"
loading="lazy">
</a>
</div>
</section>
<section id="install" class="max-w-4xl mx-auto px-6 py-24 border-t border-white/5 reveal">
<h2 class="text-3xl font-bold text-white mb-12 text-center">Installation</h2>
<div class="bg-slate-950/80 backdrop-blur rounded-3xl p-8 border border-slate-800 relative z-10">
<ol class="relative border-s border-slate-700 ml-3 space-y-8">
<li class="ms-8 group">
<span class="absolute flex items-center justify-center w-8 h-8 bg-slate-800 border-2 border-lambda-red rounded-full -start-4 ring-4 ring-slate-900">
<span class="text-sm font-bold text-white">1</span>
</span>
<h3 class="text-lg font-bold text-white">Minecraft <span class="dynamic-mc-ver">...</span></h3>
<p class="text-slate-400 text-sm">Install the correct version via the official launcher.</p>
</li>
<li class="ms-8 group">
<span class="absolute flex items-center justify-center w-8 h-8 bg-slate-800 border-2 border-lambda-red rounded-full -start-4 ring-4 ring-slate-900">
<span class="text-sm font-bold text-white">2</span>
</span>
<h3 class="text-lg font-bold text-white">Fabric Loader</h3>
<p class="text-slate-400 text-sm">Download and install the latest Fabric version.</p>
</li>
<li class="ms-8 group">
<span class="absolute flex items-center justify-center w-8 h-8 bg-slate-800 border-2 border-lambda-red rounded-full -start-4 ring-4 ring-slate-900">
<span class="text-sm font-bold text-white">3</span>
</span>
<h3 class="text-lg font-bold text-white">Get Lambda</h3>
<p class="text-slate-400 text-sm">Download the <code class="bg-slate-800 px-1 rounded text-lambda-pink">.jar</code> file from the buttons above.</p>
</li>
<li class="ms-8 group">
<span class="absolute flex items-center justify-center w-8 h-8 bg-slate-800 border-2 border-lambda-red rounded-full -start-4 ring-4 ring-slate-900">
<span class="text-sm font-bold text-white">4</span>
</span>
<h3 class="text-lg font-bold text-white">Launch</h3>
<p class="text-slate-400 text-sm">Place in <code class="bg-slate-800 px-1 rounded text-slate-300">.minecraft/mods</code> and start the game.</p>
</li>
</ol>
</div>
</section>
</main>
<footer class="bg-slate-950/90 backdrop-blur border-t border-slate-900 py-10 relative z-10">
<div class="max-w-screen-xl mx-auto flex flex-col md:flex-row items-center justify-between px-6 gap-6">
<div class="flex items-center gap-2">
<img src="https://raw.githubusercontent.com/lambda-client/assets/refs/heads/main/lambda%20logo%20color.svg" class="h-6 w-auto grayscale opacity-50" alt="Lambda Logo">
<span class="text-sm text-slate-600">
© 2026 Lambda. Not affiliated with Mojang.
</span>
</div>
<ul class="flex flex-wrap justify-center gap-8 text-sm font-medium text-slate-500">
<li><a href="https://discord.gg/3y3ah5BtjB" class="hover:text-lambda-pink transition-colors" aria-label="Discord">Discord</a></li>
<li><a href="https://github.com/lambda-client" class="hover:text-lambda-pink transition-colors" aria-label="GitHub">GitHub</a></li>
<li><a href="https://app.element.io/#/room/#lambda-client:matrix.org" class="hover:text-lambda-pink transition-colors" aria-label="Matrix chat">Matrix</a></li>
</ul>
</div>
</footer>
<script>
// --- MOBILE MENU TOGGLE ---
document.getElementById('mobile-menu-btn').addEventListener('click', () => {
const menu = document.getElementById('mobile-menu');
menu.classList.toggle('open');
const btn = document.getElementById('mobile-menu-btn');
btn.setAttribute('aria-expanded', menu.classList.contains('open'));
});
// --- SCROLL REVEAL ---
document.addEventListener('DOMContentLoaded', () => {
const revealObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
revealObserver.unobserve(entry.target);
}
});
}, { threshold: 0.15 });
document.querySelectorAll('.reveal').forEach(el => revealObserver.observe(el));
});
// --- ACTIVE NAV HIGHLIGHTING ---
document.addEventListener('DOMContentLoaded', () => {
const sections = document.querySelectorAll('section[id]');
const navLinks = document.querySelectorAll('nav a[href^="#"]');
const navObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const id = entry.target.id;
navLinks.forEach(link => {
if (link.getAttribute('href') === `#${id}`) {
link.classList.add('text-lambda-pink');
link.classList.remove('text-slate-300');
} else {
link.classList.remove('text-lambda-pink');
link.classList.add('text-slate-300');
}
});
}
});
}, { rootMargin: '-40% 0px -40% 0px' });
sections.forEach(section => navObserver.observe(section));
});
// --- 3D HERO SCENE (LAZY-LOADED) ---
document.addEventListener('DOMContentLoaded', () => {
const heroScene = document.querySelector('.hero-scene');
if (!heroScene) return;
let sceneInitialized = false;
const sceneObserver = new IntersectionObserver((entries) => {
if (entries[0].isIntersecting && !sceneInitialized) {
sceneInitialized = true;
sceneObserver.disconnect();
initVoxelScene();
}
}, { threshold: 0.1 });
sceneObserver.observe(heroScene);
function initVoxelScene() {
const world = document.getElementById('voxel-world');
const scene = document.querySelector('.scene-3d');
if (!world || !scene) return;
const BLOCK_SIZE = 70;
const MAX_BLOCKS = 30;
const SPAWN_RADIUS = 5;
const voxels = new Map();
let autoSpawn = true;
let hoveredVoxel = null;
let idleTimeout = null;
const IDLE_TIME = 5000;
function resetIdleTimer() {
if (idleTimeout) clearTimeout(idleTimeout);
idleTimeout = setTimeout(() => { autoSpawn = true; }, IDLE_TIME);
}
function createVoxel(x, y, z, isManual = false) {
const key = `${x},${y},${z}`;
if (voxels.has(key)) return false;
if (!isManual && voxels.size >= MAX_BLOCKS) return false;
const voxel = document.createElement('div');
voxel.className = 'voxel placing';
voxel.dataset.x = x; voxel.dataset.y = y; voxel.dataset.z = z;
const tx = x * BLOCK_SIZE, ty = y * BLOCK_SIZE, tz = z * BLOCK_SIZE;
voxel.style.transform = `translate3d(${tx}px, ${ty}px, ${tz}px)`;
['front', 'back', 'left', 'right', 'top', 'bottom'].forEach(face => {
const div = document.createElement('div');
div.className = `voxel-face ${face}`;
div.dataset.face = face;
voxel.appendChild(div);
});
world.appendChild(voxel);
voxels.set(key, { x, y, z, element: voxel, timeout: null });
setTimeout(() => {
voxel.classList.remove('placing');
voxel.classList.add('solid');
}, 300);
if (!isManual && autoSpawn) {
const lifetime = 3000 + Math.random() * 3000;
const voxelData = voxels.get(key);
voxelData.timeout = setTimeout(() => breakVoxel(x, y, z), lifetime);
}
return true;
}
function breakVoxel(x, y, z) {
const key = `${x},${y},${z}`;
const voxelData = voxels.get(key);
if (!voxelData) return;
if (voxelData.timeout) clearTimeout(voxelData.timeout);
const voxel = voxelData.element;
voxel.classList.remove('solid');
voxel.classList.add('breaking');
setTimeout(() => {
voxel.remove();
voxels.delete(key);
if (voxels.size === 0) {
setTimeout(() => { autoSpawn = true; createVoxel(0, 0, 0); }, 500);
}
}, 500);
}
function getAdjacentPosition(x, y, z, face) {
switch(face) {
case 'front': return { x, y, z: z + 1 };
case 'back': return { x, y, z: z - 1 };
case 'left': return { x: x - 1, y, z };
case 'right': return { x: x + 1, y, z };
case 'top': return { x, y: y - 1, z };
case 'bottom': return { x, y: y + 1, z };
default: return { x, y, z };
}
}
scene.addEventListener('click', (e) => {
if (e.target.classList.contains('voxel-face')) {
e.preventDefault();
const voxel = e.target.parentElement;
breakVoxel(parseInt(voxel.dataset.x), parseInt(voxel.dataset.y), parseInt(voxel.dataset.z));
autoSpawn = false;
resetIdleTimer();
}
});
scene.addEventListener('contextmenu', (e) => {
e.preventDefault();
if (e.target.classList.contains('voxel-face')) {
const voxel = e.target.parentElement;
const pos = getAdjacentPosition(parseInt(voxel.dataset.x), parseInt(voxel.dataset.y), parseInt(voxel.dataset.z), e.target.dataset.face);
createVoxel(pos.x, pos.y, pos.z, true);
autoSpawn = false;
resetIdleTimer();
}
});
scene.addEventListener('mouseover', (e) => {
if (e.target.classList.contains('voxel-face')) {
const voxel = e.target.parentElement;
if (hoveredVoxel && hoveredVoxel !== voxel) hoveredVoxel.classList.remove('hovered');
voxel.classList.add('hovered');
hoveredVoxel = voxel;
}
});
scene.addEventListener('mouseout', (e) => {
if (e.target.classList.contains('voxel-face')) {
const voxel = e.target.parentElement;
setTimeout(() => {
if (hoveredVoxel === voxel && !voxel.matches(':hover')) {
voxel.classList.remove('hovered');
hoveredVoxel = null;
}
}, 10);
}
});
function getRandomNeighbor() {
if (voxels.size === 0) return { x: 0, y: 0, z: 0 };
const centerVoxels = Array.from(voxels.values()).filter(v => Math.sqrt(v.x * v.x + v.y * v.y + v.z * v.z) <= 2);
const candidates = centerVoxels.length > 0 ? centerVoxels : Array.from(voxels.values());
const base = candidates[Math.floor(Math.random() * candidates.length)];
const directions = [{x: 1,y: 0,z: 0}, {x: -1,y: 0,z: 0}, {x: 0,y: 1,z: 0}, {x: 0,y: -1,z: 0}, {x: 0,y: 0,z: 1}, {x: 0,y: 0,z: -1}];
const dir = directions[Math.floor(Math.random() * directions.length)];
return { x: base.x + dir.x, y: base.y + dir.y, z: base.z + dir.z };
}
function spawnVoxel() {
if (!autoSpawn) return;
const pos = getRandomNeighbor();
if (Math.sqrt(pos.x * pos.x + pos.y * pos.y + pos.z * pos.z) <= SPAWN_RADIUS) {
createVoxel(pos.x, pos.y, pos.z, false);
}
}
createVoxel(0, 0, 0);
setInterval(() => {
if (autoSpawn && voxels.size < 3) createVoxel(0, 0, 0);
spawnVoxel();
}, 400);
const tooltip = document.createElement('div');
tooltip.className = 'absolute top-4 left-1/2 transform -translate-x-1/2 text-xs text-slate-400 bg-slate-900/80 px-3 py-1 rounded-lg backdrop-blur-sm pointer-events-none';
tooltip.innerHTML = '<span class="text-lambda-pink">Left-click:</span> Break block • <span class="text-lambda-blue">Right-click:</span> Place block';
heroScene.appendChild(tooltip);
}
});
// --- MAVEN DATA FETCHING LOGIC ---
document.addEventListener('DOMContentLoaded', () => {
const MAVEN_BASE = 'https://maven.lambda-client.org';
const GROUP_ID = 'com.lambda';
const ARTIFACT_ID = 'lambda';
const GITHUB_RELEASES = 'https://github.com/lambda-client/lambda/releases';
const FETCH_TIMEOUT = 5000; // 5 second timeout
function fetchWithTimeout(url, timeoutMs = FETCH_TIMEOUT) {
const controller = new AbortController();
const timer = setTimeout(() => controller.abort(), timeoutMs);
return fetch(url, { signal: controller.signal }).finally(() => clearTimeout(timer));
}
async function fetchMavenMetadata(repo) {
const groupPath = GROUP_ID.replace(/\./g, '/');
const url = `${MAVEN_BASE}/${repo}/${groupPath}/${ARTIFACT_ID}/maven-metadata.xml`;
try {
const res = await fetchWithTimeout(url);
if (!res.ok) return null;
const text = await res.text();
const parser = new DOMParser();
const xml = parser.parseFromString(text, "text/xml");
const versions = Array.from(xml.querySelectorAll("version")).map(v => v.textContent);
const releaseNode = xml.querySelector("release");
return {
versions: versions,
latestRelease: releaseNode ? releaseNode.textContent : (versions.length > 0 ? versions[versions.length - 1] : null)
};
} catch (e) {
console.warn(`Could not load metadata from ${repo} repo:`, e);
return null;
}
}
async function fetchExactSnapshotJar(version) {
const groupPath = GROUP_ID.replace(/\./g, '/');
const url = `${MAVEN_BASE}/snapshots/${groupPath}/${ARTIFACT_ID}/${version}/maven-metadata.xml`;
try {
const res = await fetchWithTimeout(url);
if (!res.ok) return null;
const text = await res.text();
const parser = new DOMParser();
const xml = parser.parseFromString(text, "text/xml");
const snapshotVersions = Array.from(xml.querySelectorAll("snapshotVersion"));
let jarValue = null;
for (const sv of snapshotVersions) {
const ext = sv.querySelector("extension")?.textContent;
const classifier = sv.querySelector("classifier");
if (ext === "jar" && !classifier) {
jarValue = sv.querySelector("value")?.textContent;
break;
}
}
if (jarValue) {
return `${MAVEN_BASE}/snapshots/${groupPath}/${ARTIFACT_ID}/${version}/${ARTIFACT_ID}-${jarValue}.jar`;
}
return null;
} catch (e) {
console.warn(`Could not load specific snapshot metadata for ${version}:`, e);
return null;
}
}
const getMcVersion = (ver) => ver.includes('+') ? ver.split('+')[1].replace('-SNAPSHOT', '') : "Unknown";
const getModVersion = (ver) => ver.split('+')[0];
function showError(containerId) {
const container = document.getElementById(containerId);
container.innerHTML = `
<div class="text-slate-500 italic text-sm p-4 bg-slate-900/30 rounded-lg border border-slate-800/50 flex flex-col items-center gap-3">
<p>Unable to reach the server.</p>
<a href="${GITHUB_RELEASES}" class="inline-flex items-center gap-2 px-4 py-2 bg-slate-800 hover:bg-slate-700 text-white rounded-lg border border-slate-700 transition-colors text-sm font-medium not-italic">
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path></svg>
Check GitHub
</a>
</div>
`;
}
function renderVersionCard(ver, dlUrl, btnText, style, isLatest = false) {
const borderHover = style === 'release' ? 'hover:border-lambda-blue/50' : 'hover:border-amber-500/30';
const titleColor = style === 'release' ? 'text-white' : 'text-slate-300';
const tagColor = style === 'release' ? 'text-slate-400' : 'text-slate-500';
const btnClass = style === 'release'
? 'bg-lambda-blue/10 text-lambda-blue border border-lambda-blue/20 hover:bg-lambda-blue hover:text-white'
: 'bg-slate-800 text-amber-500 hover:bg-slate-700 border border-slate-700';
const latestBadge = isLatest
? `<span class="text-[10px] font-bold uppercase tracking-wider px-1.5 py-0.5 rounded ${style === 'release' ? 'bg-lambda-blue/20 text-lambda-blue' : 'bg-amber-500/20 text-amber-400'}">Latest</span>`
: '';
return `
<div class="bg-slate-900/50 border border-slate-800 rounded-lg p-4 flex items-center justify-between ${borderHover} transition-colors">
<div>
<div class="font-bold ${titleColor} text-lg flex items-center gap-2">v${getModVersion(ver)} ${latestBadge}</div>
<div class="text-xs font-mono ${tagColor} bg-slate-800/50 inline-block px-2 py-0.5 rounded mt-1">MC ${getMcVersion(ver)}</div>
</div>
<a href="${dlUrl}" class="px-4 py-2 ${btnClass} rounded-md text-sm font-medium transition-colors shrink-0">
${btnText}
</a>
</div>
`;
}
// Fetch and render releases and snapshots independently
async function loadReleases() {
const container = document.getElementById('release-list');
try {
const relData = await fetchMavenMetadata('releases');
const releases = relData?.versions || [];
if (releases.length === 0) {
container.innerHTML = `<div class="text-slate-500 italic text-sm p-4 bg-slate-900/30 rounded-lg border border-slate-800/50">No releases published yet. Try a snapshot!</div>`;
return { latestRelease: null };
}
let html = '';
[...releases].reverse().forEach((ver, i) => {
const dlUrl = `${GITHUB_RELEASES}/download/${encodeURIComponent(ver)}/${ARTIFACT_ID}-${ver}.jar`;
html += renderVersionCard(ver, dlUrl, 'Download JAR', 'release', i === 0);
});
container.innerHTML = html;
const latest = relData.latestRelease || releases[releases.length - 1];
return { latestRelease: latest };
} catch (e) {
console.warn('Failed to fetch releases:', e);
showError('release-list');
return { latestRelease: null };
}
}
async function loadSnapshots() {
const container = document.getElementById('snapshot-list');
try {
const snapData = await fetchMavenMetadata('snapshots');
const snapshots = snapData?.versions || [];
if (snapshots.length === 0) {
container.innerHTML = `<div class="text-slate-500 italic text-sm p-4 bg-slate-900/30 rounded-lg border border-slate-800/50">No snapshots found.</div>`;
return { latestSnapshot: null };
}
const reversed = [...snapshots].reverse();
const MAX_EXACT_FETCHES = 3;
const groupPath = GROUP_ID.replace(/\./g, '/');
// Fetch exact JARs for the latest few in parallel
const exactJarUrls = await Promise.all(
reversed.slice(0, MAX_EXACT_FETCHES).map(ver => fetchExactSnapshotJar(ver))
);
let html = '';
reversed.forEach((ver, i) => {
let finalUrl, btnText;
if (i < MAX_EXACT_FETCHES && exactJarUrls[i]) {
finalUrl = exactJarUrls[i];
btnText = 'Download JAR';
} else {
finalUrl = `${MAVEN_BASE}/#/snapshots/${groupPath}/${ARTIFACT_ID}/${ver}`;
btnText = 'View Folder';
}
html += renderVersionCard(ver, finalUrl, btnText, 'snapshot', i === 0);
});
container.innerHTML = html;
return { latestSnapshot: snapshots[snapshots.length - 1], latestSnapshotJar: exactJarUrls[0] };
} catch (e) {
console.warn('Failed to fetch snapshots:', e);
showError('snapshot-list');
return { latestSnapshot: null };
}
}
async function initVersions() {
// Fire both columns independently so each shows its own skeletons -> content
const [relResult, snapResult] = await Promise.all([
loadReleases(),
loadSnapshots()
]);
// Update hero/nav download buttons with the best available version
const latestRelease = relResult.latestRelease;
const latestSnapshot = snapResult.latestSnapshot;
let isSnapshotFallback = false;
let best;
if (latestRelease) {
best = latestRelease;
} else if (latestSnapshot) {
best = latestSnapshot;
isSnapshotFallback = true;
} else {
// Both failed - fallback hero to GitHub
document.querySelectorAll('.dynamic-mod-title').forEach(el => el.textContent = 'Check GitHub for latest');
document.querySelectorAll('.dynamic-dl-btn').forEach(el => el.href = GITHUB_RELEASES);
document.querySelectorAll('.dynamic-mod-ver').forEach(el => el.textContent = '');
return;
}
const mcVer = getMcVersion(best);
const modVer = getModVersion(best);
let primaryDlUrl;
if (isSnapshotFallback) {
primaryDlUrl = snapResult.latestSnapshotJar || GITHUB_RELEASES;
} else {
primaryDlUrl = `${GITHUB_RELEASES}/download/${encodeURIComponent(best)}/${ARTIFACT_ID}-${best}.jar`;
}
document.querySelectorAll('.dynamic-dl-btn').forEach(el => el.href = primaryDlUrl);
document.querySelectorAll('.dynamic-mc-ver').forEach(el => el.textContent = mcVer);
document.querySelectorAll('.dynamic-mod-ver').forEach(el => el.textContent = isSnapshotFallback ? `v${modVer} (Snap)` : `v${modVer}`);
document.querySelectorAll('.dynamic-mod-title').forEach(el => el.textContent = isSnapshotFallback ? `Latest Snapshot: ${modVer}` : `Release ${modVer}`);
}
initVersions();
});
</script>
</body>
</html>