feat: added clumsy navbar

This commit is contained in:
2024-11-23 18:50:22 +01:00
parent 45ad1f5fb0
commit 3c9f28c5fd
9 changed files with 442 additions and 102 deletions
+15 -1
View File
@@ -10,12 +10,26 @@
<script src="https://unpkg.com/htmx.org@2.0.3"></script>
<script>
function switchTheme() {
const theme = localStorage.getItem('theme')
if (theme === 'dark') {
document.documentElement.classList.remove('dark')
localStorage.setItem('theme', 'light')
} else {
document.documentElement.classList.add('dark')
localStorage.setItem('theme', 'dark')
}
}
</script>
{% tailwind_css %}
{% block extra_js %}
{% endblock %}
</head>
<body class="bg-gray-50 dark:bg-gray-900">
<main class="py-8 antialiased md:py-12">
<main>
{% block main %}
{% endblock %}