aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/LandingHeader.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-27 19:28:59 -0800
committerAdam Soltys <[email protected]>2023-02-27 19:28:59 -0800
commit301770cb05331c8cbb32f60b11c62a79c9d28df3 (patch)
treeacd4126b1f0d2e893719468135fbf439e916c4bb /src/components/LandingHeader.svelte
parent34bc1c031378f8333819f2b46fb74f46634fb639 (diff)
downloadcoinos-ui-301770cb05331c8cbb32f60b11c62a79c9d28df3.tar.gz
coinos-ui-301770cb05331c8cbb32f60b11c62a79c9d28df3.zip
prettier
Diffstat (limited to 'src/components/LandingHeader.svelte')
-rw-r--r--src/components/LandingHeader.svelte26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte
index f9db5ea0..ed7907c1 100644
--- a/src/components/LandingHeader.svelte
+++ b/src/components/LandingHeader.svelte
@@ -40,29 +40,29 @@
<button class="hover:opacity-80" on:click={() => scroll(about)}>{$t('about.header')}</button
>
{/if}
- {#if !user}
+ {#if user}
<button
- class="border rounded-full px-6 py-2 font-bold hover:opacity-80"
- on:click={() => goto('/register')}
- >{$t('nav.startInSeconds')}
+ class="border rounded-full px-6 py-2 font-bold"
+ on:click={() => goto(`/${user.username}`)}
+ >Home
</button>
<button
- class="bg-black text-white border rounded-full px-6 py-2 font-bold hover:opacity-80"
- on:click={() => goto('/login')}
+ class="bg-black text-white border rounded-full px-6 py-2 font-bold"
+ on:click={() => goto('/logout')}
>
- {$t('nav.signIn')}
+ {$t('nav.signOut')}
</button>
{:else}
<button
- class="border rounded-full px-6 py-2 font-bold"
- on:click={() => goto(`/${user.username}`)}
- >{$t('nav.account')}
+ class="border rounded-full px-6 py-2 font-bold hover:opacity-80"
+ on:click={() => goto('/register')}
+ >{$t('nav.startInSeconds')}
</button>
<button
- class="bg-black text-white border rounded-full px-6 py-2 font-bold"
- on:click={() => goto('/logout')}
+ class="bg-black text-white border rounded-full px-6 py-2 font-bold hover:opacity-80"
+ on:click={() => goto('/login')}
>
- {$t('nav.signOut')}
+ {$t('nav.signIn')}
</button>
{/if}
</div>