diff --git a/components/icons.tsx b/components/icons.tsx index b2bac27..99fd9b9 100644 --- a/components/icons.tsx +++ b/components/icons.tsx @@ -256,7 +256,7 @@ export const ChevronUpIcon = ({ size, height = 24, width = 24, - fill = "none", + fill = "currentColor", ...props }: IconSvgProps) => ( { {/* {searchInput} */}
- {siteConfig.navMenuItems.map((item, index) => ( + {siteConfig.humasMenuItems.map((item, index) => ( { - console.log('Link clicked!'); + const [dropdownOpen, setDropdownOpen] = useState(false); + + const toggleDropdown = () => { + setDropdownOpen(!dropdownOpen); }; + const searchInput = ( + + {/* {searchInput} */} +
+ {siteConfig.humasMenuItems.map((item, index) => ( + + {item.submenu ? ( +
+ + {dropdownOpen && ( +
+ {item.submenu.map((subItem, subIndex) => ( + + {subItem.label} + + ))} +
+ )} +
+ ) : ( + + {item.label} + + )} +
+ ))} +
+
diff --git a/config/site.ts b/config/site.ts index 4fc0fea..5fa9b1b 100644 --- a/config/site.ts +++ b/config/site.ts @@ -25,40 +25,104 @@ export const siteConfig = { href: "/about", } ], - navMenuItems: [ + humasMenuItems: [ { - label: "Profile", - href: "/profile", + key: "home", + label: "Beranda", + href: "/", }, { - label: "Dashboard", - href: "/dashboard", + key: "about", + label: "Tentang", + submenu: [ + { + label: "Tentang Humas POLRI", + href: "/tentang-humas-polri" + }, + { + label: "Profile Pimpinan POLRI", + href: "/visi-misi" + }, + { + label: "Struktur Organisasi", + href: "/struktur-organisasi" + }, + { + label: "Visi dan Misi", + href: "/visi-misi" + }, + { + label: "Tugas dan Fungsi", + href: "/tugas-dan-fungsi" + }, + { + label: "Logo", + href: "#" + } + ] }, { - label: "Projects", - href: "/projects", + key: "ppid", + label: "Portal PPID", + href: "/portal-ppid", }, { - label: "Team", - href: "/team", + key: "service", + label: "Pelayanan Masyarakat", + submenu: [ + { + label: "Formulir Permohonan Informasi", + href: "/form-permohonan-informasi" + }, + { + label: "Pelayanan SIM", + href: "/visi-misi" + }, + { + label: "Pelayanan e-Rikkes SIM", + href: "/struktur-organisasi" + }, + { + label: "Pelayanan Tes Psikologi SIM", + href: "/visi-misi" + }, + { + label: "Pelayanan e-Avis", + href: "/tugas-dan-fungsi" + }, + { + label: "Pelayanan Samsat Digital", + href: "#" + }, + { + label: "Pelayanan SKCK", + href: "#" + }, + { + label: "Pelayanan Propam Presisi", + href: "#" + }, + { + label: "Pelayanan Dumas Presisi", + href: "#" + }, + { + label: "Pelayanan Binmas", + href: "#" + }, + { + label: "Wistle Blower System", + href: "#" + }, + ] }, { - label: "Calendar", - href: "/calendar", - }, - { - label: "Settings", - href: "/settings", - }, - { - label: "Help & Feedback", - href: "/help-feedback", - }, - { - label: "Logout", - href: "/logout", + key: "contact", + label: "Kontak", + href: "/kontak-kami", }, ], + links: { github: "https://github.com/nextui-org/nextui", twitter: "https://twitter.com/getnextui",