Relaunch: Navy/Weiß-Design, Landingpage, Regeln, Chat-Overlay (Baseline)

Sichert den bisherigen Relaunch-Stand vor dem Gameplay/Community-Update:
- Neues helles Design auf allen Seiten (Landing, Spiel, Login, Profil, Admin, Setup)
- index.html = Landingpage, play.html = Spiel, regeln/datenschutz/impressum
- Chat-Overlay mit Emoji + Giphy-GIF, Lobby Teilnehmen/Starten, App-Shell

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
danny 2026-06-15 06:20:27 +02:00
parent 188e8e52a2
commit cb3e15ef85
21 changed files with 2596 additions and 1586 deletions

View file

@ -289,12 +289,25 @@ try {
respond(['ok' => true, 'users' => $stmt->fetchAll()]);
break;
// ── Namensfarbe speichern ─────────────────────────────────────
case 'save_color':
$me = requireAuth($pdo);
$body = input();
$color = trim($body['color'] ?? '');
if (!preg_match('/^#[0-9a-fA-F]{6}$/', $color)) {
respond(['error' => 'Ungültige Farbe.'], 400);
}
$pdo->prepare('UPDATE gtl_users SET color=? WHERE id=?')
->execute([$color, $me['id']]);
respond(['ok' => true]);
break;
// ── Profil abrufen ────────────────────────────────────────────
case 'get_profile':
$me = requireAuth($pdo);
$stmt = $pdo->prepare(
'SELECT u.id, u.username, u.avatar, u.role, u.created_at, u.last_login,
'SELECT u.id, u.username, u.avatar, u.role, u.created_at, u.last_login, u.color,
s.*
FROM gtl_users u
LEFT JOIN gtl_user_stats s ON s.user_id = u.id