-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
841 lines (788 loc) · 49 KB
/
Copy pathindex.html
File metadata and controls
841 lines (788 loc) · 49 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
<!DOCTYPE html>
<html class="dark" lang="en">
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>DevArchive - GitHub Visualizer</title>
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.8.5/d3.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet" />
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
colors: {
"primary": "#83aeff",
"on-primary-fixed-variant": "#002a60",
"surface-container": "#151a21",
"tertiary-container": "#fa9045",
"surface-container-lowest": "#000000",
"tertiary-dim": "#ea833a",
"secondary-fixed": "#97f999",
"on-primary": "#002d64",
"error-container": "#9f0519",
"on-background": "#f1f3fc",
"outline-variant": "#44484f",
"on-surface": "#f1f3fc",
"secondary-dim": "#89ea8d",
"inverse-primary": "#005cc0",
"on-secondary": "#005f1e",
"on-error-container": "#ffa8a3",
"on-primary-container": "#00214e",
"surface-dim": "#0a0e14",
"surface-container-highest": "#20262f",
"primary-fixed": "#6ba0ff",
"on-error": "#490006",
"secondary-container": "#006e23",
"secondary-fixed-dim": "#89ea8d",
"inverse-surface": "#f8f9ff",
"on-surface-variant": "#a8abb3",
"on-secondary-container": "#e5ffdf",
"surface": "#0a0e14",
"surface-tint": "#83aeff",
"on-tertiary-fixed-variant": "#5f2b00",
"surface-bright": "#262c36",
"background": "#0a0e14",
"on-secondary-fixed": "#004a15",
"error-dim": "#d7383b",
"outline": "#72757d",
"surface-container-low": "#0f141a",
"inverse-on-surface": "#51555c",
"tertiary-fixed-dim": "#f0883e",
"on-tertiary": "#5b2800",
"primary-fixed-dim": "#4f91ff",
"primary-container": "#6ba0ff",
"tertiary": "#ffa366",
"on-tertiary-container": "#4b2000",
"error": "#ff716c",
"on-primary-fixed": "#000000",
"primary-dim": "#0d71e6",
"tertiary-fixed": "#ff964e",
"on-secondary-fixed-variant": "#006b22",
"surface-variant": "#20262f",
"surface-container-high": "#1b2028",
"on-tertiary-fixed": "#2c1000",
"secondary": "#97f999"
},
fontFamily: {
"headline": ["Inter"],
"body": ["Inter"],
"label": ["Space Grotesk"]
},
borderRadius: { "DEFAULT": "0.125rem", "lg": "0.25rem", "xl": "0.5rem", "full": "0.75rem" }
}
}
}
</script>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body class="selection:bg-primary/30 selection:text-primary">
<div id="error-banner" role="alert">
<span class="material-symbols-outlined text-sm align-middle mr-1" aria-hidden="true">error</span>
<span id="error-message">Something went wrong.</span>
<button onclick="App.dismissError()" class="ml-4 underline text-xs" aria-label="Dismiss error">Dismiss</button>
</div>
<!-- ── LANDING ── -->
<div id="landing-screen">
<div class="grid-bg"></div>
<!-- Enhanced glow orbs -->
<div class="glow-orb" style="width:600px;height:600px;background:#83aeff;top:-20%;left:50%;transform:translateX(-50%);opacity:0.08;filter:blur(140px)"></div>
<div class="glow-orb" style="width:350px;height:350px;background:#97f999;bottom:5%;left:3%;opacity:0.07;filter:blur(100px)"></div>
<div class="glow-orb" style="width:280px;height:280px;background:#ffa366;bottom:10%;right:5%;opacity:0.06;filter:blur(100px)"></div>
<div class="relative z-10 flex flex-col items-center text-center px-6 max-w-2xl w-full" id="landing-content">
<!-- Logo -->
<div class="landing-enter" style="animation-delay:0s;margin-bottom:24px;display:flex;flex-direction:column;align-items:center;gap:4px">
<span style="font-size:28px;font-weight:900;letter-spacing:-0.02em;color:#83aeff;font-family:Inter,sans-serif">DevArchive</span>
<span style="font-size:10px;font-family:'Space Grotesk',sans-serif;color:#a8abb3;letter-spacing:0.2em;text-transform:uppercase">GitHub Profile Visualizer</span>
</div>
<!-- GitHub icon -->
<div class="landing-enter" style="animation-delay:0.05s;margin-bottom:24px">
<svg style="width:44px;height:44px;color:#a8abb3;opacity:0.7" 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"/>
</svg>
</div>
<!-- Headline -->
<h1 class="landing-enter" style="animation-delay:0.1s;font-size:clamp(2.8rem,7vw,4.5rem);font-weight:900;letter-spacing:-0.03em;line-height:1.05;color:#f1f3fc;font-family:Inter,sans-serif;margin-bottom:16px">
Explore any<br/><span style="color:#83aeff">GitHub profile.</span>
</h1>
<!-- Subheading -->
<p class="landing-enter" style="animation-delay:0.15s;color:#a8abb3;font-size:1.1rem;max-width:420px;line-height:1.65;font-family:Inter,sans-serif;margin-bottom:40px">
Dive into any GitHub profile and discover the developer behind the code.
</p>
<!-- Search input -->
<div class="landing-enter w-full max-w-lg" style="animation-delay:0.2s;position:relative;margin-bottom:16px">
<span class="material-symbols-outlined" style="position:absolute;left:18px;top:50%;transform:translateY(-50%);color:#a8abb3;font-size:18px;z-index:10" aria-hidden="true">terminal</span>
<input id="search-input-landing"
type="text"
placeholder="Enter GitHub username..."
autocomplete="off"
spellcheck="false"
aria-label="GitHub username"
style="
width:100%;
background:rgba(15,20,26,0.95);
border:1px solid rgba(131,174,255,0.25);
border-radius:14px;
padding:16px 64px 16px 50px;
font-size:1.05rem;
font-family:'Space Grotesk',sans-serif;
color:#f1f3fc;
outline:none;
transition:border-color 0.2s,box-shadow 0.2s;
box-sizing:border-box;
"
onfocus="this.style.borderColor='rgba(131,174,255,0.65)';this.style.boxShadow='0 0 0 4px rgba(131,174,255,0.1)'"
onblur="this.style.borderColor='rgba(131,174,255,0.25)';this.style.boxShadow='none'"
/>
<button id="search-btn-landing"
aria-label="Search GitHub Profile"
style="
position:absolute;right:8px;top:50%;transform:translateY(-50%);
background:linear-gradient(135deg,#83aeff,#4f91ff);
border:none;border-radius:10px;
width:42px;height:42px;
display:flex;align-items:center;justify-content:center;
cursor:pointer;
transition:opacity 0.2s,transform 0.15s;
z-index:10;
"
onmouseover="this.style.opacity='0.88'"
onmouseout="this.style.opacity='1'"
onmousedown="this.style.transform='translateY(-50%) scale(0.93)'"
onmouseup="this.style.transform='translateY(-50%) scale(1)'"
>
<span class="material-symbols-outlined" style="font-size:19px;color:#002d64" aria-hidden="true">arrow_forward</span>
</button>
</div>
<!-- Try examples -->
<div class="landing-enter" style="animation-delay:0.25s;margin-bottom:32px;display:flex;align-items:center;gap:6px;font-size:12px;font-family:'Space Grotesk',sans-serif;color:#a8abb3;flex-wrap:wrap;justify-content:center">
<span>Try:</span>
<button onclick="App.search('torvalds')" style="background:rgba(131,174,255,0.08);border:1px solid rgba(131,174,255,0.2);border-radius:999px;padding:3px 12px;color:#83aeff;font-family:'Space Grotesk',sans-serif;font-size:12px;cursor:pointer;transition:background 0.15s,border-color 0.15s" onmouseover="this.style.background='rgba(131,174,255,0.15)';this.style.borderColor='rgba(131,174,255,0.4)'" onmouseout="this.style.background='rgba(131,174,255,0.08)';this.style.borderColor='rgba(131,174,255,0.2)'">torvalds</button>
<span style="color:#44484f">·</span>
<button onclick="App.search('gaearon')" style="background:rgba(131,174,255,0.08);border:1px solid rgba(131,174,255,0.2);border-radius:999px;padding:3px 12px;color:#83aeff;font-family:'Space Grotesk',sans-serif;font-size:12px;cursor:pointer;transition:background 0.15s,border-color 0.15s" onmouseover="this.style.background='rgba(131,174,255,0.15)';this.style.borderColor='rgba(131,174,255,0.4)'" onmouseout="this.style.background='rgba(131,174,255,0.08)';this.style.borderColor='rgba(131,174,255,0.2)'">gaearon</button>
<span style="color:#44484f">·</span>
<button onclick="App.search('sindresorhus')" style="background:rgba(131,174,255,0.08);border:1px solid rgba(131,174,255,0.2);border-radius:999px;padding:3px 12px;color:#83aeff;font-family:'Space Grotesk',sans-serif;font-size:12px;cursor:pointer;transition:background 0.15s,border-color 0.15s" onmouseover="this.style.background='rgba(131,174,255,0.15)';this.style.borderColor='rgba(131,174,255,0.4)'" onmouseout="this.style.background='rgba(131,174,255,0.08)';this.style.borderColor='rgba(131,174,255,0.2)'">sindresorhus</button>
</div>
<!-- Feature buttons -->
<div class="landing-enter" style="animation-delay:0.3s;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:48px">
<button onclick="App.switchTab('compare')" style="
display:flex;align-items:center;gap:8px;
background:rgba(131,174,255,0.05);
border:1px solid rgba(131,174,255,0.18);
border-radius:999px;padding:10px 20px;
color:#a8abb3;font-family:'Space Grotesk',sans-serif;font-size:13px;
cursor:pointer;transition:all 0.18s;
"
onmouseover="this.style.color='#83aeff';this.style.borderColor='rgba(131,174,255,0.4)';this.style.background='rgba(131,174,255,0.08)'"
onmouseout="this.style.color='#a8abb3';this.style.borderColor='rgba(131,174,255,0.18)';this.style.background='rgba(131,174,255,0.05)'">
<span class="material-symbols-outlined" style="font-size:15px" aria-hidden="true">compare_arrows</span>
Compare two developers
</button>
<button onclick="App.switchTab('repo-search')" style="
display:flex;align-items:center;gap:8px;
background:rgba(131,174,255,0.05);
border:1px solid rgba(131,174,255,0.18);
border-radius:999px;padding:10px 20px;
color:#a8abb3;font-family:'Space Grotesk',sans-serif;font-size:13px;
cursor:pointer;transition:all 0.18s;
"
onmouseover="this.style.color='#83aeff';this.style.borderColor='rgba(131,174,255,0.4)';this.style.background='rgba(131,174,255,0.08)'"
onmouseout="this.style.color='#a8abb3';this.style.borderColor='rgba(131,174,255,0.18)';this.style.background='rgba(131,174,255,0.05)'">
<span class="material-symbols-outlined" style="font-size:15px" aria-hidden="true">search</span>
Search repositories
</button>
</div>
<!-- Feature strip -->
<div class="landing-enter" style="animation-delay:0.35s;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:40px">
<div style="display:flex;align-items:center;gap:6px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:8px;padding:7px 14px">
<span class="material-symbols-outlined" style="font-size:13px;color:#83aeff" aria-hidden="true">analytics</span>
<span style="font-size:11px;font-family:'Space Grotesk',sans-serif;color:#a8abb3">Developer Score</span>
</div>
<div style="display:flex;align-items:center;gap:6px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:8px;padding:7px 14px">
<span class="material-symbols-outlined" style="font-size:13px;color:#97f999" aria-hidden="true">hub</span>
<span style="font-size:11px;font-family:'Space Grotesk',sans-serif;color:#a8abb3">Ecosystem Map</span>
</div>
<div style="display:flex;align-items:center;gap:6px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:8px;padding:7px 14px">
<span class="material-symbols-outlined" style="font-size:13px;color:#ffa366" aria-hidden="true">compare_arrows</span>
<span style="font-size:11px;font-family:'Space Grotesk',sans-serif;color:#a8abb3">Dev Comparison</span>
</div>
<div style="display:flex;align-items:center;gap:6px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:8px;padding:7px 14px">
<span class="material-symbols-outlined" style="font-size:13px;color:#83aeff" aria-hidden="true">manage_search</span>
<span style="font-size:11px;font-family:'Space Grotesk',sans-serif;color:#a8abb3">Repo Explorer</span>
</div>
</div>
<!-- Powered by -->
<div class="landing-enter" style="animation-delay:0.4s;display:flex;align-items:center;gap:10px;opacity:0.35">
<span style="font-size:11px;font-family:'Space Grotesk',sans-serif;color:#a8abb3">Powered by</span>
<span style="font-size:11px;font-family:'Space Grotesk',sans-serif;color:#a8abb3;padding:3px 10px;border:1px solid rgba(168,171,179,0.3);border-radius:999px">GitHub REST API</span>
</div>
</div>
</div>
<!-- ── NAVBAR ── -->
<nav id="main-nav"
class="fixed top-0 w-full z-50 bg-[#0a0e14]/60 backdrop-blur-md shadow-[0_8px_32px_rgba(131,174,255,0.06)]"
style="display:none">
<div class="flex justify-between items-center w-full px-6 py-3 max-w-screen-2xl mx-auto">
<div class="flex items-center gap-4">
<span class="text-xl font-bold tracking-tight text-[#f1f3fc] font-headline cursor-pointer" onclick="App.goHome()" aria-label="Go to home">DevArchive</span>
<div class="hidden md:flex items-center gap-1 bg-surface-container-lowest/60 rounded-xl p-1">
<button id="tab-dashboard" class="nav-tab active" onclick="App.switchTab('dashboard')" aria-label="Dashboard View">
<span class="material-symbols-outlined text-sm align-middle mr-1" aria-hidden="true">dashboard</span>Dashboard
</button>
<button id="tab-compare" class="nav-tab" onclick="App.switchTab('compare')" aria-label="Compare View">
<span class="material-symbols-outlined text-sm align-middle mr-1" aria-hidden="true">compare_arrows</span>Compare
</button>
<button id="tab-repo-search" class="nav-tab" onclick="App.switchTab('repo-search')" aria-label="Repo Search">
<span class="material-symbols-outlined text-sm align-middle mr-1" aria-hidden="true">manage_search</span>Repos
</button>
</div>
</div>
<div class="flex items-center gap-4 flex-1 max-w-md mx-6">
<div class="relative w-full" id="nav-search-wrap">
<span class="material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-on-surface-variant text-sm" aria-hidden="true">search</span>
<input id="search-input-nav" aria-label="Search GitHub username"
class="w-full bg-surface-container-lowest text-on-surface rounded-md py-2 pl-10 pr-4 focus:ring-1 focus:ring-primary border-none text-sm transition-all"
placeholder="Search GitHub username..." type="text" autocomplete="off" />
<div id="nav-recent-dropdown" class="recent-dropdown">
<div class="px-4 py-2 border-b border-outline-variant/10 flex items-center gap-2">
<span class="material-symbols-outlined text-xs text-on-surface-variant" aria-hidden="true">history</span>
<span class="text-xs font-label text-on-surface-variant uppercase tracking-wider">Recent Searches</span>
</div>
<div id="nav-recent-list"></div>
</div>
</div>
<button id="search-btn-nav" aria-label="Search"
class="bg-primary text-on-primary rounded-md px-4 py-2 text-sm font-semibold hover:bg-primary-fixed active:scale-95 transition-all whitespace-nowrap">Go</button>
</div>
<div class="cursor-pointer text-on-surface-variant hover:text-white transition-colors flex-shrink-0" onclick="App.goHome()" aria-label="Home">
<svg class="w-8 h-8" 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>
</div>
</div>
</nav>
<!-- ── DASHBOARD ── -->
<div id="dashboard-screen">
<main class="pt-24 pb-20 px-6 max-w-screen-2xl mx-auto min-h-screen">
<section class="mb-12">
<div class="bg-surface-container-low p-8 rounded-xl border-l-4 border-primary relative overflow-hidden">
<div class="absolute -top-24 -right-24 w-64 h-64 bg-primary/10 blur-[100px] rounded-full"></div>
<div class="relative flex flex-col md:flex-row items-center md:items-start gap-8">
<div class="relative group flex-shrink-0">
<div class="absolute -inset-1 bg-gradient-to-tr from-primary to-secondary rounded-full opacity-20 group-hover:opacity-40 transition-opacity"></div>
<img id="profile-avatar" alt="GitHub Profile Avatar"
class="h-32 w-32 rounded-full object-cover border-2 border-surface relative z-10"
src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" />
</div>
<div class="flex-1 text-center md:text-left">
<h1 id="profile-name" class="text-5xl font-extrabold tracking-tighter text-on-surface mb-2 font-headline"></h1>
<p id="profile-login" class="text-on-surface-variant text-sm font-label mb-3"></p>
<p id="profile-bio" class="text-lg text-on-surface-variant max-w-2xl font-body"></p>
<div class="flex flex-wrap gap-4 mt-3 justify-center md:justify-start text-sm text-on-surface-variant font-label">
<span id="profile-location" class="hidden items-center gap-1">
<span class="material-symbols-outlined text-sm" aria-hidden="true">location_on</span>
<span id="profile-location-text"></span>
</span>
<span id="profile-website" class="hidden items-center gap-1">
<span class="material-symbols-outlined text-sm" aria-hidden="true">link</span>
<a id="profile-website-link" href="#" target="_blank" rel="noopener noreferrer" class="text-primary hover:underline"></a>
</span>
<span id="profile-company" class="hidden items-center gap-1">
<span class="material-symbols-outlined text-sm" aria-hidden="true">business</span>
<span id="profile-company-text"></span>
</span>
<span id="profile-created" class="hidden items-center gap-1">
<span class="material-symbols-outlined text-sm" aria-hidden="true">calendar_month</span>
<span id="profile-created-text"></span>
</span>
</div>
</div>
<div class="flex flex-col items-center gap-3 flex-shrink-0">
<a id="github-link" href="#" target="_blank" rel="noopener noreferrer"
class="bg-gradient-to-tr from-primary to-primary-container text-on-primary font-semibold px-6 py-2.5 rounded-md text-sm active:scale-95 transition-transform shadow-lg shadow-primary/10 block text-center w-full">
View on GitHub
</a>
<button onclick="App.openCompare()"
class="flex items-center gap-2 text-xs text-on-surface-variant hover:text-primary transition-colors font-label border border-outline-variant/20 px-4 py-2 rounded-full hover:border-primary/30 w-full justify-center">
<span class="material-symbols-outlined text-xs" aria-hidden="true">compare_arrows</span>
Compare this dev
</button>
</div>
</div>
</div>
</section>
<section class="grid grid-cols-1 lg:grid-cols-12 gap-8 mb-12">
<div class="lg:col-span-5 bg-surface-container-low p-8 rounded-xl flex flex-col justify-between">
<div>
<h2 class="text-xl font-bold mb-8 font-headline">Primary Languages</h2>
<div id="languages-container" class="space-y-6"></div>
</div>
<div id="languages-meta" class="mt-8 pt-8 border-t border-outline-variant/10 text-xs text-on-surface-variant font-label leading-relaxed"></div>
</div>
<div class="lg:col-span-7 bg-surface-container-low p-8 rounded-xl">
<h2 class="text-xl font-bold mb-8 font-headline">Profile Metrics</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
<div class="stat-glow bg-surface-container-highest/40 border border-outline-variant/20 p-6 rounded-xl transition-all hover:bg-surface-container-highest/60">
<span class="text-xs font-label uppercase tracking-widest text-on-surface-variant">Followers</span>
<div class="text-4xl font-black text-primary font-headline mt-1" id="stat-followers"></div>
<div class="stat-context"><span class="material-symbols-outlined text-xs" aria-hidden="true">people</span><span id="stat-followers-label" class="text-on-surface-variant/60"></span></div>
</div>
<div class="stat-glow bg-surface-container-highest/40 border border-outline-variant/20 p-6 rounded-xl transition-all hover:bg-surface-container-highest/60">
<span class="text-xs font-label uppercase tracking-widest text-on-surface-variant">Total Stars</span>
<div class="text-4xl font-black text-primary font-headline mt-1" id="stat-stars"></div>
<div class="stat-context"><span class="material-symbols-outlined text-xs" aria-hidden="true">star</span><span id="stat-stars-label" class="text-on-surface-variant/60"></span></div>
</div>
<div class="stat-glow bg-surface-container-highest/40 border border-outline-variant/20 p-6 rounded-xl transition-all hover:bg-surface-container-highest/60">
<span class="text-xs font-label uppercase tracking-widest text-on-surface-variant">Public Repos</span>
<div class="text-4xl font-black text-primary font-headline mt-1" id="stat-repos"></div>
<div class="stat-context"><span class="material-symbols-outlined text-xs" aria-hidden="true">terminal</span><span id="stat-repos-label" class="text-on-surface-variant/60"></span></div>
</div>
<div class="stat-glow bg-surface-container-highest/40 border border-outline-variant/20 p-6 rounded-xl transition-all hover:bg-surface-container-highest/60">
<span class="text-xs font-label uppercase tracking-widest text-on-surface-variant">Following</span>
<div class="text-4xl font-black text-primary font-headline mt-1" id="stat-following"></div>
<div class="stat-context"><span class="material-symbols-outlined text-xs" aria-hidden="true">group</span><span id="stat-following-label" class="text-on-surface-variant/60"></span></div>
</div>
</div>
<div class="mt-6 bg-primary/5 border border-primary/15 rounded-xl p-5">
<div class="flex items-center gap-5">
<div class="score-ring" aria-label="Profile score ring">
<svg width="72" height="72" viewBox="0 0 72 72">
<circle cx="36" cy="36" r="30" fill="none" stroke="rgba(131,174,255,0.1)" stroke-width="6" />
<circle id="score-ring-fill" cx="36" cy="36" r="30" fill="none" stroke="#83aeff" stroke-width="6"
stroke-linecap="round" stroke-dasharray="188.5" stroke-dashoffset="188.5"
style="transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1)" />
</svg>
<div class="score-ring-text">
<span id="score-value" class="text-lg font-black text-primary font-headline leading-none"></span>
<span class="text-[9px] font-label text-on-surface-variant uppercase tracking-wider">/ 100</span>
</div>
</div>
<div class="flex-1">
<div class="flex items-center gap-2 mb-1">
<span class="text-sm font-bold font-headline">Profile Score</span>
<span id="score-grade" class="text-xs font-label font-bold px-2 py-0.5 rounded-full bg-primary/10 grade-a"></span>
</div>
<p id="score-label" class="text-xs text-on-surface-variant font-label mb-3"></p>
<div class="flex flex-col gap-1.5" id="score-breakdown"></div>
</div>
</div>
</div>
</div>
</section>
<section class="mb-12">
<div class="bg-surface-container-low p-8 rounded-xl">
<div class="flex items-center justify-between mb-6">
<div>
<h2 class="text-xl font-bold font-headline">Ecosystem Map</h2>
<p class="text-on-surface-variant text-sm mt-1 font-label">Explore how repositories connect across programming languages</p>
</div>
<span class="text-xs font-label text-on-surface-variant">Drag nodes · scroll to zoom</span>
</div>
<div class="relative">
<svg id="dep-graph-svg"></svg>
<div id="dep-tooltip" class="dep-tooltip"></div>
</div>
<div id="dep-legend" class="flex flex-wrap gap-3 mt-4"></div>
</div>
</section>
<section class="mb-12">
<div class="flex justify-between items-end mb-8">
<div>
<h2 class="text-2xl font-bold font-headline">Featured Repositories</h2>
<p id="repos-subtitle" class="text-on-surface-variant text-sm mt-1"></p>
</div>
<a id="github-repos-link" href="#" target="_blank" rel="noopener noreferrer" class="text-primary text-sm font-medium hover:underline">View All on GitHub</a>
</div>
<div id="repos-grid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"></div>
</section>
</main>
<footer class="mt-20 border-t border-outline-variant/10 py-12 px-6">
<div class="max-w-screen-2xl mx-auto flex flex-col md:flex-row justify-between items-center gap-8">
<div class="flex flex-col items-center md:items-start">
<span class="text-lg font-black text-primary font-headline">DevArchive</span>
<span class="text-xs font-label text-on-surface-variant mt-1">GitHub API Visualizer</span>
</div>
<div class="flex gap-8">
<a class="text-on-surface-variant hover:text-primary transition-colors text-sm font-label uppercase tracking-widest" href="#">Documentation</a>
<a class="text-on-surface-variant hover:text-primary transition-colors text-sm font-label uppercase tracking-widest" href="#">Feedback</a>
</div>
<div class="flex gap-4">
<span class="material-symbols-outlined text-on-surface-variant cursor-pointer hover:text-white" aria-hidden="true">terminal</span>
<span class="material-symbols-outlined text-on-surface-variant cursor-pointer hover:text-white" aria-hidden="true">code</span>
<span class="material-symbols-outlined text-on-surface-variant cursor-pointer hover:text-white" aria-hidden="true">hub</span>
</div>
</div>
</footer>
</div>
<!-- ── COMPARE ── -->
<div id="compare-screen">
<main class="pt-24 pb-20 px-6 max-w-screen-2xl mx-auto min-h-screen">
<section class="mb-10">
<h1 class="text-4xl font-extrabold tracking-tighter text-on-surface font-headline mb-2">
Developer <span class="text-primary">Comparison</span>
</h1>
<p class="text-on-surface-variant text-lg">Side-by-side developer comparison with detailed metrics</p>
</section>
<section class="mb-10">
<!-- centered input card -->
<div style="
max-width: 640px;
margin: 0 auto 32px auto;
background: #0f141a;
border: 1px solid rgba(131,174,255,0.15);
border-radius: 16px;
padding: 28px 32px;
">
<p style="
font-size: 11px;
font-family: 'Space Grotesk', sans-serif;
text-transform: uppercase;
letter-spacing: 0.15em;
color: #a8abb3;
text-align: center;
margin-bottom: 20px;
">Enter two GitHub usernames to compare</p>
<!-- two inputs side by side with VS in between -->
<div style="display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-bottom:20px">
<!-- Input A -->
<div style="position:relative">
<span class="material-symbols-outlined" style="
position:absolute;left:14px;top:50%;transform:translateY(-50%);
font-size:16px;color:#83aeff;pointer-events:none;
">person</span>
<input id="compare-input-a"
type="text"
placeholder="First username…"
autocomplete="off"
spellcheck="false"
aria-label="First developer username"
style="
width:100%;
background: rgba(131,174,255,0.06);
border: 1px solid rgba(131,174,255,0.2);
border-radius: 10px;
padding: 12px 14px 12px 40px;
font-size: 14px;
font-family: 'Space Grotesk', sans-serif;
color: #f1f3fc;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
"
onfocus="this.style.borderColor='rgba(131,174,255,0.6)';this.style.boxShadow='0 0 0 3px rgba(131,174,255,0.1)'"
onblur="this.style.borderColor='rgba(131,174,255,0.2)';this.style.boxShadow='none'"
/>
</div>
<!-- VS badge -->
<div style="
width:32px;height:32px;border-radius:50%;
background:#151a21;
border:1px solid rgba(131,174,255,0.2);
display:flex;align-items:center;justify-content:center;
font-size:10px;font-weight:700;
font-family:'Space Grotesk',sans-serif;
color:#a8abb3;letter-spacing:0.05em;
flex-shrink:0;
">VS</div>
<!-- Input B -->
<div style="position:relative">
<span class="material-symbols-outlined" style="
position:absolute;left:14px;top:50%;transform:translateY(-50%);
font-size:16px;color:#ffa366;pointer-events:none;
">person</span>
<input id="compare-input-b"
type="text"
placeholder="Second username…"
autocomplete="off"
spellcheck="false"
aria-label="Second developer username"
style="
width:100%;
background: rgba(255,163,102,0.06);
border: 1px solid rgba(255,163,102,0.2);
border-radius: 10px;
padding: 12px 14px 12px 40px;
font-size: 14px;
font-family: 'Space Grotesk', sans-serif;
color: #f1f3fc;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
"
onfocus="this.style.borderColor='rgba(255,163,102,0.6)';this.style.boxShadow='0 0 0 3px rgba(255,163,102,0.1)'"
onblur="this.style.borderColor='rgba(255,163,102,0.2)';this.style.boxShadow='none'"
/>
</div>
</div>
<!-- Compare button centered -->
<div style="display:flex;justify-content:center">
<button id="compare-go-btn" onclick="App.runCompare()"
style="
background: linear-gradient(135deg, #83aeff, #4f91ff);
color: #002d64;
font-weight: 700;
font-family: 'Space Grotesk', sans-serif;
font-size: 13px;
padding: 12px 32px;
border-radius: 10px;
border: none;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
letter-spacing: 0.03em;
transition: opacity 0.2s, transform 0.15s;
"
onmouseover="this.style.opacity='0.9'"
onmouseout="this.style.opacity='1'"
onmousedown="this.style.transform='scale(0.97)'"
onmouseup="this.style.transform='scale(1)'"
disabled-style="opacity:0.6;cursor:not-allowed"
aria-label="Compare Developers"
>
<span class="material-symbols-outlined" style="font-size:16px" aria-hidden="true">compare_arrows</span>
Compare Developers
</button>
</div>
</div>
</section>
<div id="compare-results" style="display:none">
<section class="grid grid-cols-2 gap-6 mb-8">
<div id="cmp-card-a" class="bg-surface-container-low p-6 rounded-xl flex flex-col items-center text-center relative overflow-hidden">
<div class="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-primary to-primary-container"></div>
<img id="cmp-avatar-a" src="" alt="Developer A Profile" class="h-20 w-20 rounded-full border-2 border-primary/30 mb-4 object-cover" />
<h2 id="cmp-name-a" class="text-xl font-bold font-headline text-on-surface"></h2>
<p id="cmp-login-a" class="text-xs font-label text-on-surface-variant mb-2"></p>
<div id="cmp-score-a-wrap" class="mt-2"></div>
<a id="cmp-link-a" href="#" target="_blank" rel="noopener noreferrer" class="mt-3 text-xs text-primary hover:underline font-label">View on GitHub →</a>
</div>
<div id="cmp-card-b" class="bg-surface-container-low p-6 rounded-xl flex flex-col items-center text-center relative overflow-hidden">
<div class="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-tertiary to-tertiary-container"></div>
<img id="cmp-avatar-b" src="" alt="Developer B Profile" class="h-20 w-20 rounded-full border-2 border-tertiary/30 mb-4 object-cover" />
<h2 id="cmp-name-b" class="text-xl font-bold font-headline text-on-surface"></h2>
<p id="cmp-login-b" class="text-xs font-label text-on-surface-variant mb-2"></p>
<div id="cmp-score-b-wrap" class="mt-2"></div>
<a id="cmp-link-b" href="#" target="_blank" rel="noopener noreferrer" class="mt-3 text-xs text-tertiary hover:underline font-label">View on GitHub →</a>
</div>
</section>
<section class="bg-surface-container-low rounded-xl overflow-hidden mb-8">
<div class="p-6 border-b border-outline-variant/10">
<h2 class="text-lg font-bold font-headline">Head-to-Head Stats</h2>
</div>
<div id="compare-stat-rows" class="divide-y divide-outline-variant/10"></div>
</section>
<section class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
<div class="bg-surface-container-low p-6 rounded-xl">
<h3 id="cmp-lang-title-a" class="text-sm font-bold font-headline mb-4 flex items-center gap-2">
<span class="w-3 h-3 rounded-full bg-primary inline-block"></span> Languages
</h3>
<div id="cmp-langs-a" class="space-y-3"></div>
</div>
<div class="bg-surface-container-low p-6 rounded-xl">
<h3 id="cmp-lang-title-b" class="text-sm font-bold font-headline mb-4 flex items-center gap-2">
<span class="w-3 h-3 rounded-full bg-tertiary inline-block"></span> Languages
</h3>
<div id="cmp-langs-b" class="space-y-3"></div>
</div>
</section>
<section id="compare-winner-banner" class="bg-surface-container-low border border-primary/20 rounded-xl p-6 text-center">
<p class="text-xs font-label text-on-surface-variant uppercase tracking-widest mb-2">Overall Winner</p>
<div id="compare-winner-content"></div>
</section>
</div>
<div id="compare-empty" class="flex flex-col items-center justify-center py-24 text-center">
<div class="w-20 h-20 rounded-full bg-primary/5 border border-primary/10 flex items-center justify-center mb-6">
<span class="material-symbols-outlined text-primary text-3xl" aria-hidden="true">compare_arrows</span>
</div>
<h3 class="text-xl font-bold font-headline mb-2">Pick two developers</h3>
<p class="text-on-surface-variant text-sm max-w-xs">Enter two GitHub usernames above to see a detailed side-by-side comparison.</p>
</div>
</main>
</div>
<!-- ── REPO SEARCH ── -->
<div id="repo-search-screen">
<main class="pt-24 pb-20 px-6 max-w-screen-2xl mx-auto min-h-screen">
<section class="mb-10">
<h1 class="text-4xl font-extrabold tracking-tighter text-on-surface font-headline mb-2">
Repository <span class="text-primary">Explorer</span>
</h1>
<p class="text-on-surface-variant text-lg">Search and explore repositories across GitHub.</p>
</section>
<section class="mb-8">
<div class="relative max-w-3xl" id="repo-search-wrap">
<input id="repo-search-input" class="repo-search-input" type="text" placeholder="Search any repo, topic, or keyword…" autocomplete="off" spellcheck="false" aria-label="Search repositories" />
<button id="repo-search-btn"
class="absolute right-3 top-1/2 -translate-y-1/2 bg-primary text-on-primary rounded-lg px-5 py-2 text-sm font-semibold hover:bg-primary-fixed active:scale-95 transition-all z-10">
Search
</button>
<div id="repo-recent-dropdown" class="recent-dropdown">
<div class="px-4 py-2 border-b border-outline-variant/10 flex items-center gap-2">
<span class="material-symbols-outlined text-xs text-on-surface-variant" aria-hidden="true">history</span>
<span class="text-xs font-label text-on-surface-variant uppercase tracking-wider">Recent Searches</span>
</div>
<div id="repo-recent-list"></div>
</div>
</div>
<div class="flex flex-wrap gap-2 mt-5 items-center">
<span class="text-xs font-label text-on-surface-variant uppercase tracking-wider mr-2">Sort by:</span>
<button class="filter-pill active" data-sort="stars" onclick="RepoSearch.setSort('stars', this)">⭐ Stars</button>
<button class="filter-pill" data-sort="forks" onclick="RepoSearch.setSort('forks', this)">🔱 Forks</button>
<button class="filter-pill" data-sort="updated" onclick="RepoSearch.setSort('updated', this)">🕐 Updated</button>
<button class="filter-pill" data-sort="best-match" onclick="RepoSearch.setSort('best-match', this)">✨ Best Match</button>
<div class="ml-4 flex flex-wrap gap-2 items-center">
<span class="text-xs font-label text-on-surface-variant uppercase tracking-wider mr-2">Language:</span>
<button class="filter-pill active" data-lang="" onclick="RepoSearch.setLang('', this)">All</button>
<button class="filter-pill" data-lang="javascript" onclick="RepoSearch.setLang('javascript', this)">JS</button>
<button class="filter-pill" data-lang="typescript" onclick="RepoSearch.setLang('typescript', this)">TS</button>
<button class="filter-pill" data-lang="python" onclick="RepoSearch.setLang('python', this)">Python</button>
<button class="filter-pill" data-lang="go" onclick="RepoSearch.setLang('go', this)">Go</button>
<button class="filter-pill" data-lang="rust" onclick="RepoSearch.setLang('rust', this)">Rust</button>
</div>
</div>
</section>
<div id="repo-search-empty" class="flex flex-col items-center justify-center py-24 text-center">
<div class="w-20 h-20 rounded-full bg-primary/5 border border-primary/10 flex items-center justify-center mb-6">
<span class="material-symbols-outlined text-primary text-3xl" aria-hidden="true">manage_search</span>
</div>
<h3 class="text-xl font-bold font-headline mb-2">Search GitHub Repositories</h3>
<p class="text-on-surface-variant text-sm max-w-xs">Enter a keyword to search across all public repositories on GitHub.</p>
</div>
<div id="repo-search-loading" style="display:none">
<div class="grid grid-cols-1 gap-4">
<div class="bg-surface-container-low rounded-xl p-6">
<div class="flex items-start justify-between mb-3">
<div><div class="skeleton h-5 w-48 rounded mb-2"></div><div class="skeleton h-4 w-24 rounded"></div></div>
<div class="skeleton h-8 w-20 rounded-full"></div>
</div>
<div class="skeleton h-4 w-full rounded mb-2"></div>
<div class="skeleton h-4 w-3/4 rounded mb-4"></div>
<div class="flex gap-4"><div class="skeleton h-4 w-16 rounded"></div><div class="skeleton h-4 w-16 rounded"></div></div>
</div>
<div class="bg-surface-container-low rounded-xl p-6">
<div class="flex items-start justify-between mb-3">
<div><div class="skeleton h-5 w-48 rounded mb-2"></div><div class="skeleton h-4 w-24 rounded"></div></div>
<div class="skeleton h-8 w-20 rounded-full"></div>
</div>
<div class="skeleton h-4 w-full rounded mb-2"></div>
<div class="skeleton h-4 w-3/4 rounded mb-4"></div>
<div class="flex gap-4"><div class="skeleton h-4 w-16 rounded"></div><div class="skeleton h-4 w-16 rounded"></div></div>
</div>
</div>
</div>
<div id="repo-search-results" style="display:none">
<div class="flex items-center justify-between mb-6">
<p id="repo-results-count" class="text-sm text-on-surface-variant font-label"></p>
<div id="repo-pagination" class="flex items-center gap-2"></div>
</div>
<div id="repo-results-grid" class="grid grid-cols-1 gap-4"></div>
<div id="repo-pagination-bottom" class="flex items-center justify-center gap-2 mt-8"></div>
</div>
</main>
</div>
<!-- ── REPO DETAIL ── -->
<div id="repo-detail-screen">
<main class="pt-24 pb-20 px-6 max-w-screen-2xl mx-auto min-h-screen">
<div class="mb-6">
<button class="back-btn" id="repo-detail-back" onclick="RepoDetail.goBack()">
<span class="material-symbols-outlined text-base" aria-hidden="true">arrow_back</span>
<span id="repo-detail-back-label">Back to dashboard</span>
</button>
</div>
<section class="bg-surface-container-low p-8 rounded-xl border-l-4 border-tertiary relative overflow-hidden mb-8">
<div class="absolute -top-20 -right-20 w-56 h-56 bg-tertiary/10 blur-[80px] rounded-full pointer-events-none"></div>
<div class="relative">
<div class="flex flex-wrap items-start justify-between gap-6">
<div class="flex-1">
<div class="flex items-center gap-3 mb-2">
<span class="material-symbols-outlined text-tertiary" aria-hidden="true">folder_open</span>
<span id="rd-owner" class="text-sm font-label text-on-surface-variant"></span>
<span class="text-on-surface-variant/40">/</span>
<h1 id="rd-name" class="text-2xl font-extrabold font-headline text-on-surface"></h1>
</div>
<p id="rd-desc" class="text-on-surface-variant text-base mb-4"></p>
<div class="flex flex-wrap gap-2" id="rd-topics"></div>
</div>
<a id="rd-gh-link" href="#" target="_blank" rel="noopener noreferrer"
class="bg-tertiary/10 border border-tertiary/25 text-tertiary font-semibold px-5 py-2.5 rounded-md text-sm active:scale-95 transition-transform flex items-center gap-2">
<span class="material-symbols-outlined text-sm" aria-hidden="true">open_in_new</span>
View on GitHub
</a>
</div>
<div class="grid grid-cols-2 sm:grid-cols-4 gap-4 mt-6" id="rd-stats-row"></div>
</div>
</section>
<div class="flex items-center gap-1 bg-surface-container-lowest/60 rounded-xl p-1 mb-8 w-fit overflow-x-auto">
<button class="detail-tab active" onclick="RepoDetail.switchTab('overview')" data-detail-tab="overview">
<span class="material-symbols-outlined text-sm align-middle mr-1" aria-hidden="true">info</span>Overview
</button>
<button class="detail-tab" onclick="RepoDetail.switchTab('issues')" data-detail-tab="issues">
<span class="material-symbols-outlined text-sm align-middle mr-1" aria-hidden="true">bug_report</span>Issues
<span id="rd-issue-count-badge" class="ml-1 bg-primary/15 text-primary text-[10px] px-1.5 py-0.5 rounded-full font-label font-bold"></span>
</button>
<button class="detail-tab" onclick="RepoDetail.switchTab('releases')" data-detail-tab="releases">
<span class="material-symbols-outlined text-sm align-middle mr-1" aria-hidden="true">new_releases</span>Releases
</button>
<button class="detail-tab" onclick="RepoDetail.switchTab('contributors')" data-detail-tab="contributors">
<span class="material-symbols-outlined text-sm align-middle mr-1" aria-hidden="true">group</span>Contributors
</button>
</div>
<div class="detail-panel active" id="detail-panel-overview">
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<div class="lg:col-span-2 bg-surface-container-low p-6 rounded-xl">
<h3 class="text-lg font-bold font-headline mb-4">Repository Info</h3>
<div class="space-y-4" id="rd-overview-content"></div>
</div>
<div class="bg-surface-container-low p-6 rounded-xl">
<h3 class="text-lg font-bold font-headline mb-4">Details</h3>
<div class="space-y-3 text-sm font-label" id="rd-details-content"></div>
</div>
</div>
</div>
<div class="detail-panel" id="detail-panel-issues">
<div class="bg-surface-container-low rounded-xl overflow-hidden">
<div class="p-6 border-b border-outline-variant/10 flex items-center justify-between">
<h3 class="text-lg font-bold font-headline">Open Issues</h3>
<span id="rd-issues-meta" class="text-xs font-label text-on-surface-variant"></span>
</div>
<div id="rd-issues-list" class="px-6 divide-y divide-outline-variant/10"></div>
<div id="rd-issues-loading" class="px-6 py-8 text-center">
<div class="skeleton h-5 w-full rounded mb-3"></div>
<div class="skeleton h-5 w-4/5 rounded mb-3"></div>
<div class="skeleton h-5 w-3/5 rounded"></div>
</div>
</div>
</div>
<div class="detail-panel" id="detail-panel-releases">
<div id="rd-releases-list"></div>
<div id="rd-releases-loading" class="space-y-3">
<div class="skeleton h-24 w-full rounded-xl"></div>
<div class="skeleton h-24 w-full rounded-xl"></div>
</div>
</div>
<div class="detail-panel" id="detail-panel-contributors">
<div class="bg-surface-container-low p-6 rounded-xl">
<h3 class="text-lg font-bold font-headline mb-6">Top Contributors</h3>
<div id="rd-contrib-loading" class="space-y-3">
<div class="skeleton h-10 w-full rounded"></div>
<div class="skeleton h-10 w-4/5 rounded"></div>
<div class="skeleton h-10 w-3/5 rounded"></div>
</div>
<div id="rd-contrib-list" class="space-y-4"></div>
</div>
</div>
</main>
</div>
<!-- ── SCRIPTS (order matters) ── -->
<script src="js/utils.js"></script>
<script src="js/state.js"></script>
<script src="js/api.js"></script>
<script src="js/ui.js"></script>
<script src="js/dep-graph.js"></script>
<script src="js/repo-detail.js"></script>
<script src="js/repo-search.js"></script>
<script src="js/router.js"></script>
<script src="js/app.js"></script>
</body>
</html>