feat: add navigation bar
parent
ad4f0397c5
commit
f51b6ce3b3
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue