feat: add Dashboard as new startseite

Hero card with next match + countdown, stats tiles (rank, points, streak),
and contextual nudges. Replaces match list as landing page.
This commit is contained in:
Ronny
2026-04-11 19:02:53 +02:00
parent b10f0f6ad4
commit d27881c1c2
3 changed files with 280 additions and 1 deletions
+141
View File
@@ -0,0 +1,141 @@
.dashboard {
padding: 16px;
max-width: 600px;
margin: 0 auto;
}
.hero {
background: var(--surface-mid);
border-radius: var(--radius-lg);
padding: 20px;
cursor: pointer;
border: 1px solid rgba(75, 183, 248, 0.1);
transition: transform 0.2s;
}
.hero:hover {
transform: scale(1.01);
}
.heroLabel {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-secondary);
display: flex;
justify-content: space-between;
align-items: center;
}
.heroCountdown {
color: var(--gold);
font-weight: 700;
font-size: 0.85rem;
}
.heroTeams {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin: 16px 0;
}
.heroTeam {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
}
.heroCrest {
width: 48px;
height: 48px;
object-fit: contain;
}
.heroVs {
font-size: 1.2rem;
font-weight: 700;
color: var(--gold);
}
.heroTip {
background: var(--surface-high);
border-radius: var(--radius-sm);
padding: 8px 16px;
text-align: center;
color: var(--gold);
font-weight: 600;
}
.heroTipBtn {
display: block;
width: 100%;
padding: 10px;
border: none;
border-radius: var(--radius-sm);
background: var(--primary);
color: white;
font-weight: 600;
cursor: pointer;
font-size: 0.95rem;
}
.statsRow {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 8px;
margin: 16px 0;
}
.statTile {
background: var(--surface-mid);
border-radius: var(--radius-md);
padding: 14px 8px;
text-align: center;
border: 1px solid rgba(75, 183, 248, 0.08);
}
.statValue {
display: block;
font-size: 1.5rem;
font-weight: 700;
color: var(--gold);
}
.statLabel {
display: block;
font-size: 0.7rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-top: 4px;
}
.nudges {
display: flex;
flex-direction: column;
gap: 6px;
}
.nudge {
background: var(--surface-low);
border-radius: var(--radius-sm);
padding: 12px 16px;
color: var(--text-secondary);
font-size: 0.9rem;
cursor: pointer;
transition: background 0.2s;
}
.nudge:hover {
background: var(--surface-mid);
}
.loading,
.error {
text-align: center;
padding: 60px 20px;
color: var(--text-muted);
}