feat: added clumsy navbar
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user