aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/LandingHeader.svelte
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-07-31 10:43:47 -0600
committersecondl1ght <[email protected]>2022-07-31 10:43:47 -0600
commit166c4ec3dd7d279acc329f70a48791d8405ac0fc (patch)
treef6886e67fe90e35ce1b2e44bf99fd5705a0571a2 /src/components/LandingHeader.svelte
parent1d7a1f8c2f527f2d08e0ef4e4585563307d20355 (diff)
downloadcoinos-ui-166c4ec3dd7d279acc329f70a48791d8405ac0fc.tar.gz
coinos-ui-166c4ec3dd7d279acc329f70a48791d8405ac0fc.zip
add account link to landing if you are logged in
Diffstat (limited to 'src/components/LandingHeader.svelte')
-rw-r--r--src/components/LandingHeader.svelte9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte
index 91443ba5..a8d68462 100644
--- a/src/components/LandingHeader.svelte
+++ b/src/components/LandingHeader.svelte
@@ -21,8 +21,8 @@
<button on:click={() => scroll(about)}>About</button>
{#if !$user}
<button class="border rounded-full px-6 py-2 font-bold" on:click={() => goto('/register')}
- >Start in Seconds</button
- >
+ >Start in Seconds
+ </button>
<button
class="bg-black text-white border rounded-full px-6 py-2 font-bold"
on:click={() => goto('/login')}
@@ -31,6 +31,11 @@
</button>
{:else}
<button
+ class="border rounded-full px-6 py-2 font-bold"
+ on:click={() => goto(`/${$user.username}/dashboard`)}
+ >Account
+ </button>
+ <button
class="bg-black text-white border rounded-full px-6 py-2 font-bold"
on:click={() => goto('/logout')}
>