zdravko/web/templates/components/base.tmpl

27 lines
973 B
Cheetah

{{define "base"}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Zdravko - {{template "title" .}}</title>
<link rel="stylesheet" href="/static/css/tailwind.css">
</head>
<body class="bg-gray-100">
<nav class="justify-center flex space-x-2 mt-10">
<a href="/" class="btn btn-active">Status</a>
<a href="/incidents" class="btn">Incidents</a>
<a href="/settings" class="btn">Settings</a>
</nav>
<div class="container max-w-screen-md flex flex-col mt-20">
{{template "main" .}}
</div>
<div class="container mx-auto">
<footer class="text-center text-gray-500 text-xs mt-8">
&copy; 2024 Zdravko - <a href="https://github.com/mentos1386/zdravko">Source</a>
</footer>
<script src="/static/js/htmx.min.js"></script>
</body>
</html>
{{end}}