From c18160484aaca4978557658585ec3838ea97beea Mon Sep 17 00:00:00 2001 From: bender Date: Sat, 2 May 2026 07:36:38 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index a9e63b5..8c61fce 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -31,7 +31,7 @@ export default function LandingPage() { { name: "Home", id: "home" }, { name: "Leaderboard", id: "leaderboard" }, { name: "Matches", id: "matches" }, - { name: "Dashboard", href: "/dashboard" }, + { name: "Dashboard", id: "/dashboard" }, ]} brandName="MarbleCityFC" /> @@ -119,7 +119,7 @@ export default function LandingPage() { title="Match & Stats Entry" description="Use this secure panel to input new player data, soccer match scores, and update weekly stats." inputPlaceholder="Enter admin authorization code" - onSubmit={(email) => { + onSubmit={(email: string) => { if (email === "admin") { window.location.href = "/dashboard"; } @@ -146,8 +146,7 @@ export default function LandingPage() { ); -} -" +}" }, { "path": "src/app/dashboard/page.tsx", "content": "\"use client\"; @@ -173,13 +172,15 @@ export default function DashboardPage() { headingFontWeight=\"normal\" > - +
+ +
- +
+ +
); }" } - ], - "rawPlan": "I've added a secure dashboard route where authenticated users are redirected after login. The dashboard features key performance statistics and insights. Navigation across the site has been updated to include the new dashboard link." + ] } \ No newline at end of file -- 2.49.1