diff options
| author | Adam Soltys <[email protected]> | 2024-11-05 20:23:05 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-05 20:23:05 -0800 |
| commit | af280fa38d7a64dbc185fda843a68bc19ebb920e (patch) | |
| tree | 84fd3d2f39ca7844e4026a7ec5f61d314edac618 /src/routes/(static) | |
| parent | ab1cb79b64b5ab1c0496191fca7f88e24cf2112d (diff) | |
| download | coinos-ui-af280fa38d7a64dbc185fda843a68bc19ebb920e.tar.gz coinos-ui-af280fa38d7a64dbc185fda843a68bc19ebb920e.zip | |
dark styles
Diffstat (limited to 'src/routes/(static)')
| -rw-r--r-- | src/routes/(static)/login/+page.svelte | 48 | ||||
| -rw-r--r-- | src/routes/(static)/register/+page.svelte | 2 |
2 files changed, 25 insertions, 25 deletions
diff --git a/src/routes/(static)/login/+page.svelte b/src/routes/(static)/login/+page.svelte index 1b927406..80795160 100644 --- a/src/routes/(static)/login/+page.svelte +++ b/src/routes/(static)/login/+page.svelte @@ -95,50 +95,50 @@ /> <input type="hidden" name="token" value={token} /> - <div> - <label for="username" class="font-semibold">{$t("login.username")}</label> - <input - name="username" - type="text" - required - bind:value={username} - use:focus - autocapitalize="none" - /> - </div> + <input + name="username" + type="text" + required + bind:value={username} + use:focus + autocapitalize="none" + placeholder={$t("login.username")} + /> - <div class="relative"> - <label for="password" class="block font-semibold" - >{$t("login.password")}</label - > + <label for="password" class="input flex items-center justify-center gap-2 w-full"> {#if revealPassword} <input + class="clean w-full grow focus:!outline-offset-0" name="password" type="text" required bind:value={$password} autocapitalize="none" + placeholder={$t("login.password")} /> {:else} <input + class="clean w-full grow focus:!outline-offset-0" name="password" type="password" required bind:value={$password} autocapitalize="none" + placeholder={$t("login.password")} /> {/if} - <button - type="button" + <iconify-icon + class="cursor-pointer ml-auto" on:click={() => (revealPassword = !revealPassword)} - class="absolute right-5 top-10" - > - <Icon icon={revealPassword ? "eye" : "eye-off"} /> - </button> - </div> + icon={revealPassword ? "ph:eye-bold" : "ph:eye-slash-bold"} + width="32" + /> + </label> <div class="flex justify-end items-center"> - <a href="/forgot" class="underline underline-offset-4 text-primary-content" + <a + href="/forgot" + class="underline underline-offset-4 text-secondary" >{$t("login.forgotUserOrPassword")}</a > </div> @@ -155,7 +155,7 @@ {$t("login.noAccount")} <a href={"/register"} - class="block md:inline text-primary-content underline underline-offset-4 hover:opacity-80" + class="block md:inline text-secondary underline underline-offset-4 hover:opacity-80" > {$t("login.register")} </a> diff --git a/src/routes/(static)/register/+page.svelte b/src/routes/(static)/register/+page.svelte index db7f761c..858dd7e3 100644 --- a/src/routes/(static)/register/+page.svelte +++ b/src/routes/(static)/register/+page.svelte @@ -275,7 +275,7 @@ {$t("login.haveAccount")} <a href={"/login"} - class="block md:inline text-primary-content underline underline-offset-4 hover:opacity-80" + class="block md:inline text-secondary underline underline-offset-4 hover:opacity-80" > {$t("login.signIn")} </a> |
