From baab8ec42376ef4467695611b74e5f2c2ff46d73 Mon Sep 17 00:00:00 2001 From: Valexr Date: Sun, 14 Apr 2024 22:31:34 +0200 Subject: [PATCH] add: alternative county views --- src/App.svelte | 14 +++--- src/lib/components/Button.svelte | 21 ++++++++ src/lib/components/County.svelte | 48 +++++++++++++++++-- .../{DateInput.svelte => Date.svelte} | 0 src/lib/components/Quote.svelte | 6 ++- src/lib/images.ts | 7 ++- 6 files changed, 81 insertions(+), 15 deletions(-) create mode 100644 src/lib/components/Button.svelte rename src/lib/components/{DateInput.svelte => Date.svelte} (100%) diff --git a/src/App.svelte b/src/App.svelte index 5cc0084..e322aa4 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -2,7 +2,7 @@ import { date, time, start, quote, county } from "$lib/data"; import { images } from "$lib/images"; - import DateInput from "$lib/components/DateInput.svelte"; + import Date from "$lib/components/Date.svelte"; import County from "$lib/components/County.svelte"; import Quote from "$lib/components/Quote.svelte"; @@ -25,7 +25,7 @@ {#await images.back() then}
- +
@@ -37,9 +37,7 @@ {/if} {#await quote.load() then} - {#if $quote} - - {/if} + {/await}
@@ -56,12 +54,12 @@ header { justify-content: center; } - footer h2 { - margin: 0; - } main { padding: 1em; display: grid; place-content: center; } + footer h2 { + margin: 0; + } diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte new file mode 100644 index 0000000..26270b1 --- /dev/null +++ b/src/lib/components/Button.svelte @@ -0,0 +1,21 @@ + + + + + diff --git a/src/lib/components/County.svelte b/src/lib/components/County.svelte index 6145b30..116eb6e 100644 --- a/src/lib/components/County.svelte +++ b/src/lib/components/County.svelte @@ -1,11 +1,49 @@ + +