Skip to content

Commit

Permalink
Fix/burger menu links (#9)
Browse files Browse the repository at this point in the history
* Fix - Remove scrollto to fix broken burger menu links

* Fix burger nav
  • Loading branch information
johngribbin authored May 21, 2024
1 parent 71877d8 commit 1f495e4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/lib/components/shared/Navigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
</a>
</div>
<div class="flex lg:hidden">
<div class="flex lg:hidden fixed top-6 right-6">
<button
on:click={() => (showMobileMenu = true)}
type="button"
Expand Down Expand Up @@ -106,23 +106,23 @@
<div class="-my-6 divide-y divide-gray-500/10">
{#if !isRemoteRoute}
<div class="space-y-2 py-6">
<span
<a
on:click={() => (showMobileMenu = false)}
use:scrollto={'#features'}
href="#features"
class="cursor-pointer -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 dark:text-white hover:bg-gray-50 dark:hover:bg-gray-800"
>Features</span
>Features</a
>
<span
<a
on:click={() => (showMobileMenu = false)}
use:scrollto={'#pricing'}
href="#pricing"
class="cursor-pointer -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 dark:text-white hover:bg-gray-50 dark:hover:bg-gray-800"
>Pricing</span
>Pricing</a
>
<span
<a
on:click={() => (showMobileMenu = false)}
use:scrollto={'#faq'}
href="#faq"
class="cursor-pointer -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 dark:text-white hover:bg-gray-50 dark:hover:bg-gray-800"
>FAQ</span
>FAQ</a
>
</div>
{/if}
Expand Down

0 comments on commit 1f495e4

Please sign in to comment.