Mercurial Hosting > linkmystyle
comparison src/register.html.luan @ 0:8f4df159f06b
start public repo
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 11 Jul 2025 20:57:49 -0600 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:8f4df159f06b |
|---|---|
| 1 local Luan = require "luan:Luan.luan" | |
| 2 local error = Luan.error | |
| 3 local Io = require "luan:Io.luan" | |
| 4 local Http = require "luan:http/Http.luan" | |
| 5 local Shared = require "site:/lib/Shared.luan" | |
| 6 local head = Shared.head or error() | |
| 7 local page_header = Shared.page_header or error() | |
| 8 local footer = Shared.footer or error() | |
| 9 local password_input = Shared.password_input or error() | |
| 10 | |
| 11 | |
| 12 return function() | |
| 13 Io.stdout = Http.response.text_writer() | |
| 14 %> | |
| 15 <!doctype html> | |
| 16 <html lang="en"> | |
| 17 <head> | |
| 18 <% head() %> | |
| 19 <title>Link My Style</title> | |
| 20 <meta name="robots" content="noindex,nofollow"/> | |
| 21 <style> | |
| 22 div[right_of_page] { | |
| 23 background-image: url(/images/model.jpg); | |
| 24 } | |
| 25 div[login] { | |
| 26 text-align: center; | |
| 27 margin-top: 20px; | |
| 28 } | |
| 29 </style> | |
| 30 </head> | |
| 31 <body> | |
| 32 <form page onsubmit="ajaxForm('/register.js',this)" action="javascript:"> | |
| 33 <% page_header() %> | |
| 34 <div> | |
| 35 <h1>Create your account</h1> | |
| 36 <p>Choose your username. You can always change it later.</p> | |
| 37 <input type=text required name=username placeholder="Username"> | |
| 38 <div error=username></div> | |
| 39 <input type=email required name=email placeholder="Email"> | |
| 40 <div error=email></div> | |
| 41 <% password_input() %> | |
| 42 <button type=submit big>Create account</button> | |
| 43 <div login>Already registered? <a href="/login.html">Log in</a></div> | |
| 44 </div> | |
| 45 <% footer() %> | |
| 46 </form> | |
| 47 <div right_of_page></div> | |
| 48 </body> | |
| 49 </html> | |
| 50 <% | |
| 51 end |
