39165-vm/index.php
Flatlogic Bot 4154d58e7c first
2026-03-13 07:43:18 +00:00

79 lines
3.8 KiB
PHP
Raw Permalink 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
declare(strict_types=1);
@date_default_timezone_set('UTC');
$siteName = $_SERVER['PROJECT_NAME'] ?? ($_SERVER['HTTP_HOST'] ?? 'Your Site');
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Минималистичная космическая 404-страница с огромной цифрой 404, медленно парящими планетами и летящими кометами.';
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
$currentPath = $_SERVER['REQUEST_URI'] ?? '/';
$footerLinks = [
['label' => 'На главную', 'href' => '/'],
['label' => 'Обновить сигнал', 'href' => $currentPath],
['label' => 'К старту', 'href' => '/'],
['label' => 'Назад', 'href' => '#back', 'action' => 'back'],
];
?>
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>404 — Потерянная страница в космосе | <?= htmlspecialchars($siteName) ?></title>
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>" />
<meta name="robots" content="noindex, nofollow" />
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<?php if ($projectImageUrl): ?>
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<?php endif; ?>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/custom.css?v=<?= htmlspecialchars((string)filemtime(__DIR__ . '/assets/css/custom.css')) ?>">
</head>
<body>
<div class="space-scene" id="space-scene" aria-hidden="true">
<div class="starfield starfield-far"></div>
<div class="starfield starfield-mid"></div>
<div class="starfield starfield-near"></div>
<div class="nebula nebula-left"></div>
<div class="nebula nebula-right"></div>
<div class="orbit orbit-one"></div>
<div class="orbit orbit-two"></div>
<div class="planet planet-one parallax-item" data-depth="26"></div>
<div class="planet planet-two parallax-item" data-depth="-18"></div>
<div class="planet planet-three parallax-item" data-depth="12"></div>
<div class="planet planet-four parallax-item" data-depth="-10"></div>
<div class="comet comet-one"></div>
<div class="comet comet-two"></div>
<div class="comet comet-three"></div>
<div class="dust-glow dust-glow-one"></div>
<div class="dust-glow dust-glow-two"></div>
</div>
<main class="error-stage" id="error-stage">
<section class="error-hero" aria-labelledby="error-title">
<p class="error-kicker">lost transmission • deep space</p>
<h1 class="error-code parallax-item" id="error-title" data-text="404" data-depth="8">404</h1>
<p class="error-subtitle">Потерянная страница дрейфует где-то между орбитами.</p>
</section>
</main>
<footer class="footer-wrap">
<nav class="footer-nav" aria-label="Footer navigation">
<?php foreach ($footerLinks as $link): ?>
<a
class="footer-link"
href="<?= htmlspecialchars($link['href']) ?>"
<?php if (!empty($link['action'])): ?> data-action="<?= htmlspecialchars($link['action']) ?>"<?php endif; ?>
><?= htmlspecialchars($link['label']) ?></a>
<?php endforeach; ?>
</nav>
</footer>
<script src="assets/js/main.js?v=<?= htmlspecialchars((string)filemtime(__DIR__ . '/assets/js/main.js')) ?>" defer></script>
</body>
</html>