File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const AppBanner = () => {
30
30
< div className = "w-full sm:w-2/3 text-right float-right mt-8 sm:mt-0" >
31
31
< img
32
32
src = {
33
- activeTheme === 'light ' ? developerLight : developerDark
33
+ activeTheme === 'dark ' ? developerDark : developerLight
34
34
}
35
35
alt = "Developer"
36
36
/>
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const AppFooter = () => {
49
49
< a
50
50
href = "https://stoman.me"
51
51
target = "__blank"
52
- className = "text-secondary-dark dark:text-secondary-light font-medium uppercase hover:underline"
52
+ className = "text-secondary-dark dark:text-secondary-light font-medium uppercase hover:underline ml-1 "
53
53
>
54
54
Stoman
55
55
</ a >
Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ const AppHeader = () => {
119
119
className = "ml-8 bg-primary-light dark:bg-ternary-dark p-3 shadow-sm rounded-xl cursor-pointer"
120
120
>
121
121
{ activeTheme === 'dark' ? (
122
- < FiMoon class = "text-liText-ternary-dark hover:text-gray-400 dark:text-liText-ternary-light dark:hover:text-liBorder-primary-light text-xl" />
122
+ < FiMoon className = "text-liText-ternary-dark hover:text-gray-400 dark:text-liText-ternary-light dark:hover:text-liBorder-primary-light text-xl" />
123
123
) : (
124
- < FiSun class = "text-gray-200 hover:text-gray-50 text-xl" />
124
+ < FiSun className = "text-gray-200 hover:text-gray-50 text-xl" />
125
125
) }
126
126
</ div >
127
127
</ div >
Original file line number Diff line number Diff line change @@ -24,12 +24,14 @@ const ProjectsFilter = () => {
24
24
dark:text-ternary-light
25
25
"
26
26
>
27
- < option value class = "text-sm sm:text-md" >
27
+ < option value className = "text-sm sm:text-md" >
28
28
All Projects
29
29
</ option >
30
30
31
31
{ selectOptions . map ( ( option ) => (
32
- < option className = "text-normal sm:text-md" > { option } </ option >
32
+ < option className = "text-normal sm:text-md" key = { option } >
33
+ { option }
34
+ </ option >
33
35
) ) }
34
36
</ select >
35
37
) ;
Original file line number Diff line number Diff line change 1
1
import { useEffect , useState } from 'react' ;
2
2
3
3
const ThemeSwitcher = ( ) => {
4
- const [ theme , setTheme ] = useState ( 'dark' ) ;
4
+ const [ theme , setTheme ] = useState ( localStorage . theme ) ;
5
5
const activeTheme = theme === 'dark' ? 'light' : 'dark' ;
6
6
7
7
useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments