feat: Stadium Elite Design, Rangliste, Profil-Team, User-Upsert & n8n Cronjob

- MatchCard + TipModal: Uhrzeit statt VS zwischen Flaggen, Gruppe zentriert
- LeaderboardPage: Podium (2./1./3.), DU-Badge, Trend-Pfeile, Team-Zeile, CTA-Card
- AdminPage: Stadium Elite Redesign mit Result-Bar und Inline-Spinner
- ProfilePage: Team-Feld inline editierbar (PATCH /api/profile/team)
- User-Upsert beim ersten App-Aufruf (Matches-Route) statt erst beim Tipp
- DB Migration 002: team-Spalte in users, Leaderboard View aktualisiert
- Leaderboard-Refresh automatisch nach Tipps-Auswertung
- n8n Workflow angelegt: stündlicher Sync + Auswertung (ID: t3SDspIGDXwkfOt3)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ronny Mueller
2026-04-03 23:37:38 +02:00
parent e967f36f6c
commit e27a62a37b
20 changed files with 1515 additions and 297 deletions
+79 -3
View File
@@ -1,14 +1,90 @@
.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 rgba(255,255,255,0.3); border-top-color: #fff; 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: center; 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: 24px; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.heroInfo { flex: 1; }
.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; }