From 986b97d1432d65ac8e1000666996f12f5189a004 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Sun, 19 Mar 2023 10:33:34 +0100 Subject: [PATCH] ENHANCEMENT: better use of svelte --- src/routes/+page.svelte | 91 +++------------------------------ src/routes/login/+layout.svelte | 11 ---- src/routes/login/+page.svelte | 51 ++++++------------ src/routes/login/Login.svelte | 60 ++++++++++++++++++++++ src/routes/login/Server.svelte | 58 +++++++++++++++++++++ src/stores.js | 2 +- 6 files changed, 140 insertions(+), 133 deletions(-) delete mode 100644 src/routes/login/+layout.svelte create mode 100644 src/routes/login/Login.svelte create mode 100644 src/routes/login/Server.svelte diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index ae48887..526c000 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,88 +1,9 @@ -
-

Blackbird Chess

+ \ No newline at end of file diff --git a/src/routes/login/+layout.svelte b/src/routes/login/+layout.svelte deleted file mode 100644 index 81bf07c..0000000 --- a/src/routes/login/+layout.svelte +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/src/routes/login/+page.svelte b/src/routes/login/+page.svelte index 092ee0f..af3b21c 100644 --- a/src/routes/login/+page.svelte +++ b/src/routes/login/+page.svelte @@ -1,7 +1,6 @@

Blackbird Chess

- {#if message.visible} {/if} -
- - - -
+
\ No newline at end of file diff --git a/src/routes/login/Login.svelte b/src/routes/login/Login.svelte new file mode 100644 index 0000000..9e70e19 --- /dev/null +++ b/src/routes/login/Login.svelte @@ -0,0 +1,60 @@ +
+

Blackbird Chess

+ + + {#if message.visible} + + {/if} + +
+ + + +
+
+ + + + \ No newline at end of file diff --git a/src/routes/login/Server.svelte b/src/routes/login/Server.svelte new file mode 100644 index 0000000..50a0724 --- /dev/null +++ b/src/routes/login/Server.svelte @@ -0,0 +1,58 @@ +
+ + +
+ + + + \ No newline at end of file diff --git a/src/stores.js b/src/stores.js index b92520b..53affe2 100644 --- a/src/stores.js +++ b/src/stores.js @@ -5,4 +5,4 @@ export const urls = { login: "/login" } -export const server = writable(null); \ No newline at end of file +export const serverurl = writable(null); \ No newline at end of file