Files
usbcheck.it/public/_errors/404.php
2025-11-23 03:44:07 +01:00

41 lines
1.3 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 und Navigation für das Layout
$pageTitle = 'Seite nicht gefunden usbcheck.it';
$pageDescription = 'Die angeforderte Seite wurde nicht gefunden.';
$navAnchors = []; // keine Anker auf der 404
tpl('layout_start', 'structure');
?>
<section class="mx-auto max-w-3xl text-center py-20 px-6">
<div class="flex flex-col items-center gap-6">
<!-- 404 Bild -->
<img
src="/_errors/img/404.png"
alt="Seite nicht gefunden"
class="w-40 h-40 sm:w-56 sm:h-56 object-contain opacity-90"
loading="lazy"
>
<h1 class="text-5xl font-heading font-bold text-brand-primary mb-2">
404
</h1>
<p class="text-brand-muted text-lg mb-6">
Die angeforderte Seite wurde nicht gefunden.
</p>
<a href="/?lang=<?= htmlspecialchars($lang) ?>"
class="inline-block rounded-full bg-brand-primary text-brand-bg px-6 py-3 text-sm font-semibold hover:bg-blue-400 transition-colors">
Zurück zur Startseite
</a>
</div>
</section>
<?php
tpl('layout_end', 'structure');