From c707c0946079477e390f85558b9fc2a1f44450bc Mon Sep 17 00:00:00 2001 From: torsten Date: Tue, 27 Oct 2026 10:05:06 +0100 Subject: [PATCH] ... --- tippspiel/public/css/style.css | 28 +++++++++++++++++++++------- tippspiel/src/Views/home.php | 1 + 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/tippspiel/public/css/style.css b/tippspiel/public/css/style.css index b8823c4..769b072 100644 --- a/tippspiel/public/css/style.css +++ b/tippspiel/public/css/style.css @@ -95,19 +95,28 @@ a { color: var(--link); } box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); } -/* Startseite: groß und fett roter, blinkender Hinweis auf anstehende Rundenschließung (wie im Legacy-Projekt) */ -@keyframes lock-blink { - 0%, 100% { +/* Startseite: alle Inhalte zentriert (Willkommensüberschrift, Runden, Gewinne) */ +body.home-page .page { + text-align: center; +} + +/* Startseite: Hinweis auf anstehende Rundenschließung. + Das Legacy-Projekt ließ den Text im Sekundentakt hart an/aus blinken. + Stattdessen pulsiert die Warnung in einem ruhigen 4-Sekunden-Takt: kurze + Ein-/Ausblendphasen, dazwischen gut lesbare Haltephasen. Der farbige + Rahmen hält sie auch in der gedimmten Phase präsent. */ +@keyframes lock-pulse { + 0%, 20%, 80%, 100% { opacity: 1; } - 50% { - opacity: 0; + 35%, 65% { + opacity: 0.78; } } .lock-warning { max-width: 56rem; margin: 0.8em auto 1.6em; - padding: 0 0.4em; + padding: 0.7em 1.1em; text-align: center; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2rem); @@ -116,7 +125,12 @@ a { color: var(--link); } letter-spacing: 0.01em; overflow-wrap: break-word; color: var(--col-joker-exact); - animation: lock-blink 1s linear infinite; + background: #fff5f5; + border: 2px solid rgba(214, 45, 45, 0.35); + border-left: 8px solid var(--col-joker-exact); + border-radius: 8px; + box-shadow: 0 2px 10px rgba(214, 45, 45, 0.12); + animation: lock-pulse 4s ease-in-out infinite; } .lock-warning p { margin: 0.25em 0; diff --git a/tippspiel/src/Views/home.php b/tippspiel/src/Views/home.php index 3f2cece..af9edba 100644 --- a/tippspiel/src/Views/home.php +++ b/tippspiel/src/Views/home.php @@ -2,6 +2,7 @@ use App\Models\Round; $pageTitle = 'Hoschis Tippspiel - Startseite'; +$bodyClass = 'home-page'; require __DIR__ . '/partials/header.php'; ?>