diff --git a/src/layouts/components/Dropdown.astro b/src/layouts/components/Dropdown.astro
new file mode 100644
index 00000000..1e3cc86f
--- /dev/null
+++ b/src/layouts/components/Dropdown.astro
@@ -0,0 +1,80 @@
+---
+export interface ChildNavigationLink {
+ name: string;
+ url: string;
+}
+
+export interface Props {
+ name: string;
+ children: ChildNavigationLink[];
+}
+
+const { name, children } = Astro.props;
+---
+
+
+
+ {name}
+
+
+
+
+
+
+
+
diff --git a/src/layouts/partials/Header.astro b/src/layouts/partials/Header.astro
index e428cd02..e8bbbc27 100755
--- a/src/layouts/partials/Header.astro
+++ b/src/layouts/partials/Header.astro
@@ -1,5 +1,6 @@
---
import Logo from "@/components/Logo.astro";
+import Dropdown from "@/components/Dropdown.astro";
import menu from "@/config/menu.json";
import { IoSearch } from "react-icons/io5";
@@ -57,24 +58,8 @@ const { main }: { main: NavigationLink[] } = menu;
{
main.map((menu) => (
<>
- {menu.hasChildren ? (
-
-
- {menu.name}
-
-
-
-
+ {menu.hasChildren && menu.children ? (
+
) : (