50 lines
1.1 KiB
HTML
50 lines
1.1 KiB
HTML
{{define "head"}}
|
|
<title>Login - ari melody 💫</title>
|
|
<link rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
|
|
<link rel="stylesheet" href="/admin/static/admin.css">
|
|
<style>
|
|
form#login {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
form div {
|
|
width: 20rem;
|
|
}
|
|
|
|
form button {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
input {
|
|
width: calc(100% - 1rem - 2px);
|
|
}
|
|
</style>
|
|
{{end}}
|
|
|
|
{{define "content"}}
|
|
<main>
|
|
{{if .Session.Message.Valid}}
|
|
<p id="message">{{html .Session.Message.String}}</p>
|
|
{{end}}
|
|
{{if .Session.Error.Valid}}
|
|
<p id="error">{{html .Session.Error.String}}</p>
|
|
{{end}}
|
|
|
|
<form action="/admin/login" method="POST" id="login">
|
|
<h1>Log In</h1>
|
|
|
|
<div>
|
|
<label for="username">Username</label>
|
|
<input type="text" name="username" value="" autocomplete="username" required autofocus>
|
|
|
|
<label for="password">Password</label>
|
|
<input type="password" name="password" value="" autocomplete="current-password" required>
|
|
</div>
|
|
|
|
<button type="submit" class="save">Login</button>
|
|
</form>
|
|
</main>
|
|
{{end}}
|