Skip to content

Commit 5ef217c

Browse files
authored
Merge pull request #7 from opensource-observer/add-repo-rank
feat: add ethereum repo rank
2 parents f4a85da + 1131469 commit 5ef217c

4 files changed

Lines changed: 1014 additions & 8 deletions

File tree

app/app/icon.svg

Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use client';
2+
import MarimoIframe from '@/components/MarimoIframe';
3+
export default function EthereumRepoRank() {
4+
return <MarimoIframe notebookName="notebooks/insights/ethereum-repo-rank" />;
5+
}

app/components/Sidebar.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Link from 'next/link';
44
import { usePathname } from 'next/navigation';
55
import { useState } from 'react';
66
import {
7-
Github,
87
Database,
98
ChevronRight,
109
BarChart3,
@@ -16,6 +15,7 @@ import {
1615
Zap,
1716
Wallet,
1817
Repeat,
18+
Trophy,
1919
type LucideIcon,
2020
} from 'lucide-react';
2121

@@ -73,6 +73,7 @@ const navItems: NavItem[] = [
7373
label: 'Insights',
7474
href: '/insights',
7575
children: [
76+
{ label: 'Ethereum Repo Rank', href: '/insights/ethereum-repo-rank', icon: Trophy },
7677
{ label: 'DeFi Builder Journeys', href: '/insights/defi-builder-journeys', icon: Wallet },
7778
{ label: 'Speedrun Ethereum', href: '/insights/speedrun-ethereum', icon: Zap },
7879
{ label: '2025 Developer Trends', href: '/insights/developer-report-2025', icon: TrendingUp },
@@ -180,12 +181,12 @@ export default function Sidebar() {
180181
{/* Header */}
181182
<div className="px-4 py-3 border-b border-[var(--sidebar-border)]">
182183
<Link href="/" className="flex items-center gap-2.5 rounded-lg px-1 py-1 hover:bg-[var(--sidebar-accent)] transition-colors">
183-
<div className="h-7 w-7 rounded-md bg-[#3080B6] flex items-center justify-center text-white shrink-0">
184+
<div className="shrink-0">
184185
<svg
185186
xmlns="http://www.w3.org/2000/svg"
186187
fill="none"
187188
viewBox="0 0 112 154"
188-
className="w-4 h-4"
189+
className="w-6 h-auto text-[var(--sidebar-primary)]"
189190
>
190191
<path d="M48.303 153.213c-10.797 0-21.457-2.796-31.1-8.277l5.078-8.934c12.275 6.977 26.536 8.756 40.153 5.008 13.616-3.749 24.963-12.576 31.94-24.863 6.976-12.28 8.756-26.542 5.008-40.158-3.749-13.617-12.577-24.958-24.863-31.94l5.073-8.934c14.67 8.337 25.211 21.882 29.693 38.142 4.476 16.266 2.353 33.294-5.983 47.957-8.337 14.669-21.883 25.212-38.143 29.687a63.538 63.538 0 01-16.857 2.295v.017z" fill="currentColor" />
191192
<path d="M48.338 132.661c-7.284 0-14.48-1.886-20.983-5.581l5.002-8.828c7.514 4.269 16.307 5.245 24.637 2.951 8.331-2.294 15.267-7.692 19.53-15.207 8.81-15.51 3.358-35.293-12.145-44.097l5.073-8.934c20.434 11.607 27.612 37.67 16.006 58.11-5.623 9.897-14.764 17.016-25.738 20.037a42.877 42.877 0 01-11.382 1.549z" fill="currentColor" />
@@ -194,7 +195,7 @@ export default function Sidebar() {
194195
<path d="M58.502 72.24c-5.872-3.334-7.894-10.08-4.79-15.544 1.686-2.962 3.986-4.783 6.835-5.41 2.768-.609 5.93-.012 8.905 1.68l5.061-8.911c-5.185-2.945-10.926-3.962-16.17-2.809-5.66 1.242-10.478 4.925-13.57 10.371-5.895 10.377-2.14 23.402 8.62 29.534 5.771 3.281 7.834 10.175 4.695 15.704-1.508 2.66-3.82 4.41-6.675 5.061-2.892.662-6.073.124-8.964-1.52l-5.073 8.934c3.642 2.07 7.621 3.134 11.565 3.134a21.61 21.61 0 004.766-.532c5.664-1.295 10.394-4.849 13.32-10.005 5.978-10.524 2.236-23.561-8.525-29.693v.006z" fill="currentColor" />
195196
</svg>
196197
</div>
197-
<p className="text-sm font-semibold text-[var(--sidebar-primary)] truncate">Developer Data Portal</p>
198+
<p className="text-sm font-semibold text-[var(--sidebar-primary)] truncate">Developer<br></br>Data<br></br>Portal</p>
198199
</Link>
199200
</div>
200201

@@ -213,12 +214,9 @@ export default function Sidebar() {
213214
rel="noopener noreferrer"
214215
className="flex items-center gap-2 px-1 text-sm text-[var(--sidebar-muted)] hover:text-[var(--sidebar-primary)] transition-colors"
215216
>
216-
<Github className="h-4 w-4" />
217+
<svg className="h-4 w-4" viewBox="0 0 24 24" fill="currentColor"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>
217218
<span>GitHub</span>
218219
</a>
219-
<p className="text-xs text-[var(--sidebar-muted)] mt-2 px-1">
220-
Powered by <span className="font-medium text-[var(--sidebar-foreground)]">OSO</span>
221-
</p>
222220
</div>
223221
</aside>
224222
);

0 commit comments

Comments
 (0)