From f94a8e9a4c1ee861ce8a5ff2efdba256c8c60b55 Mon Sep 17 00:00:00 2001 From: zaanposni Date: Sun, 21 Jan 2024 11:32:23 +0100 Subject: [PATCH] use tabnavigation for mobile, fixes # --- .../src/lib/components/BigHeader.svelte | 40 ++++++++++ .../src/lib/components/Footer.svelte | 78 ++++++++++++++----- src/psaggregator/src/routes/+layout.svelte | 33 +------- 3 files changed, 103 insertions(+), 48 deletions(-) create mode 100644 src/psaggregator/src/lib/components/BigHeader.svelte diff --git a/src/psaggregator/src/lib/components/BigHeader.svelte b/src/psaggregator/src/lib/components/BigHeader.svelte new file mode 100644 index 0000000..c2622ff --- /dev/null +++ b/src/psaggregator/src/lib/components/BigHeader.svelte @@ -0,0 +1,40 @@ + + + + +
+ + PS Aggregator Logo + + {#if matches} + Home + Thumbnails + API + Motivation + + GitHub + + {/if} + {#if KOFI_USERNAME} + + Ko-fi + + {/if} + + PietSmiet.de + + {#if !matches && LEGAL_URL} + + Legal + + {/if} +
+ + + +
+
diff --git a/src/psaggregator/src/lib/components/Footer.svelte b/src/psaggregator/src/lib/components/Footer.svelte index 4305478..06fea76 100644 --- a/src/psaggregator/src/lib/components/Footer.svelte +++ b/src/psaggregator/src/lib/components/Footer.svelte @@ -2,32 +2,72 @@ import MediaQuery from "$lib/utils/MediaQuery.svelte"; import { LEGAL_URL, MAIL_TO_URL } from "../../config/config"; import { version } from "$app/environment"; + import { TabAnchor, TabGroup } from "@skeletonlabs/skeleton"; + import { page } from "$app/stores"; + import { Api, FavoriteFilled, Home, Thumbnail_2 } from "carbon-icons-svelte"; -
- - - PS Aggregator - by - - zaanposni - - - {#if matches} + {#if matches} +
+ + + PS Aggregator + by + + zaanposni + + Kontakt GitHub - {/if} - {#if LEGAL_URL} - - Legal - - {/if} - v{version} - Dies ist ein privates Projekt und steht in keiner Verbindung zur PietSmiet UG & Co. KG. -
+ {#if LEGAL_URL} + + Legal + + {/if} + v{version} + + Dies ist ein privates Projekt und steht in keiner Verbindung zur PietSmiet UG & Co. KG. + +
+ {:else} + + +
+ +
+ Home +
+ +
+ +
+ Thumbnails +
+ +
+ +
+ API +
+ +
+ +
+ Motivation +
+ +
+ {/if}
diff --git a/src/psaggregator/src/routes/+layout.svelte b/src/psaggregator/src/routes/+layout.svelte index 8fee6ae..3c58b42 100644 --- a/src/psaggregator/src/routes/+layout.svelte +++ b/src/psaggregator/src/routes/+layout.svelte @@ -1,10 +1,11 @@ @@ -13,33 +14,7 @@
- -
- - PS Aggregator Logo - - Home - {#if matches} - Thumbnails - API - Motivation - - GitHub - - {#if KOFI_USERNAME} - - Ko-fi - - {/if} - - PietSmiet.de - - {/if} -
- - - -
+