From e4438d552b2861f018e11d87cb4c3bc57959acf7 Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Tue, 4 Jun 2024 20:10:32 +0100 Subject: [PATCH 1/2] feat(#2): Begin replacing navbar --- src/lib/components/NavLinks.svelte | 17 +++++++++++++++++ src/routes/+layout.svelte | 28 +++++----------------------- 2 files changed, 22 insertions(+), 23 deletions(-) create mode 100644 src/lib/components/NavLinks.svelte diff --git a/src/lib/components/NavLinks.svelte b/src/lib/components/NavLinks.svelte new file mode 100644 index 0000000..8a812a4 --- /dev/null +++ b/src/lib/components/NavLinks.svelte @@ -0,0 +1,17 @@ + + +
  • Products
  • +
  • +
    Parent
    + +
  • +
  • Item 3
  • diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 88063d5..9d0af14 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -8,6 +8,7 @@ import SignIn from '$lib/components/SignIn.svelte'; import SignOut from '$lib/components/SignOut.svelte'; import CookieConsent from '$lib/components/CookieConsent.svelte'; + import NavLinks from '$lib/components/NavLinks.svelte'; export let data; let { supabase, session } = data; @@ -62,7 +63,7 @@
    - +
    From ca40b8403a269a74ed7ada13c869b0b67b1b25dc Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Tue, 4 Jun 2024 20:22:19 +0100 Subject: [PATCH 2/2] feat(#2): Add chevron to dropdown parent --- src/lib/components/NavLinks.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/components/NavLinks.svelte b/src/lib/components/NavLinks.svelte index 8a812a4..fb054f5 100644 --- a/src/lib/components/NavLinks.svelte +++ b/src/lib/components/NavLinks.svelte @@ -4,7 +4,13 @@
  • Products
  • -
    Parent
    + {#if isMobile} +
    Parent
    + {:else} +
    + Parent +
    + {/if}