feat: add Dashboard as new startseite

Hero card with next match + countdown, stats tiles (rank, points, streak),
and contextual nudges. Replaces match list as landing page.
This commit is contained in:
Ronny
2026-04-11 19:02:53 +02:00
parent 6b9445461d
commit d48bc2d449
3 changed files with 280 additions and 1 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { useState, useEffect } from 'react';
import { Routes, Route, NavLink } from 'react-router-dom';
import { Sun, Moon, Settings } from 'lucide-react';
import DashboardPage from './pages/DashboardPage';
import MatchesPage from './pages/MatchesPage';
import LeaderboardPage from './pages/LeaderboardPage';
import ProfilePage from './pages/ProfilePage';
@@ -106,7 +107,7 @@ export default function App() {
<main className={styles.main}>
<Routes>
<Route path="/" element={<MatchesPage key={refreshKey} devUser={devUser} />} />
<Route path="/" element={<DashboardPage key={refreshKey} devUser={devUser} />} />
<Route path="/spiele" element={<MatchesPage key={refreshKey} devUser={devUser} />} />
<Route path="/rangliste" element={<LeaderboardPage key={refreshKey} />} />
<Route path="/profil" element={<ProfilePage key={refreshKey} />} />