forked from tangled.org/core
Monorepo for Tangled — https://tangled.org
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.org/signup" /> 9 <meta property="og:description" content="sign up 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>sign up &middot; tangled</title> 14 15 <script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script> 16 </head> 17 <body class="flex items-center justify-center min-h-screen"> 18 <main class="max-w-md px-6 -mt-4"> 19 <h1 class="flex place-content-center text-2xl font-semibold italic dark:text-white" > 20 {{ template "fragments/logotype" }} 21 </h1> 22 <h2 class="text-center text-xl italic dark:text-white">tightly-knit social coding.</h2> 23 <form 24 class="mt-4 max-w-sm mx-auto" 25 hx-post="/signup" 26 hx-swap="none" 27 hx-disabled-elt="#signup-button" 28 > 29 <div class="flex flex-col mt-2"> 30 <label for="email">email</label> 31 <input 32 type="email" 33 id="email" 34 name="email" 35 tabindex="4" 36 required 37 placeholder="jason@bourne.co" 38 /> 39 </div> 40 <span class="text-sm text-gray-500 mt-1"> 41 You will receive an email with an invite code. Enter your 42 invite code, desired username, and password in the next 43 page to complete your registration. 44 </span> 45 <div class="w-full mt-4 text-center"> 46 <div class="cf-turnstile" data-sitekey="{{ .CloudflareSiteKey }}"></div> 47 </div> 48 <button class="btn text-base w-full my-2 mt-6" type="submit" id="signup-button" tabindex="7" > 49 <span>join now</span> 50 </button> 51 </form> 52 <p class="text-sm text-gray-500"> 53 Already have an AT Protocol account? <a href="/login" class="underline">Login to Tangled</a>. 54 </p> 55 56 <p id="signup-msg" class="error w-full"></p> 57 </main> 58 </body> 59 </html> 60{{ end }}