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