1{{ define "user/completeSignup" }}
2 <!doctype html>
3 <html lang="en" class="dark:bg-gray-900">
4 <head>
5 <meta charset="UTF-8" />
6 <meta
7 name="viewport"
8 content="width=device-width, initial-scale=1.0"
9 />
10 <meta
11 property="og:title"
12 content="complete signup · tangled"
13 />
14 <meta
15 property="og:url"
16 content="https://tangled.org/complete-signup"
17 />
18 <meta
19 property="og:description"
20 content="complete your signup for tangled"
21 />
22 <script src="/static/htmx.min.js"></script>
23 <link
24 rel="stylesheet"
25 href="/static/tw.css?{{ cssContentHash }}"
26 type="text/css"
27 />
28 <title>complete signup · tangled</title>
29 </head>
30 <body class="flex items-center justify-center min-h-screen">
31 <main class="max-w-md px-6 -mt-4">
32 <h1 class="flex place-content-center text-2xl font-semibold italic dark:text-white" >
33 {{ template "fragments/logotype" }}
34 </h1>
35 <h2 class="text-center text-xl italic dark:text-white">
36 tightly-knit social coding.
37 </h2>
38 <form
39 class="mt-4 max-w-sm mx-auto flex flex-col gap-4"
40 hx-post="/signup/complete"
41 hx-swap="none"
42 hx-disabled-elt="#complete-signup-button"
43 >
44 <div class="flex flex-col">
45 <label for="code">verification code</label>
46 <input
47 type="text"
48 id="code"
49 name="code"
50 tabindex="1"
51 required
52 placeholder="tngl-sh-foo-bar"
53 />
54 <span class="text-sm text-gray-500 mt-1">
55 Enter the code sent to your email.
56 </span>
57 </div>
58
59 <div class="flex flex-col">
60 <label for="username">username</label>
61 <input
62 type="text"
63 id="username"
64 name="username"
65 tabindex="2"
66 required
67 placeholder="jason"
68 />
69 <span class="text-sm text-gray-500 mt-1">
70 Your complete handle will be of the form <code>user.tngl.sh</code>.
71 </span>
72 </div>
73
74 <div class="flex flex-col">
75 <label for="password">password</label>
76 <input
77 type="password"
78 id="password"
79 name="password"
80 tabindex="3"
81 required
82 />
83 <span class="text-sm text-gray-500 mt-1">
84 Choose a strong password for your account.
85 </span>
86 </div>
87
88 <button
89 class="btn-create w-full my-2 mt-6 text-base"
90 type="submit"
91 id="complete-signup-button"
92 tabindex="4"
93 >
94 <span>complete signup</span>
95 </button>
96 </form>
97 <p id="signup-error" class="error w-full"></p>
98 <p id="signup-msg" class="dark:text-white w-full"></p>
99 </main>
100 </body>
101 </html>
102{{ end }}