login: modularize frontend code

all in ts/modules/login.ts
This commit is contained in:
Harvey Tindall
2023-06-15 23:52:16 +01:00
parent b13fe7f3e4
commit b8cc75c6b4
4 changed files with 94 additions and 68 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<div id="modal-login" class="modal">
<form class="card relative mx-auto my-[10%] w-4/5 lg:w-1/3" id="form-login" href="">
<form class="card relative mx-auto my-[10%] w-4/5 lg:w-1/3 form-login" href="">
<span class="heading">{{ .strings.login }}</span>
<input type="text" class="field input ~neutral @high mt-4 mb-2" placeholder="{{ .strings.username }}" id="login-user">
<input type="password" class="field input ~neutral @high mb-4" placeholder="{{ .strings.password }}" id="login-password">