From 96b7363ca15fef937586ee5788810accf4a4b119 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Tue, 22 Sep 2026 08:20:29 +0200 Subject: [PATCH] 404 page as an image card: lonely tower under the moon, floating gold 404, twinkling stars Co-Authored-By: Claude Opus 5 --- assets/css/style.css | 83 ++++++++++++++++++++++++++++++++++++++---- includes/not_found.php | 36 ++++++++++-------- 2 files changed, 96 insertions(+), 23 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index a20b011..f2411b7 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -5093,22 +5093,89 @@ input[type="file"]::file-selector-button { .audit-details dd { margin: 0; overflow-wrap: anywhere; } .audit-meta { margin-top: 0.4rem; font-size: 0.8rem; } -/* ---- 404-Seite ---- */ -.not-found { max-width: 640px; margin: 3rem auto; text-align: center; padding: 2.5rem 1.5rem; } +/* ---- 404-Seite: Bildkarte (einsamer Turm unterm Mond), darunter Text und Buttons ---- */ +.not-found { + max-width: 720px; + margin: 2.5rem auto; + border: 1px solid rgba(201, 162, 39, 0.35); + border-radius: 14px; + overflow: hidden; + background: rgba(28, 28, 28, 0.78); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); + box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.3); + text-align: center; +} +.not-found-scene { + position: relative; + display: flex; + align-items: flex-end; + justify-content: center; + min-height: clamp(210px, 44vw, 320px); + padding-bottom: 0.6rem; + background: + linear-gradient(180deg, rgba(10, 14, 24, 0.15) 0%, rgba(10, 14, 24, 0.35) 60%, rgba(28, 28, 28, 1) 100%), + url('/assets/images/Landscapes/web/landscape8-bg.jpg') center 35% / cover no-repeat; + overflow: hidden; +} +/* Leichtes Funkeln ueber dem Bild */ +.not-found-stars { + position: absolute; + inset: 0; + background-image: + radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.8), transparent), + radial-gradient(1px 1px at 28% 60%, rgba(255, 255, 255, 0.6), transparent), + radial-gradient(1.5px 1.5px at 72% 18%, rgba(243, 215, 122, 0.8), transparent), + radial-gradient(1px 1px at 86% 48%, rgba(255, 255, 255, 0.6), transparent), + radial-gradient(1px 1px at 55% 12%, rgba(255, 255, 255, 0.7), transparent), + radial-gradient(1.5px 1.5px at 40% 35%, rgba(243, 215, 122, 0.6), transparent); + animation: not-found-twinkle 4s ease-in-out infinite alternate; +} +@keyframes not-found-twinkle { from { opacity: 0.35; } to { opacity: 1; } } .not-found-code { - font-size: clamp(4.5rem, 16vw, 8rem); + position: relative; + font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; - letter-spacing: 0.05em; - background: linear-gradient(135deg, #f3d77a, var(--gold) 45%, #7a5c12); + letter-spacing: 0.06em; + background: linear-gradient(180deg, #fff3c4 0%, #f3d77a 35%, var(--gold) 65%, #7a5c12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; - text-shadow: 0 0 40px rgba(201, 162, 39, 0.25); + filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 28px rgba(201, 162, 39, 0.35)); + animation: not-found-float 6s ease-in-out infinite; +} +@keyframes not-found-float { + 0%, 100% { transform: translateY(0); } + 50% { transform: translateY(-8px); } +} +.not-found-body { padding: 0.25rem 2rem 2.2rem; } +.not-found-kicker { + margin: 0; + color: var(--gold); + font-size: 0.78rem; + font-weight: 600; + letter-spacing: 0.18em; + text-transform: uppercase; +} +.not-found h1 { margin: 0.4rem 0 0.6rem; font-size: 1.45rem; } +.not-found .text-muted { max-width: 520px; margin: 0 auto; } +.not-found code { + overflow-wrap: anywhere; + padding: 0.1rem 0.4rem; + border-radius: 4px; + background: rgba(255, 255, 255, 0.07); + color: var(--text); } -.not-found h1 { margin: 0.8rem 0 0.5rem; font-size: 1.4rem; } -.not-found code { overflow-wrap: anywhere; } .not-found-actions { justify-content: center; margin-top: 1.5rem; } +@media (max-width: 600px) { + .not-found { margin: 1.25rem auto; } + .not-found-body { padding: 0.25rem 1.1rem 1.6rem; } + .not-found h1 { font-size: 1.2rem; } +} +@media (prefers-reduced-motion: reduce) { + .not-found-stars, .not-found-code { animation: none; } +} /* ---- Moderation: Freigabe, Melden ---- */ .pending-badge { diff --git a/includes/not_found.php b/includes/not_found.php index 65cb58c..84ce040 100644 --- a/includes/not_found.php +++ b/includes/not_found.php @@ -9,21 +9,27 @@ $notFoundUser = current_user(); $loggedIn = $notFoundUser !== null && $notFoundUser['status'] === 'active'; include __DIR__ . '/header.php'; ?> -
- -

Hier ist nichts - nicht mal ein Balaur.

-

- Die Seite - gibt es nicht - oder du hast (noch) keinen Zugriff darauf. Vielleicht ein Tippfehler oder ein alter Link. -

-
- - Zum Dashboard - Zur Startseite - - Zur Startseite - Anmelden - +
+ +
+

Verirrt im Abyss

+

Hier ist nichts - nicht mal ein Balaur.

+

+ Die Seite + gibt es nicht - oder du hast (noch) keinen Zugriff darauf. Vielleicht ein Tippfehler oder ein alter Link. +

+