Change dark primary color
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
@@ -41,7 +41,7 @@ withDefaults(defineProps<Props>(), {
|
||||
<div class="flex items-center gap-2 flex-wrap my-5">
|
||||
<LogoTag />
|
||||
<template v-for="tag in tags" :key="tag">
|
||||
<span class="bg-gray-200 dark:bg-zinc-700 rounded-md px-2 py-1 font-semibold">{{ tag }}</span>
|
||||
<span class="bg-gray-200 dark:bg-slate-900 rounded-md px-2 py-1 font-semibold">{{ tag }}</span>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@ const links = articles?.body?.toc?.links || []
|
||||
|
||||
<template>
|
||||
<div class="lg:col-span-3 sticky top-28 h-96 hidden lg:block justify-self-end">
|
||||
<div class="border dark:border-gray-800 p-3 rounded-md min-w-[200px]">
|
||||
<div class="border dark:border-gray-800 p-3 rounded-md min-w-[200px] dark:bg-slate-900">
|
||||
<h1 class="text-sm font-bold mb-3 border-b dark:border-gray-800 pb-2">
|
||||
Table Of Content
|
||||
</h1>
|
||||
|
||||
@@ -17,7 +17,7 @@ const category = computed(() => {
|
||||
|
||||
<template>
|
||||
<div class="container mx-auto">
|
||||
<div class="p-6 my-4 mx-3 rounded-md bg-gray-200 dark:bg-gray-800">
|
||||
<div class="p-6 my-4 mx-3 rounded-md bg-gray-200 dark:bg-slate-900">
|
||||
<h1 class="text-black dark:text-white font-semibold leading-tight text-xl md:text-2xl">
|
||||
#{{ category }}
|
||||
</h1>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<NuxtLink
|
||||
to="https://github.com/nurRiyad"
|
||||
target="_blank"
|
||||
class="p-2 bg-gray-300 text-gray-800 rounded-md"
|
||||
class="p-2 bg-gray-300 text-gray-800 rounded-md dark:bg-sky-700 dark:text-[#F1F2F4]"
|
||||
aria-label="Github"
|
||||
>
|
||||
<Icon name="fa:github" size="1em" />
|
||||
@@ -19,7 +19,7 @@
|
||||
<NuxtLink
|
||||
to="https://www.linkedin.com/in/nur-riyad/"
|
||||
target="_blank"
|
||||
class="p-2 bg-gray-300 text-gray-800 rounded-md"
|
||||
class="p-2 bg-gray-300 text-gray-800 rounded-md dark:bg-sky-700 dark:text-[#F1F2F4]"
|
||||
aria-label="LinkedIn"
|
||||
>
|
||||
<Icon name="fa:linkedin-square" size="1em" />
|
||||
@@ -27,7 +27,7 @@
|
||||
<NuxtLink
|
||||
to="https://twitter.com/qdnvubp"
|
||||
target="_blank"
|
||||
class="p-2 bg-gray-300 text-gray-800 rounded-md"
|
||||
class="p-2 bg-gray-300 text-gray-800 rounded-md dark:bg-sky-700 dark:text-[#F1F2F4]"
|
||||
aria-label="Twitter"
|
||||
>
|
||||
<Icon name="fa:twitter-square" size="1em" />
|
||||
@@ -35,7 +35,7 @@
|
||||
<NuxtLink
|
||||
to="https://stackoverflow.com/users/16781395/nur-riyad"
|
||||
target="_blank"
|
||||
class="p-2 bg-gray-300 text-gray-800 rounded-md"
|
||||
class="p-2 bg-gray-300 text-gray-800 rounded-md dark:bg-sky-700 dark:text-[#F1F2F4]"
|
||||
aria-label="StackOverflow"
|
||||
>
|
||||
<Icon name="fa:stack-overflow" size="1em" />
|
||||
|
||||
@@ -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