fix: restore glassmorphism card effects on new components
Build & Deploy Tippspiel / build (push) Successful in 19s

Apply global .card class to Dashboard, Profile, ConfettiReveal, and
Toast components for consistent glossy card appearance.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ronny
2026-04-11 19:45:54 +02:00
parent 19312b010f
commit 013b05c54e
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export default function ConfettiReveal({ match, onDismiss }: Props) {
return (
<div className={styles.overlay} onClick={onDismiss}>
<div className={styles.card} onClick={e => e.stopPropagation()}>
<div className={`card ${styles.card}`} onClick={e => e.stopPropagation()}>
<div className={styles.result}>
{match.homeTeam.shortName} {match.score.home}:{match.score.away} {match.awayTeam.shortName}
</div>
+1 -1
View File
@@ -14,7 +14,7 @@ export default function Toast({ message, onDismiss, duration = 5000 }: Props) {
}, [onDismiss, duration]);
return (
<div className={styles.toast} onClick={onDismiss}>
<div className={`card ${styles.toast}`} onClick={onDismiss}>
{message}
</div>
);
+5 -5
View File
@@ -43,7 +43,7 @@ export default function DashboardPage(_props: Props) {
return (
<div className={styles.dashboard}>
{/* Hero Card */}
<div className={styles.hero} onClick={() => navigate('/spiele')}>
<div className={`card ${styles.hero}`} onClick={() => navigate('/spiele')}>
<div className={styles.heroLabel}>
<span>Nächstes Spiel</span>
{hero && (
@@ -105,17 +105,17 @@ export default function DashboardPage(_props: Props) {
{/* Stats Row */}
<div className={styles.statsRow}>
<div className={styles.statTile}>
<div className={`card ${styles.statTile}`}>
<span className={styles.statValue}>
{stats.rank !== null ? stats.rank : '—'}
</span>
<span className={styles.statLabel}>Dein Rang</span>
</div>
<div className={styles.statTile}>
<div className={`card ${styles.statTile}`}>
<span className={styles.statValue}>{stats.totalPoints}</span>
<span className={styles.statLabel}>Punkte</span>
</div>
<div className={styles.statTile}>
<div className={`card ${styles.statTile}`}>
<span className={styles.statValue}>{formatStreak(stats.streak)}</span>
<span className={styles.statLabel}>Streak</span>
</div>
@@ -127,7 +127,7 @@ export default function DashboardPage(_props: Props) {
{nudges.map((nudge, i) => (
<div
key={i}
className={styles.nudge}
className={`card ${styles.nudge}`}
onClick={() => {
if (nudge.type === 'untipped') navigate('/spiele');
else if (nudge.type === 'leader') navigate('/rangliste');