37 lines
2.0 KiB
HTML
37 lines
2.0 KiB
HTML
{{define "partials/header"}}
|
|
<header class="navbar sticky top-0 z-30 border-b border-base-300 bg-base-100 px-4 lg:px-8">
|
|
<div class="flex-none lg:hidden">
|
|
<label for="sidebar-drawer" class="btn btn-ghost btn-square" aria-label="Open sidebar">
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.8" stroke="currentColor" class="h-6 w-6" aria-hidden="true">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"/>
|
|
</svg>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="flex-1">
|
|
<h1 class="text-lg font-semibold lg:text-xl">{{.Title}}</h1>
|
|
</div>
|
|
|
|
<div class="flex-none">
|
|
<div class="dropdown dropdown-end">
|
|
<button type="button" tabindex="0" class="btn btn-ghost gap-2 normal-case" aria-haspopup="menu" aria-label="Account menu">
|
|
<div class="avatar placeholder">
|
|
<div class="w-8 rounded-full bg-primary text-primary-content">
|
|
<img id="profile-avatar" class="hidden rounded-full" src="" alt="">
|
|
<span id="profile-initial">A</span>
|
|
</div>
|
|
</div>
|
|
<span id="profile-name" class="hidden sm:inline">Admin</span>
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.8" stroke="currentColor" class="h-4 w-4" aria-hidden="true">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5"/>
|
|
</svg>
|
|
</button>
|
|
<ul tabindex="0" role="menu" class="menu dropdown-content z-40 mt-2 w-48 rounded-box bg-base-100 p-2 shadow-lg">
|
|
<li role="none"><a role="menuitem" href="/M0n1t0r/settings">Settings</a></li>
|
|
<li role="none"><button role="menuitem" type="button" data-logout class="text-error">Log out</button></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{{end}}
|