File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,19 @@ const Header: React.FC = () => {
114114 />
115115 </ div >
116116 </ button >
117-
118- { /* Desktop Navigation (visible from lg and up) */ }
119117 < nav className = "hidden lg:flex lg:items-center lg:space-x-4" >
118+ { navigationData . linksBefore . map ( ( link ) => (
119+ < Link
120+ key = { link . label }
121+ to = { link . path }
122+ className = "px-2 lg:px-2 py-2 text-gray-700 dark:text-gray-200 hover:text-blue-600 font-medium rounded-md
123+ transition-all duration-200 hover:bg-gray-50 dark:hover:bg-gray-800 text-sm lg:text-sm whitespace-nowrap"
124+ onClick = { handleNavigation }
125+ >
126+ { link . label }
127+ </ Link >
128+ ) ) }
129+ { /* Desktop Navigation (visible from lg and up) */ }
120130 { /* Dropdown menus */ }
121131 { Object . entries ( navigationData . dropdowns ) . map (
122132 ( [ key , dropdown ] ) => (
@@ -218,6 +228,17 @@ const MobileNavDrawer: React.FC<{
218228 < div className = "flex-1 overflow-y-auto py-2" >
219229 < div className = "space-y-4" >
220230 { /* Dropdown menus */ }
231+ { navigationData . linksBefore . map ( ( link ) => (
232+ < Link
233+ key = { link . label }
234+ to = { link . path }
235+ onClick = { onClose }
236+ className = "block px-4 py-2 text-gray-700 dark:text-gray-200 font-medium rounded-lg
237+ hover:bg-gray-50 dark:hover:bg-gray-800 hover:text-blue-600"
238+ >
239+ { link . label }
240+ </ Link >
241+ ) ) }
221242 { Object . entries ( navigationData . dropdowns ) . map (
222243 ( [ key , dropdown ] ) => (
223244 < div key = { key } className = "space-y-1 px-2" >
@@ -277,6 +298,7 @@ const MobileNavDrawer: React.FC<{
277298 ) }
278299
279300 { /* Regular links */ }
301+
280302 { navigationData . links . map ( ( link ) => (
281303 < Link
282304 key = { link . label }
You can’t perform that action at this time.
0 commit comments