1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package components
templ Login() {
@Base("Login") {
<div class="bg-lime-200">
<form class="flex flex-col p-2 gap-2" hx-post="/auth/login" hx-target="#login_error">
<label for="login_email">Email</label>
<input class="border" type="text" placeholder="..." name="email" id="login_email"/>
<label for="login_password">Password</label>
<input class="border" type="password" placeholder="..." name="password" id="login_password"/>
<div class="text-rose-600 text-center" id="login_error"></div>
<button class="border p-1" type="submit">Login</button>
</form>
</div>
}
}