diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx index 8659b42d0..fb14fbd25 100644 --- a/src/components/layout/Header.tsx +++ b/src/components/layout/Header.tsx @@ -1,6 +1,7 @@ "use client"; import React from "react"; +import { Disclosure } from "@headlessui/react"; import { navigations } from "@/constants"; import Image from "next/image"; import Link from "next/link"; @@ -13,85 +14,176 @@ const Header = () => { const pathname = usePathname(); return ( -
- - logo - -
-
-
    - {navigations.map((navigation, index) => ( -
  • - {navigation.name === "Projects" ? ( -
    - - Projects - -
    + + {({ open }) => ( + <> +
    + + logo + + + + Open main menu +
    + + + +
    +
    + +
    +
      + {navigations.map((navigation, index) => ( +
    • + {navigation.name === "Projects" ? ( +
      + + Projects + +
      + + Current Projects + + + Upcoming Projects + +
      +
      + ) : ( - Current Projects + {navigation.name} + {navigation.icon && navigation.iconAlt && ( + + )} + )} +
    • + ))} +
    + + Join Us! + +
    +
    + + {/* Mobile Menu */} + +
      + {navigations.map((navigation, index) => ( +
    • + {navigation.name === "Projects" ? ( +
      - Upcoming Projects + Projects +
        +
      • + + Current Projects + +
      • +
      • + + Upcoming Projects + +
      • +
      -
    - ) : ( - - {navigation.name} - {navigation.icon && navigation.iconAlt ? ( - - ) : null} - - )} -
  • - ))} -
-
- - Join Us! - -
-
+ })} + {...(navigation.target + ? { target: navigation.target } + : {})} + > + {navigation.name} + {navigation.icon && navigation.iconAlt && ( + + )} + + )} + + ))} + + + Join Us! + + + + )} + ); };