this repo has no description
1{{ define "user/login" }}
2 <!doctype html>
3 <html lang="en">
4 <head>
5 <meta charset="UTF-8" />
6 <meta
7 name="viewport"
8 content="width=device-width, initial-scale=1.0"
9 />
10 <script src="/static/htmx.min.js"></script>
11 <link rel="stylesheet" href="/static/tw.css" type="text/css" />
12 <title>login</title>
13 </head>
14 <body class="flex items-center justify-center min-h-screen">
15 <main class="max-w-64">
16 <h1 class="text-center text-2xl font-semibold">tangled.sh</h1>
17 <form class="w-full" hx-post="/login" hx-swap="none" hx-disabled-elt="this">
18 <div class="flex flex-col">
19 <label for="handle">handle</label>
20 <input
21 type="text"
22 id="handle"
23 name="handle"
24 required
25 class="bg-gray-100 rounded p-1"
26 />
27 </div>
28
29 <div class="flex flex-col mt-2">
30 <label for="app_password">app password</label>
31 <input
32 type="password"
33 id="app_password"
34 name="app_password"
35 required
36 class="bg-gray-100 rounded p-1"
37 />
38 </div>
39
40 <button
41 class="btn w-full my-2 mt-6"
42 type="submit"
43 id="login-button">
44 <span>login</span>
45 </button>
46 </form>
47 <p id="login-msg" class="error w-full"></p>
48 </main>
49 </body>
50 </html>
51{{ end }}