1{{ define "user/signup" }}
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="signup · tangled" />
8 <meta property="og:url" content="https://tangled.sh/signup" />
9 <meta property="og:description" content="sign up for tangled" />
10 <script src="/static/htmx.min.js"></script>
11 <link rel="stylesheet" href="/static/tw.css?{{ cssContentHash }}" type="text/css" />
12 <title>sign up · tangled</title>
13 </head>
14 <body class="flex items-center justify-center min-h-screen">
15 <main class="max-w-md px-6 -mt-4">
16 <h1 class="text-center text-2xl font-semibold italic dark:text-white" >tangled</h1>
17 <h2 class="text-center text-xl italic dark:text-white">tightly-knit social coding.</h2>
18 <form
19 class="mt-4 max-w-sm mx-auto"
20 hx-post="/signup"
21 hx-swap="none"
22 hx-disabled-elt="#signup-button"
23 >
24 <div class="flex flex-col mt-2">
25 <label for="email">email</label>
26 <input
27 type="email"
28 id="email"
29 name="email"
30 tabindex="4"
31 required
32 placeholder="jason@bourne.co"
33 />
34 </div>
35 <span class="text-sm text-gray-500 mt-1">
36 You will receive an email with an invite code. Enter your
37 invite code, desired username, and password in the next
38 page to complete your registration.
39 </span>
40 <button class="btn text-base w-full my-2 mt-6" type="submit" id="signup-button" tabindex="7" >
41 <span>join now</span>
42 </button>
43 </form>
44 <p class="text-sm text-gray-500">
45 Already have an ATProto account? <a href="/login" class="underline">Login to Tangled</a>.
46 </p>
47
48 <p id="signup-msg" class="error w-full"></p>
49 </main>
50 </body>
51 </html>
52{{ end }}
53