work+roles
This commit is contained in:
parent
d64efb663a
commit
3caecf63f6
8 changed files with 49 additions and 10 deletions
|
@ -8,7 +8,7 @@
|
|||
<!-- Main wrapper that will hold the header, sidebar, and content -->
|
||||
<div class="flex flex-col min-h-screen">
|
||||
<header class="w-full bg-red-600 text-white flex py-4 shadow-md max-h-20 h-full max-h-20">
|
||||
<button id="menu-toggle" class="text-2xl focus:outline-none ml-5" onclick="toggleSidepanel()">
|
||||
<button id="menu-toggle" class="text-2xl focus:outline-none ml-5 -mt-1" onclick="toggleSidepanel()">
|
||||
☰
|
||||
</button>
|
||||
|
||||
|
@ -21,11 +21,18 @@
|
|||
<div id="sidepanel" class="w-0 transition-all duration-250 ease-in-out bg-red-600 shadow-md text-white">
|
||||
<ul class="space-y-2 font-medium">
|
||||
<li>
|
||||
<button href="#" onclick="toggleSidepanel()" class="rounded-lg lg:bg-transparent flex w-full items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-red-100 dark:hover:bg-red-700 group"
|
||||
<a href="/" onclick="toggleSidepanel()" class="rounded-lg lg:bg-transparent flex w-full items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-red-100 dark:hover:bg-red-700 group"
|
||||
hx-get="/" hx-target="#main_content" hx-push-url="true" hx-swap="innerHTML"
|
||||
>
|
||||
<span class="ms-3">Home</span>
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/settings" onclick="toggleSidepanel()" class="rounded-lg lg:bg-transparent flex w-full items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-red-100 dark:hover:bg-red-700 group"
|
||||
hx-get="/settings" hx-target="#main_content" hx-push-url="true" hx-swap="innerHTML"
|
||||
>
|
||||
<span class="ms-3">Settings</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue