caluta7/index.php

60 lines
1.2 KiB
PHP
Raw Normal View History

2026-02-12 13:30:53 +01:00
<?php
require 'vendor/autoload.php';
use Yusurko\Caluta7\PageLoader;
$link = $_GET['link'] ?? 'index';
$pl = new PageLoader();
$pl->load($link);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Caluta, Inc.</title>
<style>
:root {
--fg-main: #e8eef2;
--bg-main: #121821;
--bg-alt: #313840;
}
body {
background-color: var(--bg-main);
color: var(--fg-main);
font-family: 'Inter', sans-serif;
margin: 0;
}
#site__header {
background-color: var(--bg-alt);
padding: 13px;
}
#site__header h1 {
margin: 0;
font-size: 1.5em;
}
main {
padding: 13px;
margin: auto;
max-width: 1000px;
}
</style>
</head>
<body>
<header id="site__header">
<h1><img src="/caluta_flag.png" alt="" /> Caluta, Inc.</h1>
</header>
<main>
<article>
<header>
<h1><?= htmlspecialchars($pl->getTitle()); ?></h1>
</header>
<?= $pl->getHtml(); ?>
</article>
</main>
</body>
</html>