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 +++++++++++-------- static/icons/close.svg | 3 ++ 4 files changed, 88 insertions(+), 16 deletions(-) create mode 100644 static/icons/close.svg 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} +
+
-
+
diff --git a/static/icons/close.svg b/static/icons/close.svg new file mode 100644 index 00000000..0fdb37c5 --- /dev/null +++ b/static/icons/close.svg @@ -0,0 +1,3 @@ + + + -- cgit v1.2.3