404 page as an image card: lonely tower under the moon, floating gold 404, twinkling stars
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
0143bfc99e
commit
96b7363ca1
2 changed files with 96 additions and 23 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -9,21 +9,27 @@ $notFoundUser = current_user();
|
|||
$loggedIn = $notFoundUser !== null && $notFoundUser['status'] === 'active';
|
||||
include __DIR__ . '/header.php';
|
||||
?>
|
||||
<div class="panel not-found">
|
||||
<div class="not-found-code" aria-hidden="true">404</div>
|
||||
<h1>Hier ist nichts - nicht mal ein Balaur.</h1>
|
||||
<p class="text-muted">
|
||||
Die Seite <code><?= e(mb_strimwidth((string) parse_url((string) ($_SERVER['REQUEST_URI'] ?? ''), PHP_URL_PATH), 0, 80, '…')) ?></code>
|
||||
gibt es nicht - oder du hast (noch) keinen Zugriff darauf. Vielleicht ein Tippfehler oder ein alter Link.
|
||||
</p>
|
||||
<div class="actions not-found-actions">
|
||||
<?php if ($loggedIn): ?>
|
||||
<a class="button" href="/dashboard.php">Zum Dashboard</a>
|
||||
<a class="button button-secondary" href="/">Zur Startseite</a>
|
||||
<?php else: ?>
|
||||
<a class="button" href="/">Zur Startseite</a>
|
||||
<a class="button button-secondary" href="/login.php">Anmelden</a>
|
||||
<?php endif; ?>
|
||||
<div class="not-found">
|
||||
<div class="not-found-scene" aria-hidden="true">
|
||||
<div class="not-found-stars"></div>
|
||||
<div class="not-found-code">404</div>
|
||||
</div>
|
||||
<div class="not-found-body">
|
||||
<p class="not-found-kicker">Verirrt im Abyss</p>
|
||||
<h1>Hier ist nichts - nicht mal ein Balaur.</h1>
|
||||
<p class="text-muted">
|
||||
Die Seite <code><?= e(mb_strimwidth((string) parse_url((string) ($_SERVER['REQUEST_URI'] ?? ''), PHP_URL_PATH), 0, 80, '…')) ?></code>
|
||||
gibt es nicht - oder du hast (noch) keinen Zugriff darauf. Vielleicht ein Tippfehler oder ein alter Link.
|
||||
</p>
|
||||
<div class="actions not-found-actions">
|
||||
<?php if ($loggedIn): ?>
|
||||
<a class="button" href="/dashboard.php">Zum Dashboard</a>
|
||||
<a class="button button-secondary" href="/">Zur Startseite</a>
|
||||
<?php else: ?>
|
||||
<a class="button" href="/">Zur Startseite</a>
|
||||
<a class="button button-secondary" href="/login.php">Anmelden</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php include __DIR__ . '/footer.php'; ?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue