aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/LandingHeader.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-27 23:09:19 -0800
committerAdam Soltys <[email protected]>2026-02-27 23:09:19 -0800
commit23a783c13302fbe6b29cb21e226f25b81cd88de6 (patch)
tree3caa3f380328bca802c3d7fa95555cb8499e5d73 /src/components/LandingHeader.svelte
parent6efa1762d7d7583a5cf191474e80252deff0df85 (diff)
downloadcoinos-ui-23a783c13302fbe6b29cb21e226f25b81cd88de6.tar.gz
coinos-ui-23a783c13302fbe6b29cb21e226f25b81cd88de6.zip
splash page update
Diffstat (limited to 'src/components/LandingHeader.svelte')
-rw-r--r--src/components/LandingHeader.svelte59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte
index 1bce2ce2..5f00b8a7 100644
--- a/src/components/LandingHeader.svelte
+++ b/src/components/LandingHeader.svelte
@@ -4,9 +4,6 @@
import { t } from "$lib/translations";
import { page } from "$app/stores";
- import DarkToggle from "$comp/DarkToggle.svelte";
- import LocaleSelector from "$comp/LocaleSelector.svelte";
-
let {
howItWorks = undefined,
faq = undefined,
@@ -14,12 +11,7 @@
user = undefined,
}: any = $props();
- let showMobileMenu = $state(false);
let header = $state();
- const mobileMenuButtonClick = (section) => {
- showMobileMenu = false;
- scroll(section);
- };
</script>
<header class="w-full lg:w-5/6 p-4 mx-auto fixed sticky z-10 top-0 bg-base-100" bind:this={header}>
@@ -56,56 +48,5 @@
{/if}
</div>
- <button
- aria-label="Menu"
- class="block lg:hidden absolute top-[34.5px] right-10 z"
- onclick={() => (showMobileMenu = !showMobileMenu)}
- >
- <iconify-icon noobserver icon={!showMobileMenu ? "ph:list-bold" : "ph:x-bold"} width="32"
- ></iconify-icon>
- </button>
-
- <div
- class="container w-full p-10 lg:hidden absolute top-0 {showMobileMenu
- ? 'right-0'
- : 'right-[-100%]'} transition-all ease-in-out duration-300 h-[100vh] w-full bg-base-100"
- >
- <div class="space-y-5 mt-24 font-bold text-xl">
- <LocaleSelector />
- <DarkToggle />
- <button onclick={() => mobileMenuButtonClick(howItWorks)} class="block">
- {$t("howItWorks.header")}
- </button>
- <button onclick={() => mobileMenuButtonClick(faq)} class="block">{$t("faq.header")}</button>
- <button onclick={() => mobileMenuButtonClick(about)} class="block">
- {$t("about.header")}
- </button>
- {#if !user}
- <button class="btn btn-accent" onclick={() => goto("/register")}>
- {$t("nav.register")}
- </button>
- <button class="btn" onclick={() => goto("/login")}>{$t("nav.signIn")}</button>
- {:else}
- <button
- class="border rounded-full px-6 py-2 font-bold block"
- onclick={() => goto(`/${user.username}`)}
- >
- {$t("nav.account")}
- </button>
- <button
- class="bg-primary text-white border rounded-full px-6 py-2 font-bold block"
- onclick={() => goto("/logout")}
- >
- {$t("nav.signOut")}
- </button>
- {/if}
- </div>
- </div>
</nav>
</header>
-
-<style>
- .z {
- z-index: 100;
- }
-</style>