Files
sprintpadawan/templates/register.html
T
atridad 16bed1b8c0 First pass at basic functionality.
This PR introduces the beginnings of Sprint Padawan.

Reviewed-on: #1
2026-05-02 02:01:53 -06:00

92 lines
3.1 KiB
HTML

<!doctype html>
<html lang="en">
{{template "auth-head" (dict "Title" "Register")}}
<body>
<div class="auth-card">
<div class="auth-logo">
<img
src="/static/img/logo.webp"
alt="SprintPadawan"
height="56"
width="56"
fetchpriority="high"
decoding="async"
/>
</div>
<p class="auth-subtitle">Create your account</p>
{{if .Error}}
<div class="form-error">
<svg
xmlns="http://www.w3.org/2000/svg"
width="15"
height="15"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2.5"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<line x1="12" y1="8" x2="12" y2="12" />
<line x1="12" y1="16" x2="12.01" y2="16" />
</svg>
{{.Error}}
</div>
{{end}}
<form class="auth-form" method="POST" action="/register">
<div class="form-group">
<label class="form-label" for="username">Username</label>
<input
class="form-input"
type="text"
id="username"
name="username"
placeholder="choose a username"
autocomplete="username"
required
/>
</div>
<div class="form-group">
<label class="form-label" for="password">Password</label>
<input
class="form-input"
type="password"
id="password"
name="password"
placeholder="••••••••"
autocomplete="new-password"
required
/>
</div>
<div class="form-group">
<label class="form-label" for="confirm_password"
>Confirm Password</label
>
<input
class="form-input"
type="password"
id="confirm_password"
name="confirm_password"
placeholder="••••••••"
autocomplete="new-password"
required
/>
</div>
<button class="btn-primary" type="submit">
Create Account
</button>
</form>
<p class="auth-footer">
Already have an account? <a href="/login">Sign in</a>
</p>
</div>
</body>
</html>