add paegs/icons/routing/stores
This commit is contained in:
@ -14,13 +14,8 @@ const isDark = computed({
|
||||
<template>
|
||||
<ClientOnly v-if="!colorMode?.forced">
|
||||
<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"
|
||||
/>
|
||||
<i @click="isDark = !isDark" :class="['uil text-[35px] cursor-pointer', isDark ? 'uil-moon' : 'uil-sun']"></i>
|
||||
</div>
|
||||
|
||||
<template #fallback>
|
||||
<div class="size-20" />
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user