From 7fdaea73c5c67565202e19d6182fc215427919c3 Mon Sep 17 00:00:00 2001
From: memdmp <memdmp@estrogen.zone>
Date: Tue, 19 Aug 2025 20:40:19 +0000
Subject: feat: oidc attempt 1

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

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

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
new file mode 100644
index 0000000..1980c3a
--- /dev/null
+++ b/src/routes/+layout.svelte
@@ -0,0 +1,23 @@
+<script lang="ts">
+  import '../app.css';
+  import favicon from '$lib/assets/favicon.svg';
+  import { page } from '$app/state';
+
+  let { children } = $props();
+</script>
+
+<svelte:head>
+  <link rel="icon" href={favicon} />
+</svelte:head>
+
+<nav class="header">
+  <h1 class="text-4xl">crunched</h1>
+  <p>
+    <a href="/">home</a> - {#if page.data.session}<a href="/vms">vms</a
+      >{:else}<a href="/login?scope=profile%20vm-own-read">login</a>{/if}
+  </p>
+  <div class="my-2">
+    <hr />
+  </div>
+</nav>
+{@render children?.()}
-- 
cgit v1.2.3

