From 0154158c80a6a0d18fa073458b00f4fa93f7fcca Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Fri, 16 Jun 2023 23:24:44 +0200 Subject: [PATCH 1/4] [TASK] add header and first nested components --- rot_app/src/routes/+layout.svelte | 14 +-- rot_app/src/routes/+page.svelte | 59 +--------- rot_app/src/routes/Header.svelte | 159 ++++++-------------------- rot_app/src/routes/Login.svelte | 43 +++++++ rot_app/src/routes/admin/+page.svelte | 26 +++++ rot_app/src/routes/admin/+page.ts | 9 ++ rot_app/src/routes/admin/FAQ.svelte | 11 ++ rot_app/src/store.js | 3 - rot_app/src/stores/User.js | 8 ++ 9 files changed, 136 insertions(+), 196 deletions(-) create mode 100644 rot_app/src/routes/admin/+page.svelte create mode 100644 rot_app/src/routes/admin/+page.ts create mode 100644 rot_app/src/routes/admin/FAQ.svelte delete mode 100644 rot_app/src/store.js create mode 100644 rot_app/src/stores/User.js diff --git a/rot_app/src/routes/+layout.svelte b/rot_app/src/routes/+layout.svelte index 0dc2352..89ff3fd 100644 --- a/rot_app/src/routes/+layout.svelte +++ b/rot_app/src/routes/+layout.svelte @@ -1,28 +1,22 @@
- {#if isLoggedIn} + {#if $user.status}
{/if} -
+
- {#if isLoggedIn} + {#if $user.status}