(style): Refactor HTML templates and add CSS

Refactored HTML templates for improved strucutre and clarity
Moved styles to a separate CSS file for better maintainablilty
This commit is contained in:
Blake Ridgway 2025-04-03 11:49:40 -05:00
parent eb1e69ab3c
commit fe8e8c7e64
4 changed files with 99 additions and 58 deletions

View file

@ -4,30 +4,29 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Center - Subscribers</title>
<style>
body { font-family: Arial, sans-serif; padding: 20px; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
th { background-color: #f2f2f2; }
a { margin-right: 10px; }
</style>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
<h1>Subscribers</h1>
<p><a href="{{ url_for('send_update') }}">Send Update Email</a></p>
{% if emails %}
<table>
<tr>
<th>Email Address</th>
</tr>
{% for email in emails %}
<tr>
<td>{{ email }}</td>
</tr>
{% endfor %}
</table>
{% else %}
<p>No subscribers found.</p>
{% endif %}
<p><a href="{{ url_for('send_update') }}">Send Update Email</a></p>
{% if emails %}
<table>
<thead>
<tr>
<th>Email Address</th>
</tr>
</thead>
<tbody>
{% for email in emails %}
<tr>
<td>{{ email }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No subscribers found.</p>
{% endif %}
</body>
</html>
</html>