Frontend-Update: dynamischer Host, Lade-Overlay, Footer entfernt, klickbare Team-Panel

- API-Host dynamisch vom Seiten-URI abgeleitet (nicht mehr hardcoded)
- Lade-Overlay mit Spinner beim Start und bei Verbindungsproblemen
- Footer/Rundenverlauf entfernt, Scoreboard füllt jetzt die ganze Seite
- Team-Panels sind klickbar (Single-Click = Punkt, Double-Click = nächste Runde)
- Verbindungszustand mit grünem/rotem Dot angezeigt
- CSS neu strukturiert, Duplikate entfernt
This commit is contained in:
2026-07-14 17:25:08 +02:00
parent bd05edfb9c
commit 53ff08f45e
3 changed files with 338 additions and 546 deletions
+55 -118
View File
@@ -71,7 +71,7 @@ body {
/* ---------- Fullscreen Container ---------- */
.fullscreen-container {
display: grid;
grid-template-rows: auto auto 1fr auto auto;
grid-template-rows: auto 1fr;
height: 100vh;
height: 100dvh;
max-width: 100vw;
@@ -189,8 +189,9 @@ body {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
padding: 16px;
padding: 0;
min-height: 0;
height: 100%;
}
/* ---------- Team Panel ---------- */
@@ -200,10 +201,14 @@ body {
align-items: center;
justify-content: center;
padding: 20px 16px;
border-radius: var(--border-radius-lg);
border-radius: 0;
position: relative;
overflow: hidden;
transition: box-shadow var(--transition-speed);
cursor: pointer;
user-select: none;
-webkit-user-select: none;
height: 100%;
}
.team-panel::before {
@@ -215,30 +220,37 @@ body {
pointer-events: none;
}
.team-panel:hover::before {
opacity: 0.08;
}
.team-panel:active::before {
opacity: 0.15;
}
.team-panel:active {
transform: scale(0.99);
}
/* Red Team */
.red-team {
background: var(--team-red-bg);
border: 2px solid var(--team-red-dim);
border-right: 1px solid var(--border-color);
border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
border-right: 2px solid var(--border-color);
border-radius: 0;
}
.red-team::before {
background: linear-gradient(135deg, var(--team-red) 0%, transparent 60%);
opacity: 0.05;
}
/* Green Team */
.green-team {
background: var(--team-green-bg);
border: 2px solid var(--team-green-dim);
border-left: 1px solid var(--border-color);
border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
border-radius: 0;
}
.green-team::before {
background: linear-gradient(225deg, var(--team-green) 0%, transparent 60%);
opacity: 0.05;
}
/* Color bar on top */
@@ -299,13 +311,13 @@ body {
/* ---------- Flash Animation for Score Updates ---------- */
@keyframes scoreFlashRed {
0% { transform: scale(1); color: var(--text-primary); }
30% { transform: scale(1.12); color: #fff; }
30% { transform: scale(1.15); color: #fff; }
100% { transform: scale(1); color: var(--text-primary); }
}
@keyframes scoreFlashGreen {
0% { transform: scale(1); color: var(--text-primary); }
30% { transform: scale(1.12); color: #fff; }
30% { transform: scale(1.15); color: #fff; }
100% { transform: scale(1); color: var(--text-primary); }
}
@@ -317,77 +329,40 @@ body {
animation: scoreFlashGreen 0.4s ease-out;
}
/* ---------- Round History ---------- */
.round-history {
background: var(--bg-secondary);
border-top: 1px solid var(--border-color);
padding: 8px 12px;
flex-shrink: 0;
}
.rounds-list {
display: flex;
gap: 6px;
overflow-x: auto;
overflow-y: hidden;
padding: 4px 0;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
scrollbar-width: thin;
scrollbar-color: var(--border-color) transparent;
}
.rounds-list::-webkit-scrollbar {
height: 4px;
}
.rounds-list::-webkit-scrollbar-track {
background: transparent;
}
.rounds-list::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 2px;
}
/* Round Tile */
.round-tile {
flex-shrink: 0;
/* ---------- Loading Spinner ---------- */
.loading-overlay {
position: fixed;
inset: 0;
z-index: 2000;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
padding: 6px 10px;
min-width: 60px;
border-radius: var(--border-radius);
font-size: 13px;
font-weight: 600;
font-variant-numeric: tabular-nums;
border: 1px solid var(--border-color);
background: var(--bg-tertiary);
background: var(--bg-primary);
gap: 24px;
}
.loading-overlay.hidden {
display: none;
}
.loading-spinner {
width: 64px;
height: 64px;
border: 4px solid var(--border-color);
border-top-color: var(--accent-gold);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.loading-text {
font-size: 16px;
color: var(--text-secondary);
white-space: nowrap;
}
.round-tile.active {
border-color: var(--accent-gold);
background: rgba(255, 204, 0, 0.1);
color: var(--accent-gold);
box-shadow: 0 0 8px rgba(255, 204, 0, 0.15);
}
.round-tile .score-red {
color: var(--team-red);
}
.round-tile .score-green {
color: var(--team-green);
}
.round-tile .round-num {
color: var(--text-muted);
font-size: 11px;
margin-right: 2px;
font-weight: 500;
}
/* ---------- Connection Status ---------- */
@@ -538,20 +513,6 @@ body {
.reset-btn {
padding: 8px 10px;
}
.scoreboard {
padding: 10px 8px;
}
.team-panel {
padding: 14px 10px;
}
.round-tile {
min-width: 52px;
padding: 5px 8px;
font-size: 12px;
}
}
/* Large screens / tablets */
@@ -560,20 +521,6 @@ body {
padding: 12px 32px;
min-height: 72px;
}
.scoreboard {
padding: 32px 48px;
}
.round-history {
padding: 12px 24px;
}
.round-tile {
min-width: 72px;
padding: 8px 14px;
font-size: 14px;
}
}
/* Landscape mobile */
@@ -595,16 +542,6 @@ body {
.team-panel {
padding: 10px 8px;
}
.round-history {
padding: 4px 8px;
}
.round-tile {
min-width: 48px;
padding: 3px 6px;
font-size: 11px;
}
}
/* ---------- Prefers reduced motion ---------- */