style: unified flag+time design across Dashboard and Spielplan
Build & Deploy Tippspiel / build (push) Successful in 52s

Dashboard:
- Flags aligned to top (flex-start) — consistent height regardless of name length
- LED time centered to flag height (64px)

Match Cards:
- Flags fullbleed (object-fit: cover), larger (56px), glassmorphism shine
- LED kickoff time replaces dash separator between flags
- Score appears at same position when Live/Finished
- Removed separate kickoffRow — cards are more compact
- scoreBox height matches flag height for vertical centering

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ronny
2026-04-12 13:22:13 +02:00
parent fd47d05ff6
commit 58b2c7ea86
3 changed files with 31 additions and 49 deletions
+23 -35
View File
@@ -102,40 +102,25 @@
border: 1px solid rgba(75,183,248,0.15); border: 1px solid rgba(75,183,248,0.15);
} }
/* Kickoff — stadium LED segment display */ /* LED time between flags */
.kickoffRow {
text-align: center;
margin: 8px 0;
}
.kickoffLED { .kickoffLED {
font-family: 'DSEG7', 'Courier New', monospace; font-family: 'DSEG7', 'Courier New', monospace;
font-size: 18px; font-size: 16px;
color: #FECC4C; color: #FECC4C;
letter-spacing: 0.02em; letter-spacing: 0.02em;
word-spacing: -0.1em;
text-shadow: text-shadow:
0 0 4px rgba(254, 174, 50, 0.9), 0 0 3px rgba(254, 174, 50, 0.9),
0 0 12px rgba(254, 174, 50, 0.6), 0 0 8px rgba(254, 174, 50, 0.5),
0 0 24px rgba(254, 174, 50, 0.3), 0 0 16px rgba(254, 174, 50, 0.25);
0 0 40px rgba(254, 174, 50, 0.15);
} }
/* Match row — Teams + Score/Time */
/* VS separator */
.vsSeparator {
font-size: 24px;
font-weight: 800;
color: var(--text-muted);
}
/* Match row — Teams + Score */
.matchRow { .matchRow {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
justify-content: center; justify-content: center;
gap: 16px; gap: 10px;
margin-bottom: 18px; margin-bottom: 16px;
} }
/* Teams — flag on top, name below */ /* Teams — flag on top, name below */
@@ -148,23 +133,26 @@
min-width: 0; min-width: 0;
} }
/* Score aligned to flag center (not flag+name center) */ /* Center: Score or LED time, vertically centered to flag */
.scoreBox { .scoreBox {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
align-self: flex-start; align-self: flex-start;
height: 52px; /* match flag height for vertical centering */ height: 56px; /* match flag height for vertical centering */
min-width: 60px;
} }
/* Flag box — subtle, clean */ /* Flag box — fullbleed icon style */
.flagBox { .flagBox {
width: 52px; width: 56px;
height: 52px; height: 56px;
border-radius: 12px; border-radius: 14px;
background: var(--surface-high); background: var(--surface-high);
box-shadow: 0 2px 8px rgba(0,0,0,0.12); box-shadow:
border: 1px solid var(--border-subtle); 0 4px 12px rgba(0,0,0,0.25),
inset 0 1px 0 rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.08);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -178,15 +166,15 @@
position: absolute; position: absolute;
top: 0; left: 0; right: 0; top: 0; left: 0; right: 0;
height: 40%; height: 40%;
background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%); background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
pointer-events: none; pointer-events: none;
z-index: 1; z-index: 1;
} }
.crest { .crest {
width: 36px; width: 100%;
height: 36px; height: 100%;
object-fit: contain; object-fit: cover;
position: relative; position: relative;
z-index: 0; z-index: 0;
} }
+3 -10
View File
@@ -116,14 +116,7 @@ export default function MatchCard({ match, onTip }: Props) {
)} )}
</div> </div>
{/* Kickoff — stadium LED display, centered */} {/* Teams + Center (time or score) */}
{!isFinished && !isLive && (
<div className={styles.kickoffRow}>
<span className={styles.kickoffLED}>{formatKickoff(match.utcDate)}</span>
</div>
)}
{/* Teams + Score */}
<div className={styles.matchRow}> <div className={styles.matchRow}>
{/* Home */} {/* Home */}
<div className={styles.teamHome}> <div className={styles.teamHome}>
@@ -131,14 +124,14 @@ export default function MatchCard({ match, onTip }: Props) {
<span className={styles.teamName}>{match.homeTeam.shortName}</span> <span className={styles.teamName}>{match.homeTeam.shortName}</span>
</div> </div>
{/* Center: Score or VS separator */} {/* Center: LED time or Score */}
<div className={styles.scoreBox}> <div className={styles.scoreBox}>
{isFinished || isLive ? ( {isFinished || isLive ? (
<span className={`${styles.score} ${isLive ? styles.scoreLive : ''}`}> <span className={`${styles.score} ${isLive ? styles.scoreLive : ''}`}>
{match.score.home ?? ''}&nbsp;:&nbsp;{match.score.away ?? ''} {match.score.home ?? ''}&nbsp;:&nbsp;{match.score.away ?? ''}
</span> </span>
) : ( ) : (
<span className={styles.vsSeparator}></span> <span className={styles.kickoffLED}>{formatKickoff(match.utcDate)}</span>
)} )}
</div> </div>
+5 -4
View File
@@ -103,12 +103,13 @@
50% { opacity: 0.3; } 50% { opacity: 0.3; }
} }
/* Center column: LED time between flags */ /* Center column: LED time between flags, vertically centered to flag height */
.heroCenter { .heroCenter {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 4px; justify-content: center;
height: 64px; /* matches flag box height */
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
@@ -152,8 +153,8 @@
.heroTeams { .heroTeams {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: flex-start;
gap: 12px; gap: 8px;
margin: 16px 0 20px; margin: 16px 0 20px;
position: relative; position: relative;
z-index: 1; z-index: 1;