feat: add navigation bar

image-uploads
Jef Roosens 2025-01-11 15:50:24 +01:00
parent ad4f0397c5
commit f51b6ce3b3
No known key found for this signature in database
GPG Key ID: 21FD3D77D56BAF49
1 changed files with 16 additions and 3 deletions

View File

@ -3,13 +3,26 @@
<head> <head>
<script src="/static/htmx_2.0.4.min.js" integrity="sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+"></script> <script src="/static/htmx_2.0.4.min.js" integrity="sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+"></script>
<link rel="stylesheet" href="/static/pico.classless.green.min.css" /> <link rel="stylesheet" href="/static/pico.classless.green.min.css" />
<style type="text/css">
a:hover {
cursor:pointer;
}
</style>
</head> </head>
<body> <body>
<main> <main>
<h1>Calathea</h1> <nav>
<div id="content"> <ul>
<li><strong>Calathea</strong></li>
</ul>
<ul>
<li><a hx-get="/" hx-target="#content" hx-push-url="true">Home</a></li>
<li><a hx-get="/plants" hx-target="#content" hx-push-url="true">Plants</a></li>
</ul>
</nav>
<article id="content">
{{ view | safe }} {{ view | safe }}
</div> </article>
</main> </main>
</body> </body>
</html> </html>