This repository has been archived on 2026-05-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tippspiel/frontend/src/pages/DashboardPage.module.css
T
Ronny 23dc97bcc3
Build & Deploy Tippspiel / build (push) Successful in 51s
style: match Stitch glassmorphism — backdrop-blur, flag glow auras, deeper shadows
Hero card now uses glassmorphism (rgba + backdrop-blur) from Stitch design.
Each flag has individual blur-glow aura behind it.
Rounded corners increased to 2rem. Shadow depth increased.
Stats tiles and nudges also refined with rounder corners.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 12:08:29 +02:00

322 lines
6.6 KiB
CSS

.dashboard {
padding: 16px;
max-width: 600px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 14px;
}
/* ═══════════════════════════════════════
HERO CARD — Stadium atmosphere
═══════════════════════════════════════ */
.hero {
position: relative;
border-radius: 2rem;
padding: 28px 22px 22px;
cursor: pointer;
overflow: hidden;
/* Glassmorphism like Stitch design */
background: rgba(49, 52, 66, 0.4);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
/* Gradient border effect */
border: 1px solid rgba(75, 183, 248, 0.2);
box-shadow:
0 40px 80px -15px rgba(0, 0, 0, 0.6),
0 8px 24px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.08);
transition: transform 0.2s;
}
.hero:hover {
transform: scale(1.01);
}
/* Radial glow behind the teams — stronger, like Stitch */
.heroGlow {
position: absolute;
top: 45%;
left: 50%;
width: 320px;
height: 280px;
transform: translate(-50%, -50%);
background: radial-gradient(circle at center, rgba(75, 183, 248, 0.15) 0%, transparent 70%);
pointer-events: none;
z-index: 0;
}
.heroHeader {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
z-index: 1;
margin-bottom: 12px;
}
.heroLabel {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--text-muted);
font-weight: 600;
}
.heroCountdown {
display: flex;
align-items: center;
gap: 6px;
color: var(--gold);
font-weight: 700;
font-size: 0.75rem;
letter-spacing: 0.5px;
background: rgba(254, 174, 50, 0.1);
padding: 4px 10px;
border-radius: 20px;
border: 1px solid rgba(254, 174, 50, 0.2);
}
.countdownDot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--gold);
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
/* LED Kickoff Time */
.heroKickoff {
text-align: center;
position: relative;
z-index: 1;
margin-bottom: 8px;
}
.heroLED {
font-family: 'DSEG7', 'Courier New', monospace;
font-size: 22px;
color: #FECC4C;
letter-spacing: 0.04em;
text-shadow:
0 0 4px rgba(254, 174, 50, 0.9),
0 0 12px rgba(254, 174, 50, 0.5),
0 0 24px rgba(254, 174, 50, 0.25);
}
/* Teams */
.heroTeams {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 24px;
margin: 12px 0 20px;
position: relative;
z-index: 1;
}
.heroTeam {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
flex: 1;
}
.heroCrestBox {
position: relative;
width: 80px;
height: 80px;
border-radius: 20px;
background: var(--surface-high);
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* Glow aura behind each flag */
.heroCrestBox::before {
content: '';
position: absolute;
inset: -16px;
background: rgba(75, 183, 248, 0.2);
filter: blur(24px);
border-radius: 50%;
z-index: -1;
}
.heroCrest {
width: 58px;
height: 58px;
object-fit: contain;
}
.heroCrestFallback {
font-size: 32px;
}
.heroTeamName {
font-size: 0.85rem;
font-weight: 700;
color: var(--text-primary);
text-transform: uppercase;
letter-spacing: 0.5px;
text-align: center;
}
.heroVs {
font-size: 1.1rem;
font-weight: 800;
color: var(--gold);
margin-top: 24px;
text-shadow: 0 0 10px rgba(254, 174, 50, 0.3);
}
/* CTA / Tip */
.heroTipBtn {
display: block;
width: 100%;
padding: 14px;
border: none;
border-radius: var(--radius-md);
background: linear-gradient(135deg, var(--primary) 0%, #2196f3 100%);
color: white;
font-weight: 700;
font-size: 1rem;
cursor: pointer;
position: relative;
z-index: 1;
box-shadow: 0 4px 20px rgba(75, 183, 248, 0.3);
transition: transform 0.15s, box-shadow 0.15s;
letter-spacing: 0.3px;
}
.heroTipBtn:hover {
transform: translateY(-1px);
box-shadow: 0 6px 24px rgba(75, 183, 248, 0.4);
}
.heroTipBtn:active {
transform: scale(0.98);
}
.heroTip {
border-radius: var(--radius-sm);
padding: 10px 16px;
text-align: center;
color: var(--gold);
font-weight: 600;
font-size: 0.9rem;
background: rgba(254, 174, 50, 0.08);
border: 1px solid rgba(254, 174, 50, 0.15);
position: relative;
z-index: 1;
}
.heroEmpty {
text-align: center;
color: var(--text-muted);
margin: 24px 0;
position: relative;
z-index: 1;
}
/* ═══════════════════════════════════════
STATS ROW
═══════════════════════════════════════ */
.statsRow {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 8px;
}
.statTile {
padding: 18px 8px;
text-align: center;
border-radius: 1.5rem !important;
border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.statValue {
display: block;
font-size: 1.6rem;
font-weight: 800;
color: var(--text-primary);
line-height: 1;
}
.statGold {
color: var(--gold);
}
.statLabel {
display: block;
font-size: 0.65rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.8px;
margin-top: 6px;
font-weight: 600;
}
/* ═══════════════════════════════════════
NUDGES
═══════════════════════════════════════ */
.nudges {
display: flex;
flex-direction: column;
gap: 8px;
}
.nudge {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
cursor: pointer;
transition: all 0.2s;
border-radius: 1.25rem !important;
border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.nudge:hover {
transform: translateX(2px);
}
.nudgeIcon {
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(75, 183, 248, 0.1);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
flex-shrink: 0;
}
.nudgeText {
font-size: 0.85rem;
color: var(--text-secondary);
line-height: 1.4;
}
/* ═══════════════════════════════════════
STATES
═══════════════════════════════════════ */
.loading,
.error {
text-align: center;
padding: 60px 20px;
color: var(--text-muted);
}