diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 23:02:30 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 23:02:30 -0800 |
| commit | 2e61e8abbc318c36969cb5add0c63df81135b4ab (patch) | |
| tree | 706396b41da448f0172719313fb6ae30ecebb004 /src/components/LandingHeader.svelte | |
| parent | 56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (diff) | |
| download | coinos-ui-2e61e8abbc318c36969cb5add0c63df81135b4ab.tar.gz coinos-ui-2e61e8abbc318c36969cb5add0c63df81135b4ab.zip | |
formatting
Diffstat (limited to 'src/components/LandingHeader.svelte')
| -rw-r--r-- | src/components/LandingHeader.svelte | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte index 9d8b92cf..1bce2ce2 100644 --- a/src/components/LandingHeader.svelte +++ b/src/components/LandingHeader.svelte @@ -33,22 +33,22 @@ <!-- desktop nav --> <div class="hidden space-x-5 lg:flex justify-center items-center font-bold"> {#if $page.url.pathname === "/"} - <button class="hover:opacity-80" onclick={() => scroll(howItWorks)} - >{$t("howItWorks.header")}</button - > + <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> {/if} {#if user} - <button class="btn !w-auto !rounded-full" onclick={() => goto(`/${user.username}`)} - >{$t("nav.home")} + <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")}> {$t("nav.signOut")} </button> {:else} - <button class="btn btn-accent !w-auto !rounded-full" onclick={() => goto("/register")} - >{$t("nav.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")}> {$t("nav.signIn")} @@ -67,31 +67,30 @@ <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" + ? '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(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 - > + <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 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")} + > + {$t("nav.account")} </button> <button class="bg-primary text-white border rounded-full px-6 py-2 font-bold block" |
