main pages/styles
This commit is contained in:
@ -1,3 +1,20 @@
|
||||
<template>
|
||||
<ClientOnly v-if="!colorMode?.forced">
|
||||
<div class="flex h-8 w-8 cursor-pointer items-center justify-center">
|
||||
<i
|
||||
@click="isDark = !isDark"
|
||||
:class="[
|
||||
'uil text-[32px] cursor-pointer',
|
||||
isDark ? 'uil-moon' : 'uil-sun',
|
||||
]"
|
||||
></i>
|
||||
</div>
|
||||
<template #fallback>
|
||||
<div class="size-20" />
|
||||
</template>
|
||||
</ClientOnly>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const colorMode = useColorMode();
|
||||
|
||||
@ -10,14 +27,3 @@ const isDark = computed({
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ClientOnly v-if="!colorMode?.forced">
|
||||
<div class="flex h-8 w-8 cursor-pointer items-center justify-center">
|
||||
<i @click="isDark = !isDark" :class="['uil text-[35px] cursor-pointer', isDark ? 'uil-moon' : 'uil-sun']"></i>
|
||||
</div>
|
||||
<template #fallback>
|
||||
<div class="size-20" />
|
||||
</template>
|
||||
</ClientOnly>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user