From 7ecf3258c259eb259d8dfb3c4a47d4ede82f5c56 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Sun, 31 Jul 2022 13:41:15 -0600 Subject: add mobile menu to landing page and make header sticky --- src/components/LandingHeader.svelte | 66 +++++++++++++++++++++++++++++++++++-- src/components/LandingHero.svelte | 2 +- src/routes/index.svelte | 33 +++++++++++-------- 3 files changed, 85 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte index a8d68462..65ea607c 100644 --- a/src/components/LandingHeader.svelte +++ b/src/components/LandingHeader.svelte @@ -7,14 +7,24 @@ export let howItWorks; export let faq; export let about; + + let showMobileMenu = false; + const mobileMenuButtonClick = (section) => { + showMobileMenu = false; + scroll(section); + }; -
+
+ + diff --git a/src/components/LandingHero.svelte b/src/components/LandingHero.svelte index 8fe344d7..93bea8c2 100644 --- a/src/components/LandingHero.svelte +++ b/src/components/LandingHero.svelte @@ -4,7 +4,7 @@ import { user } from '$lib/store'; -
+

-
+
@@ -82,14 +82,17 @@ - +
+ +
+
-
+

How it works

{/each}
+
-
-

FAQ

- {#each faqQuestions as question} - - {/each} +
+
+

FAQ

+ {#each faqQuestions as question} + + {/each} +
+
-
+
-- cgit v1.2.3