this repo has no description
1{{ define "user/login" }}
2 <!doctype html>
3 <html lang="en" class="dark:bg-gray-900">
4 <head>
5 <meta charset="UTF-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7 <meta property="og:title" content="login · tangled" />
8 <meta property="og:url" content="https://tangled.org/login" />
9 <meta property="og:description" content="login to for tangled" />
10 <script src="/static/htmx.min.js"></script>
11 <link rel="manifest" href="/pwa-manifest.json" />
12 <link rel="stylesheet" href="/static/tw.css?{{ cssContentHash }}" type="text/css" />
13 <title>login · tangled</title>
14 </head>
15 <body class="flex items-center justify-center min-h-screen">
16 <main class="max-w-md px-6 -mt-4">
17 <h1 class="flex place-content-center text-3xl font-semibold italic dark:text-white" >
18 {{ template "fragments/logotype" }}
19 </h1>
20 <h2 class="text-center text-xl italic dark:text-white">
21 tightly-knit social coding.
22 </h2>
23 <form
24 class="mt-4 max-w-sm mx-auto"
25 hx-post="/login"
26 hx-swap="none"
27 hx-disabled-elt="#login-button"
28 >
29 <div class="flex flex-col">
30 <label for="handle">handle</label>
31 <input
32 type="text"
33 id="handle"
34 name="handle"
35 tabindex="1"
36 required
37 placeholder="akshay.tngl.sh"
38 />
39 <span class="text-sm text-gray-500 mt-1">
40 Use your <a href="https://atproto.com">AT Protocol</a>
41 handle to log in. If you're unsure, this is likely
42 your Tangled (<code>.tngl.sh</code>) or <a href="https://bsky.app">Bluesky</a> (<code>.bsky.social</code>) account.
43 </span>
44 </div>
45 <input type="hidden" name="return_url" value="{{ .ReturnUrl }}">
46
47 <button
48 class="btn w-full my-2 mt-6 text-base "
49 type="submit"
50 id="login-button"
51 tabindex="3"
52 >
53 <span>login</span>
54 </button>
55 </form>
56 <p class="text-sm text-gray-500">
57 Don't have an account? <a href="/signup" class="underline">Create an account</a> on Tangled now!
58 </p>
59
60 <p id="login-msg" class="error w-full"></p>
61 </main>
62 </body>
63 </html>
64{{ end }}