From 5b29928f16f3c939e966c8634b0847c18c6312e4 Mon Sep 17 00:00:00 2001 From: Le Nhut Huy Date: Tue, 3 Feb 2026 12:09:24 +0700 Subject: [PATCH] refactor json header, footer, home and styling ui --- app/components/home/VisaSolutions.tsx | 2 +- app/components/layout/Footer/FooterBottom.tsx | 19 +- app/components/layout/Footer/FooterTop.tsx | 45 +- app/components/layout/Footer/footer.json | 80 ++ app/components/layout/Header/Header.tsx | 30 +- app/components/layout/Header/HeaderBottom.tsx | 163 +-- app/components/layout/Header/HeaderTop.tsx | 64 +- app/components/layout/Header/Offcanvas.tsx | 150 +++ app/components/layout/Header/header.json | 142 ++ app/home.json | 120 +- public/assets/css/main.css | 1163 ++++++++++++++--- 11 files changed, 1476 insertions(+), 502 deletions(-) create mode 100644 app/components/layout/Footer/footer.json create mode 100644 app/components/layout/Header/Offcanvas.tsx create mode 100644 app/components/layout/Header/header.json diff --git a/app/components/home/VisaSolutions.tsx b/app/components/home/VisaSolutions.tsx index c11bbcc..bd637c5 100644 --- a/app/components/home/VisaSolutions.tsx +++ b/app/components/home/VisaSolutions.tsx @@ -28,7 +28,7 @@ const VisaSolutions = ({ data }: VisaSolutionsProps) => {
-
+
{item.number}

diff --git a/app/components/layout/Footer/FooterBottom.tsx b/app/components/layout/Footer/FooterBottom.tsx index 5e32054..b708b2c 100644 --- a/app/components/layout/Footer/FooterBottom.tsx +++ b/app/components/layout/Footer/FooterBottom.tsx @@ -1,23 +1,22 @@ import Link from 'next/link'; +import footerData from './footer.json'; const FooterBottom = () => { + const { bottom } = footerData; + return (

- Copyright© GRAMENTHEME All Rights Reserved. + {bottom.copyright.text} {bottom.copyright.brand} {bottom.copyright.rights}

    -
  • - Terms & Conditions -
  • -
  • - Privacy Policy -
  • -
  • - Contact Us -
  • + {bottom.menuLinks.map((item, index) => ( +
  • + {item.label} +
  • + ))}
diff --git a/app/components/layout/Footer/FooterTop.tsx b/app/components/layout/Footer/FooterTop.tsx index b954267..52c388b 100644 --- a/app/components/layout/Footer/FooterTop.tsx +++ b/app/components/layout/Footer/FooterTop.tsx @@ -1,46 +1,37 @@ import Link from 'next/link'; +import footerData from './footer.json'; const FooterTop = () => { + const { top } = footerData; + return ( -