@@ -114,7 +114,6 @@ const Navbar = ({ starCount }: { starCount?: number }) => {
114114 return (
115115 < >
116116 < nav className = "w-full sticky top-0 shadow-md py-2 backdrop-blur-sm dark:shadow-gray-600 z-50" >
117-
118117 { /* Desktop menu items */ }
119118
120119 < div className = "max-w-screen-lg mx-auto flex items-center content-center justify-between backdrop-blur-sm bg-grey-100 bg-opacity-20 h-16 my-2" >
@@ -129,15 +128,21 @@ const Navbar = ({ starCount }: { starCount?: number }) => {
129128 </ Link >
130129
131130 { /* Hamburger menu button for small screens */ }
132- < div className = "md:hidden flex items-center" >
133- < button
134- onClick = { ( ) => setMenuOpen ( ! isMenuOpen ) }
135- className = { `px-2 lg:hidden dark:text-white dark:hover:text-primary text-secondary hover:text-primary transition-all duration-300 focus:outline-none ${
136- isMenuOpen ? "hidden" : "closed"
137- } `}
138- >
139- < Menu size = { 32 } />
140- </ button >
131+
132+ < div className = "md:hidden flex justify-end items-center" >
133+ < div className = "mr-2" >
134+ < ThemeButton iconSize = { 18 } />
135+ </ div >
136+ < div className = "flex" >
137+ < button
138+ onClick = { ( ) => setMenuOpen ( ! isMenuOpen ) }
139+ className = { `px-2 lg:hidden dark:text-white dark:hover:text-primary text-secondary hover:text-primary transition-all duration-300 focus:outline-none ${
140+ isMenuOpen ? "hidden" : "closed"
141+ } `}
142+ >
143+ < Menu size = { 32 } />
144+ </ button >
145+ </ div >
141146 </ div >
142147
143148 < div className = "hidden md:flex gap-2 flex-row items-center" >
@@ -198,51 +203,44 @@ const Navbar = ({ starCount }: { starCount?: number }) => {
198203
199204 { /* Mobile menu */ }
200205 { isMenuOpen && (
201- < div className = "bg-secondary-light bg-opacity-25 dark:bg-primary-light dark:bg-opacity-25 h-full z-10 w-1/2 fixed inset-y-0 right-0 md:hidden transition-transform duration-300" >
206+ < div className = "bg-secondary-light backdrop-blur-sm bg-opacity-60 dark:bg-primary-light dark:bg-opacity-60 h-[100vh] z-50 w-1/2 fixed inset-y-0 right-0 md:hidden transition-transform duration-300" >
202207 < button
203208 onClick = { ( ) => setMenuOpen ( ! isMenuOpen ) }
204- className = { `absolute right-2 top-6 dark: text-white dark:hover:text-primary focus:outline-none ${
209+ className = { `absolute right-2 top-6 text-white dark:hover:text-primary focus:outline-none ${
205210 isMenuOpen ? "open" : "closed"
206- } text-gray-600 hover:text-primary lg:hidden`}
211+ } hover:text-primary lg:hidden`}
207212 >
208213 < X size = { 32 } />
209214 </ button >
210215
211- < div className = "grid grid-cols-1 gap-10 mt-24" >
212- < div className = "text-center" >
213- < ThemeButton iconSize = { 24 } />
214- </ div >
215-
216+ < div className = "grid grid-cols-1 gap-4 mt-24 backdrop-blur-sm " >
216217 < Link
217218 href = "https://github.com/Sanchitbajaj02/palettegram"
218219 target = "_blank"
219220 rel = "noopener noreferrer"
220- className = "flex items-center text-sm mx-2 px-10 py-2 rounded-full bg-primary text-white"
221+ className = "flex items-center text-sm mx-2 px-10 py-2 rounded-full bg-primary text-white hover:border-2 hover:bg-transparent "
221222 >
222223 < Github size = { 20 } className = "mr-4" /> { starCount } Stars
223224 </ Link >
224225
225- { userAuth && userAuth . data ?. $id && (
226- < >
227- < Link
228- href = "/register"
229- className = "inline-block mx-2 px-6 py-2 text-sm rounded-full text-white bg-primary text-center"
230- >
231- Register
232- </ Link >
226+ < Link
227+ href = "/register"
228+ className = "inline-block mx-2 px-6 py-2 text-sm rounded-full text-white bg-primary text-center hover:border-2 hover:bg-transparent "
229+ >
230+ Register
231+ </ Link >
232+
233+ < Link
234+ href = "/login"
235+ className = "inline-block mx-2 px-6 py-2 text-sm rounded-full text-white bg-primary text-center hover:border-2 hover:bg-transparent"
236+ >
237+ Login
238+ </ Link >
233239
234- < Link
235- href = "/login"
236- className = "inline-block mx-2 px-6 py-2 text-sm rounded-full text-white bg-primary text-center"
237- >
238- Login
239- </ Link >
240- </ >
241- ) }
242240 { userAuth && userAuth . data ?. $id && (
243241 < Link
244242 href = { `/user/${ userAuth . data ?. $id } ` }
245- className = "mx-2 px-2 py-2 rounded-full bg-primary text-white"
243+ className = "mx-2 px-2 py-2 rounded-full bg-primary hover text-white "
246244 >
247245 < User size = { 22 } className = "transition-all duration-300 " />
248246 </ Link >
0 commit comments