diff options
| author | Adam Soltys <[email protected]> | 2023-02-08 13:20:22 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-08 13:20:22 -0800 |
| commit | 866b78f25c9c8ae9c6cd3d0892aff3933cabf556 (patch) | |
| tree | 4e62b2fc800df4f0ef48ee5445d4b1639f9facd7 /src/components/LandingHeader.svelte | |
| parent | f1de78757ebd132acee2f4ebe1c0927a262594f0 (diff) | |
| download | coinos-ui-866b78f25c9c8ae9c6cd3d0892aff3933cabf556.tar.gz coinos-ui-866b78f25c9c8ae9c6cd3d0892aff3933cabf556.zip | |
internal payment fixes
Diffstat (limited to 'src/components/LandingHeader.svelte')
| -rw-r--r-- | src/components/LandingHeader.svelte | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte index 2c3bcd6a..f9db5ea0 100644 --- a/src/components/LandingHeader.svelte +++ b/src/components/LandingHeader.svelte @@ -3,7 +3,7 @@ import { scroll } from '$lib/utils'; import { Icon } from '$comp'; import { t } from '$lib/translations'; - import { page } from '$app/stores'; + import { page } from '$app/stores'; export let howItWorks; export let faq; @@ -32,13 +32,14 @@ <!-- desktop nav --> <div class="hidden space-x-10 md:flex flex-wrap justify-center items-center font-bold"> - {#if $page.url.pathname === "/"} - <button class="hover:opacity-80" on:click={() => scroll(howItWorks)} - >{$t('howItWorks.header')}</button - > - <button class="hover:opacity-80" on:click={() => scroll(faq)}>{$t('faq.header')}</button> - <button class="hover:opacity-80" on:click={() => scroll(about)}>{$t('about.header')}</button> - {/if} + {#if $page.url.pathname === '/'} + <button class="hover:opacity-80" on:click={() => scroll(howItWorks)} + >{$t('howItWorks.header')}</button + > + <button class="hover:opacity-80" on:click={() => scroll(faq)}>{$t('faq.header')}</button> + <button class="hover:opacity-80" on:click={() => scroll(about)}>{$t('about.header')}</button + > + {/if} {#if !user} <button class="border rounded-full px-6 py-2 font-bold hover:opacity-80" |
