init
This commit is contained in:
@ -13,10 +13,10 @@ const isDark = computed({
|
||||
|
||||
<template>
|
||||
<ClientOnly v-if="!colorMode?.forced">
|
||||
<div class="w-8 h-8 flex items-center justify-center cursor-pointer">
|
||||
<UIcon
|
||||
class="w-8 h-8"
|
||||
:name="isDark ? 'i-lucide-moon' : 'i-lucide-sun'"
|
||||
<div class="flex h-8 w-8 cursor-pointer items-center justify-center">
|
||||
<img
|
||||
class="h-8 w-8"
|
||||
:src="`/icons/${isDark ? 'Moon' : 'Light'}.svg`"
|
||||
@click="isDark = !isDark"
|
||||
/>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user