@@ -19,14 +20,16 @@
Grow your customer base and revenue by accepting Bitcoin with an easy-to-use and managed Point
of Sale. No software or hardware required.
-
-
-
+ {#if !$user}
+
+
+
+ {/if}
--
cgit v1.2.3
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
(limited to 'src/components/LandingHero.svelte')
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';
-