From 7ddba25fa96b967b386d6f346ffac459bff411d4 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Tue, 3 Feb 2026 13:20:51 +0100 Subject: [PATCH] Animated live runs --- src/app/runs/page.tsx | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/app/runs/page.tsx b/src/app/runs/page.tsx index 2ab10a9..715bf28 100644 --- a/src/app/runs/page.tsx +++ b/src/app/runs/page.tsx @@ -13,6 +13,7 @@ import { TableRow, TableCell, } from "@/components/ui/table"; +import { cn } from "@/lib/utils"; /* ---------------- mock data ---------------- */ @@ -92,9 +93,7 @@ export default function LiveRuns() { ))} - - 🔥 PB Pace - + 🔥 PB Pace {/* Table */} @@ -112,8 +111,8 @@ export default function LiveRuns() { - {sortedRuns.map((run) => ( - + {sortedRuns.map((run, index) => ( + ))} @@ -123,15 +122,28 @@ export default function LiveRuns() { ); } -function LiveRunRow({ username, problem, category, time, pace, status }: any) { +function LiveRunRow({ + index, + username, + problem, + category, + time, + pace, + status, +}: any) { const pacePositive = pace.startsWith("+"); const isTop = status === "pb"; return ( {isTop ? `🔥 ${username}` : username}