add footer to linear template

This commit is contained in:
isUnknown 2024-04-15 09:16:27 +02:00
parent f0d306372d
commit 1e9a192a40
4 changed files with 17 additions and 9 deletions

View file

@ -1,9 +1,18 @@
#main-footer {
width: 100%;
box-sizing: border-box;
padding: var(--unit--horizontal);
}
[data-template="home"] #main-footer {
position: fixed;
left: 0;
bottom: 0;
width: calc(18 * var(--unit--horizontal));
padding: var(--unit--horizontal);
}
#main-footer ul {
display: flex;
justify-content: center;
gap: calc(2 * var(--unit--horizontal));
}
#main-footer a {

View file

@ -1,8 +1,5 @@
<footer id="main-footer">
<ul id="links" class="| flex full-width" style="
--content: center;
--gap: 1;
">
<ul id="links">
<li>
<a href="#">
à propos

View file

@ -8,11 +8,11 @@
href="#main-edito"
class="no-line"
>
<h2 class="main-title <?= setTitleFontSizeClass($site->subtitle()) ?>"><?= $site->subtitle() ?></h2>
<h2 class="main-title <?= setTitleFontSizeClass($site->subtitle()) ?>"><?= $site->subtitle() ?></h2>
<p
class="main-edito-btn | toggle-btn left"
>édito</p>
</button>
</a>
<?php endslot() ?>
<?php endsnippet() ?>
<div id="main-edito" class="content">

View file

@ -18,4 +18,6 @@
<?= $page->body() ?>
</div>
</article>
</main>
</main>
<?php snippet('footer') ?>