This commit is contained in:
torsten 2026-10-27 10:05:06 +01:00
parent 1510b3d2c9
commit c707c09460
2 changed files with 22 additions and 7 deletions

View file

@ -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;

View file

@ -2,6 +2,7 @@
use App\Models\Round;
$pageTitle = 'Hoschis Tippspiel - Startseite';
$bodyClass = 'home-page';
require __DIR__ . '/partials/header.php';
?>