Create the account setup page

This page is not behind (protected) because it must not use the (protected)/layout.
This means that this page also needs to handle it's own authentication, because it should not be open to the public either.
This commit is contained in:
NeilClack
2026-02-02 22:40:11 -06:00
parent 9d75cb07e4
commit 2df81d20e3
4 changed files with 49 additions and 10 deletions
+12
View File
@@ -1,3 +1,9 @@
<!-- This layout is used for all pages where a user must be authenticated to visit.
Below the navigation bar, there should be two sections. A sidebar, containing links
to common "pages", and a window to the right of that sidebar, with it's contents expanded
to fill the entire area, to display the current "page".
This layout also acts as a sort of 'gatekeeper' in that it is also the authorization layer.
-->
<script lang="ts">
import Window from '$lib/components/containers/Window.svelte';
@@ -6,8 +12,11 @@
let adminExpanded = $state(true);
</script>
<!-- Main Area -->
<div class="flex min-h-0 flex-1">
<!-- Sidebar -->
<div class="mt-12 mr-12 flex flex-col gap-1">
<!-- Sidebar links -->
<a href="/dashboard" class="text-blue-600">Dashboard</a>
<div class="flex flex-col">
@@ -24,7 +33,10 @@
</div>
{/if}
</div>
<!-- End Sidebar links -->
</div>
<!-- End Sidebar -->
<!-- Page content within a "Window" -->
<Window>
{@render children()}
</Window>