Align login link to end
This commit is contained in:
parent
a95b1afea9
commit
822bcb36ed
@ -35,7 +35,7 @@
|
|||||||
color: var(--background-color);
|
color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
nav>a {
|
nav a {
|
||||||
padding: 0 0.25em;
|
padding: 0 0.25em;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3,14 +3,18 @@ package components
|
|||||||
import c "git.ekzyis.com/ekzyis/delphi.market/server/router/context"
|
import c "git.ekzyis.com/ekzyis/delphi.market/server/router/context"
|
||||||
|
|
||||||
templ Header() {
|
templ Header() {
|
||||||
<header class="flex flex-row text-center justify-center mt-3">
|
<header class="mt-3">
|
||||||
<nav>
|
<nav class="flex flex-row">
|
||||||
|
<div>
|
||||||
<a href="/">home</a>
|
<a href="/">home</a>
|
||||||
|
</div>
|
||||||
|
<div class="ms-auto">
|
||||||
if ctx.Value(c.SessionContextKey) != nil {
|
if ctx.Value(c.SessionContextKey) != nil {
|
||||||
<a href="/user">user</a>
|
<a href="/user">user</a>
|
||||||
} else {
|
} else {
|
||||||
<a href="/login">login</a>
|
<a href="/login">login</a>
|
||||||
}
|
}
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user