diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-02-13 08:45:49 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-02-13 08:45:49 +0100 |
| commit | 17be2fcb106ddc9c36628e9f5dece28369affc30 (patch) | |
| tree | 4f3cb1d2fade5467f6c79a9a1abe1da0852a61d0 /templates/login.html | |
Extract gallery app from perso/vps into standalone project
Extracted all gallery-related files from ~/perso/vps:
- gallery.go, gallery_test.go (Go source + tests)
- templates/ (index, login, gallery HTML)
- static/style.css
- go.mod/go.sum (renamed module to github.com/kagamino/kagapics)
- Caddyfile.example (gallery-only Caddy config)
- DESIGN.md (from galery.md)
Diffstat (limited to 'templates/login.html')
| -rw-r--r-- | templates/login.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..7c06fbc --- /dev/null +++ b/templates/login.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<title>{{.Name}} — Login</title> +<style>{{.CSS}}</style> +</head> +<body> +<div class="container"> +<h1>🔒 {{.Name}}</h1> +{{if .Error}}<p class="error">{{.Error}}</p>{{end}} +<form method="POST" action="/g/{{.Name}}"> +<input type="password" name="password" placeholder="Password" autofocus required> +<button type="submit">Enter</button> +</form> +</div> +</body> +</html> |
