diff --git a/VERSION b/VERSION index ededf28..1fdcf1c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1220 \ No newline at end of file +1228 \ No newline at end of file diff --git a/backend/main.py b/backend/main.py index bf4f74b..e399801 100644 --- a/backend/main.py +++ b/backend/main.py @@ -2601,6 +2601,18 @@ async def wurfboerse_page(): return HTMLResponse(content=html, headers={"Cache-Control": "max-age=1800"}) +# Rechtsseiten: Pfad-URLs (SEO-Footer, App-Store-Metadaten, E-Mails) auf die +# SPA-Hash-Routen umleiten — die Inhalte leben als SPA-Seiten (#agb, …). +# Muss VOR dem SPA-Fallback registriert sein. +@app.get("/agb") +@app.get("/datenschutz") +@app.get("/impressum") +async def legal_page_redirect(request: _Request): + from fastapi.responses import RedirectResponse + page = request.url.path.strip("/") + return RedirectResponse(f"/#{page}", status_code=302) + + # SPA Fallback — ALLE nicht-API-Routen gehen zur index.html @app.get("/{full_path:path}") async def spa_fallback(full_path: str): diff --git a/backend/static/css/components.css b/backend/static/css/components.css index 87dea9c..5b2a7dd 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -7294,14 +7294,25 @@ svg.empty-state-icon { left: 0; right: 0; z-index: 9999; - background: var(--c-text-secondary, #6b7280); - color: #fff; - font-size: var(--text-sm); + background: #1f2937; + color: #f3f4f6; + font-size: 0.78rem; + font-weight: 500; text-align: center; - padding: var(--space-2) var(--space-4); + padding: calc(env(safe-area-inset-top, 0px) + 7px) 16px 7px; + align-items: center; + justify-content: center; + gap: 8px; + box-shadow: 0 2px 8px rgba(0,0,0,.3); pointer-events: none; letter-spacing: 0.01em; } +/* Eingeklappt (5s nach Offline-Gang, boot.js): schmale Icon-Leiste statt 2-Zeilen-Banner — + das volle Banner verdeckte die Karten-Steuerung oben (Gerätetest iOS 2026-06-06). */ +#offline-banner.collapsed { + padding: calc(env(safe-area-inset-top, 0px) + 2px) 16px 2px; +} +#offline-banner.collapsed #offline-banner-text { display: none; } /* ------------------------------------------------------------ STREAK-WIDGET (Welcome-Seite) diff --git a/backend/static/index.html b/backend/static/index.html index 9b1271c..ab2e972 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -86,24 +86,19 @@ Ban Yaro - + - - - - - + + + + + - -