Migrate some scripts to Alpine and add 18+ icon
This commit is contained in:
parent
dcbf094a0e
commit
328e84ccc7
20 changed files with 220 additions and 174 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue