aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/pages/auth/register.tmpl.html16
-rw-r--r--ui/templates/base.tmpl.html12
2 files changed, 28 insertions, 0 deletions
diff --git a/ui/pages/auth/register.tmpl.html b/ui/pages/auth/register.tmpl.html
new file mode 100644
index 0000000..7dfd7aa
--- /dev/null
+++ b/ui/pages/auth/register.tmpl.html
@@ -0,0 +1,16 @@
+{{define "title"}}Register{{end}}
+
+{{define "main"}}
+ <h1>Registration</h1>
+ <form hx-post="/user">
+ <label>
+ Username
+ <input type="text" placeholder="username" />
+ </label>
+ <label>
+ Password
+ <input type="password" placeholder="password" />
+ </label>
+ <button type="submit">Register</button>
+ </form>
+{{end}}
diff --git a/ui/templates/base.tmpl.html b/ui/templates/base.tmpl.html
new file mode 100644
index 0000000..4e28bc0
--- /dev/null
+++ b/ui/templates/base.tmpl.html
@@ -0,0 +1,12 @@
+{{define "base"}}
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <title>{{template "title" .}} | newsstand.nyc</title>
+ <script src="https://unpkg.com/htmx.org@1.9.9" integrity="sha384-QFjmbokDn2DjBjq+fM+8LUIVrAgqcNW2s0PjAxHETgRn9l4fvX31ZxDxvwQnyMOX" crossorigin="anonymous"></script>
+</head>
+<body>
+ {{template "main" .}}
+</body>
+</html>
+{{end}}