Change dark primary color
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ const path = computed(() => route.fullPath.replace('/', ''))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="py-5 border-t dark:border-gray-800 mt-5 text-zinc-700 dark:text-zinc-300 ">
|
||||
<div class="py-5 border-t dark:border-gray-800 mt-5 text-zinc-700 dark:text-zinc-300">
|
||||
<div class="px-6 container max-w-5xl mx-auto">
|
||||
<div class="grid grid-cols-1 md:grid-cols-3">
|
||||
<FooterSite v-if="path === 'about'" />
|
||||
|
||||
@@ -37,20 +37,21 @@ function onClick(val: string) {
|
||||
</li>
|
||||
<li>
|
||||
<ClientOnly>
|
||||
<button
|
||||
v-if="colorMode.value === 'dark'"
|
||||
name="dark-mode" title="Dark"
|
||||
class="hover:scale-110 transition-all ease-out hover:cursor-pointer"
|
||||
@click="onClick('light')"
|
||||
>
|
||||
<Icon name="icon-park:moon" size="20" />
|
||||
</button>
|
||||
<button
|
||||
v-if="colorMode.value === 'light'"
|
||||
name="light-mode"
|
||||
title="Light"
|
||||
class="hover:scale-110 transition-all ease-out hover:cursor-pointer"
|
||||
@click="onClick('dark')"
|
||||
>
|
||||
<Icon name="icon-park:moon" size="20" />
|
||||
</button>
|
||||
<button
|
||||
v-if="colorMode.value === 'dark'"
|
||||
name="dark-mode"
|
||||
title="Dark"
|
||||
class="hover:scale-110 transition-all ease-out hover:cursor-pointer"
|
||||
@click="onClick('light')"
|
||||
>
|
||||
<Icon name="noto:sun" size="20" />
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user