bujo_v1/app/templates/login.html
2026-07-22 21:48:24 +02:00

52 lines
No EOL
2 KiB
HTML

<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - Bullet Journal</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<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=Atkinson+Hyperlegible:wght@400;700&family=Lexend:wght@400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="page-surface">
<header class="page-header">
<h1 class="page-header__title">Bullet Journal</h1>
</header>
<main class="page-main">
<article class="card">
<p class="card__eyebrow">Sign in</p>
<h2>Welcome back</h2>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<p class="flash-message {{ category }}">{{ message }}</p>
{% endfor %}
{% endif %}
{% endwith %}
<form method="POST" action="{{ url_for('auth.login') }}" autocomplete="on">
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" required autofocus aria-describedby="username-help">
<span id="username-help" class="form-help">Enter your registered username.</span>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" required aria-describedby="password-help">
<span id="password-help" class="form-help">Enter your password.</span>
</div>
<button type="submit" class="btn btn-primary">Sign in</button>
</form>
</article>
<p class="page-footer-text">Don't have an account? <a href="{{ url_for('auth.register') }}">Register here</a>.</p>
</main>
</div>
</body>
</html>