File tree 1 file changed +13
-11
lines changed
1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change
1
+ import { Link } from 'react-router-dom' ;
2
+
1
3
import logoLight from '../images/logo-light.svg' ;
2
4
import logoDark from '../images/logo-dark.svg' ;
3
5
@@ -10,13 +12,13 @@ const AppHeader = () => {
10
12
{ /* Header menu links and small screen hamburger menu start */ }
11
13
< div className = "flex justify-between items-center px-4 sm:px-0" >
12
14
< div >
13
- < a href = "/" >
15
+ < Link to = "/" >
14
16
< img
15
17
src = { logoDark }
16
18
className = "w-36"
17
19
alt = "Dark Logo"
18
20
/>
19
- </ a >
21
+ </ Link >
20
22
</ div >
21
23
22
24
{ /* Theme switcher small screen end */ }
@@ -53,27 +55,27 @@ const AppHeader = () => {
53
55
54
56
{ /* Header links start*/ }
55
57
< div className = "m-0 sm:ml-4 mt-5 sm:mt-3 sm:flex p-5 sm:p-0 justify-center items-center shadow-lg sm:shadow-none" >
56
- < a
57
- href = "/projects"
58
+ < Link
59
+ to = "/projects"
58
60
className = "block text-left text-lg font-medium text-primary-dark dark:text-ternary-light hover:text-secondary-dark dark:hover:text-secondary-light sm:mx-4 mb-2 sm:py-2"
59
61
aria-label = "Projects"
60
62
>
61
63
Projects
62
- </ a >
63
- < a
64
- href = "/about"
64
+ </ Link >
65
+ < Link
66
+ to = "/about"
65
67
className = "block text-left text-lg font-medium text-primary-dark dark:text-ternary-light hover:text-secondary-dark dark:hover:text-secondary-light sm:mx-4 mb-2 sm:py-2 border-t-2 pt-3 sm:pt-2 sm:border-t-0 border-primary-light dark:border-secondary-dark"
66
68
aria-label = "About Me"
67
69
>
68
70
About Me
69
- </ a >
70
- < a
71
- href = "/contact"
71
+ </ Link >
72
+ < Link
73
+ to = "/contact"
72
74
className = "block text-left text-lg font-medium text-primary-dark dark:text-ternary-light hover:text-secondary-dark dark:hover:text-secondary-light sm:mx-4 mb-2 sm:py-2 border-t-2 pt-3 sm:pt-2 sm:border-t-0 border-primary-light dark:border-secondary-dark"
73
75
aria-label = "Contact"
74
76
>
75
77
Contact
76
- </ a >
78
+ </ Link >
77
79
< div className = "border-t-2 pt-3 sm:pt-0 sm:border-t-0 border-primary-light dark:border-secondary-dark" >
78
80
< button
79
81
className = "sm:hidden block text-left text-md font-medium bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-md px-4 py-2 mt-2"
You can’t perform that action at this time.
0 commit comments