Base Website
Basic Website, mit Login, Homepage, Usericon, Profilsettings, adminsettings. (KI)
This commit is contained in:
1 parent
99cea87151
commit
c4cef10909
8 files changed
+424
-14
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<header class="border-b border-panel">
|
||||
<div class="mx-auto flex max-w-5xl items-center justify-between px-4 py-3">
|
||||
<a href="/" class="font-display text-lg font-semibold tracking-tight">Tandur</a>
|
||||
|
||||
<div x-data="{ open: false }" class="relative">
|
||||
<button @click="open = !open" @click.outside="open = false"
|
||||
class="flex h-9 w-9 items-center justify-center rounded border border-panel transition-colors hover:border-marker"
|
||||
aria-label="Menü öffnen" aria-haspopup="true" :aria-expanded="open">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8">
|
||||
<circle cx="12" cy="8" r="3.2"/>
|
||||
<path d="M4.5 20c1.4-3.6 4.2-5.4 7.5-5.4s6.1 1.8 7.5 5.4"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<div x-show="open" x-transition.origin.top.right style="display: none;"
|
||||
class="absolute right-0 mt-2 w-48 rounded border border-panel bg-panel py-1 shadow-lg shadow-black/30 z-10">
|
||||
<a href="/profile" class="block px-4 py-2 text-sm hover:bg-board">Profil</a>
|
||||
{% if user.role == "admin" %}
|
||||
<a href="/admin" class="block px-4 py-2 text-sm hover:bg-board">Admin-Einstellungen</a>
|
||||
{% endif %}
|
||||
<div class="my-1 border-t border-board"></div>
|
||||
<a href="/logout" class="block px-4 py-2 text-sm text-brick hover:bg-board">Abmelden</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
Reference in new issue
Block a user