From 7d1b86cae8c38b1b23a98dc6b3ae582b224abbbe Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Fri, 16 Jun 2023 22:18:50 +0200 Subject: [PATCH 1/3] [TASK] add 'fancy' login --- rot_app/src/app.css | 8 +++++ rot_app/src/routes/+layout.svelte | 2 +- rot_app/src/routes/+page.svelte | 50 +++++++++++++++++++++---------- 3 files changed, 44 insertions(+), 16 deletions(-) diff --git a/rot_app/src/app.css b/rot_app/src/app.css index fea01ad..277ef83 100644 --- a/rot_app/src/app.css +++ b/rot_app/src/app.css @@ -2,6 +2,14 @@ @tailwind components; @tailwind utilities; +h1 { + @apply text-center text-3xl uppercase tracking-wide font-bold text-primary-900; +} + +.input { + @apply relative block w-full border-0 py-1.5 px-2 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6; +} + .btn { @apply inline-block rounded-md px-3 py-2 text-sm font-semibold text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 cursor-pointer text-center; diff --git a/rot_app/src/routes/+layout.svelte b/rot_app/src/routes/+layout.svelte index 8278aff..0dc2352 100644 --- a/rot_app/src/routes/+layout.svelte +++ b/rot_app/src/routes/+layout.svelte @@ -18,7 +18,7 @@
{/if} -
+
diff --git a/rot_app/src/routes/+page.svelte b/rot_app/src/routes/+page.svelte index 5aba0ff..1477ed0 100644 --- a/rot_app/src/routes/+page.svelte +++ b/rot_app/src/routes/+page.svelte @@ -23,25 +23,45 @@ Ruderassistent - ASKÖ Ruderverein Donau Linz -
-

- - - - Welcome - - -

- {#if isLoggedIn}

Here comes the list

{:else} -

Login

- +
+
+ Logo Ruderassistent +

Ruderassistent

+
+ +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+ +
+
+
{/if} -
From 0154158c80a6a0d18fa073458b00f4fa93f7fcca Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Fri, 16 Jun 2023 23:24:44 +0200 Subject: [PATCH 2/3] [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}