@@ -13,6 +13,7 @@ import { BsGithub } from "react-icons/bs";
1313import { HiQueueList } from "react-icons/hi2" ;
1414import { CiStopwatch } from "react-icons/ci" ;
1515import { PiEmptyDuotone } from "react-icons/pi" ;
16+ import { LuMenu } from "react-icons/lu" ;
1617
1718interface INavItem {
1819 label : string ;
@@ -124,10 +125,44 @@ const Navbar: React.FC = () => {
124125 onConfirm = { reset }
125126 />
126127
127- { /*************
128- * Navbar *
129- ***************/ }
130- < nav className = "flex px-2 py-1 h-12" >
128+ { /********************
129+ * Mobile Navbar *
130+ **********************/ }
131+ < div className = "flex items-center gap-2 lg:hidden" >
132+ < a
133+ href = "https://github.com/SECFORCE/droidground"
134+ target = "_blank"
135+ rel = "noreferrer"
136+ className = "btn btn-ghost btn-sm px-2"
137+ >
138+ < BsGithub size = { 22 } className = "text-white" />
139+ </ a >
140+
141+ < div className = "dropdown dropdown-end" >
142+ < label tabIndex = { 0 } className = "btn btn-ghost btn-sm px-2" aria-label = "Open menu" >
143+ < LuMenu size = { 24 } />
144+ </ label >
145+ < ul
146+ tabIndex = { 0 }
147+ className = "menu dropdown-content mt-3 w-52 rounded-box bg-base-200 p-2 shadow border border-base-300"
148+ >
149+ { navItems
150+ . filter ( i => i . routeEnabled )
151+ . map ( item => (
152+ < li key = { item . to } >
153+ < button className = "justify-between" onClick = { ( ) => navigate ( item ) } >
154+ { item . label }
155+ </ button >
156+ </ li >
157+ ) ) }
158+ </ ul >
159+ </ div >
160+ </ div >
161+
162+ { /*********************
163+ * Desktop Navbar *
164+ **********************/ }
165+ < nav className = "hidden lg:flex px-2 py-1 h-12 items-center" >
131166 < ul className = "relative flex space-x-8 text-sm font-medium" >
132167 { navItems
133168 . filter ( i => i . routeEnabled )
@@ -155,7 +190,7 @@ const Navbar: React.FC = () => {
155190 { location . pathname === item . to && (
156191 < motion . div
157192 layoutId = "underline"
158- className = "absolute bottom-[-20px] left-0 right-0 h-0.5 bg-info rounded z-20"
193+ className = "absolute - bottom-4.5 left-0 right-0 h-0.5 bg-info rounded z-20"
159194 transition = { { type : "spring" , stiffness : 500 , damping : 30 } }
160195 />
161196 ) }
@@ -169,7 +204,7 @@ const Navbar: React.FC = () => {
169204 </ button >
170205 ) }
171206 < div className = "flex h-full items-center justify-center" >
172- < div className = "flex h-[1.5rem] " >
207+ < div className = "flex h-6 " >
173208 < div className = "divider divider-horizontal" />
174209 </ div >
175210 < div className = "flex gap-4" >
@@ -226,13 +261,15 @@ const Navbar: React.FC = () => {
226261
227262export const Header : React . FC = ( ) => {
228263 return (
229- < header className = "w-full bg-neutral h-18 select-none" >
230- < div className = "container m-auto h-full flex items-center justify-between" >
231- < div className = "flex items-center gap-2" >
232- < img src = { Logo } className = "h-10" />
233- < h1 className = "font-orbitron text-2xl select-none" > DroidGround</ h1 >
264+ < header className = "w-full bg-neutral select-none" >
265+ < div className = "container mx-auto h-18 px-4 sm:px-6 lg:px-8" >
266+ < div className = "h-full flex items-center justify-between gap-3" >
267+ < div className = "flex items-center gap-2 min-w-0" >
268+ < img src = { Logo } className = "h-10" />
269+ < h1 className = "font-orbitron text-xl sm:text-2xl truncate" > DroidGround</ h1 >
270+ </ div >
271+ < Navbar />
234272 </ div >
235- < Navbar />
236273 </ div >
237274 </ header >
238275 ) ;
0 commit comments