add simple dashboard on root admin route
All checks were successful
delpoy / build-and-deploy (push) Successful in 2m9s

This commit is contained in:
2023-11-03 19:59:08 +01:00
parent 981e1c3f9b
commit 9562cdeb95
2 changed files with 54 additions and 7 deletions

View File

@@ -52,13 +52,15 @@
<div class="h-12 relative bg-base-200 flex justify-center items-center">
<ul class="menu menu-horizontal h-10 p-0 flex items-center bg-base-300 rounded-lg">
{#each tabs as tab}
<li>
<a href={tab.path}>
<IconOutline name={tab.icon} />
<span class="mr-1" class:underline={$page.url.pathname === tab.path}>{tab.name}</span>
<div class="badge">{tab.badge}</div>
</a>
</li>
{#if tab.enabled}
<li>
<a href={tab.path}>
<IconOutline name={tab.icon} />
<span class="mr-1" class:underline={$page.url.pathname === tab.path}>{tab.name}</span>
<div class="badge">{tab.badge}</div>
</a>
</li>
{/if}
{/each}
</ul>
<div class="absolute top-0 right-0 flex items-center h-full">