File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Contribute } from "@/app/components/Contribute";
44import Image from "next/image" ;
55import { ActivityTicker } from "@/app/components/ActivityTicker" ;
66import { cn } from "@/lib/utils" ;
7- import { AnimatedBar } from "@/app/components/AnimatedBar" ;
7+ import { AnimatedBar } from "@/app/components/rank/ AnimatedBar" ;
88import leaderboardData from "@/generated/site-leaderboard.json" ;
99import { MAINTAINERS } from "@/lib/admins" ;
1010
@@ -160,6 +160,7 @@ export function Hero() {
160160 className = "font-mono text-xs uppercase tracking-widest font-bold text-[var(--foreground)] hover:text-[var(--color-accent)] transition-colors flex items-center gap-2 group"
161161 data-umami-event = "navigation_click"
162162 data-umami-event-region = "hero_leaderboard"
163+ data-umami-event-label = "FULL RANK"
163164 >
164165 FULL RANK
165166 < span className = "transform group-hover:translate-x-1 transition-transform" >
File renamed without changes.
Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ export function ContributorRow({
2626 return (
2727 < Dialog . Root >
2828 < Dialog . Trigger asChild >
29- < button className = "w-full text-left group flex flex-col md:flex-row md:items-center gap-4 border border-[var(--foreground)] p-4 bg-[var(--background)] hard-shadow-hover transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 cursor-pointer" >
29+ < button
30+ className = "w-full text-left group flex flex-col md:flex-row md:items-center gap-4 border border-[var(--foreground)] p-4 bg-[var(--background)] hard-shadow-hover transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 cursor-pointer"
31+ data-umami-event = "open_contributor_dialog"
32+ data-umami-event-user = { user . name }
33+ >
3034 < div className = "font-mono text-2xl font-bold w-12 text-center text-[var(--foreground)] shrink-0" >
3135 #{ idx + 1 }
3236 </ div >
@@ -91,6 +95,9 @@ export function ContributorRow({
9195 key = { doc . id }
9296 href = { doc . url }
9397 className = "flex w-full items-center justify-between group/link border-b border-[#111111]/20 dark:border-neutral-200/20 py-3 hover:bg-[#111111]/5 dark:hover:bg-white/5 transition-colors px-2"
98+ data-umami-event = "click_contributor_doc"
99+ data-umami-event-doc = { doc . title }
100+ data-umami-event-user = { user . name }
94101 >
95102 < span className = "font-mono text-sm text-[#111111] dark:text-neutral-200 group-hover/link:underline decoration-2 decoration-[#CC0000] underline-offset-4 truncate pr-4" >
96103 { doc . title }
Original file line number Diff line number Diff line change 11import { Header } from "@/app/components/Header" ;
22import { Footer } from "@/app/components/Footer" ;
3- import { AnimatedBar } from "@/app/components/AnimatedBar" ;
3+ import { AnimatedBar } from "@/app/components/rank/ AnimatedBar" ;
44import { cn } from "@/lib/utils" ;
5- import { ContributorRow } from "@/app/components/ContributorRow" ;
5+ import { ContributorRow } from "@/app/components/rank/ ContributorRow" ;
66
77import leaderboardData from "@/generated/site-leaderboard.json" ;
88
You can’t perform that action at this time.
0 commit comments