firebreak/web/app/templates/base.html

54 lines
No EOL
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
{% block title %}Myst{% endblock %}
</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="/static/css/output.css" />
<script src="https://unpkg.com/htmx.org@2"></script>
</head>
<body class="min-h-screen text-sm antialiased bg-background-base text-foreground">
<header class="border-b-2 border-stroke bg-background-bright">
<div class="flex items-center justify-between px-4 py-3 mx-auto max-w-7xl sm:px-8">
<a href="/"
class="flex items-center gap-2 text-base font-semibold tracking-normal transition text-foreground hover:text-primary">
<span
class="grid text-xs font-semibold text-white border rounded-md size-7 place-items-center border-primary/20 bg-primary">M</span>
<span>Myst</span>
</a>
<nav class="flex items-center gap-2">
{% if user %}
<a href="/dashboard" class="btn-nav">Dashboard</a>
<a href="/auth/logout" class="btn-secondary">Logout</a>
{% else %}
<a href="/auth/login/forgejo" class="inline-flex items-center gap-2 btn-primary">
<img src="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/logo.svg" alt="" width="16"
height="16" class="size-4 shrink-0 brightness-0 invert" aria-hidden="true" />
<span>Sign in with Forgejo</span>
</a>
{% endif %}
</nav>
</div>
</header>
<main class="px-4 py-8 mx-auto max-w-7xl sm:px-8">
{% block content %}{% endblock %}
</main>
<!-- <footer class="border-t-2 border-stroke bg-primary text-white">
<div class="flex flex-col items-center gap-4 px-4 py-6 mx-auto max-w-7xl sm:px-8">
<p class="text-xs text-text-secondary">
© 2026 Myst. All rights reserved.
</p>
</div>
</footer> -->
</body>
</html>