From e64ff68815b814a7b4d65e3b069e5dcff8335cac Mon Sep 17 00:00:00 2001 From: William Lima Date: Mon, 18 Dec 2023 21:24:13 -0100 Subject: [PATCH] #139 rwd fixes fix language overlap logo on mobile and close menu on item click --- .../_shared/image_header/ImageHeader.tsx | 22 ++++++++++++------- components/home/NavTemplate.tsx | 7 ++++-- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/components/_shared/image_header/ImageHeader.tsx b/components/_shared/image_header/ImageHeader.tsx index e21afc9..12d42cb 100644 --- a/components/_shared/image_header/ImageHeader.tsx +++ b/components/_shared/image_header/ImageHeader.tsx @@ -32,8 +32,16 @@ const ImageHeader: React.FC = ({ return ( <> -
-
+
+
= ({ // 'md:ml-[-7rem] md:mr-[-7rem] xl:mr-0' } w-[calc(100%] md:w-auto - bg-center bg-no-repeat bg-cover" + bg-center bg-no-repeat bg-cover `} >
@@ -53,7 +61,7 @@ const ImageHeader: React.FC = ({ priority={true} width={909} height={655} - className={`xl:object-contain + className={`lg:object-cover ${AR('xl:rounded-l-[40px]', 'xl:rounded-r-[40px]')} `} /> @@ -67,9 +75,7 @@ const ImageHeader: React.FC = ({ //'ml-[-2.5rem] md:ml-[-7rem] md:mr-[-7rem] xl:ml-[-3.0rem]' }`} > -
+
{/* 5rem (ml) + 5rem (body padding) = 10rem*/}
= ({

{children} diff --git a/components/home/NavTemplate.tsx b/components/home/NavTemplate.tsx index 9d39a87..db9e7ef 100644 --- a/components/home/NavTemplate.tsx +++ b/components/home/NavTemplate.tsx @@ -40,7 +40,7 @@ const NavBar: React.FC<{ menu: any; logo: string }> = ({ menu, logo }) => { return ( - {({ open }) => ( + {({ open, close }) => ( <>