Migrate some scripts to Alpine and add 18+ icon

This commit is contained in:
Bad Manners 2024-09-25 13:38:04 -03:00
parent dcbf094a0e
commit 328e84ccc7
No known key found for this signature in database
GPG key ID: 8C88292CCB075609
20 changed files with 220 additions and 174 deletions

View file

@ -105,10 +105,9 @@ const isCurrentRoute = (path: string) =>
</li>
<li>
<button
data-dark-mode
hidden
class="text-link group"
aria-label={t("en", "published_content/toggle_dark_mode")}
@click="darkMode = !darkMode; localStorage.colorScheme = darkMode ? 'dark' : 'light'"
>
<IconSun width="1.25rem" height="1.25rem" class="order-1 hidden align-text-top dark:inline" />
<IconMoon width="1.25rem" height="1.25rem" class="order-1 inline align-text-top dark:hidden" />