footer schmooter

This commit is contained in:
Flummi 2022-12-20 13:26:32 +01:00
parent 9f030dbb28
commit b2591bd1b6
3 changed files with 18 additions and 1 deletions

View File

@ -64,6 +64,14 @@ body {
padding: .75rem 1rem;
}
/* Footer */
footer {
position: fixed;
bottom: 0;
width: 100%;
background-color: var(--bs-gray-100);
}
/* custom */
ul.list-top > li::before {
counter-increment: toplist;

View File

@ -9,10 +9,13 @@ require_once('./inc/router.inc.php');
$tpl = (object)$tpl;
$generated = round(microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'], 5);
if(!@$tpl->debug) {
tpl::view('tpl/' . $tpl->file,
array_merge([
'page' => $_page
'page' => $_page,
'generated' => $generated
],
gettype($tpl->data) !== 'string' ? $tpl->data : [])
);

View File

@ -41,6 +41,12 @@
</main>
</div>
</div>
<footer>
<div class="container text-end">
Made with <span style="color: #b92201;">&#9829;</span> by DALL·E and ChatGPT • Generated in {{ $generated }}s
</div>
</footer>
<script src="./js/bootstrap-native.min.js" defer></script>
</body>
</html>