Files
Infosec/Martinhal Birthday Mailing App/v1.2/birthday-app/templates/base.html
T
2026-09-13 20:09:20 +01:00

41 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Birthday Manager{% endblock %}</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<header class="topbar">
<div class="brand">
<span class="brand-mark">🎂</span>
<span class="brand-name">Birthday Manager</span>
</div>
{% if username %}
<nav class="nav">
<a href="{{ url_for('dashboard') }}" class="{{ 'active' if active == 'dashboard' }}">Dashboard</a>
<a href="{{ url_for('admin') }}" class="{{ 'active' if active == 'admin' }}">Administration</a>
</nav>
<div class="userbox">
<span class="userchip">{{ username }}</span>
<a class="btn btn-ghost" href="{{ url_for('logout') }}">Log out</a>
</div>
{% endif %}
</header>
<main class="page">
{% with messages = get_flashed_messages(with_categories=true) %}
{% for category, msg in messages %}
<div class="flash flash-{{ category }}">{{ msg }}</div>
{% endfor %}
{% endwith %}
{% block content %}{% endblock %}
</main>
<footer class="footer">{{ footer }}</footer>
</body>
</html>