From 382c6e1cd82e3315c0eb07d619896abed2fc9312 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 16 Jun 2024 20:32:09 +0600 Subject: [PATCH] web: reusable meowbalt component & page placeholders --- .../components/meowbalt/MeowbaltLoaf.svelte | 14 ++++++++++++ web/src/components/misc/Placeholder.svelte | 16 +++++++++++++ web/src/routes/+layout.svelte | 8 +++++++ web/src/routes/+page.svelte | 21 +++--------------- web/src/routes/about/+page.svelte | 7 ++++-- web/src/routes/convert/+page.svelte | 7 ++++-- web/src/routes/crop/+page.svelte | 7 ++++-- web/src/routes/donate/+page.svelte | 7 ++++-- web/src/routes/settings/+page.svelte | 7 ++++-- web/src/routes/trim/+page.svelte | 7 ++++-- web/src/routes/updates/+page.svelte | 7 ++++-- web/static/meowbalt/{smile.png => loaf.png} | Bin 12 files changed, 76 insertions(+), 32 deletions(-) create mode 100644 web/src/components/meowbalt/MeowbaltLoaf.svelte create mode 100644 web/src/components/misc/Placeholder.svelte rename web/static/meowbalt/{smile.png => loaf.png} (100%) diff --git a/web/src/components/meowbalt/MeowbaltLoaf.svelte b/web/src/components/meowbalt/MeowbaltLoaf.svelte new file mode 100644 index 00000000..8b3d97b4 --- /dev/null +++ b/web/src/components/meowbalt/MeowbaltLoaf.svelte @@ -0,0 +1,14 @@ +black and white cat smiling and loafing + diff --git a/web/src/components/misc/Placeholder.svelte b/web/src/components/misc/Placeholder.svelte new file mode 100644 index 00000000..01dd78f1 --- /dev/null +++ b/web/src/components/misc/Placeholder.svelte @@ -0,0 +1,16 @@ + + +
+ +
{pageName} page is not ready yet!
+
+ + diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index 5dd708fc..55040fea 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -80,6 +80,14 @@ background-color: var(--button-hover); } + :global(.center-column-container) { + display: flex; + width: 100%; + flex-direction: column; + align-items: center; + justify-content: center; + } + #cobalt { height: 100vh; display: grid; diff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelte index 654698ef..bd364ec1 100644 --- a/web/src/routes/+page.svelte +++ b/web/src/routes/+page.svelte @@ -1,15 +1,11 @@ -
+
- black and white cat smiling and loafing +
@@ -18,12 +14,6 @@