This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
identity/identity-web/src/routes/+layout.svelte
2024-06-13 23:14:20 +02:00

34 lines
1.1 KiB
Svelte

<script>
import { credentials, initializeStores } from "$lib/stores";
import "../app.css";
initializeStores()
</script>
<div class="py-3.5 flex text-white bg-violet-800 justify-center">
<nav class="w-[60%] flex justify-between items-center">
<h1 class="font-serif text-3xl">
{#if $credentials == null}
<a href="/">Identity</a>
{:else}
<a href="/dashboard">Identity</a>
{/if}
</h1>
<div class="text-xl">
{#if $credentials == null}
| <div class="px-3 inline-block"><a href="/">Home</a></div>
| <div class="px-3 inline-block"><a href="https://support.identity.net/">Support</a></div>
| <div class="px-3 inline-block"><a href="/auth/register">Join</a></div>
|
{:else}
| <div class="px-3 inline-block"><a href="/dashboard">Dashboard</a></div>
| <div class="px-3 inline-block"><a href="/auth/account">Account</a></div>
| <div class="px-3 inline-block"><a href="https://support.identity.net/">Support</a></div>
|
{/if}
</div>
</nav>
</div>
<main class="pt-3.5">
<slot/>
</main>