From 013b05c54e66e0a25d5ba9deac437853654e9fd1 Mon Sep 17 00:00:00 2001 From: Ronny Date: Sat, 11 Apr 2026 19:45:54 +0200 Subject: [PATCH] fix: restore glassmorphism card effects on new components Apply global .card class to Dashboard, Profile, ConfettiReveal, and Toast components for consistent glossy card appearance. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/ConfettiReveal.tsx | 2 +- frontend/src/components/Toast.tsx | 2 +- frontend/src/pages/DashboardPage.tsx | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/ConfettiReveal.tsx b/frontend/src/components/ConfettiReveal.tsx index b6f270c..a92017e 100644 --- a/frontend/src/components/ConfettiReveal.tsx +++ b/frontend/src/components/ConfettiReveal.tsx @@ -25,7 +25,7 @@ export default function ConfettiReveal({ match, onDismiss }: Props) { return (
-
e.stopPropagation()}> +
e.stopPropagation()}>
{match.homeTeam.shortName} {match.score.home}:{match.score.away} {match.awayTeam.shortName}
diff --git a/frontend/src/components/Toast.tsx b/frontend/src/components/Toast.tsx index 75c40b3..78a6577 100644 --- a/frontend/src/components/Toast.tsx +++ b/frontend/src/components/Toast.tsx @@ -14,7 +14,7 @@ export default function Toast({ message, onDismiss, duration = 5000 }: Props) { }, [onDismiss, duration]); return ( -
+
{message}
); diff --git a/frontend/src/pages/DashboardPage.tsx b/frontend/src/pages/DashboardPage.tsx index 96f239b..5289866 100644 --- a/frontend/src/pages/DashboardPage.tsx +++ b/frontend/src/pages/DashboardPage.tsx @@ -43,7 +43,7 @@ export default function DashboardPage(_props: Props) { return (
{/* Hero Card */} -
navigate('/spiele')}> +
navigate('/spiele')}>
Nächstes Spiel {hero && ( @@ -105,17 +105,17 @@ export default function DashboardPage(_props: Props) { {/* Stats Row */}
-
+
{stats.rank !== null ? stats.rank : '—'} Dein Rang
-
+
{stats.totalPoints} Punkte
-
+
{formatStreak(stats.streak)} Streak
@@ -127,7 +127,7 @@ export default function DashboardPage(_props: Props) { {nudges.map((nudge, i) => (
{ if (nudge.type === 'untipped') navigate('/spiele'); else if (nudge.type === 'leader') navigate('/rangliste');