feat: Ergebnis-Banner, Dev-Simulations-Panel & Spiele-Reset
- MatchCard: farbiger Ergebnis-Banner (Exakt/Tendenz/Falsch) ersetzt tipRow, passender Card-Glow je Ergebnis; Lucide-Icons (lucide-react) - MatchCard: Ändern-Button links, vertikal mittig zur Tipp-Box ausgerichtet - DevPanel: Simulationsmodus mit User-Switcher, Zeit- & Status-Presets - DevPanel: Reset-Section mit "Spiel zurücksetzen", "Alle Spiele" und "Tipps löschen" (3 Buttons, farblich differenziert) - Backend: dev.ts mit set-time, set-status, reset-tips, reset-match - reset-match stellt Original-Datum wieder her (original_utc_date Spalte) - set-time sichert Original-Datum per COALESCE beim ersten Aufruf - Supabase Migration: original_utc_date TIMESTAMPTZ zu matches hinzugefügt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,211 @@
|
||||
/* Dev Panel — floating bottom right */
|
||||
.wrap {
|
||||
position: fixed;
|
||||
bottom: 80px; /* über der Nav-Bar */
|
||||
right: 16px;
|
||||
z-index: 9999;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.toggleBtn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 10px 14px;
|
||||
border-radius: 24px;
|
||||
background: rgba(254,174,50,0.15);
|
||||
border: 1px solid rgba(254,174,50,0.3);
|
||||
color: var(--gold);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 16px rgba(0,0,0,0.3);
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.toggleBtn:hover { background: rgba(254,174,50,0.25); }
|
||||
.toggleLabel { font-size: 12px; }
|
||||
|
||||
/* Panel */
|
||||
.panel {
|
||||
width: 300px;
|
||||
background: #111827;
|
||||
border: 1px solid rgba(254,174,50,0.2);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 20px 50px rgba(0,0,0,0.5);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.panelHeader {
|
||||
padding: 12px 16px;
|
||||
background: rgba(254,174,50,0.08);
|
||||
border-bottom: 1px solid rgba(254,174,50,0.15);
|
||||
}
|
||||
|
||||
.panelTitle {
|
||||
font-family: 'Plus Jakarta Sans', sans-serif;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--gold);
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
/* Sections */
|
||||
.section {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.section:last-child { border-bottom: none; }
|
||||
|
||||
.sectionDisabled { opacity: 0.4; pointer-events: none; }
|
||||
|
||||
.sectionLabel {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* User buttons */
|
||||
.userButtons { display: flex; flex-direction: column; gap: 6px; }
|
||||
|
||||
.userBtn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 10px;
|
||||
background: var(--surface-high);
|
||||
border: 1px solid transparent;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
text-align: left;
|
||||
}
|
||||
.userBtn:hover { border-color: rgba(75,183,248,0.3); }
|
||||
.userBtnActive {
|
||||
background: rgba(75,183,248,0.12);
|
||||
border-color: rgba(75,183,248,0.4);
|
||||
}
|
||||
|
||||
.userInitial {
|
||||
width: 28px; height: 28px;
|
||||
border-radius: 50%;
|
||||
background: var(--primary-dim);
|
||||
color: var(--primary);
|
||||
font-weight: 800;
|
||||
font-size: 12px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.userBtnActive .userInitial { background: rgba(75,183,248,0.2); }
|
||||
|
||||
.userName { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
|
||||
.userRole { font-size: 10px; color: var(--text-muted); }
|
||||
|
||||
/* Select */
|
||||
.select {
|
||||
width: 100%;
|
||||
background: var(--surface-high);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
color: var(--text-primary);
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
}
|
||||
.select:focus { border-color: var(--primary); }
|
||||
|
||||
/* Preset grid */
|
||||
.presetGrid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.presetBtn {
|
||||
padding: 7px 8px;
|
||||
border-radius: 8px;
|
||||
background: var(--surface-high);
|
||||
border: 1px solid rgba(255,255,255,0.08);
|
||||
color: var(--text-secondary);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
text-align: center;
|
||||
}
|
||||
.presetBtn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
|
||||
.presetBtn:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
.presetBtnLive { color: var(--error) !important; border-color: rgba(248,113,113,0.2) !important; }
|
||||
.presetBtnDanger { color: #34D399 !important; border-color: rgba(52,211,153,0.2) !important; }
|
||||
|
||||
/* Reset */
|
||||
.resetGrid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
/* Tipps-löschen nimmt volle Breite (dritte Zeile) */
|
||||
.resetBtnTips {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.resetBtn {
|
||||
padding: 8px 6px;
|
||||
border-radius: 8px;
|
||||
background: rgba(75,183,248,0.08);
|
||||
border: 1px solid rgba(75,183,248,0.18);
|
||||
color: var(--primary);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.resetBtn:hover:not(:disabled) { background: rgba(75,183,248,0.16); }
|
||||
.resetBtn:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
|
||||
/* "Alle Spiele" — etwas warnender */
|
||||
.resetBtnAll {
|
||||
background: rgba(254,174,50,0.08);
|
||||
border-color: rgba(254,174,50,0.2);
|
||||
color: var(--gold);
|
||||
}
|
||||
.resetBtnAll:hover:not(:disabled) { background: rgba(254,174,50,0.16); }
|
||||
|
||||
/* Tipps löschen — rot */
|
||||
.resetBtnTips {
|
||||
background: rgba(248,113,113,0.08);
|
||||
border-color: rgba(248,113,113,0.18);
|
||||
color: var(--error);
|
||||
}
|
||||
.resetBtnTips:hover:not(:disabled) { background: rgba(248,113,113,0.18); }
|
||||
|
||||
/* Log */
|
||||
.log {
|
||||
padding: 10px 16px;
|
||||
background: rgba(0,0,0,0.2);
|
||||
border-top: 1px solid rgba(255,255,255,0.05);
|
||||
}
|
||||
.logLine {
|
||||
font-size: 10px;
|
||||
color: var(--text-muted);
|
||||
font-family: monospace;
|
||||
line-height: 1.6;
|
||||
}
|
||||
Reference in New Issue
Block a user