Skip to content

Commit a2c41c7

Browse files
committed
Fix typo update fooder and active class
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
1 parent 8103f58 commit a2c41c7

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed
File renamed without changes.

components/main/footer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ const path = computed(() => route.fullPath.replace('/', ''))
99
<div class="px-6 container max-w-5xl mx-auto">
1010
<div class="grid grid-cols-1 md:grid-cols-3">
1111
<FooterSite v-if="path === 'about'" />
12-
<FooterDevloper v-else />
12+
<FooterDeveloper v-else />
1313

1414
<FooterLink />
1515
<FooterConnect />
1616
</div>
1717

1818
<div class="border-t dark:border-gray-800 mt-5 text-center p-2">
19-
© 2020-2023 No Right is reserved. Who cares 🤷‍♂️? It's
19+
© 2020-2024 No Right is reserved. Who cares 🤷‍♂️? It's
2020
<a href="https://github.com/nurriyad/blog" target="_blank" rel="nofollow" class="underline">open source</a>
2121
anyway.
2222
</div>

components/main/header.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
<script setup lang="ts">
2-
const route = useRoute()
3-
4-
const path = computed(() => route.fullPath.replace('/', ''))
5-
62
const colorMode = useColorMode()
73
function onClick(val: string) {
84
colorMode.preference = val
@@ -14,23 +10,23 @@ function onClick(val: string) {
1410
<div class="flex px-6 container max-w-5xl justify-between mx-auto items-baseline ">
1511
<ul class="flex items-baseline space-x-5">
1612
<li class="text-base sm:text-2xl font-bold">
17-
<NuxtLink to="/" :class="{ underline: path === '' }">
13+
<NuxtLink to="/">
1814
Riyad's Blog
1915
</NuxtLink>
2016
</li>
2117
</ul>
2218
<ul class="flex items-center space-x-3 sm:space-x-6 text-sm sm:text-lg">
2319
<li>
24-
<NuxtLink to="/blogs" :class="{ underline: path === 'blogs' }">
20+
<NuxtLink to="/blogs">
2521
Blogs
2622
</NuxtLink>
2723
</li>
2824
<li>
29-
<NuxtLink to="/categories" :class="{ underline: path === 'categories' }">
25+
<NuxtLink to="/categories">
3026
Categories
3127
</NuxtLink>
3228
</li>
33-
<li title="About Me" :class="{ underline: path === 'about' }">
29+
<li title="About Me">
3430
<NuxtLink to="/about" aria-label="About me">
3531
About
3632
</NuxtLink>
@@ -65,3 +61,9 @@ function onClick(val: string) {
6561
</div>
6662
</div>
6763
</template>
64+
65+
<style>
66+
.router-link-active .router-link-exact-active {
67+
@apply underline
68+
}
69+
</style>

0 commit comments

Comments
 (0)