|
|
@ -1,8 +1,11 @@ |
|
|
|
import { |
|
|
|
import { |
|
|
|
|
|
|
|
BookOpen, |
|
|
|
|
|
|
|
BookOpenText, |
|
|
|
CheckSquare, |
|
|
|
CheckSquare, |
|
|
|
FileQuestion, |
|
|
|
FileQuestion, |
|
|
|
Menu, |
|
|
|
Menu, |
|
|
|
Shirt, |
|
|
|
Shirt, |
|
|
|
|
|
|
|
Video, |
|
|
|
Waypoints, |
|
|
|
Waypoints, |
|
|
|
} from 'lucide-react'; |
|
|
|
} from 'lucide-react'; |
|
|
|
import { useRef, useState } from 'react'; |
|
|
|
import { useRef, useState } from 'react'; |
|
|
@ -28,6 +31,19 @@ const links = [ |
|
|
|
description: 'Test and Practice your knowledge', |
|
|
|
description: 'Test and Practice your knowledge', |
|
|
|
Icon: FileQuestion, |
|
|
|
Icon: FileQuestion, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
link: '/guides', |
|
|
|
|
|
|
|
label: 'Guides', |
|
|
|
|
|
|
|
description: 'In-depth articles and tutorials', |
|
|
|
|
|
|
|
Icon: BookOpenText, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
link: 'https://youtube.com/@roadmapsh', |
|
|
|
|
|
|
|
label: 'Videos', |
|
|
|
|
|
|
|
description: 'Animated and interactive content', |
|
|
|
|
|
|
|
Icon: Video, |
|
|
|
|
|
|
|
isExternal: true, |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
link: 'https://cottonbureau.com/people/roadmapsh', |
|
|
|
link: 'https://cottonbureau.com/people/roadmapsh', |
|
|
|
label: 'Shop', |
|
|
|
label: 'Shop', |
|
|
@ -58,9 +74,9 @@ export function NavigationDropdown() { |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<div |
|
|
|
<div |
|
|
|
className={cn( |
|
|
|
className={cn( |
|
|
|
'absolute left-0 top-full z-[999] mt-2 w-48 min-w-[320px] -translate-y-1 rounded-lg bg-slate-800 py-2 opacity-0 shadow-xl transition-all duration-100', |
|
|
|
'absolute pointer-events-none left-0 top-full z-[999] mt-2 w-48 min-w-[320px] -translate-y-1 rounded-lg bg-slate-800 py-2 opacity-0 shadow-xl transition-all duration-100', |
|
|
|
{ |
|
|
|
{ |
|
|
|
'translate-y-2.5 opacity-100': isOpen, |
|
|
|
'pointer-events-auto translate-y-2.5 opacity-100': isOpen, |
|
|
|
}, |
|
|
|
}, |
|
|
|
)} |
|
|
|
)} |
|
|
|
> |
|
|
|
> |
|
|
|