From ed2f0f2d35e7e507f019494787358178a0f1237c Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 15 Nov 2025 01:03:00 +0000 Subject: [PATCH] switchable registration and login window --- .../components/login/auth-functions.svelte | 17 +++++++ src/routes/+layout.svelte | 2 +- src/routes/login.html/+page.svelte | 44 ++++++++++++++----- 3 files changed, 52 insertions(+), 11 deletions(-) create mode 100644 src/lib/components/login/auth-functions.svelte diff --git a/src/lib/components/login/auth-functions.svelte b/src/lib/components/login/auth-functions.svelte new file mode 100644 index 0000000..d534e38 --- /dev/null +++ b/src/lib/components/login/auth-functions.svelte @@ -0,0 +1,17 @@ + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index a800d20..148f4b0 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -35,7 +35,7 @@ } // do an initial authentication check - checkAuth(); + await checkAuth(); // delay load until page is hydrated appSettings.appLoaded = true; diff --git a/src/routes/login.html/+page.svelte b/src/routes/login.html/+page.svelte index 8e0b9f0..7b0ddf2 100644 --- a/src/routes/login.html/+page.svelte +++ b/src/routes/login.html/+page.svelte @@ -1,20 +1,44 @@ -
-
- Login +{#if loginType == 'login'} +
+
+ Login - - + + - - + + - -
-
\ No newline at end of file + +
+
+{/if} + +{#if loginType == 'registration'} +
+
+ First Time Registration + + + + + + + +
+
+{/if}