proper layout

This commit is contained in:
Priec
2026-05-17 16:30:34 +02:00
parent 046f7c04c8
commit 0a36e8839c
3 changed files with 85 additions and 9 deletions

View File

@@ -63,7 +63,14 @@
<a href="/" class="btn btn-ghost btn-sm">Home</a>
<a href="/about" class="btn btn-ghost btn-sm">About</a>
<a href="/blog" class="btn btn-ghost btn-sm">Blog</a>
{% if logged_in_admin %}
<a href="/admin/dashboard" class="btn btn-ghost btn-sm">Dashboard</a>
<form method="post" action="/admin/logout">
<button type="submit" class="btn btn-ghost btn-sm">Logout</button>
</form>
{% else %}
<a href="/admin/login" class="btn btn-ghost btn-sm">Admin</a>
{% endif %}
</div>
<div class="flex items-center gap-1">
<div class="dropdown dropdown-end md:hidden">
@@ -78,7 +85,14 @@
<a href="/" class="btn btn-ghost btn-sm justify-start">Home</a>
<a href="/about" class="btn btn-ghost btn-sm justify-start">About</a>
<a href="/blog" class="btn btn-ghost btn-sm justify-start">Blog</a>
{% if logged_in_admin %}
<a href="/admin/dashboard" class="btn btn-ghost btn-sm justify-start">Dashboard</a>
<form method="post" action="/admin/logout">
<button type="submit" class="btn btn-ghost btn-sm w-full justify-start">Logout</button>
</form>
{% else %}
<a href="/admin/login" class="btn btn-ghost btn-sm justify-start">Admin</a>
{% endif %}
</div>
</div>
<div class="dropdown dropdown-end">