Files
sprintpadawan/templates/login.html
T
2026-04-23 22:33:33 -06:00

81 lines
2.9 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sign In &mdash; SprintPadawan</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="/static/styles/main.css" />
</head>
<body>
<div class="auth-card">
<div class="auth-logo">
<div class="logo-icon"></div>
</div>
<h1 class="auth-title"><span>Sprint</span>Padawan</h1>
<p class="auth-subtitle">Sign in to 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="/login">
<div class="form-group">
<label class="form-label" for="username">Username</label>
<input
class="form-input"
type="text"
id="username"
name="username"
placeholder="your 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="current-password"
required
/>
</div>
<button class="btn-primary" type="submit">Sign In</button>
</form>
<p class="auth-footer">
No account? <a href="/register">Create one</a>
</p>
</div>
</body>
</html>