rss-reader/templates/login.html.tera
2025-02-17 02:03:44 -08:00

37 lines
1.5 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RSS Reader Login</title>
<link rel="stylesheet" href="{{ asset_path(name='css/main.css') }}">
</head>
<div class="login-container">
<form class="login-form" id="loginForm">
<h1>Login</h1>
{% if demo_mode %}
<div class="demo-notice">
<p>RSS Reader is currently running in demo mode. You can log in with these credentials:</p>
Username: <pre style="display: inline">demo</pre>, Password: <pre style="display: inline">demo</pre>
<p>Note: Any data you create will not be persisted after the application restarts.</p>
</div>
{% endif %}
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" required>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" required>
</div>
<div class="error-message" id="errorMessage" style="display: none; color: red; margin-bottom: 10px;"></div>
<button type="submit">Log In</button>
</form>
</div>
<script type="module" src="{{ asset_path(name='js/login.js') }}"></script>
</body>
</html>