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 italic">
17 tangled
18 </h1>
19 <form
20 class="w-full"
21 hx-post="/login"
22 hx-swap="none"
23 hx-disabled-elt="this"
24 >
25 <div class="flex flex-col">
26 <label for="handle">handle</label>
27 <input type="text" id="handle" name="handle" required />
28 </div>
29
30 <div class="flex flex-col mt-2">
31 <label for="app_password">app password</label>
32 <input
33 type="password"
34 id="app_password"
35 name="app_password"
36 required
37 />
38 </div>
39
40 <button
41 class="btn w-full my-2 mt-6"
42 type="submit"
43 id="login-button"
44 >
45 <span>login</span>
46 </button>
47 </form>
48 <p class="text-sm text-gray-500">
49 Join our IRC channel: <a href="https://web.libera.chat/#tangled"><code>#tangled</code> on Libera Chat</a>.
50 </p>
51 <p id="login-msg" class="error w-full"></p>
52 </main>
53 </body>
54 </html>
55{{ end }}