diff --git a/src/lib/components/CookieConsent.svelte b/src/lib/components/CookieConsent.svelte index 09984b7..8872559 100644 --- a/src/lib/components/CookieConsent.svelte +++ b/src/lib/components/CookieConsent.svelte @@ -1,5 +1,7 @@ {#if showBanner} -
+

We use cookies to ensure you get the best experience on our website. By continuing, you agree to our use of cookies. diff --git a/src/lib/components/Dropdown.svelte b/src/lib/components/Dropdown.svelte index 3940f8a..0c3c645 100644 --- a/src/lib/components/Dropdown.svelte +++ b/src/lib/components/Dropdown.svelte @@ -1,43 +1,51 @@ -

- - -
\ No newline at end of file +
+ + {#if isOpen} + + {/if} +
diff --git a/src/lib/components/Nav.svelte b/src/lib/components/Nav.svelte index 6018b49..5879ace 100644 --- a/src/lib/components/Nav.svelte +++ b/src/lib/components/Nav.svelte @@ -1,110 +1,136 @@ - diff --git a/src/lib/components/NavLinkParent.svelte b/src/lib/components/NavLinkParent.svelte index b15005a..57ea726 100644 --- a/src/lib/components/NavLinkParent.svelte +++ b/src/lib/components/NavLinkParent.svelte @@ -1,14 +1,39 @@ - -
{text}
- {#each children ?? [] as child} -
  • {child.text}
  • - {/each} -
    \ No newline at end of file +{#if !isMobile} + +
    {text}
    + {#each children ?? [] as child} +
  • {child.text}
  • + {/each} +
    +{:else} + + {#if isOpen} + + {/if} +{/if} diff --git a/src/lib/components/NavLinks.svelte b/src/lib/components/NavLinks.svelte index b7643b1..51c657e 100644 --- a/src/lib/components/NavLinks.svelte +++ b/src/lib/components/NavLinks.svelte @@ -2,10 +2,12 @@ import { type NavLinkItem } from '$lib/types/Nav/NavLinkItem'; import NavLinkParent from './NavLinkParent.svelte'; + export let isMobile = false; + const links: NavLinkItem[] = [ { text: 'Products', - href: '/products', + href: '/products' }, { text: 'Parent', @@ -13,26 +15,26 @@ children: [ { text: 'Submenu 1', - href: '/', + href: '/' }, { text: 'Submenu 2', - href: '/', - }, - ], + href: '/' + } + ] }, { text: 'Example Product', - href: '/tools/exampleproduct', - }, + href: '/tools/exampleproduct' + } ]; -