refactor: move page header to own component

This commit is contained in:
mae taylor 2025-07-14 18:16:40 +01:00
parent 6f446fd871
commit 00277741a8
Signed by: mae
GPG key ID: 3C80D76BA7A3B9BD
3 changed files with 12 additions and 51 deletions

View file

@ -4,7 +4,9 @@
<header>
<h1>{title}</h1>
<slot name="icon" />
<div class="header-items">
<slot/>
</div>
</header>
<style>
@ -24,7 +26,7 @@
font-size: 1.5em;
}
nav {
header .header-items {
margin-left: auto;
display: flex;
flex-direction: row;