aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(static)
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-05 20:23:05 -0800
committerAdam Soltys <[email protected]>2024-11-05 20:23:05 -0800
commitaf280fa38d7a64dbc185fda843a68bc19ebb920e (patch)
tree84fd3d2f39ca7844e4026a7ec5f61d314edac618 /src/routes/(static)
parentab1cb79b64b5ab1c0496191fca7f88e24cf2112d (diff)
downloadcoinos-ui-af280fa38d7a64dbc185fda843a68bc19ebb920e.tar.gz
coinos-ui-af280fa38d7a64dbc185fda843a68bc19ebb920e.zip
dark styles
Diffstat (limited to 'src/routes/(static)')
-rw-r--r--src/routes/(static)/login/+page.svelte48
-rw-r--r--src/routes/(static)/register/+page.svelte2
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>