Files
devrant/templates/login.html
T
retoor 7ee3cb1699 feat: add Jinja2 server-side rendering with template components and locust load testing
Introduce a full server-side rendering pipeline using Jinja2Templates, including base layout, navigation, modals, and rant card components. Add a classic.html static fallback page and a locustfile.py for load testing the new endpoints. Update main.py to mount static files, create template directories on startup, and add a format_time helper for relative timestamps.
2025-08-05 01:07:46 +00:00

27 lines
951 B
HTML

{% extends 'base.html' %}
{% block content %}
<div style="max-width: 400px; margin: 0 auto;">
<div class="rant-card">
<h2>Login</h2>
<form action="/login" method="POST">
{% if error %}
<div class="alert error active">{{ error }}</div>
{% endif %}
<div class="form-group">
<label>Username or Email</label>
<input type="text" name="username" required>
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="password" required>
</div>
<button type="submit" class="btn" style="width: 100%;">Login</button>
<p style="text-align: center; margin-top: 1rem;">
Don't have an account? <a href="#" onclick="showModal('register'); return false;">Sign up</a>
</p>
</form>
</div>
</div>
{% endblock %}