42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>{% block title %}{{ brand }}{% endblock %}</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='app.css') }}">
|
|
</head>
|
|
<body class="bg-neutral-950 text-neutral-100 antialiased">
|
|
<header class="border-b border-white/10 bg-black/60 backdrop-blur">
|
|
<div class="max-w-7xl mx-auto px-6 py-3 flex items-center gap-6">
|
|
<a class="font-bold" href="/">{{ brand }}</a>
|
|
<nav class="text-sm flex flex-wrap gap-4">
|
|
<a href="/board/">Intercom</a>
|
|
<a href="/quotes/">Quotes</a>
|
|
<a href="/memos/">Memos</a>
|
|
<a href="/notes/">Notes</a>
|
|
<a href="/journal/">Journal</a>
|
|
</nav>
|
|
<div class="ml-auto">
|
|
{% if cu %}
|
|
<form method="post" action="/auth/logout"><button class="btn">Log out</button></form>
|
|
{% else %}
|
|
<a class="btn" href="/auth/login">Log in</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="max-w-7xl mx-auto px-6 py-8">
|
|
{% with msgs = get_flashed_messages(with_categories=true) %}
|
|
{% for cat,msg in msgs %}
|
|
<div class="mb-4 rounded border px-3 py-2 {{ 'border-emerald-400 bg-emerald-500/10' if cat=='ok' else 'border-red-400 bg-red-500/10' }}">{{ msg }}</div>
|
|
{% endfor %}
|
|
{% endwith %}
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
</body>
|
|
</html>
|
|
|