version 0.8.0
This commit is contained in:
parent
f22007003a
commit
e5ca9ef194
95 changed files with 5601 additions and 4042 deletions
42
app/Views/layout.php
Normal file
42
app/Views/layout.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
/**
|
||||
* Gemeinsames Seiten-Layout.
|
||||
* Erwartet (von View::render gesetzt):
|
||||
* $title, $description, $cssFiles, $jsFiles, $bodyClass, $viewFile
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
$e = static fn (string $s): string => htmlspecialchars($s, ENT_QUOTES, 'UTF-8');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="<?= $e($description) ?>">
|
||||
<title><?= $e($title) ?></title>
|
||||
<link rel="icon" href="/identity/favicon.png" type="image/png">
|
||||
<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&family=Sora:wght@600;700;800&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Bangers&family=Bungee&family=Lobster&family=Orbitron:wght@600;800&family=Pacifico&family=Press+Start+2P&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/assets/css/base.css">
|
||||
<?php foreach ($cssFiles as $css): ?>
|
||||
<link rel="stylesheet" href="/assets/css/<?= $e((string) $css) ?>.css">
|
||||
<?php endforeach; ?>
|
||||
</head>
|
||||
<body<?= $bodyClass ? ' class="' . $e($bodyClass) . '"' : '' ?>>
|
||||
|
||||
<?php require __DIR__ . '/partials/nav.php'; ?>
|
||||
|
||||
<?php require $viewFile; ?>
|
||||
|
||||
<?php require __DIR__ . '/partials/footer.php'; ?>
|
||||
<?php require __DIR__ . '/partials/cookie.php'; ?>
|
||||
|
||||
<script src="/config.js"></script>
|
||||
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
|
||||
<script src="/assets/js/site.js"></script>
|
||||
<?php foreach ($jsFiles as $js): ?>
|
||||
<script src="/assets/js/<?= $e((string) $js) ?>.js"></script>
|
||||
<?php endforeach; ?>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue