header : passer en fixed, déplacer le strip dans le header, ajuster le layout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-05-26 08:28:23 +02:00
parent 260aa9a373
commit 778ccb3097
6 changed files with 17 additions and 12 deletions

View file

@ -7,3 +7,7 @@ body {
button {
cursor: pointer;
}
main {
margin-top: 29rem;
}

View file

@ -1,9 +1,7 @@
.main-header {
position: sticky;
position: fixed;
top: 0;
box-sizing: border-box;
padding: 0 var(--space-body);
padding-bottom: 4rem;
width: 100%;
background-color: var(--color-green);
text-align: center;

View file

@ -9,10 +9,12 @@
border-radius: var(--radius);
border: var(--border);
margin-top: -3rem;
margin-top: -1rem;
font-family: "Bartok", sans-serif;
font-size: 2rem;
font-weight: 600;
text-align: center;
* {
font-family: "Bartok", sans-serif;
font-size: 2rem;
font-weight: 600;
text-align: center;
}
}

View file

@ -1,3 +1,3 @@
</main>
</main>
</body>
</html>

View file

@ -15,5 +15,9 @@
<div class="characters" style="--offset: 9.5rem; --scale: 1">
<?= svg('assets/images/characters/characters.svg') ?>
</div>
<div class="strip">
<h1><?= $page->title() ?></h1>
</div>
</header>
<main>

View file

@ -1,8 +1,5 @@
<?php snippet('head') ?>
<?php snippet('header') ?>
<div class="strip">
<h1><?= $page->title() ?></h1>
</div>
<ul class="events-grid">
<?php foreach($page->children() as $event): ?>