feat: Some style updates, form improvements on project-room view.

This commit is contained in:
2026-01-06 16:58:42 -05:00
parent 8fb313fddc
commit dbf7e3b1b4
10 changed files with 103 additions and 57 deletions

View File

@@ -32,7 +32,8 @@ struct LoginForm: HTML, Sendable {
input(
.type(.text), .required, .placeholder("Username"),
.name("username"), .id("username"),
.minlength("3"), .pattern(.username)
.minlength("3"), .pattern(.username),
.autofocus
)
}
div(.class("validator-hint hidden")) {
@@ -48,7 +49,7 @@ struct LoginForm: HTML, Sendable {
SVG(.email)
input(
.type(.email), .placeholder("Email"), .required,
.name("email"), .id("email"),
.name("email"), .id("email"), .autofocus
)
}
div(.class("validator-hint hidden")) { "Enter valid email address." }