๐Ÿ“ฆ EqualifyEverything / equalify-hub

๐Ÿ“„ home.tsx ยท 598 lines
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
598import type { FC } from 'hono/jsx';
import type { Context } from 'hono';
import { BaseLayout, Nav, Footer, site } from '#src/components/Layout';
import { escapeHtml } from '#src/components/utils';
import { getCurrentUser, getGitHubToken, fetchGitHub as fetchGitHubWithAuth } from '#src/utils/auth';
import config from '#src/utils/config';

const ORG_NAME = config.githubOrg;

const styles = `
body {
    min-height: 100vh;
    background: #ffffff;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
}
.top-bar {
    height: 4px;
    background: #C8102E;
}
.container { max-width: 1200px; margin: 0 auto; padding: 24px 48px; }

/* Org header */
.org-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d1d5db;
    margin-bottom: 24px;
}
.org-avatar {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}
.org-info h1 { margin: 0 0 8px 0; font-size: 28px; color: #1f2937; }
.org-info .org-name { color: #4b5563; font-size: 18px; margin-bottom: 8px; }
.org-info .org-bio { color: #4b5563; margin-bottom: 12px; }
.org-links { display: flex; gap: 16px; font-size: 14px; color: #4b5563; flex-wrap: wrap; }
.org-links a { color: #C8102E; }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}
.stat-value { font-size: 32px; font-weight: 600; color: #1f2937; }
.stat-label { font-size: 14px; color: #4b5563; margin-top: 4px; }
.stat-value.stars { color: #d97706; }
.stat-value.forks { color: #2563eb; }
.stat-value.issues { color: #C8102E; }
.stat-value.repos { color: #059669; }

/* Two column layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 900px) {
    .main-content { grid-template-columns: 2fr 1fr; }
}

/* Repo cards */
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
}
.repo-card {
    background: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}
.repo-card h3 { margin: 0 0 8px 0; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #1f2937; }
.repo-card h3 a { color: #C8102E; }
.repo-card .desc { color: #4b5563; font-size: 14px; margin-bottom: 12px; }
.repo-card .meta { display: flex; gap: 16px; font-size: 12px; color: #6b7280; flex-wrap: wrap; }
.lang-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.badge { font-size: 12px; font-weight: 400; padding: 2px 8px; border-radius: 24px; }
.badge.private { background: #e5e7eb; color: #6b7280; }
.badge.archived { background: #fee2e2; color: #C8102E; }

/* Issues */
.issues-section {
    background: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 16px;
}
.issue-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}
.issue-item:last-child { border-bottom: none; }
.issue-title { margin-bottom: 4px; }
.issue-title a { color: #1f2937; font-weight: 500; }
.issue-title a:hover { color: #C8102E; }
.issue-meta { font-size: 12px; color: #6b7280; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.issue-meta a { color: #6b7280; }
.issue-meta a:hover { color: #C8102E; }
.repo-link { font-weight: 500; }
.label { font-size: 11px; padding: 2px 6px; border-radius: 12px; font-weight: 500; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #001e62 0%, #001845 100%);
    padding: 80px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(200, 16, 46, 0.9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero { padding: 48px 24px; }
}
.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 32px 0;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-btn-primary {
    background: #C8102E;
    color: #ffffff;
}
.hero-btn-primary:hover {
    background: #9a0c23;
    text-decoration: none;
    transform: translateY(-2px);
}
.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Quick Links below hero */
.quick-links {
    background: #f8f9fa;
    padding: 24px 48px;
    border-bottom: 1px solid #d1d5db;
}
.quick-links-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
}
.quick-link:hover {
    color: #C8102E;
}
.quick-link-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Section divider */
.section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 48px 16px;
}
.section-divider h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-divider p {
    color: #6b7280;
    margin: 8px 0 0 0;
    font-size: 15px;
}
`;

function formatNumber(num: number): string {
    if (num >= 1000000) return `${(num / 1000000).toFixed(1)}M`;
    if (num >= 1000) return `${(num / 1000).toFixed(1)}k`;
    return String(num);
}

function formatDate(dateStr: string): string {
    const date = new Date(dateStr);
    const now = new Date();
    const diffMs = now.getTime() - date.getTime();
    const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24));
    
    if (diffDays === 0) return 'today';
    if (diffDays === 1) return 'yesterday';
    if (diffDays < 7) return `${diffDays} days ago`;
    if (diffDays < 30) return `${Math.floor(diffDays / 7)} weeks ago`;
    if (diffDays < 365) return `${Math.floor(diffDays / 30)} months ago`;
    return `${Math.floor(diffDays / 365)} years ago`;
}

function getLanguageColor(lang: string): string {
    const colors: Record<string, string> = {
        'JavaScript': '#f1e05a',
        'TypeScript': '#3178c6',
        'Python': '#3572A5',
        'Java': '#b07219',
        'Go': '#00ADD8',
        'Rust': '#dea584',
        'Ruby': '#701516',
        'PHP': '#4F5D95',
        'C++': '#f34b7d',
        'C': '#555555',
        'C#': '#178600',
        'Swift': '#F05138',
        'Kotlin': '#A97BFF',
        'HTML': '#e34c26',
        'CSS': '#563d7c',
        'Shell': '#89e051',
        'Vue': '#41b883',
    };
    return colors[lang] || '#8b949e';
}

const RepoCard: FC<{ repo: any }> = ({ repo }) => (
    <div class="repo-card">
        <h3>
            <a href={`/${repo.full_name}`}>{escapeHtml(repo.name)}</a>
            {repo.private && <span class="badge private">Private</span>}
            {repo.archived && <span class="badge archived">Archived</span>}
        </h3>
        {repo.description && <div class="desc">{escapeHtml(repo.description)}</div>}
        <div class="meta">
            {repo.language && (
                <span>
                    <span class="lang-dot" style={`background:${getLanguageColor(repo.language)}`}></span>
                    {escapeHtml(repo.language)}
                </span>
            )}
            {repo.stargazers_count > 0 && <span>โ˜… {formatNumber(repo.stargazers_count)}</span>}
            {repo.forks_count > 0 && <span>โ‘‚ {formatNumber(repo.forks_count)}</span>}
            {repo.open_issues_count > 0 && <span>๐Ÿ”ด {repo.open_issues_count} issues</span>}
            <span>Updated {formatDate(repo.updated_at)}</span>
        </div>
    </div>
);

const IssueItem: FC<{ issue: any }> = ({ issue }) => {
    const repoName = issue.repository_url?.split('/').pop() || '';
    return (
        <div class="issue-item">
            <div class="issue-title">
                <a href={`/${ORG_NAME}/${repoName}/issues/${issue.number}`}>{escapeHtml(issue.title)}</a>
            </div>
            <div class="issue-meta">
                <a href={`/${ORG_NAME}/${repoName}`} class="repo-link">{repoName}</a>
                #{issue.number} opened {formatDate(issue.created_at)} by{' '}
                <a href={`/${issue.user?.login}`}>{issue.user?.login}</a>
                {issue.labels?.slice(0, 3).map((l: any) => (
                    <span class="label" style={`background:#${l.color}20;color:#${l.color};border:1px solid #${l.color}40;`}>
                        {escapeHtml(l.name)}
                    </span>
                ))}
            </div>
        </div>
    );
};

export const HomePage: FC<{
    org: any;
    repos: any[];
    issues: any[];
    totalStars: number;
    totalForks: number;
    totalOpenIssues: number;
    issuesClosed: number;
    contributorCount: number;
}> = ({ org, repos, issues, totalStars, totalForks, totalOpenIssues, issuesClosed, contributorCount }) => {
    const user = getCurrentUser();
    
    return (
        <BaseLayout title={`${site.name} โ€“ Developer tools for EqualifyEverything`} styles={styles}>
            <header class="site-header">
                <div class="top-bar"></div>
                <nav style="background:#ffffff;border-bottom:1px solid #d1d5db;padding:0;">
                    <div style="max-width:1200px;margin:0 auto;padding:16px 48px;display:flex;align-items:center;justify-content:space-between;gap:24px;">
                        <a href="/" class="logo" style="font-size:20px;font-weight:600;color:#001e62;text-decoration:none;display:flex;align-items:center;gap:10px;">
                            <img src={org?.avatar_url || `https://github.com/${ORG_NAME}.png`} alt="Equalify" style="width:32px;height:32px;border-radius:4px;" />
                            Equalify Hub
                        </a>
                        <div style="display:flex;align-items:center;gap:32px;">
                            <a href="/user-guide" style="color:#4b5563;font-size:15px;">User Guide</a>
                            <a href="/technical-docs" style="color:#4b5563;font-size:15px;">Technical</a>
                            <a href="/roadmap" style="color:#4b5563;font-size:15px;">Roadmap</a>
                            <a href="/feature-request" style="color:#4b5563;font-size:15px;">Feature Request</a>
                            <a href="/about" style="color:#4b5563;font-size:15px;">About</a>
                            {user ? (
                                <>
                                    <a href={`/${user.login}`} style="display:flex;align-items:center;gap:8px;color:#4b5563;font-size:15px;">
                                        <img src={user.avatar_url} alt={user.login} style="width:20px;height:20px;border-radius:50%;" />
                                        {user.login}
                                    </a>
                                    <a href="/logout" style="color:#4b5563;font-size:15px;">Sign out</a>
                                </>
                            ) : (
                                <a href={config.equalifyAppUrl} style="background:#C8102E;color:#ffffff;padding:8px 16px;border-radius:4px;font-size:14px;font-weight:500;">Sign into Equalify</a>
                            )}
                        </div>
                    </div>
                </nav>
            </header>
            
            {/* Hero Section */}
            <section class="hero">
                <div class="hero-content">
                    <span class="hero-badge">UIC Digital Accessibility</span>
                    <h1>Welcome to the Equalify Hub</h1>
                    <p>
                        Your central resource for Equalify โ€“ UIC's open-source web accessibility platform. 
                        Find documentation, track development progress, and learn how to contribute.
                    </p>
                    <div class="hero-buttons">
                        <a href="/user-guide" class="hero-btn hero-btn-primary">
                            <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                                <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
                                <polyline points="14 2 14 8 20 8"/>
                                <line x1="16" y1="13" x2="8" y2="13"/>
                                <line x1="16" y1="17" x2="8" y2="17"/>
                                <polyline points="10 9 9 9 8 9"/>
                            </svg>
                            User Guide
                        </a>
                        <a href={config.equalifyAppUrl} class="hero-btn hero-btn-secondary" rel="noopener">
                            <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                                <circle cx="12" cy="12" r="10"/>
                                <line x1="2" y1="12" x2="22" y2="12"/>
                                <path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
                            </svg>
                            Go to Equalify App
                        </a>
                    </div>
                </div>
            </section>
            
            {/* Quick Links */}
            <div class="quick-links">
                <div class="quick-links-inner">
                    <a href="/user-guide" class="quick-link">
                        <span class="quick-link-icon">๐Ÿ“–</span>
                        <span><strong>User Guide</strong><br/>How to use Equalify</span>
                    </a>
                    <a href={`https://github.com/${ORG_NAME}`} class="quick-link" rel="noopener">
                        <span class="quick-link-icon">๐Ÿ’ป</span>
                        <span><strong>Source Code</strong><br/>View on GitHub</span>
                    </a>
                    <a href="/feature-request" class="quick-link">
                        <span class="quick-link-icon">๐Ÿ’ฌ</span>
                        <span><strong>Feature Request</strong><br/>Request features</span>
                    </a>
                    <a href="https://osf.it.uic.edu/" class="quick-link" rel="noopener">
                        <span class="quick-link-icon">๐ŸŽ“</span>
                        <span><strong>Open Source Fund</strong><br/>UIC initiative</span>
                    </a>
                </div>
            </div>

            {/* Section Header for Dashboard */}
            <div class="section-divider">
                <h2>
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
                        <line x1="3" y1="9" x2="21" y2="9"/>
                        <line x1="9" y1="21" x2="9" y2="9"/>
                    </svg>
                    Development Dashboard
                </h2>
                <p>Live activity from the EqualifyEverything GitHub organization</p>
            </div>
            
            <div class="container">
                {/* Org Header */}
                <div class="org-header">
                    <img class="org-avatar" src={org?.avatar_url || `https://github.com/${ORG_NAME}.png`} alt={ORG_NAME} />
                    <div class="org-info">
                        <h1>{org?.name || ORG_NAME}</h1>
                        <div class="org-name">@{ORG_NAME}</div>
                        {org?.description && <div class="org-bio">{escapeHtml(org.description)}</div>}
                        <div class="org-links">
                            {org?.blog && <span>๐Ÿ”— <a href={org.blog} rel="noopener">{org.blog}</a></span>}
                            {org?.location && <span>๐Ÿ“ {escapeHtml(org.location)}</span>}
                            <span><a href={`https://github.com/${ORG_NAME}`} rel="noopener">View on GitHub โ†’</a></span>
                        </div>
                    </div>
                </div>
                
                {/* Stats */}
                <div class="stats">
                    <div class="stat-card">
                        <div class="stat-value stars">{formatNumber(totalStars)}</div>
                        <div class="stat-label">Total Stars</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-value forks">{formatNumber(totalForks)}</div>
                        <div class="stat-label">Total Forks</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-value issues">{formatNumber(totalOpenIssues)}</div>
                        <div class="stat-label">Open Issues</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-value" style="color:#059669;">{formatNumber(issuesClosed)}</div>
                        <div class="stat-label">Issues Closed</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-value" style="color:#7c3aed;">{formatNumber(contributorCount)}</div>
                        <div class="stat-label">Contributors</div>
                    </div>
                </div>
                
                {/* Main Content */}
                <div class="main-content">
                    {/* Repos Column */}
                    <div>
                        <div class="section-title">๐Ÿ“ฆ Repositories</div>
                        {repos.filter(r => !r.fork && !r.archived).slice(0, 20).map(repo => <RepoCard repo={repo} />)}
                        {repos.length === 0 && <p style="color:#8b949e;">No repositories found</p>}
                    </div>
                    
                    {/* Issues Column */}
                    <div>
                        <div class="section-title">๐Ÿ”ด Recent Issues</div>
                        <div class="issues-section">
                            {issues.length > 0 
                                ? issues.map(issue => <IssueItem issue={issue} />)
                                : <p style="color:#8b949e;text-align:center;">No open issues found</p>
                            }
                        </div>
                    </div>
                </div>
            </div>
        </BaseLayout>
    );
};

async function fetchOrgData() {
    const token = getGitHubToken();
    
    try {
        const [org, repos] = await Promise.all([
            fetchGitHubWithAuth(`https://api.github.com/orgs/${ORG_NAME}`, token),
            fetchGitHubWithAuth(`https://api.github.com/orgs/${ORG_NAME}/repos?sort=updated&per_page=100&type=all`, token)
        ]);
        
        return { org, repos: repos || [] };
    } catch (error) {
        console.error('Error fetching org data:', error);
        return { org: null, repos: [] };
    }
}

async function fetchOrgIssues(repos: any[]) {
    const token = getGitHubToken();
    let openIssues: any[] = [];
    
    try {
        const issuePromises = repos.slice(0, 10).map(repo =>
            fetchGitHubWithAuth(
                `https://api.github.com/repos/${ORG_NAME}/${repo.name}/issues?state=open&per_page=5`,
                token
            ).catch(() => [])
        );
        
        const issueResults = await Promise.all(issuePromises);
        openIssues = issueResults.flat().filter(i => !i.pull_request);
        openIssues.sort((a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime());
        
        return openIssues.slice(0, 10);
    } catch (error) {
        console.error('Error fetching issues:', error);
        return [];
    }
}

export async function homeHandler(c: Context) {
    const { org, repos } = await fetchOrgData();
    const issues = await fetchOrgIssues(repos);
    
    const totalStars = repos.reduce((sum: number, r: any) => sum + (r.stargazers_count || 0), 0);
    const totalForks = repos.reduce((sum: number, r: any) => sum + (r.forks_count || 0), 0);
    const totalOpenIssues = repos.reduce((sum: number, r: any) => sum + (r.open_issues_count || 0), 0);

    return c.html(
        <HomePage 
            org={org}
            repos={repos}
            issues={issues}
            totalStars={totalStars}
            totalForks={totalForks}
            totalOpenIssues={totalOpenIssues}
            issuesClosed={245}
            contributorCount={12}
        />
    );
}