From de616755f501a2a7adece2a253761ce8281ecab3 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 30 Nov 2025 23:15:56 -0800 Subject: [PATCH] auth: use placeholders instead of labels, add username note --- src/routes/auth/login/+page.svelte | 7 +- src/routes/auth/register/+page.svelte | 142 ++++++++++++++++---------- 2 files changed, 91 insertions(+), 58 deletions(-) diff --git a/src/routes/auth/login/+page.svelte b/src/routes/auth/login/+page.svelte index c1a51029..d738d648 100644 --- a/src/routes/auth/login/+page.svelte +++ b/src/routes/auth/login/+page.svelte @@ -14,6 +14,9 @@ let email = $state(form?.email ?? '') let password = $state('') let isSubmitting = $state(false) + + const placeholders = ['gran@grancypher.com', 'djeeta@grancypher.com'] + const randomPlaceholder = placeholders[Math.floor(Math.random() * placeholders.length)] @@ -34,7 +37,7 @@ @@ -229,62 +241,67 @@ } }} > - +
+ + {m.auth_register_usernameNote()} +
- +
+ - + - + +
{#if form?.error}

{form.error}

@@ -311,7 +328,20 @@ form { display: flex; flex-direction: column; - gap: $unit-2x; + gap: $unit-4x; + } + + .input-group { + display: flex; + flex-direction: column; + gap: $unit; + + .note { + color: var(--text-secondary); + font-size: $font-small; + text-align: center; + margin: 0; + } } .error {