From 1bae7cff2acfbf8e9a1ea138633d156b710275a0 Mon Sep 17 00:00:00 2001 From: Max Amundsen Date: Fri, 7 Mar 2025 00:09:49 -0500 Subject: [PATCH] update login screen --- handlers/auth/login.go | 9 ++++++--- ui/icons.go | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/handlers/auth/login.go b/handlers/auth/login.go index ae4196d..ae996ab 100644 --- a/handlers/auth/login.go +++ b/handlers/auth/login.go @@ -146,7 +146,10 @@ func LoginView(errorMsg string) Node { color: $color(deep-blue); } `), - Text("Secure Sign In"), + Div( + InlineStyle("$me { display: flex; flex-direction: row; align-items: center; gap: $4;}"), + Icon(ICON_LOCK_KEYHOLE, 24), Text("Secure Sign In"), + ), ), Div( Label( @@ -155,7 +158,7 @@ func LoginView(errorMsg string) Node { Text("Username"), ), Div(InlineStyle("$me { margin-top: $2; }"), - FormInput(Name("username"), Type("text"), Required()), + FormInput(Name("username"), Type("text"), AutoFocus(), Required()), ), ), Div( @@ -195,7 +198,7 @@ func LoginView(errorMsg string) Node { } `), Type("submit"), - Text("Sign In"), + Text("Unlock Vault"), ), ), InlineScript(` diff --git a/ui/icons.go b/ui/icons.go index 29d5bac..b1c0354 100644 --- a/ui/icons.go +++ b/ui/icons.go @@ -37,6 +37,7 @@ const ( ICON_LIST_ORDERED = `` ICON_X_DIALOG_CLOSE = `` ICON_PENCIL = `` + ICON_LOCK_KEYHOLE = `` //material ICON_SEARCH = ``