diff --git a/routes/static/out.css b/routes/static/out.css index 50b85fe..3f5d1b9 100644 --- a/routes/static/out.css +++ b/routes/static/out.css @@ -612,3 +612,8 @@ video { font-size: 1.25rem; line-height: 1.75rem; } + +.invalid\:bg-red-700:invalid { + --tw-bg-opacity: 1; + background-color: rgb(185 28 28 / var(--tw-bg-opacity)); +} diff --git a/routes/templates/login.gohtml b/routes/templates/login.gohtml index 7ca604a..209e2fe 100644 --- a/routes/templates/login.gohtml +++ b/routes/templates/login.gohtml @@ -49,6 +49,7 @@ hx-post="/login/room-name-check" hx-target="#formButton" hx-swap="outerHTML" + class="invalid:bg-red-700" /> - {{ block "formButton" .IsRoomExisting }} - {{ if not . }} - + {{ block "formButton" .IsRoomExisting }} {{ if not . }} + {{ else }} - - {{ end }} - {{ end }} + + {{ end }} {{ end }}