aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/LandingHeader.svelte17
-rw-r--r--src/components/Pin.svelte2
2 files changed, 10 insertions, 9 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"
diff --git a/src/components/Pin.svelte b/src/components/Pin.svelte
index a59f574e..1d7ed65b 100644
--- a/src/components/Pin.svelte
+++ b/src/components/Pin.svelte
@@ -10,7 +10,7 @@
let pin = '';
$: update(value);
- let update = (v) => (pin = v)
+ let update = (v) => (pin = v);
$: pin.toString().length > 5 && (value = pin.toString());
</script>