aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-08-16 10:59:19 -0600
committersecondl1ght <[email protected]>2022-08-16 10:59:19 -0600
commitc26e004f4a05f231242587c1265a620b7fcd873a (patch)
tree54ac64420712c0343d693b97988a940eda66257e /src/components
parent94bb8a163f2d1197544977bdbd3c225a815f9c0e (diff)
downloadcoinos-ui-c26e004f4a05f231242587c1265a620b7fcd873a.tar.gz
coinos-ui-c26e004f4a05f231242587c1265a620b7fcd873a.zip
run format
Diffstat (limited to 'src/components')
-rw-r--r--src/components/LandingHeader.svelte29
-rw-r--r--src/components/LocaleSelector.svelte12
2 files changed, 19 insertions, 22 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte
index 544e2a9d..b6519ca9 100644
--- a/src/components/LandingHeader.svelte
+++ b/src/components/LandingHeader.svelte
@@ -3,7 +3,7 @@
import { scroll } from '$lib/utils';
import { Icon, LocaleSelector } from '$comp';
import { user } from '$lib/store';
- import { _ } from 'svelte-i18n';
+ import { _ } from 'svelte-i18n';
export let howItWorks;
export let faq;
@@ -18,17 +18,15 @@
<header class="w-full lg:w-5/6 py-5 mx-auto fixed md:sticky z-10 top-0 bg-white/90">
<nav class="block xl:flex flex-wrap justify-between items-center">
-<div class='flex justify-start md:justify-center items-center md:space-x-10'>
- <a href="/" class="hidden md:block">
- <Icon icon="logo" style="mb-5 xl:mb-0" />
- </a>
- <Icon icon="logo" style="block md:hidden ml-5 w-48" />
-<LocaleSelector style='hidden md:block py-1 mb-5 xl:mb-0' />
-</div>
+ <div class="flex justify-start md:justify-center items-center md:space-x-10">
+ <a href="/" class="hidden md:block">
+ <Icon icon="logo" style="mb-5 xl:mb-0" />
+ </a>
+ <Icon icon="logo" style="block md:hidden ml-5 w-48" />
+ <LocaleSelector style="hidden md:block py-1 mb-5 xl:mb-0" />
+ </div>
<!-- desktop nav -->
<div class="hidden space-x-10 md:flex flex-wrap justify-center items-center font-bold">
-
-
<button on:click={() => scroll(howItWorks)}>{$_('nav.howItWorks')}</button>
<button on:click={() => scroll(faq)}>{$_('nav.faq')}</button>
<button on:click={() => scroll(about)}>{$_('nav.about')}</button>
@@ -55,7 +53,6 @@
Sign out
</button>
{/if}
-
</div>
<!-- mobile nav -->
@@ -71,13 +68,13 @@
: 'right-[-100%]'} transition-all ease-in-out duration-300 h-[100vh] w-full bg-white"
>
<div class="space-y-8 mt-24 ml-10 font-bold text-xl">
-
-
<button on:click={() => mobileMenuButtonClick(howItWorks)} class="block"
>{$_('nav.howItWorks')}</button
>
<button on:click={() => mobileMenuButtonClick(faq)} class="block">{$_('nav.faq')}</button>
- <button on:click={() => mobileMenuButtonClick(about)} class="block">{$_('nav.about')}</button>
+ <button on:click={() => mobileMenuButtonClick(about)} class="block"
+ >{$_('nav.about')}</button
+ >
{#if !$user}
<button
class="border rounded-full px-6 py-2 font-bold block"
@@ -88,7 +85,7 @@
class="bg-black text-white border rounded-full px-6 py-2 font-bold block"
on:click={() => goto('/login')}
>
- {$_('nav.signIn')}
+ {$_('nav.signIn')}
</button>
{:else}
<button
@@ -104,7 +101,7 @@
</button>
{/if}
- <LocaleSelector style='py-1' />
+ <LocaleSelector style="py-1" />
</div>
</div>
</nav>
diff --git a/src/components/LocaleSelector.svelte b/src/components/LocaleSelector.svelte
index 3f173109..2ae65986 100644
--- a/src/components/LocaleSelector.svelte
+++ b/src/components/LocaleSelector.svelte
@@ -1,10 +1,10 @@
<script>
- import { _, locale, locales } from 'svelte-i18n';
- export let style
+ import { _, locale, locales } from 'svelte-i18n';
+ export let style;
</script>
-<select name='language' bind:value={$locale} class={style}>
- {#each $locales as locale}
- <option value={locale}>{locale}</option>
- {/each}
+<select name="language" bind:value={$locale} class={style}>
+ {#each $locales as locale}
+ <option value={locale}>{locale}</option>
+ {/each}
</select>