diff options
| author | Adam Soltys <[email protected]> | 2022-09-15 15:03:47 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-15 15:03:47 -0700 |
| commit | 908e6e26a9b64e92bcb65461babab992c1bcc8f5 (patch) | |
| tree | 11b1739ee45fd6c6c16ed8e556d5f272c660586a /src/components | |
| parent | b56a271f4d8b1f1148daec7c3bcda5469fd031c3 (diff) | |
| download | coinos-ui-908e6e26a9b64e92bcb65461babab992c1bcc8f5.tar.gz coinos-ui-908e6e26a9b64e92bcb65461babab992c1bcc8f5.zip | |
update dashboard page
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/RegisterOrLogin.svelte | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/src/components/RegisterOrLogin.svelte b/src/components/RegisterOrLogin.svelte index 08b5ceaa..5b1b9a95 100644 --- a/src/components/RegisterOrLogin.svelte +++ b/src/components/RegisterOrLogin.svelte @@ -8,9 +8,9 @@ export let pageID; - let username = 'bob', - password = 'pw', - email = '[email protected]', + let username, + password, + email, twofa = ''; let revealPassword = false; @@ -35,20 +35,20 @@ <h1 class="text-2xl font-bold text-center">{$t('login.' + pageID)}</h1> <form class="space-y-5" {action} method="POST"> - {#if pageID === 'register'} - <div> - <label for="email" class="font-semibold">{$t('login.email')}</label> - <!-- svelte-ignore a11y-autofocus --> - <input - name="email" - type="email" - required - class="bg-primary" - bind:value={email} - autofocus - /> - </div> - {/if} + <!-- {#if pageID === 'register'} --> + <!-- <div> --> + <!-- <label for="email" class="font-semibold">{$t('login.email')}</label> --> + <!-- <!-- svelte-ignore a11y-autofocus --> --> + <!-- <input --> + <!-- name="email" --> + <!-- type="email" --> + <!-- required --> + <!-- class="bg-primary" --> + <!-- bind:value={email} --> + <!-- autofocus --> + <!-- /> --> + <!-- </div> --> + <!-- {/if} --> <div> <label for="username" class="font-semibold">{$t('login.username')}</label> <!-- svelte-ignore a11y-autofocus --> @@ -86,7 +86,7 @@ {#if pageID === 'signIn'} <div> - <label for="token" class="font-semibold">{$t('login.token')}</label> + <label for="token" class="font-semibold">{$t('login.token')} <span class="text-secondary">({$t('login.optional')})</span></label> <!-- svelte-ignore a11y-autofocus --> <input name="token" @@ -103,11 +103,12 @@ {$t('login.passwordRecommendation')} </p> {:else} - <div class="flex justify-end items-center"> - <a href="/forgot" class="underline underline-offset-4 text-black text-sm" - >{$t('login.forgotUserOrPassword')}</a - > - </div> + <!-- TODO --> + <!-- <div class="flex justify-end items-center"> --> + <!-- <a href="/forgot" class="underline underline-offset-4 text-black text-sm" --> + <!-- >{$t('login.forgotUserOrPassword')}</a --> + <!-- > --> + <!-- </div> --> {/if} <button type="submit" class="bg-black text-white w-full rounded-2xl p-4 font-semibold" |
