From 4401dce2b5545ce8117818812d8e3c8919f5f7fd Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Thu, 10 Oct 2024 21:05:48 -0400
Subject: Remove redundancy in `hi-ui` directory name.

---
 ui/src/routes/+layout.svelte | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 ui/src/routes/+layout.svelte

(limited to 'ui/src/routes/+layout.svelte')

diff --git a/ui/src/routes/+layout.svelte b/ui/src/routes/+layout.svelte
new file mode 100644
index 0000000..7b99d62
--- /dev/null
+++ b/ui/src/routes/+layout.svelte
@@ -0,0 +1,30 @@
+<script>
+  import { AppBar } from '@skeletonlabs/skeleton';
+  import "../app.css";
+
+  import { currentUser } from '$lib/store';
+  import LogOut from '$lib/components/LogOut.svelte';
+</script>
+
+<div id="app">
+    <AppBar>
+        <svelte:fragment slot="lead">🌳</svelte:fragment>
+            <a href="/">understory</a>
+        <svelte:fragment slot="trail">
+            {#if $currentUser}
+                <LogOut />
+            {/if}
+        </svelte:fragment>
+    </AppBar>
+
+    <slot />
+</div>
+
+<style>
+    #app {
+        margin: 0;
+        padding: 1rem;
+        height: 100vh;
+        width: 100%;
+    }
+</style>
-- 
cgit v1.2.3

