31 lines
1.3 KiB
HTML
31 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" class="bg-gray-900 text-gray-100">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>CertAuth{% block title %}{% endblock %}</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
|
</head>
|
|
<body class="min-h-screen">
|
|
{% if user %}
|
|
<nav class="bg-gray-800 border-b border-gray-700 px-6 py-3 flex items-center justify-between">
|
|
<div class="flex items-center gap-6">
|
|
<a href="/" class="font-bold text-lg text-blue-400 hover:text-blue-300">CertAuth</a>
|
|
<a href="/domains" class="hover:text-blue-400">Domains</a>
|
|
<a href="/certs" class="hover:text-blue-400">Certificates</a>
|
|
<a href="/history" class="hover:text-blue-400">History</a>
|
|
<a href="/setup" class="hover:text-blue-400">Setup</a>
|
|
</div>
|
|
<div class="flex items-center gap-4">
|
|
<span class="text-sm text-gray-400">{{ user.get("sub", "") }}</span>
|
|
<a href="/logout" class="text-sm text-gray-400 hover:text-white">Logout</a>
|
|
</div>
|
|
</nav>
|
|
{% endif %}
|
|
<main class="p-6 max-w-6xl mx-auto">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
</body>
|
|
</html>
|