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/ProfilePage.module.css
T
Ronny f56ecb724b feat: Light Mode mit Theme-Toggle
Fügt vollständigen Light Mode hinzu – umschaltbar per ☀️/🌙-Button
im Header, Auswahl wird in localStorage persistiert.

- index.css: Light-Mode-Variablen unter [data-theme="light"], neue Tokens --border-subtle, --shadow-card, --card-shine
- App.tsx: Theme-State + useEffect setzt data-theme auf <html>
- App.module.css: Toggle-Button gestylt, Header-Background auf CSS-Var umgestellt
- Komponenten-CSS: Hardcodierte rgba-Werte auf CSS-Variablen migriert

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 12:50:04 +02:00

107 lines
4.1 KiB
CSS

.page { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.loading { display: flex; justify-content: center; padding: 60px; }
.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; }
.spinnerSm { width: 14px; height: 14px; border: 2px solid var(--surface-high); border-top-color: var(--text-primary); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { color: var(--text-secondary); padding: 40px; text-align: center; }
.heroCard { padding: 28px; display: flex; align-items: flex-start; gap: 20px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-dim); border: 2px solid rgba(75,183,248,0.3); display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.heroInfo { flex: 1; min-width: 0; }
.name { font-size: 22px; font-weight: 800; }
.rankBadge { font-size: 13px; color: var(--gold); margin-top: 4px; font-weight: 600; }
/* Team-Feld */
.teamRow { margin-top: 8px; }
.teamBtn {
background: none;
border: none;
padding: 0;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
}
.teamName {
font-size: 13px;
color: var(--text-secondary);
font-weight: 600;
}
.teamEditHint {
font-size: 11px;
color: var(--text-muted);
opacity: 0;
transition: opacity 0.15s;
}
.teamBtn:hover .teamEditHint { opacity: 1; }
.teamPlaceholder {
font-size: 12px;
color: var(--primary);
opacity: 0.7;
transition: opacity 0.15s;
}
.teamBtn:hover .teamPlaceholder { opacity: 1; }
.teamEditRow {
display: flex;
align-items: center;
gap: 6px;
}
.teamInput {
background: var(--surface-high);
border: 1px solid rgba(75,183,248,0.3);
border-radius: 8px;
padding: 5px 10px;
font-size: 13px;
color: var(--text-primary);
font-family: inherit;
outline: none;
width: 180px;
transition: border-color 0.15s;
}
.teamInput:focus { border-color: var(--primary); }
.teamSaveBtn, .teamCancelBtn {
width: 28px; height: 28px;
border-radius: 8px;
border: none;
cursor: pointer;
display: flex; align-items: center; justify-content: center;
font-size: 13px;
font-weight: 700;
transition: all 0.15s;
}
.teamSaveBtn { background: var(--primary); color: #fff; }
.teamSaveBtn:hover:not(:disabled) { background: #6bc4fa; }
.teamSaveBtn:disabled { opacity: 0.5; cursor: not-allowed; }
.teamCancelBtn { background: var(--surface-high); color: var(--text-muted); }
.teamCancelBtn:hover { color: var(--text-primary); }
.teamMsg { font-size: 12px; margin-top: 4px; }
.teamMsgOk { color: var(--success); }
.teamMsgErr { color: var(--error); }
.heroPoints { text-align: right; }
.pointsVal { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; display: block; }
.pointsLbl { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.statsGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.statCard { padding: 20px; text-align: center; }
.statVal { font-size: 36px; font-weight: 800; display: block; }
.statLbl { font-size: 13px; color: var(--text-secondary); display: block; margin-top: 4px; }
.accuracyCard { padding: 24px; }
.accuracyHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.accuracyLabel { font-size: 14px; color: var(--text-secondary); }
.accuracyVal { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.bar { height: 10px; background: var(--surface-high); border-radius: 5px; overflow: hidden; display: flex; margin-bottom: 12px; }
.barFill { height: 100%; transition: width 0.5s ease; }
.exact { background: var(--gold); }
.tendency { background: var(--primary); }
.barLegend { display: flex; gap: 16px; font-size: 12px; color: var(--text-secondary); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }