-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1439 lines (1287 loc) · 66.4 KB
/
index.html
File metadata and controls
1439 lines (1287 loc) · 66.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="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GitHub Wrapped - Tu año en código</title>
<!-- SEO Meta Tags -->
<meta name="description" content="Descubre tu año en GitHub con estadísticas visuales estilo Spotify Wrapped. Contribuciones, lenguajes favoritos, repos destacados y más.">
<meta name="keywords" content="GitHub, Wrapped, statistics, developer, coding, contributions, year in review">
<meta name="author" content="GitHub Wrapped">
<meta name="theme-color" content="#8b5cf6">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://alexbrea.github.io/github-wrapper/">
<meta property="og:title" content="GitHub Wrapped - Tu año en código">
<meta property="og:description" content="Descubre tu año en GitHub con estadísticas visuales estilo Spotify Wrapped. Contribuciones, lenguajes favoritos y más.">
<meta property="og:image" content="https://alexbrea.github.io/github-wrapper/og-image.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://alexbrea.github.io/github-wrapper/">
<meta property="twitter:title" content="GitHub Wrapped - Tu año en código">
<meta property="twitter:description" content="Descubre tu año en GitHub con estadísticas visuales estilo Spotify Wrapped.">
<meta property="twitter:image" content="https://alexbrea.github.io/github-wrapper/og-image.png">
<!-- Favicon SVG inline -->
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%238b5cf6'/%3E%3Cstop offset='100%25' style='stop-color:%23ec4899'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100' height='100' rx='20' fill='%230d1117'/%3E%3Cpath d='M50 10C27.9 10 10 27.9 10 50c0 17.7 11.5 32.7 27.4 38 2 .4 2.7-.9 2.7-1.9v-6.7c-11.1 2.4-13.5-5.4-13.5-5.4-1.8-4.6-4.5-5.8-4.5-5.8-3.6-2.5.3-2.4.3-2.4 4 .3 6.1 4.1 6.1 4.1 3.6 6.1 9.4 4.4 11.7 3.3.4-2.6 1.4-4.4 2.5-5.4-8.9-1-18.2-4.4-18.2-19.7 0-4.4 1.6-7.9 4.1-10.7-.4-1-1.8-5.1.4-10.6 0 0 3.3-1.1 10.9 4.1 3.2-.9 6.6-1.3 10-1.3s6.8.5 10 1.3c7.6-5.2 10.9-4.1 10.9-4.1 2.2 5.5.8 9.6.4 10.6 2.6 2.8 4.1 6.4 4.1 10.7 0 15.3-9.3 18.7-18.2 19.7 1.4 1.2 2.7 3.6 2.7 7.3v10.9c0 1.1.7 2.3 2.7 1.9C78.5 82.7 90 67.7 90 50 90 27.9 72.1 10 50 10z' fill='url(%23g)'/%3E%3C/svg%3E">
<!-- PWA Manifest -->
<link rel="manifest" href="manifest.json">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="GitHub Wrapped">
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.4.1/dist/html2canvas.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
<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=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap"
rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
'outfit': ['Outfit', 'sans-serif'],
'mono': ['Space Mono', 'monospace'],
},
colors: {
'gh': {
'dark': '#0d1117',
'darker': '#010409',
'border': '#30363d',
'text': '#c9d1d9',
'green': '#238636',
'green-light': '#3fb950',
'purple': '#8b5cf6',
'pink': '#ec4899',
'orange': '#f97316',
'cyan': '#06b6d4',
'yellow': '#eab308',
}
},
animation: {
'slide-down': 'slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards',
'fade-in': 'fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards',
'float': 'float 4s ease-in-out infinite',
'gradient-shift': 'gradientShift 8s ease infinite',
},
keyframes: {
slideDown: {
'0%': {
transform: 'translateY(-30px)',
opacity: '0'
},
'100%': {
transform: 'translateY(0)',
opacity: '1'
},
},
fadeIn: {
'0%': {
opacity: '0'
},
'100%': {
opacity: '1'
},
},
float: {
'0%, 100%': {
transform: 'translateY(0)'
},
'50%': {
transform: 'translateY(-8px)'
},
},
gradientShift: {
'0%, 100%': {
backgroundPosition: '0% 50%'
},
'50%': {
backgroundPosition: '100% 50%'
},
},
}
}
}
}
</script>
<style>
[x-cloak] {
display: none !important;
}
.gradient-text {
background: linear-gradient(135deg, #8b5cf6, #ec4899, #f97316);
background-size: 200% 200%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: gradientShift 8s ease infinite;
}
.bg-gradient-animated {
background: linear-gradient(-45deg, #0d1117, #1a1f2e, #1e1b4b, #0d1117);
background-size: 400% 400%;
animation: gradientShift 15s ease infinite;
}
.glass {
background: rgba(13, 17, 23, 0.7);
backdrop-filter: blur(20px);
border: 1px solid rgba(48, 54, 61, 0.5);
}
.stat-card {
background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
border: 1px solid rgba(139, 92, 246, 0.3);
}
.contribution-cell {
transition: all 0.2s ease;
}
.contribution-cell:hover {
transform: scale(1.5);
z-index: 10;
}
.progress-bar {
transition: width 1.5s ease-out;
}
/* Smooth slide transitions */
.slide-transition {
transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.terminal-result {
opacity: 0;
transform: translateY(10px);
transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.terminal-result.visible {
opacity: 1;
transform: translateY(0);
}
.slide-container {
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
}
.slide {
scroll-snap-align: start;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #0d1117;
}
::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #484f58;
}
/* Terminal typing effect */
.terminal {
background: #0d1117;
border: 1px solid #30363d;
border-radius: 12px;
padding: 1rem 1.5rem;
font-family: 'Space Mono', monospace;
text-align: left;
max-width: 600px;
margin: 0 auto 2rem;
}
.terminal-header {
display: flex;
gap: 6px;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid #30363d;
}
.terminal-dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }
.terminal-line {
margin-bottom: 0.5rem;
min-height: 24px;
}
.terminal-prompt {
color: #7ee787;
}
.terminal-command {
color: #c9d1d9;
}
.terminal-cursor {
display: inline-block;
width: 8px;
height: 18px;
background: #58a6ff;
margin-left: 2px;
animation: blink 0.7s step-end infinite;
vertical-align: middle;
}
.terminal-output {
color: #8b949e;
min-height: 20px;
}
.terminal-result {
opacity: 0;
transition: opacity 0.5s ease;
}
.terminal-result.visible {
opacity: 1;
}
@keyframes blink {
50% { opacity: 0; }
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}
@keyframes float-slow {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.skeleton {
background: linear-gradient(90deg, #30363d 0%, #484f58 50%, #30363d 100%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
border-radius: 8px;
}
.animate-float-slow {
animation: float-slow 4s ease-in-out infinite;
}
.animate-pulse-glow {
animation: pulse-glow 2s ease-in-out infinite;
}
.loading-dots::after {
content: '';
animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
0%, 20% { content: ''; }
40% { content: '.'; }
60% { content: '..'; }
80%, 100% { content: '...'; }
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.number-animation {
display: inline-block;
}
@keyframes numberPop {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
.particles {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
pointer-events: none;
}
.particle {
position: absolute;
width: 4px;
height: 4px;
background: rgba(139, 92, 246, 0.5);
border-radius: 50%;
animation: float 6s ease-in-out infinite;
}
/* Mobile Responsive Styles */
@media (max-width: 640px) {
.terminal {
padding: 0.75rem 1rem;
font-size: 0.85rem;
max-width: 100%;
margin: 0 auto 1.5rem;
}
.terminal-dot {
width: 10px;
height: 10px;
}
.terminal-command {
font-size: 0.8rem;
word-break: break-all;
}
.terminal-output {
font-size: 0.85rem;
}
/* Smaller text on mobile */
h1 {
font-size: 2.5rem !important;
}
h2 {
font-size: 1.75rem !important;
}
/* Better spacing on mobile */
.glass {
padding: 1rem;
}
/* Navigation bar mobile */
.fixed.bottom-8 {
bottom: 1rem;
padding: 0.5rem 0.75rem;
}
/* Stats cards on mobile */
.stat-card {
padding: 1rem;
}
/* Export card adjustments */
#export-card {
padding: 1rem;
}
#export-card .glass {
padding: 1rem;
}
/* Share buttons on mobile */
.flex.flex-wrap.justify-center.gap-4 button {
padding: 0.75rem 1rem;
font-size: 0.875rem;
}
}
@media (max-width: 480px) {
/* Extra small screens */
.terminal {
font-size: 0.75rem;
padding: 0.5rem 0.75rem;
}
.terminal-command {
font-size: 0.7rem;
}
/* Grid adjustments */
.grid.grid-cols-2 {
grid-template-columns: 1fr;
}
/* Smaller avatars */
.w-32.h-32 {
width: 5rem;
height: 5rem;
}
.w-20.h-20 {
width: 4rem;
height: 4rem;
}
/* Day bars smaller */
.w-12 {
width: 2rem;
}
}
</style>
</head>
<body class="bg-gh-darker font-outfit text-gh-text min-h-screen overflow-x-hidden" x-data="githubWrapped()">
<!-- Particles Background -->
<div class="particles fixed inset-0 z-0">
<template x-for="i in 20" :key="i">
<div class="particle"
:style="`left: ${Math.random() * 100}%; top: ${Math.random() * 100}%; animation-delay: ${Math.random() * 5}s; animation-duration: ${5 + Math.random() * 5}s;`">
</div>
</template>
</div>
<!-- Landing Screen -->
<div x-show="currentSlide === 0" x-transition:enter="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-700"
x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
x-transition:leave="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-500"
x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0"
class="min-h-screen flex items-center justify-center relative z-10 p-4 md:p-6">
<div class="text-center px-6 max-w-2xl mx-auto">
<!-- Logo Animation -->
<div class="mb-8 animate-float-slow animate-pulse-glow rounded-full inline-block p-4">
<svg class="w-20 h-20 md:w-24 md:h-24 mx-auto text-white drop-shadow-lg" viewBox="0 0 24 24" fill="currentColor">
<path
d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
</svg>
</div>
<h1 class="text-4xl sm:text-5xl md:text-7xl font-black mb-3 md:mb-4" style="animation: fadeInUp 0.6s ease-out 0.2s both;">
<span class="gradient-text">GitHub</span>
<span class="text-white">Wrapped</span>
</h1>
<p class="font-mono text-sm text-gray-500 mb-2" x-show="displayMode === 'terminal'" style="animation: fadeInUp 0.6s ease-out 0.4s both;">
<span class="text-gh-green-light">$</span> git log --year=<span class="text-gh-purple" x-text="selectedYear"></span> --pretty
</p>
<p class="text-xl md:text-2xl text-gray-400 mb-2" x-show="displayMode === 'normal'" x-text="selectedYear" style="animation: fadeInUp 0.6s ease-out 0.4s both;"></p>
<p class="text-gray-500 mb-8" x-text="t('subtitle')" style="animation: fadeInUp 0.6s ease-out 0.5s both;"></p>
<!-- Language selector -->
<div class="flex justify-center gap-2 mb-6">
<button @click="setLang('es')"
:class="lang === 'es' ? 'bg-gh-purple text-white' : 'bg-gh-dark text-gray-400 hover:text-white'"
class="px-3 py-1 rounded-lg text-sm font-medium transition-all">
ES
</button>
<button @click="setLang('en')"
:class="lang === 'en' ? 'bg-gh-purple text-white' : 'bg-gh-dark text-gray-400 hover:text-white'"
class="px-3 py-1 rounded-lg text-sm font-medium transition-all">
EN
</button>
</div>
<!-- Public data warning -->
<div class="glass px-4 py-3 rounded-xl mb-8 text-sm text-left max-w-md mx-auto">
<p class="text-gray-400 flex items-start gap-2">
<svg class="w-5 h-5 text-gh-cyan flex-shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span x-text="t('tokenInfo')"></span>
</p>
</div>
<!-- Username Input -->
<div class="max-w-md mx-auto">
<div class="relative mb-4">
<input type="text" x-model="username" @keyup.enter="fetchData()"
:placeholder="t('usernamePlaceholder')"
class="w-full px-4 md:px-6 py-3 md:py-4 bg-gh-dark border-2 border-gh-border rounded-xl md:rounded-2xl text-white text-base md:text-lg placeholder-gray-500 focus:outline-none focus:border-gh-purple transition-all duration-300">
<span class="absolute right-4 top-1/2 -translate-y-1/2 text-gray-500">@</span>
</div>
<!-- Token Toggle -->
<div class="mb-4">
<button @click="showTokenInput = !showTokenInput"
class="text-sm text-gray-400 hover:text-gh-purple transition-colors flex items-center gap-2 mx-auto">
<svg class="w-4 h-4" :class="showTokenInput ? 'rotate-90' : ''" fill="none" stroke="currentColor"
viewBox="0 0 24 24" style="transition: transform 0.2s">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
<span x-text="showTokenInput ? (lang === 'es' ? 'Ocultar token' : 'Hide token') : t('addToken')"></span>
</button>
</div>
<!-- Token Input -->
<div x-show="showTokenInput" x-collapse class="mb-6">
<div class="relative mb-2">
<input :type="showToken ? 'text' : 'password'" x-model="token" placeholder="ghp_xxxxxxxxxxxx"
class="w-full px-6 py-3 bg-gh-dark border-2 border-gh-border rounded-xl text-white text-sm placeholder-gray-500 focus:outline-none focus:border-gh-green transition-all duration-300 pr-12">
<button @click="showToken = !showToken"
class="absolute right-4 top-1/2 -translate-y-1/2 text-gray-500 hover:text-white transition-colors">
<svg x-show="!showToken" 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="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z">
</path>
</svg>
<svg x-show="showToken" 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="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21">
</path>
</svg>
</button>
</div>
<p class="text-xs text-gray-500 text-left flex items-center gap-1">
<svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
</svg>
<span x-text="lang === 'es' ? 'El token se usa solo en tu navegador.' : 'Token is only used in your browser.'"></span>
<a href="https://github.com/settings/tokens/new?scopes=read:user,repo&description=GitHub%20Wrapped"
target="_blank" class="text-gh-purple hover:underline"
x-text="lang === 'es' ? 'Crear token →' : 'Create token →'">
</a>
</p>
</div>
<!-- Display Mode Selector -->
<div class="mb-6">
<p class="text-gray-500 text-sm mb-3" x-text="t('displayStyle')"></p>
<div class="flex gap-2 md:gap-3 justify-center">
<button @click="setDisplayMode('terminal')"
:class="displayMode === 'terminal' ? 'bg-gh-purple/20 border-gh-purple text-gh-purple' : 'bg-gh-dark border-gh-border text-gray-400 hover:border-gray-500'"
class="flex-1 py-2.5 md:py-3 px-3 md:px-4 border-2 rounded-lg md:rounded-xl transition-all duration-300 flex items-center justify-center gap-1.5 md:gap-2">
<svg class="w-4 h-4 md:w-5 md:h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/>
</svg>
<span class="font-mono text-xs md:text-sm" x-text="t('terminal')"></span>
</button>
<button @click="setDisplayMode('normal')"
:class="displayMode === 'normal' ? 'bg-gh-pink/20 border-gh-pink text-gh-pink' : 'bg-gh-dark border-gh-border text-gray-400 hover:border-gray-500'"
class="flex-1 py-2.5 md:py-3 px-3 md:px-4 border-2 rounded-lg md:rounded-xl transition-all duration-300 flex items-center justify-center gap-1.5 md:gap-2">
<svg class="w-4 h-4 md:w-5 md:h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"/>
</svg>
<span class="text-xs md:text-sm" x-text="t('classic')"></span>
</button>
</div>
</div>
<!-- Advanced Settings Toggle -->
<div class="mb-6">
<button @click="showAdvancedSettings = !showAdvancedSettings"
class="text-sm text-gray-400 hover:text-gh-cyan transition-colors flex items-center gap-2 mx-auto">
<svg class="w-4 h-4" :class="showAdvancedSettings ? 'rotate-90' : ''" fill="none" stroke="currentColor"
viewBox="0 0 24 24" style="transition: transform 0.2s">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
</svg>
<span x-text="t('advancedSettings')"></span>
</button>
</div>
<!-- Advanced Settings Panel -->
<div x-show="showAdvancedSettings"
x-transition:enter="transition ease-out duration-300"
x-transition:enter-start="opacity-0 transform -translate-y-2"
x-transition:enter-end="opacity-100 transform translate-y-0"
x-transition:leave="transition ease-in duration-200"
x-transition:leave-start="opacity-100 transform translate-y-0"
x-transition:leave-end="opacity-0 transform -translate-y-2"
class="mb-6">
<div class="glass p-4 rounded-xl space-y-4">
<!-- Year Selector -->
<div>
<label class="block text-gray-400 text-sm mb-2" x-text="t('selectYear')"></label>
<select x-model="selectedYear" @change="updateDateRange()"
class="w-full px-4 py-2 bg-gh-dark border border-gh-border rounded-lg text-white focus:outline-none focus:border-gh-purple">
<template x-for="year in availableYears" :key="year">
<option :value="year" x-text="year"></option>
</template>
</select>
</div>
<!-- Custom Date Range Toggle -->
<div class="flex items-center gap-3">
<input type="checkbox" x-model="customDateRange" id="customRange"
class="w-4 h-4 rounded border-gh-border bg-gh-dark text-gh-purple focus:ring-gh-purple">
<label for="customRange" class="text-gray-400 text-sm cursor-pointer" x-text="t('customRange')"></label>
</div>
<!-- Date Range Inputs -->
<div x-show="customDateRange" class="grid grid-cols-2 gap-3">
<div>
<label class="block text-gray-500 text-xs mb-1" x-text="t('startDateLabel')"></label>
<input type="date" x-model="startDate"
class="w-full px-3 py-2 bg-gh-dark border border-gh-border rounded-lg text-white text-sm focus:outline-none focus:border-gh-purple">
</div>
<div>
<label class="block text-gray-500 text-xs mb-1" x-text="t('endDateLabel')"></label>
<input type="date" x-model="endDate"
class="w-full px-3 py-2 bg-gh-dark border border-gh-border rounded-lg text-white text-sm focus:outline-none focus:border-gh-purple">
</div>
</div>
</div>
</div>
<button @click="fetchData()" :disabled="loading || (!username && !token)"
class="w-full py-3 md:py-4 px-6 md:px-8 bg-gradient-to-r from-gh-purple to-gh-pink rounded-xl md:rounded-2xl font-bold text-sm md:text-lg text-white hover:opacity-90 transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed transform hover:scale-[1.02] active:scale-[0.98]">
<span x-show="!loading" class="font-mono" x-text="(displayMode === 'terminal' ? t('startBtnTerminal') : t('startBtnClassic')) + ' ' + selectedYear"></span>
<span x-show="loading" class="flex items-center justify-center gap-2 font-mono">
<svg class="animate-spin h-5 w-5" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" fill="none">
</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>
<span class="loading-dots">> fetching data</span>
</span>
</button>
<!-- Error Message -->
<p x-show="error" x-text="error" class="mt-4 text-red-400 text-sm"></p>
</div>
</div>
</div>
<!-- Slides Container -->
<div x-show="currentSlide > 0 && data" x-cloak class="min-h-screen relative z-10">
<!-- Close Button -->
<button @click="reset()"
class="fixed top-6 right-6 z-50 p-2 glass rounded-full hover:bg-gh-border transition-colors">
<svg class="w-6 h-6" 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>
<!-- Slide 1: Welcome -->
<div x-show="currentSlide === 1" x-transition:enter="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-700"
x-transition:enter-start="opacity-0 translate-y-8" x-transition:enter-end="opacity-100 translate-y-0"
x-transition:leave="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-500"
x-transition:leave-start="opacity-100 translate-y-0" x-transition:leave-end="opacity-0 -translate-y-8"
class="min-h-screen flex items-center justify-center bg-gradient-animated p-4 md:p-6">
<div class="text-center max-w-2xl mx-auto px-4">
<!-- Terminal Mode -->
<template x-if="displayMode === 'terminal'">
<div>
<!-- Terminal primero -->
<div class="terminal mb-4 md:mb-8">
<div class="terminal-header">
<div class="terminal-dot red"></div>
<div class="terminal-dot yellow"></div>
<div class="terminal-dot green"></div>
</div>
<div class="terminal-line">
<span class="terminal-prompt">~$</span>
<span class="terminal-command" x-text="' ' + (currentSlide === 1 ? terminalText : '')"></span>
<span class="terminal-cursor" x-show="currentSlide === 1 && !terminalShowResult"></span>
</div>
<div class="terminal-output text-white font-bold text-lg"
x-show="terminalShowResult && currentSlide === 1"
x-text="'> ' + (data?.user?.login || '')"></div>
</div>
<!-- Avatar debajo del terminal -->
<div class="mb-4 md:mb-8 terminal-result" :class="{ 'visible': terminalShowResult && currentSlide === 1 }">
<img :src="data?.user?.avatar_url" :alt="data?.user?.name"
class="w-20 h-20 md:w-32 md:h-32 rounded-full mx-auto border-4 border-gh-purple shadow-2xl shadow-gh-purple/30">
</div>
<div class="terminal-result" :class="{ 'visible': terminalShowResult && currentSlide === 1 }">
<h2 class="text-2xl md:text-4xl lg:text-6xl font-black text-white mb-3 md:mb-4">
<span x-text="t('hello')"></span> <span class="gradient-text" x-text="data?.user?.name || data?.user?.login"></span>!
</h2>
<p class="text-base md:text-xl text-gray-400 mb-6 md:mb-8" x-text="t('welcomeMsg')"></p>
</div>
</div>
</template>
<!-- Classic Mode -->
<template x-if="displayMode === 'normal'">
<div>
<!-- Avatar en modo classic -->
<div class="mb-4 md:mb-8">
<img :src="data?.user?.avatar_url" :alt="data?.user?.name"
class="w-20 h-20 md:w-32 md:h-32 rounded-full mx-auto border-4 border-gh-purple shadow-2xl shadow-gh-purple/30">
</div>
<h2 class="text-4xl md:text-6xl font-black text-white mb-4">
<span x-text="t('hello')"></span> <span class="gradient-text" x-text="data?.user?.name || data?.user?.login"></span>!
</h2>
<p class="text-base md:text-xl text-gray-400 mb-6 md:mb-8" x-text="t('welcomeMsg')"></p>
</div>
</template>
<div class="grid grid-cols-3 gap-2 md:gap-4 terminal-result" :class="{ 'visible': displayMode === 'normal' || (terminalShowResult && currentSlide === 1) }">
<div class="glass px-3 md:px-6 py-2 md:py-3 rounded-lg md:rounded-xl">
<span class="text-gray-400 text-xs md:text-sm block" x-text="t('following')"></span>
<p class="text-xl md:text-2xl font-bold text-white" x-text="data?.user?.following"></p>
</div>
<div class="glass px-3 md:px-6 py-2 md:py-3 rounded-lg md:rounded-xl">
<span class="text-gray-400 text-xs md:text-sm block" x-text="t('followers')"></span>
<p class="text-xl md:text-2xl font-bold text-white" x-text="data?.user?.followers"></p>
</div>
<div class="glass px-3 md:px-6 py-2 md:py-3 rounded-lg md:rounded-xl">
<span class="text-gray-400 text-xs md:text-sm block" x-text="t('publicRepos')"></span>
<p class="text-xl md:text-2xl font-bold text-white" x-text="data?.user?.public_repos"></p>
</div>
</div>
</div>
</div>
<!-- Slide 2: Commits -->
<div x-show="currentSlide === 2" x-transition:enter="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-700"
x-transition:enter-start="opacity-0 translate-y-8" x-transition:enter-end="opacity-100 translate-y-0"
x-transition:leave="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-500"
x-transition:leave-start="opacity-100 translate-y-0" x-transition:leave-end="opacity-0 -translate-y-8"
class="min-h-screen flex items-center justify-center bg-gradient-animated p-4 md:p-6">
<div class="text-center max-w-3xl mx-auto px-4">
<!-- Terminal Mode -->
<template x-if="displayMode === 'terminal'">
<div class="terminal">
<div class="terminal-header">
<div class="terminal-dot red"></div>
<div class="terminal-dot yellow"></div>
<div class="terminal-dot green"></div>
</div>
<div class="terminal-line">
<span class="terminal-prompt">~$</span>
<span class="terminal-command" x-text="' ' + (currentSlide === 2 ? terminalText : '')"></span>
<span class="terminal-cursor" x-show="currentSlide === 2 && !terminalShowResult"></span>
</div>
<div class="terminal-output" x-text="currentSlide === 2 ? terminalOutput : ''"></div>
</div>
</template>
<!-- Normal Mode Header -->
<template x-if="displayMode === 'normal'">
<div>
<p class="text-gh-purple text-lg mb-4 font-mono" x-text="lang === 'es' ? '// Tu actividad' : '// Your activity'"></p>
<h2 class="text-xl md:text-3xl lg:text-5xl font-black text-white mb-8">
<span class="block text-4xl sm:text-5xl md:text-7xl lg:text-9xl gradient-text my-3 md:my-4" x-text="animatedCommits"></span>
<span class="text-2xl md:text-4xl" x-text="t('contributions')"></span>
</h2>
</div>
</template>
<!-- Terminal Mode Result -->
<template x-if="displayMode === 'terminal'">
<div class="terminal-result" :class="{ 'visible': terminalShowResult && currentSlide === 2 }">
<h2 class="text-2xl md:text-5xl font-black text-white mb-4">
<span class="block text-4xl sm:text-5xl md:text-7xl lg:text-9xl gradient-text my-3 md:my-4" x-text="animatedCommits"></span>
<span class="text-gray-400 text-xl md:text-2xl" x-text="t('contributions')"></span>
</h2>
</div>
</template>
<p class="text-gray-400 text-lg mb-8 terminal-result" :class="{ 'visible': terminalShowResult && currentSlide === 2 }">
<span x-show="data?.stats?.totalContributions > 500" class="inline-flex items-center gap-2"
x-text="lang === 'es' ? '¡Increíble! Eres una máquina de código' : 'Incredible! You are a code machine'"></span>
<span x-show="data?.stats?.totalContributions <= 500 && data?.stats?.totalContributions > 200"
class="inline-flex items-center gap-2"
x-text="lang === 'es' ? '¡Muy bien! Mantuviste un buen ritmo' : 'Great! You kept a good pace'"></span>
<span x-show="data?.stats?.totalContributions <= 200 && data?.stats?.totalContributions > 50"
class="inline-flex items-center gap-2"
x-text="lang === 'es' ? 'Cada commit cuenta, ¡sigue así!' : 'Every commit counts, keep going!'"></span>
<span x-show="data?.stats?.totalContributions <= 50" class="inline-flex items-center gap-2"
x-text="t('thisYearShines')"></span>
</p>
<!-- Mini contribution graph -->
<div class="glass p-6 rounded-2xl inline-block terminal-result" :class="{ 'visible': terminalShowResult && currentSlide === 2 }">
<div class="flex gap-1 justify-center flex-wrap max-w-lg">
<template x-for="(level, i) in data?.stats?.contributionLevels?.slice(0, 52)" :key="i">
<div class="w-3 h-3 rounded-sm" :class="{
'bg-gh-dark': level === 0,
'bg-green-900': level === 1,
'bg-green-700': level === 2,
'bg-green-500': level === 3,
'bg-green-400': level === 4
}">
</div>
</template>
</div>
</div>
</div>
</div>
<!-- Slide 3: Languages -->
<div x-show="currentSlide === 3" x-transition:enter="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-700"
x-transition:enter-start="opacity-0 translate-y-8" x-transition:enter-end="opacity-100 translate-y-0"
x-transition:leave="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-500"
x-transition:leave-start="opacity-100 translate-y-0" x-transition:leave-end="opacity-0 -translate-y-8"
class="min-h-screen flex items-center justify-center bg-gradient-animated p-4 md:p-6">
<div class="text-center max-w-3xl w-full mx-auto px-4">
<!-- Terminal Mode -->
<template x-if="displayMode === 'terminal'">
<div class="terminal">
<div class="terminal-header">
<div class="terminal-dot red"></div>
<div class="terminal-dot yellow"></div>
<div class="terminal-dot green"></div>
</div>
<div class="terminal-line">
<span class="terminal-prompt">~$</span>
<span class="terminal-command" x-text="' ' + (currentSlide === 3 ? terminalText : '')"></span>
<span class="terminal-cursor" x-show="currentSlide === 3 && !terminalShowResult"></span>
</div>
<div class="terminal-output" x-text="currentSlide === 3 ? terminalOutput : ''"></div>
</div>
</template>
<!-- Normal Mode Header -->
<template x-if="displayMode === 'normal'">
<div>
<p class="text-gh-pink text-lg mb-4 font-mono" x-text="lang === 'es' ? '// Tus lenguajes' : '// Your languages'"></p>
<h2 class="text-xl md:text-3xl lg:text-5xl font-black text-white mb-4" x-text="t('mainLanguage')"></h2>
<p class="text-3xl sm:text-5xl md:text-7xl font-black gradient-text mb-6 md:mb-8"
x-text="data?.stats?.topLanguages?.[0]?.name || 'N/A'">
</p>
</div>
</template>
<!-- Terminal Mode Result -->
<template x-if="displayMode === 'terminal'">
<div class="terminal-result" :class="{ 'visible': terminalShowResult && currentSlide === 3 }">
<p class="text-gray-400 text-xl mb-2" x-text="t('mainLanguage')"></p>
<p class="text-3xl sm:text-5xl md:text-7xl font-black gradient-text mb-6 md:mb-8"
x-text="data?.stats?.topLanguages?.[0]?.name || 'N/A'">
</p>
</div>
</template>
<!-- Language bars -->
<div class="space-y-3 md:space-y-4 max-w-xl mx-auto terminal-result" :class="{ 'visible': terminalShowResult && currentSlide === 3 }">
<template x-for="(lang, i) in data?.stats?.topLanguages?.slice(0, 5)" :key="lang.name">
<div class="text-left">
<div class="flex justify-between mb-1">
<span class="text-white font-medium" x-text="lang.name"></span>
<span class="text-gray-400" x-text="lang.percentage + '%'"></span>
</div>
<div class="h-3 bg-gh-dark rounded-full overflow-hidden">
<div class="h-full rounded-full progress-bar" :class="[
i === 0 ? 'bg-gradient-to-r from-gh-purple to-gh-pink' :
i === 1 ? 'bg-gradient-to-r from-gh-cyan to-gh-green-light' :
i === 2 ? 'bg-gradient-to-r from-gh-orange to-gh-yellow' :
i === 3 ? 'bg-gradient-to-r from-gh-pink to-gh-purple' :
'bg-gradient-to-r from-gh-green to-gh-cyan'
]" :style="`width: ${terminalShowResult && currentSlide === 3 ? lang.percentage : 0}%`">
</div>
</div>
</div>
</template>
</div>
</div>
</div>
<!-- Slide 4: Top Repos -->
<div x-show="currentSlide === 4" x-transition:enter="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-700"
x-transition:enter-start="opacity-0 translate-y-8" x-transition:enter-end="opacity-100 translate-y-0"
x-transition:leave="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-500"
x-transition:leave-start="opacity-100 translate-y-0" x-transition:leave-end="opacity-0 -translate-y-8"
class="min-h-screen flex items-center justify-center bg-gradient-animated p-4 md:p-6">
<div class="text-center max-w-4xl w-full mx-auto px-4">
<!-- Terminal Mode -->
<template x-if="displayMode === 'terminal'">
<div class="terminal">
<div class="terminal-header">
<div class="terminal-dot red"></div>
<div class="terminal-dot yellow"></div>
<div class="terminal-dot green"></div>
</div>
<div class="terminal-line">
<span class="terminal-prompt">~$</span>
<span class="terminal-command" x-text="' ' + (currentSlide === 4 ? terminalText : '')"></span>
<span class="terminal-cursor" x-show="currentSlide === 4 && !terminalShowResult"></span>
</div>
<div class="terminal-output" x-text="currentSlide === 4 ? terminalOutput : ''"></div>
</div>
</template>
<!-- Normal Mode Header -->
<template x-if="displayMode === 'normal'">
<div>
<p class="text-gh-orange text-lg mb-4 font-mono" x-text="lang === 'es' ? '// Tus repos destacados' : '// Your featured repos'"></p>
<h2 class="text-xl md:text-3xl lg:text-5xl font-black text-white mb-12" x-text="t('featuredRepos')"></h2>
</div>
</template>
<!-- Terminal Mode Title -->
<p class="text-gray-400 text-xl mb-8 terminal-result" :class="{ 'visible': terminalShowResult && currentSlide === 4 }" x-show="displayMode === 'terminal'" x-text="t('featuredRepos')"></p>
<div class="grid grid-cols-1 md:grid-cols-2 gap-3 md:gap-6 terminal-result" :class="{ 'visible': terminalShowResult && currentSlide === 4 }">
<template x-for="(repo, i) in data?.stats?.topRepos?.slice(0, 4)" :key="repo.name">
<div
class="stat-card p-4 md:p-6 rounded-xl md:rounded-2xl text-left hover:scale-105 transition-transform duration-300">
<div class="flex items-start justify-between mb-3">
<h3 class="text-xl font-bold text-white truncate" x-text="repo.name"></h3>
<div class="flex items-center gap-1 text-gh-yellow">
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
<path
d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" />
</svg>
<span class="font-mono" x-text="repo.stars"></span>
</div>
</div>
<p class="text-gray-400 text-sm mb-4 line-clamp-2" x-text="repo.description || (lang === 'es' ? 'Sin descripción' : 'No description')"></p>
<div class="flex items-center gap-4 text-sm text-gray-500">
<span class="flex items-center gap-1">
<span class="w-3 h-3 rounded-full" :style="`background: ${repo.languageColor || '#8b5cf6'}`"></span>
<span x-text="repo.language || 'N/A'"></span>
</span>
<span class="flex items-center gap-1">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z">
</path>
</svg>
<span x-text="repo.forks"></span>
</span>
</div>
</div>
</template>
</div>
</div>
</div>
<!-- Slide 5: Day Activity -->
<div x-show="currentSlide === 5" x-transition:enter="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-700"
x-transition:enter-start="opacity-0 translate-y-8" x-transition:enter-end="opacity-100 translate-y-0"
x-transition:leave="transition-all ease-[cubic-bezier(0.4,0,0.2,1)] duration-500"
x-transition:leave-start="opacity-100 translate-y-0" x-transition:leave-end="opacity-0 -translate-y-8"
class="min-h-screen flex items-center justify-center bg-gradient-animated p-4 md:p-6">
<div class="text-center max-w-3xl w-full mx-auto px-4">