Files
usbcheck.it/public/_errors/404.php
2025-11-24 01:40:19 +01:00

45 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
// public/_errors/404.php
require __DIR__ . '/../../config/fileload.php';
// Sprache aus Query oder Default
$lang = $_GET['lang'] ?? 'de';
$lang = in_array($lang, ['de','en','it','fr']) ? $lang : 'de';
// Titel & Description
$pageTitle = 'Seite nicht gefunden ' . app_primary_domain();
$pageDescription = 'Die angeforderte Seite wurde nicht gefunden.';
$navAnchors = []; // Navigation auf der 404 deaktiviert
tpl('layout_start', 'structure');
?>
<!-- Vollflächiges Hintergrundbild -->
<div class="relative w-full min-h-[70vh] flex items-center justify-center text-center">
<!-- Hintergrund -->
<div class="absolute inset-0 bg-cover bg-center"
style="background-image: url('/_errors/img/404.png'); filter: brightness(0.45);">
</div>
<!-- Inhalt -->
<div class="relative z-10 px-6 py-20 max-w-2xl mx-auto">
<h1 class="text-5xl sm:text-6xl font-heading font-bold text-white drop-shadow-lg mb-4">
404
</h1>
<p class="text-brand-muted text-lg sm:text-xl mb-8 text-white/90 drop-shadow">
Die angeforderte Seite wurde nicht gefunden.
</p>
<a href="/?lang=<?= htmlspecialchars($lang) ?>"
class="inline-block rounded-full bg-brand-primary text-brand-bg px-8 py-3 text-sm sm:text-base font-semibold hover:bg-blue-400 transition-colors shadow-lg">
Zurück zur Startseite
</a>
</div>
</div>
<?php
tpl('layout_end', 'structure');