style: move kickoff time to card header, better date header spacing

- Kickoff time now in header row: "Gruppe A · 04:00 Uhr · in 61 Tagen"
  instead of centered between flags (avoids visual misalignment)
- Date timeline headers: more top padding for balanced spacing
  between cards

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ronny
2026-04-11 22:37:25 +02:00
parent d39ec7a579
commit e1b9f03d60
3 changed files with 14 additions and 18 deletions
+5 -8
View File
@@ -94,7 +94,7 @@ export default function MatchCard({ match, onTip }: Props) {
return (
<div className={`card ${styles.card} ${styles[`card_${state}`]} ${isLive ? styles.live : ''} ${glowClass}`}>
{/* Top row: Status (only Live/Finished) + Group + Countdown */}
{/* Top row: Group + Kickoff + Countdown */}
<div className={styles.topRow}>
{(isLive || isFinished) && (
<span className={`${styles.status} ${isLive ? styles.statusLive : ''}`}>
@@ -107,6 +107,10 @@ export default function MatchCard({ match, onTip }: Props) {
{match.group.replace('GROUP_', 'Gruppe ')}
</span>
)}
{!isFinished && !isLive && (
<span className={styles.kickoffBadge}>{formatKickoff(match.utcDate)}</span>
)}
<span className={styles.topRowSpacer} />
{(state === 'open' || state === 'tipped') && match.tippable && (
match.minutesUntilKickoff < 60 ? (
<span className={`${styles.countdown} ${remainingMins < 5 ? styles.countdownUrgent : ''}`}>
@@ -118,13 +122,6 @@ export default function MatchCard({ match, onTip }: Props) {
)}
</div>
{/* Kickoff time — above the teams row */}
{!isFinished && !isLive && (
<div className={styles.kickoffRow}>
<span className={styles.kickoffTime}>{formatKickoff(match.utcDate)}</span>
</div>
)}
{/* Teams + Score */}
<div className={styles.matchRow}>
{/* Home */}