File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ const path = computed(() => route.fullPath.replace('/', ''))
9
9
<div class =" px-6 container max-w-5xl mx-auto" >
10
10
<div class =" grid grid-cols-1 md:grid-cols-3" >
11
11
<FooterSite v-if =" path === 'about'" />
12
- <FooterDevloper v-else />
12
+ <FooterDeveloper v-else />
13
13
14
14
<FooterLink />
15
15
<FooterConnect />
16
16
</div >
17
17
18
18
<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
20
20
<a href =" https://github.com/nurriyad/blog" target =" _blank" rel =" nofollow" class =" underline" >open source</a >
21
21
anyway.
22
22
</div >
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- const route = useRoute ()
3
-
4
- const path = computed (() => route .fullPath .replace (' /' , ' ' ))
5
-
6
2
const colorMode = useColorMode ()
7
3
function onClick(val : string ) {
8
4
colorMode .preference = val
@@ -14,23 +10,23 @@ function onClick(val: string) {
14
10
<div class =" flex px-6 container max-w-5xl justify-between mx-auto items-baseline " >
15
11
<ul class =" flex items-baseline space-x-5" >
16
12
<li class =" text-base sm:text-2xl font-bold" >
17
- <NuxtLink to =" /" :class = " { underline: path === '' } " >
13
+ <NuxtLink to =" /" >
18
14
Riyad's Blog
19
15
</NuxtLink >
20
16
</li >
21
17
</ul >
22
18
<ul class =" flex items-center space-x-3 sm:space-x-6 text-sm sm:text-lg" >
23
19
<li >
24
- <NuxtLink to =" /blogs" :class = " { underline: path === 'blogs' } " >
20
+ <NuxtLink to =" /blogs" >
25
21
Blogs
26
22
</NuxtLink >
27
23
</li >
28
24
<li >
29
- <NuxtLink to =" /categories" :class = " { underline: path === 'categories' } " >
25
+ <NuxtLink to =" /categories" >
30
26
Categories
31
27
</NuxtLink >
32
28
</li >
33
- <li title =" About Me" :class = " { underline: path === 'about' } " >
29
+ <li title =" About Me" >
34
30
<NuxtLink to =" /about" aria-label =" About me" >
35
31
About
36
32
</NuxtLink >
@@ -65,3 +61,9 @@ function onClick(val: string) {
65
61
</div >
66
62
</div >
67
63
</template >
64
+
65
+ <style >
66
+ .router-link-active .router-link-exact-active {
67
+ @apply underline
68
+ }
69
+ </style >
You can’t perform that action at this time.
0 commit comments