feat(ui): modern login page with base template and styled form

This commit is contained in:
Cipher Vance 2025-08-31 12:12:02 -05:00
parent 941a3dabc9
commit f2d225c56a

View file

@ -1,29 +1,34 @@
<!DOCTYPE html> {% extends "base.html" %}
<html lang="en"> {% block title %}Admin Login{% endblock %}
{% block content %}
<section class="auth-wrapper">
<div class="card auth-card">
<h1 class="page-title">Welcome back</h1>
<p class="page-subtitle">Sign in to manage your subscribers</p>
<head> <form action="{{ url_for('login') }}" method="POST" class="form">
<meta charset="UTF-8"> <div class="form-group">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <label for="username">Username</label>
<title>Admin Login</title> <input
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}"> type="text"
</head> name="username"
id="username"
<body> autocomplete="username"
<h1>Admin Login</h1> required
{% with messages = get_flashed_messages(with_categories=true) %} />
{% if messages %} </div>
{% for category, message in messages %} <div class="form-group">
<div class="flash">{{ message }}</div> <label for="password">Password</label>
{% endfor %} <input
{% endif %} type="password"
{% endwith %} name="password"
<form action="{{ url_for('login') }}" method="POST"> id="password"
<label for="username">Username:</label> autocomplete="current-password"
<input type="text" name="username" required /> required
<label for="password">Password:</label> />
<input type="password" name="password" required /> </div>
<button type="submit">Login</button> <button type="submit" class="button button-primary">Login</button>
</form> </form>
</body> </div>
</section>
</html> {% endblock %}