@@ -38,26 +38,37 @@ export const Navbar = () => {
38
38
39
39
useEffect ( ( ) => {
40
40
if ( search == "" ) {
41
- router . push ( pathname + "?" + createQueryString ( "l" , "alphabets " ) ) ;
41
+ router . push ( pathname + "?" + createQueryString ( "l" , "alpha " ) ) ;
42
42
}
43
43
setIsDomLoaded ( true ) ;
44
44
} , [ search , router , pathname , createQueryString ] ) ;
45
45
46
46
if ( ! isDomLoaded ) return < > </ > ;
47
47
if ( isMobile ) {
48
48
return (
49
- < nav className = "w-screen fixed border-t-2 border-border bottom-0" >
50
- < div className = "flex justify-center gap-4 items-center py-4 px-8 " >
49
+ < nav className = "z-50 w-screen fixed border-t-2 border-border bottom-0 bg-background " >
50
+ < div className = "flex justify-center gap-4 items-center py-4 px-6 " >
51
51
< ProfileTile />
52
- < ThemeSwitch />
52
+ < CharacterTile
53
+ iconCharacters = "Ab"
54
+ label = "Alphabets"
55
+ isSelected = { search == "alpha" }
56
+ onPress = { ( ) => handleLessonChange ( "alpha" ) }
57
+ />
58
+ < CharacterTile
59
+ iconCharacters = "12"
60
+ label = "Numbers"
61
+ isSelected = { search == "num" }
62
+ onPress = { ( ) => handleLessonChange ( "num" ) }
63
+ />
53
64
< MoreActionsTile />
54
65
</ div >
55
66
</ nav >
56
67
) ;
57
68
}
58
69
if ( isTablet )
59
70
return (
60
- < nav className = "w-[80px] h-screen fixed border-r-2 border-border" >
71
+ < nav className = "w-[80px] h-screen fixed border-r-2 border-border bg-background " >
61
72
< div className = "flex flex-col h-full justify-between p-4 pb-5" >
62
73
< Title />
63
74
< div className = "flex flex-col gap-4 items-center" >
@@ -89,25 +100,21 @@ export const Navbar = () => {
89
100
</ nav >
90
101
) ;
91
102
return (
92
- < nav className = "min-w-[250px] w-full max-w-[280px] h-screen fixed border-r-2 border-border" >
103
+ < nav className = "min-w-[250px] w-full max-w-[280px] h-screen fixed border-r-2 border-border bg-background " >
93
104
< div className = "flex flex-col h-full justify-between p-4 pb-5" >
94
105
< Title />
95
106
< div className = "flex flex-col gap-4 px-4 items-center" >
96
107
< CharacterTile
97
- iconCharacters = "Abc "
108
+ iconCharacters = "Ab "
98
109
label = "Alphabets"
99
- isSelected = { search == "alphabets" }
100
- onPress = { ( ) => {
101
- router . push ( pathname + "?" + createQueryString ( "l" , "alphabets" ) ) ;
102
- } }
110
+ isSelected = { search == "alpha" }
111
+ onPress = { ( ) => handleLessonChange ( "alpha" ) }
103
112
/>
104
113
< CharacterTile
105
- iconCharacters = "123 "
114
+ iconCharacters = "12 "
106
115
label = "Numbers"
107
- isSelected = { search == "numbers" }
108
- onPress = { ( ) => {
109
- router . push ( pathname + "?" + createQueryString ( "l" , "numbers" ) ) ;
110
- } }
116
+ isSelected = { search == "num" }
117
+ onPress = { ( ) => handleLessonChange ( "num" ) }
111
118
/>
112
119
</ div >
113
120
< div className = "flex flex-col lg:flex-row w-full gap-3 justify-between items-center" >
0 commit comments