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/MatchesPage.module.css
T
Ronny 132ea4f7d0 feat: desktop layout optimization
Dashboard: 2-column layout (hero left 60%, stats+nudges right 40%)
Spielplan: 2-column grid for match cards on desktop
Profile: wider max-width (900px), 6-column achievement grid
Header: Admin link back in desktop nav, max-width 1200px
All via CSS media queries (min-width: 768px), no HTML restructuring.

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

182 lines
3.0 KiB
CSS

.page {
display: flex;
flex-direction: column;
gap: 16px;
max-width: 1100px;
margin: 0 auto;
}
/* ── Stats Card (glassmorphism) ── */
.statsCard {
padding: 18px 20px;
display: flex;
align-items: center;
gap: 16px;
}
.statsMain {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.statsProgress {
display: flex;
align-items: baseline;
gap: 2px;
}
.statsNum {
font-size: 28px;
font-weight: 800;
color: var(--primary);
line-height: 1;
}
.statsSlash {
font-size: 18px;
color: var(--text-muted);
font-weight: 300;
margin: 0 1px;
}
.statsTotal {
font-size: 16px;
font-weight: 600;
color: var(--text-secondary);
line-height: 1;
}
.statsLabel {
font-size: 11px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.statsDivider {
width: 1px;
height: 40px;
background: var(--border-subtle);
flex-shrink: 0;
}
.statsDetails {
display: flex;
gap: 16px;
flex: 1;
justify-content: space-around;
}
.statsDetail {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.statsDetailValue {
font-size: 18px;
font-weight: 700;
color: var(--text-primary);
line-height: 1;
}
.statsDetailLabel {
font-size: 10px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
/* ── Date Headers (timeline dividers) ── */
.dateHeader {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 0 6px;
}
.dateLine {
flex: 1;
height: 1px;
background: var(--border-subtle);
}
.dateLabel {
font-size: 14px;
font-weight: 700;
color: var(--text-primary);
white-space: nowrap;
display: flex;
align-items: center;
gap: 8px;
}
.dateCount {
font-size: 11px;
font-weight: 500;
color: var(--text-muted);
}
/* ── Match List ── */
.matchList {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 8px;
}
/* Desktop: 2-column grid for match cards */
@media (min-width: 768px) {
.matchList {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
}
/* ── Past matches toggle ── */
.pastToggle {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 12px 16px;
background: var(--surface-low);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-secondary);
cursor: pointer;
font-size: 13px;
font-weight: 600;
transition: background 0.15s;
}
.pastToggle:hover {
background: var(--surface-mid);
}
/* ── States ── */
.loadingState, .errorState, .emptyState {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
padding: 60px 20px;
color: var(--text-secondary);
}
.spinner {
width: 32px; height: 32px;
border: 3px solid var(--surface-high);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.emptyIcon { font-size: 48px; }
.errorState { color: var(--error); }