aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/LandingHero.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-03 23:13:49 -0700
committerAdam Soltys <[email protected]>2022-10-03 23:13:49 -0700
commit63f1a6780bab85ebb48ca1fc142cc6beaf772faa (patch)
treeb498ac8dd1a8ac5ffd517e6a8050399d9d7a86a1 /src/components/LandingHero.svelte
parent8906099f391acf19f7b8eb91527b027cedd65b5e (diff)
downloadcoinos-ui-63f1a6780bab85ebb48ca1fc142cc6beaf772faa.tar.gz
coinos-ui-63f1a6780bab85ebb48ca1fc142cc6beaf772faa.zip
refactoring
Diffstat (limited to 'src/components/LandingHero.svelte')
-rw-r--r--src/components/LandingHero.svelte19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/components/LandingHero.svelte b/src/components/LandingHero.svelte
index 466a6194..74c192fb 100644
--- a/src/components/LandingHero.svelte
+++ b/src/components/LandingHero.svelte
@@ -1,8 +1,9 @@
<script>
import { goto } from '$app/navigation';
import { Icon, Image } from '$comp';
- import { user } from '$lib/store';
import { t } from '$lib/translations';
+
+ export let user;
</script>
<div class="mt-[96.88px] md:mt-0">
@@ -22,18 +23,18 @@
>
{$t('landing.subheader')}
</h2>
- {#if !$user}
+ {#if !user}
<div class="flex justify-center">
- <button
- class="bg-black text-white border rounded-full px-6 py-2 font-bold hover:opacity-80"
- on:click={() => goto('/register')}
- >
- {$t('nav.startInSeconds')}
- </button>
+ <a href="/register">
+ <button
+ class="bg-black text-white border rounded-full px-6 py-2 font-bold hover:opacity-80"
+ >
+ {$t('nav.startInSeconds')}
+ </button>
+ </a>
</div>
{/if}
</div>
- <!-- hero image -->
<Image image="hero-image" style="w-full md:w-2/3 max-w-5xl mx-auto mt-20" />
</div>