aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/LandingHeader.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
committerAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
commit56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (patch)
treed6bc2557c56b93177bb14aa376847c6e123a4862 /src/components/LandingHeader.svelte
parent13466248004327e9a026cb89f94926f9b060d1c1 (diff)
downloadcoinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.tar.gz
coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.zip
format
Diffstat (limited to 'src/components/LandingHeader.svelte')
-rw-r--r--src/components/LandingHeader.svelte40
1 files changed, 9 insertions, 31 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte
index f1b6a2b4..9d8b92cf 100644
--- a/src/components/LandingHeader.svelte
+++ b/src/components/LandingHeader.svelte
@@ -22,10 +22,7 @@
};
</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}
->
+<header class="w-full lg:w-5/6 p-4 mx-auto fixed sticky z-10 top-0 bg-base-100" bind:this={header}>
<nav class="block lg:flex justify-between items-center">
<div class="flex justify-start lg:justify-center items-center lg:space-x-5">
<a href="/" onclick={() => scroll(header)} aria-label="Home">
@@ -39,35 +36,21 @@
<button class="hover:opacity-80" onclick={() => scroll(howItWorks)}
>{$t("howItWorks.header")}</button
>
- <button class="hover:opacity-80" onclick={() => scroll(faq)}
- >{$t("faq.header")}</button
- >
- <button class="hover:opacity-80" onclick={() => scroll(about)}
- >{$t("about.header")}</button
- >
+ <button class="hover:opacity-80" onclick={() => scroll(faq)}>{$t("faq.header")}</button>
+ <button class="hover:opacity-80" onclick={() => scroll(about)}>{$t("about.header")}</button>
{/if}
{#if user}
- <button
- class="btn !w-auto !rounded-full"
- onclick={() => goto(`/${user.username}`)}
+ <button class="btn !w-auto !rounded-full" onclick={() => goto(`/${user.username}`)}
>{$t("nav.home")}
</button>
- <button
- class="btn !w-auto !rounded-full"
- onclick={() => goto("/logout")}
- >
+ <button class="btn !w-auto !rounded-full" onclick={() => goto("/logout")}>
{$t("nav.signOut")}
</button>
{:else}
- <button
- class="btn btn-accent !w-auto !rounded-full"
- onclick={() => goto("/register")}
+ <button class="btn btn-accent !w-auto !rounded-full" onclick={() => goto("/register")}
>{$t("nav.register")}
</button>
- <button
- class="btn !w-auto !rounded-full"
- onclick={() => goto("/login")}
- >
+ <button class="btn !w-auto !rounded-full" onclick={() => goto("/login")}>
{$t("nav.signIn")}
</button>
{/if}
@@ -78,10 +61,7 @@
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 noobserver icon={!showMobileMenu ? "ph:list-bold" : "ph:x-bold"} width="32"
></iconify-icon>
</button>
@@ -96,9 +76,7 @@
<button onclick={() => mobileMenuButtonClick(howItWorks)} class="block"
>{$t("howItWorks.header")}</button
>
- <button onclick={() => mobileMenuButtonClick(faq)} class="block"
- >{$t("faq.header")}</button
- >
+ <button onclick={() => mobileMenuButtonClick(faq)} class="block">{$t("faq.header")}</button>
<button onclick={() => mobileMenuButtonClick(about)} class="block"
>{$t("about.header")}</button
>