From 98a4bcbc69446790b273522d4a40994b9d7e0d0d Mon Sep 17 00:00:00 2001 From: TerraMaster85 Date: Thu, 11 Jan 2024 02:30:56 -0500 Subject: [PATCH] Client homepage facelift, part 1 --- .../src/components/ui/Column.svelte | 25 +++++ .../src/components/ui/ColumnTable.svelte | 32 ++++++ .../src/components/ui/HorizontalGap.svelte | 21 ++++ .../src/components/ui/VerticalRule.svelte | 29 +++++ starkingdoms-client/src/css/form.scss | 4 +- starkingdoms-client/src/pages/Home.svelte | 100 +++++++++++------- 6 files changed, 170 insertions(+), 41 deletions(-) create mode 100644 starkingdoms-client/src/components/ui/Column.svelte create mode 100644 starkingdoms-client/src/components/ui/ColumnTable.svelte create mode 100644 starkingdoms-client/src/components/ui/HorizontalGap.svelte create mode 100644 starkingdoms-client/src/components/ui/VerticalRule.svelte diff --git a/starkingdoms-client/src/components/ui/Column.svelte b/starkingdoms-client/src/components/ui/Column.svelte new file mode 100644 index 0000000000000000000000000000000000000000..c5d405e77f94f6cba91dc07c319c00b975069708 --- /dev/null +++ b/starkingdoms-client/src/components/ui/Column.svelte @@ -0,0 +1,25 @@ + + +
+ +
+ + diff --git a/starkingdoms-client/src/components/ui/ColumnTable.svelte b/starkingdoms-client/src/components/ui/ColumnTable.svelte new file mode 100644 index 0000000000000000000000000000000000000000..bc0b6a091ff870765211165123a92beb52e21f5f --- /dev/null +++ b/starkingdoms-client/src/components/ui/ColumnTable.svelte @@ -0,0 +1,32 @@ + + +
+ +
+ + diff --git a/starkingdoms-client/src/components/ui/HorizontalGap.svelte b/starkingdoms-client/src/components/ui/HorizontalGap.svelte new file mode 100644 index 0000000000000000000000000000000000000000..be0cf1f2072dda084c403a31eeb3aa6148b68966 --- /dev/null +++ b/starkingdoms-client/src/components/ui/HorizontalGap.svelte @@ -0,0 +1,21 @@ + + +
+ +
+ + diff --git a/starkingdoms-client/src/components/ui/VerticalRule.svelte b/starkingdoms-client/src/components/ui/VerticalRule.svelte new file mode 100644 index 0000000000000000000000000000000000000000..c9e615348a43ea970aa59e7c61c421b8f4759fee --- /dev/null +++ b/starkingdoms-client/src/components/ui/VerticalRule.svelte @@ -0,0 +1,29 @@ + + +
+
+ + diff --git a/starkingdoms-client/src/css/form.scss b/starkingdoms-client/src/css/form.scss index c8074f2b941c3ef11171fe366960066c9e38dc54..69278952620698638b7131102be742fccc479c17 100644 --- a/starkingdoms-client/src/css/form.scss +++ b/starkingdoms-client/src/css/form.scss @@ -3,10 +3,10 @@ .form { input, select { - margin-bottom: 0.75em; + margin-bottom: 0.75rem; } button { - margin-top: 0.25em; + margin-top: 0.5rem; } } diff --git a/starkingdoms-client/src/pages/Home.svelte b/starkingdoms-client/src/pages/Home.svelte index d7fc15f7dcc926c793b5d1910754943a37230d81..b4023a4f518814b51b9028ebf86d2f387043b354 100644 --- a/starkingdoms-client/src/pages/Home.svelte +++ b/starkingdoms-client/src/pages/Home.svelte @@ -9,6 +9,10 @@ import Popup from "../components/ui/Popup.svelte"; import Button from "../components/ui/Button.svelte"; import TextInput from "../components/ui/TextInput.svelte"; + import ColumnTable from "../components/ui/ColumnTable.svelte"; + import Column from "../components/ui/Column.svelte"; + import VerticalRule from "../components/ui/VerticalRule.svelte"; + import HorizontalGap from "../components/ui/HorizontalGap.svelte"; let config = DEFAULT_CONFIG; // Top-level await. Sets the default config, and overwrites it when the new config is avail. Thanks reactivity! @@ -57,36 +61,61 @@ } - -

Join Game

- -
- - - - - - - - + + + +

+ test! +
+ + +

Join Game

+ + + + + + + + + + + +
+ + +

Tools & Options

+ + + {#if window.localStorage.getItem("save") !== null} + + + + {/if} +
+
+
- +
-{#if window.localStorage.getItem("save") !== null} - - - - - -{/if} StarKingdoms Client {APP_VERSION} ({COMMIT_HASH})