diff options
| author | secondl1ght <[email protected]> | 2022-07-31 11:23:20 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-07-31 11:23:20 -0600 |
| commit | 96a36294f143b38a2ba4f914df092b4ab85c62bb (patch) | |
| tree | d24a50eed5a6e79b40e74c4f16d42cf9b6ec203f /src/components | |
| parent | 654607461fcec360ebd2f1d4c22892ed1c19496b (diff) | |
| download | coinos-ui-96a36294f143b38a2ba4f914df092b4ab85c62bb.tar.gz coinos-ui-96a36294f143b38a2ba4f914df092b4ab85c62bb.zip | |
hide btn if logged in
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/LandingHero.svelte | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/components/LandingHero.svelte b/src/components/LandingHero.svelte index 2c2e1ab5..8fe344d7 100644 --- a/src/components/LandingHero.svelte +++ b/src/components/LandingHero.svelte @@ -1,6 +1,7 @@ <script> import { goto } from '$app/navigation'; import { Icon, Image } from '$comp'; + import { user } from '$lib/store'; </script> <div> @@ -19,14 +20,16 @@ Grow your customer base and revenue by accepting Bitcoin with an easy-to-use and managed Point of Sale. No software or hardware required. </h2> - <div class="flex justify-center"> - <button - class="bg-black text-white border rounded-full px-6 py-2 font-bold" - on:click={() => goto('/register')} - > - Start in Seconds - </button> - </div> + {#if !$user} + <div class="flex justify-center"> + <button + class="bg-black text-white border rounded-full px-6 py-2 font-bold" + on:click={() => goto('/register')} + > + Start in Seconds + </button> + </div> + {/if} </div> <!-- hero image --> |
