diff --git a/src/app/run/page.tsx b/src/app/run/page.tsx index db633a3..5df6132 100644 --- a/src/app/run/page.tsx +++ b/src/app/run/page.tsx @@ -2,7 +2,21 @@ import { Play, Pause, RotateCcw, Flag, ChevronRight } from "lucide-react"; import SplitRow from "@/components/app/SplitRow"; import { Button } from "@/components/ui/button"; -const Run = () => { +type RunInfo = { + category: "any%" | "100%"; + problems: number; + currentAttempt: number; + pbTime: string; + worldRecord: string; +}; + +type ChatMessage = { + user: string; + message: string; + time: string; +}; + +export default function Run() { const splits = [ { problemName: "Two Sum Dash", @@ -42,194 +56,81 @@ const Run = () => { }, ]; - const runInfo = { - category: "Any% Easy", + const runInfo: RunInfo = { + category: "any%", problems: 5, pbTime: "4:35", worldRecord: "3:58", currentAttempt: 47, }; + const chatMessages = [ + { user: "Alice", message: "Nice split!", time: "1:53" }, + { user: "Bob", message: "Watch out for the string problem!", time: "1:54" }, + { user: "Charlie", message: "PB incoming? 👀", time: "1:55" }, + ]; + return ( -
- Attempt #{runInfo.currentAttempt} -
-- WR:{" "} - - {runInfo.worldRecord} - -
-1:52.34
-- PB: {runInfo.pbTime} | Diff:{" "} - +0:12 -
-- Problem 3 of 5 -
-1:52.34
++ PB: {runInfo.pbTime} | Diff:{" "} + +0:12 +
+