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 ( return (
<div className={styles.overlay} onClick={onDismiss}> <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}> <div className={styles.result}>
{match.homeTeam.shortName} {match.score.home}:{match.score.away} {match.awayTeam.shortName} {match.homeTeam.shortName} {match.score.home}:{match.score.away} {match.awayTeam.shortName}
</div> </div>
+1 -1
View File
@@ -14,7 +14,7 @@ export default function Toast({ message, onDismiss, duration = 5000 }: Props) {
}, [onDismiss, duration]); }, [onDismiss, duration]);
return ( return (
<div className={styles.toast} onClick={onDismiss}> <div className={`card ${styles.toast}`} onClick={onDismiss}>
{message} {message}
</div> </div>
); );
+5 -5
View File
@@ -43,7 +43,7 @@ export default function DashboardPage(_props: Props) {
return ( return (
<div className={styles.dashboard}> <div className={styles.dashboard}>
{/* Hero Card */} {/* Hero Card */}
<div className={styles.hero} onClick={() => navigate('/spiele')}> <div className={`card ${styles.hero}`} onClick={() => navigate('/spiele')}>
<div className={styles.heroLabel}> <div className={styles.heroLabel}>
<span>Nächstes Spiel</span> <span>Nächstes Spiel</span>
{hero && ( {hero && (
@@ -105,17 +105,17 @@ export default function DashboardPage(_props: Props) {
{/* Stats Row */} {/* Stats Row */}
<div className={styles.statsRow}> <div className={styles.statsRow}>
<div className={styles.statTile}> <div className={`card ${styles.statTile}`}>
<span className={styles.statValue}> <span className={styles.statValue}>
{stats.rank !== null ? stats.rank : '—'} {stats.rank !== null ? stats.rank : '—'}
</span> </span>
<span className={styles.statLabel}>Dein Rang</span> <span className={styles.statLabel}>Dein Rang</span>
</div> </div>
<div className={styles.statTile}> <div className={`card ${styles.statTile}`}>
<span className={styles.statValue}>{stats.totalPoints}</span> <span className={styles.statValue}>{stats.totalPoints}</span>
<span className={styles.statLabel}>Punkte</span> <span className={styles.statLabel}>Punkte</span>
</div> </div>
<div className={styles.statTile}> <div className={`card ${styles.statTile}`}>
<span className={styles.statValue}>{formatStreak(stats.streak)}</span> <span className={styles.statValue}>{formatStreak(stats.streak)}</span>
<span className={styles.statLabel}>Streak</span> <span className={styles.statLabel}>Streak</span>
</div> </div>
@@ -127,7 +127,7 @@ export default function DashboardPage(_props: Props) {
{nudges.map((nudge, i) => ( {nudges.map((nudge, i) => (
<div <div
key={i} key={i}
className={styles.nudge} className={`card ${styles.nudge}`}
onClick={() => { onClick={() => {
if (nudge.type === 'untipped') navigate('/spiele'); if (nudge.type === 'untipped') navigate('/spiele');
else if (nudge.type === 'leader') navigate('/rangliste'); else if (nudge.type === 'leader') navigate('/rangliste');