style: move kickoff time to card header, better date header spacing
Build & Deploy Tippspiel / build (push) Successful in 50s

- 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 47ed425fc6
commit ea5018ab09
3 changed files with 14 additions and 18 deletions
+8 -9
View File
@@ -77,17 +77,16 @@
border: 1px solid rgba(75,183,248,0.15);
}
/* Kickoff row — above teams */
.kickoffRow {
text-align: center;
margin-bottom: 8px;
/* Kickoff badge in header row */
.kickoffBadge {
font-size: 12px;
font-weight: 700;
color: var(--text-secondary);
letter-spacing: 0.02em;
}
.kickoffTime {
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
letter-spacing: 0.03em;
.topRowSpacer {
flex: 1;
}
/* VS separator */
+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 */}
+1 -1
View File
@@ -89,7 +89,7 @@
display: flex;
align-items: center;
gap: 12px;
padding: 4px 0;
padding: 12px 0 6px;
}
.dateLine {