add admin admin settings

This commit is contained in:
2023-08-28 04:31:58 +02:00
parent 4b84c475b8
commit 0958ff21b6
15 changed files with 524 additions and 28 deletions

View File

@@ -1,3 +1,27 @@
<div class="h-full">
<slot />
</div>
<script lang="ts">
import { page } from '$app/stores';
import { env } from '$env/dynamic/public';
import { IconOutline } from 'svelte-heros-v2';
</script>
{#if $page.url.pathname !== `${env.PUBLIC_BASE_PATH}/admin/login`}
<div class="flex h-screen">
<div class="h-full">
<ul class="menu p-4 w-fit h-full bg-base-200 text-base-content">
<li>
<a href="{env.PUBLIC_BASE_PATH}/admin/admin">
<IconOutline name="users-outline" />
<span class="ml-1">Website Admins</span>
</a>
</li>
</ul>
</div>
<div class="h-full w-full">
<slot />
</div>
</div>
{:else}
<div class="h-full w-full">
<slot />
</div>
{/if}