firebreak/web/app/templates/base.html
ZTatman 508d21f1c5 feat(web): Jinja2 + HTMX + Pico CSS boilerplate
- Add jinja2, aiofiles, jinja2-fragments, python-multipart deps
- Wire up Jinja2Blocks (jinja2-fragments) and static file serving
- Create base.html (Pico Jade theme, HTMX, nav with auth state)
- Create index.html (landing) and dashboard.html (user profile)
- Add get_optional_session dependency for anonymous template context
- Refactor get_current_session to share session lookup logic
2026-05-15 15:43:56 -04:00

30 lines
889 B
HTML

<!DOCTYPE html>
<html lang="en" data-theme="jade">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Myst{% endblock %}</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.jade.min.css">
<script src="https://unpkg.com/htmx.org@2"></script>
</head>
<body>
<header class="container">
<nav>
<ul>
<li><strong><a href="/">Myst</a></strong></li>
</ul>
<ul>
{% if user %}
<li><a href="/dashboard">Dashboard</a></li>
<li><a href="/auth/logout">Logout</a></li>
{% else %}
<li><a href="/auth/login/forgejo" role="button">Sign in with Forgejo</a></li>
{% endif %}
</ul>
</nav>
</header>
<main class="container">
{% block content %}{% endblock %}
</main>
</body>
</html>