style: stadium scoreboard kickoff display in card header
Kickoff time styled as LED scoreboard: monospace font, dark background, gold text with glow effect. Placed in card header next to group badge. Cards are more compact without the separate kickoff row. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -84,7 +84,7 @@ export default function MatchCard({ match, onTip }: Props) {
|
||||
return (
|
||||
<div className={`card ${styles.card} ${styles[`card_${state}`]} ${isLive ? styles.live : ''} ${glowClass}`}>
|
||||
|
||||
{/* Top row: Group + Countdown */}
|
||||
{/* Top row: Group + Kickoff (stadium display) + Countdown */}
|
||||
<div className={styles.topRow}>
|
||||
{(isLive || isFinished) && (
|
||||
<span className={`${styles.status} ${isLive ? styles.statusLive : ''}`}>
|
||||
@@ -97,6 +97,9 @@ export default function MatchCard({ match, onTip }: Props) {
|
||||
{match.group.replace('GROUP_', 'Gruppe ')}
|
||||
</span>
|
||||
)}
|
||||
{!isFinished && !isLive && (
|
||||
<span className={styles.kickoffDisplay}>{formatKickoff(match.utcDate)}</span>
|
||||
)}
|
||||
<span className={styles.topRowSpacer} />
|
||||
{(state === 'open' || state === 'tipped') && match.tippable && (
|
||||
<span className={`${styles.badge} ${remainingMins < 60 ? styles.badgeUrgent : ''} ${remainingMins < 5 ? styles.countdownUrgent : ''}`}>
|
||||
@@ -113,13 +116,6 @@ export default function MatchCard({ match, onTip }: Props) {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Kickoff time — centered above flags */}
|
||||
{!isFinished && !isLive && (
|
||||
<div className={styles.kickoffRow}>
|
||||
<span className={styles.kickoffTime}>{formatKickoff(match.utcDate)}</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Teams + Score */}
|
||||
<div className={styles.matchRow}>
|
||||
{/* Home */}
|
||||
|
||||
Reference in New Issue
Block a user