aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
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
commit7f816ea8e6d7898cdb06f70b065436a60c200934 (patch)
tree4d6afb18d758e4b3256a09f5b997c411e4157388 /src/components
parentb0bce2ad29b72da147d7cdee20b1522b44bca1ef (diff)
downloadcoinos-ui-7f816ea8e6d7898cdb06f70b065436a60c200934.tar.gz
coinos-ui-7f816ea8e6d7898cdb06f70b065436a60c200934.zip
add account link to landing if you are logged in
Diffstat (limited to 'src/components')
-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')}
>