diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx new file mode 100644 index 0000000..bc62f68 --- /dev/null +++ b/src/components/Footer.tsx @@ -0,0 +1,107 @@ +"use client"; + +import Logo from "@/shared/Logo"; +import SocialsList1 from "@/shared/SocialsList1"; +import { CustomLink } from "@/data/types"; +import React from "react"; +import FooterNav from "./FooterNav"; + +export interface WidgetFooterMenu { + id: string; + title: string; + menus: CustomLink[]; +} + +const widgetMenus: WidgetFooterMenu[] = [ + { + id: "5", + title: "Getting started", + menus: [ + { href: "#", label: "Installation" }, + { href: "#", label: "Release Notes" }, + { href: "#", label: "Upgrade Guide" }, + { href: "#", label: "Browser Support" }, + { href: "#", label: "Editor Support" }, + ], + }, + { + id: "1", + title: "Explore", + menus: [ + { href: "#", label: "Design features" }, + { href: "#", label: "Prototyping" }, + { href: "#", label: "Design systems" }, + { href: "#", label: "Pricing" }, + { href: "#", label: "Security" }, + ], + }, + { + id: "2", + title: "Resources", + menus: [ + { href: "#", label: "Best practices" }, + { href: "#", label: "Support" }, + { href: "#", label: "Developers" }, + { href: "#", label: "Learn design" }, + { href: "#", label: "Releases" }, + ], + }, + { + id: "4", + title: "Community", + menus: [ + { href: "#", label: "Discussion Forums" }, + { href: "#", label: "Code of Conduct" }, + { href: "#", label: "Community Resources" }, + { href: "#", label: "Contributing" }, + { href: "#", label: "Concurrent Mode" }, + ], + }, +]; + +const Footer: React.FC = () => { + const renderWidgetMenuItem = (menu: WidgetFooterMenu, index: number) => { + return ( +
+

+ {menu.title} +

+ +
+ ); + }; + + return ( + <> + + +
+
+
+
+ +
+
+ +
+
+ {widgetMenus.map(renderWidgetMenuItem)} +
+
+ + ); +}; + +export default Footer;