Header: properly center title

This commit is contained in:
Akemi Izuko 2023-12-29 21:07:29 -07:00
parent 6983118f0c
commit c870c2c7fc
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC

View file

@ -4,7 +4,7 @@ import { SITE_TITLE } from '../consts';
--- ---
<header style="width: 100%" class="font-sans sticky top-0 md:static bg-white underline-offset-4 z-40"> <header style="width: 100%" class="font-sans sticky top-0 md:static bg-white underline-offset-4 z-40">
<nav class="hidden select-none mx-auto md:flex justify-between items-center px-6 py-3.5 text-md md:text-lg leading-6"> <nav>
<div class="flex items-center space-x-8"> <div class="flex items-center space-x-8">
<a href="https://git.mami2.moe/akemi/noway.moe" target="_blank"> <a href="https://git.mami2.moe/akemi/noway.moe" target="_blank">
<span class="sr-only">Forgejo</span> <span class="sr-only">Forgejo</span>
@ -48,3 +48,27 @@ import { SITE_TITLE } from '../consts';
</div> </div>
</nav> </nav>
</header> </header>
<style>
header nav {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 14px 24px;
font-size: 1.125rem;
user-select: none;
justify-items: center;
align-items: center;
}
header nav div {
display: flex;
flex: 1;
justify-content: center;
}
header nav div:first-child {
justify-content: flex-start;
}
header nav div:last-child {
justify-content: flex-end;
}
</style>