0.1.0 initial commit
This commit is contained in:
commit
96ee2c4b79
8 changed files with 268 additions and 0 deletions
60
index.php
Normal file
60
index.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue