File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ import { FiMoon , FiSun } from 'react-icons/fi' ;
12import { Link } from 'react-router-dom' ;
23
34// import logoLight from '../images/logo-light.svg';
@@ -21,7 +22,7 @@ const AppHeader = () => {
2122 </ Link >
2223 </ div >
2324
24- { /* Theme switcher small screen end */ }
25+ { /* Theme switcher small screen */ }
2526
2627 { /* Small screen hamburger menu start */ }
2728 < div className = "sm:hidden" >
@@ -100,7 +101,15 @@ const AppHeader = () => {
100101 </ div >
101102 { /* Hire me button end */ }
102103
103- { /* Theme switcher here */ }
104+ { /* Theme switcher large screen */ }
105+ < div
106+ onClick = "toggleTheme"
107+ aria-label = "Theme Switcher"
108+ className = "ml-8 bg-primary-light dark:bg-ternary-dark px-3 py-2 shadow-sm rounded-xl cursor-pointer"
109+ >
110+ < FiMoon class = "text-liText-ternary-dark hover:text-gray-400 dark:text-liText-ternary-light dark:hover:text-liBorder-primary-light w-5" />
111+ < FiSun class = "text-gray-200 hover:text-gray-50 w-5" />
112+ </ div >
104113 </ div >
105114 </ div >
106115 </ nav >
You can’t perform that action at this time.
0 commit comments