DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: 08a7a55902c758aaf1432ce557f0143715c363ee felu/internal/components/login.templ -rw-r--r-- 601 bytes
08a7a559Jonni Liljamo feat: tsig 17 days ago
                                                                                
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>
	}
}