Align login link to end

This commit is contained in:
ekzyis 2024-07-10 07:47:01 +02:00
parent a95b1afea9
commit 822bcb36ed
2 changed files with 13 additions and 9 deletions

View File

@ -35,7 +35,7 @@
color: var(--background-color);
}
nav>a {
nav a {
padding: 0 0.25em;
}
}

View File

@ -3,14 +3,18 @@ package components
import c "git.ekzyis.com/ekzyis/delphi.market/server/router/context"
templ Header() {
<header class="flex flex-row text-center justify-center mt-3">
<nav>
<a href="/">home</a>
if ctx.Value(c.SessionContextKey) != nil {
<a href="/user">user</a>
} else {
<a href="/login">login</a>
}
<header class="mt-3">
<nav class="flex flex-row">
<div>
<a href="/">home</a>
</div>
<div class="ms-auto">
if ctx.Value(c.SessionContextKey) != nil {
<a href="/user">user</a>
} else {
<a href="/login">login</a>
}
</div>
</nav>
</header>
}