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:
@@ -77,17 +77,18 @@
|
|||||||
border: 1px solid rgba(75,183,248,0.15);
|
border: 1px solid rgba(75,183,248,0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Kickoff time — centered above flags */
|
/* Kickoff — stadium scoreboard display */
|
||||||
.kickoffRow {
|
.kickoffDisplay {
|
||||||
text-align: center;
|
font-family: 'Courier New', 'Lucida Console', monospace;
|
||||||
margin-bottom: 6px;
|
font-size: 16px;
|
||||||
}
|
|
||||||
|
|
||||||
.kickoffTime {
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--text-secondary);
|
color: var(--gold);
|
||||||
letter-spacing: 0.05em;
|
letter-spacing: 0.12em;
|
||||||
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
padding: 3px 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid rgba(254, 174, 50, 0.15);
|
||||||
|
text-shadow: 0 0 8px rgba(254, 174, 50, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.topRowSpacer {
|
.topRowSpacer {
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ export default function MatchCard({ match, onTip }: Props) {
|
|||||||
return (
|
return (
|
||||||
<div className={`card ${styles.card} ${styles[`card_${state}`]} ${isLive ? styles.live : ''} ${glowClass}`}>
|
<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}>
|
<div className={styles.topRow}>
|
||||||
{(isLive || isFinished) && (
|
{(isLive || isFinished) && (
|
||||||
<span className={`${styles.status} ${isLive ? styles.statusLive : ''}`}>
|
<span className={`${styles.status} ${isLive ? styles.statusLive : ''}`}>
|
||||||
@@ -97,6 +97,9 @@ export default function MatchCard({ match, onTip }: Props) {
|
|||||||
{match.group.replace('GROUP_', 'Gruppe ')}
|
{match.group.replace('GROUP_', 'Gruppe ')}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
{!isFinished && !isLive && (
|
||||||
|
<span className={styles.kickoffDisplay}>{formatKickoff(match.utcDate)}</span>
|
||||||
|
)}
|
||||||
<span className={styles.topRowSpacer} />
|
<span className={styles.topRowSpacer} />
|
||||||
{(state === 'open' || state === 'tipped') && match.tippable && (
|
{(state === 'open' || state === 'tipped') && match.tippable && (
|
||||||
<span className={`${styles.badge} ${remainingMins < 60 ? styles.badgeUrgent : ''} ${remainingMins < 5 ? styles.countdownUrgent : ''}`}>
|
<span className={`${styles.badge} ${remainingMins < 60 ? styles.badgeUrgent : ''} ${remainingMins < 5 ? styles.countdownUrgent : ''}`}>
|
||||||
@@ -113,13 +116,6 @@ export default function MatchCard({ match, onTip }: Props) {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Kickoff time — centered above flags */}
|
|
||||||
{!isFinished && !isLive && (
|
|
||||||
<div className={styles.kickoffRow}>
|
|
||||||
<span className={styles.kickoffTime}>{formatKickoff(match.utcDate)}</span>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Teams + Score */}
|
{/* Teams + Score */}
|
||||||
<div className={styles.matchRow}>
|
<div className={styles.matchRow}>
|
||||||
{/* Home */}
|
{/* Home */}
|
||||||
|
|||||||
Reference in New Issue
Block a user