From 919364a4dd45f0d5d30c0f5bd8d1e87064147c50 Mon Sep 17 00:00:00 2001 From: ahasani194 Date: Mon, 2 Jun 2025 18:06:15 +0330 Subject: [PATCH] feat: add footer components including FooterInfo, FooterMenuBuilder, and FooterMenuBuilderWrapper - Implemented FooterInfo component to display logo, slogan, and social links. - Created FooterMenuBuilder component for rendering a list of links with a title. - Added FooterMenuBuilderWrapper to encapsulate the layout for menu items. --- src/app/layout.tsx | 6 +- src/assets/constants/footerMenu/index.ts | 2 + .../constants/footerMenu/quickLinks.const.ts | 13 ++- .../constants/footerMenu/whoAreWe.const.ts | 12 +++ src/assets/constants/index.ts | 2 + src/assets/constants/routeFactory/index.ts | 12 +++ src/assets/constants/socials.ts | 6 ++ src/assets/images/home_product_back.jpeg | Bin 0 -> 1878088 bytes src/assets/images/images.ts | 2 + src/components/layout/footer/Footer.tsx | 77 ++++++++++++++++++ src/components/layout/footer/FooterInfo.tsx | 45 ++++++++++ .../layout/footer/FooterMenuBuilder.tsx | 29 +++++++ .../footer/FooterMenuBuilderWrapper.tsx | 16 ++++ src/components/pages/home/Products.tsx | 2 +- src/locales/en.ts | 34 +++++--- 15 files changed, 242 insertions(+), 16 deletions(-) create mode 100644 src/assets/constants/footerMenu/whoAreWe.const.ts create mode 100644 src/assets/constants/socials.ts create mode 100644 src/assets/images/home_product_back.jpeg create mode 100644 src/components/layout/footer/FooterInfo.tsx create mode 100644 src/components/layout/footer/FooterMenuBuilder.tsx create mode 100644 src/components/layout/footer/FooterMenuBuilderWrapper.tsx diff --git a/src/app/layout.tsx b/src/app/layout.tsx index feffd15..b5ba582 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,3 +1,4 @@ +import Footer from '@/components/layout/footer/Footer'; import './globals.css'; import { cookies } from 'next/headers'; @@ -16,7 +17,10 @@ export default async function RootLayout({ return ( - {children} + + {children} +