| 1 | {{define "login.html"}}<!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>Login</title> |
| 7 | <link rel="icon" href="/static/favicon.ico"> |
| 8 | <meta name="theme-color" content="#121113" /> |
| 9 | <link rel="stylesheet" href="/assets/darkmatter.css"> |
| 10 | <link rel="stylesheet" href="/static/styles.css"> |
| 11 | </head> |
| 12 | <body> |
| 13 | <header class="header"> |
| 14 | <span class="logo">POSTS</span> |
| 15 | </header> |
| 16 | <main> |
| 17 | {{if .Error}}<p class="error">{{.Error}}</p>{{end}} |
| 18 | <form method="POST" action="/admin/login" class="form"> |
| 19 | <label for="password">password</label> |
| 20 | <input type="password" id="password" name="password" autofocus required> |
| 21 | <button type="submit">login</button> |
| 22 | </form> |
| 23 | </main> |
| 24 | </body> |
| 25 | </html>{{end}} |