1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-10-31 21:58:58 +00:00
FediBooks/app/templates/login.html

41 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FediBooks</title>
{% include 'imports.html' %}
</head>
<body>
<div class="container">
<h1 class="thin centred">{% if signup %}Sign up{% else %}Log in{% endif %}</h1>
</div>
{% include 'error.html' %}
<div class="container centred">
<form action="/do/{% if signup %}signup{% else %}login{% endif %}" method="POST">
<p>
<label for="email" class="important full-width">Email</label>
<input type="email" name="email" placeholder="you@example.com">
{% if signup %}
<p class="small full-width left-align">
FediBooks requires your email address in order to send you alerts when your bot stops working, and for password resets.
</p>
{% endif %}
<br>
<label for="password" class="important full-width">Password</label>
<input type="password" pattern=".{8,}" name="password">
{% if signup %}
<p class="small full-width left-align">
Passwords must be at least eight characters long.
</p>
{% endif %}
</p>
<input type="submit" value="{% if signup %}Create my account{% else %}Log in{% endif %}" class="button centred btn-primary full-width">
</form>
</div>
{% include 'footer.html' %}
</body>
</html>