From 56d6548e71b65837ce24bfd2eec3b523d2d029ad Mon Sep 17 00:00:00 2001 From: hardik Date: Fri, 14 Feb 2025 12:55:16 +0530 Subject: [PATCH 1/2] fixed image height --- src/components/wastemanagement.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/wastemanagement.tsx b/src/components/wastemanagement.tsx index 8d1a8df..9358ab8 100644 --- a/src/components/wastemanagement.tsx +++ b/src/components/wastemanagement.tsx @@ -11,7 +11,7 @@ const WasteImageSection = () => { container xs={12} sx={{ - height: "660px", + height: {lg:"660px", xs:'900px'}, marginTop: { lg: 20, xs: 0 }, display: "flex", justifyContent: "center", From 5c41c55c51b668afba7a3276ac22f0ec307bb208 Mon Sep 17 00:00:00 2001 From: hardik Date: Fri, 14 Feb 2025 14:13:10 +0530 Subject: [PATCH 2/2] fixed footer --- src/components/footer.tsx | 13 +++++++----- src/components/homepage.tsx | 14 ++++++++----- src/components/wastemanagement.tsx | 32 +++++++++++++++++++++++------- 3 files changed, 42 insertions(+), 17 deletions(-) diff --git a/src/components/footer.tsx b/src/components/footer.tsx index d054110..7894a0c 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -12,7 +12,7 @@ const Footer: React.FC = () => { {/* Loop Sustainability */} - + Loop Sustainability @@ -22,7 +22,7 @@ const Footer: React.FC = () => { {/* Get in Touch */} - + Get in Touch @@ -45,11 +45,11 @@ const Footer: React.FC = () => { {/* Company Links */} - + Company - + {["Service", "Features", "Our Team", "Portfolio", "Blog", "Contact Us"].map((text) => ( {text} @@ -58,7 +58,10 @@ const Footer: React.FC = () => { {/* Social Media Icons */} - + + + + diff --git a/src/components/homepage.tsx b/src/components/homepage.tsx index 97ba083..cdb255f 100644 --- a/src/components/homepage.tsx +++ b/src/components/homepage.tsx @@ -72,7 +72,7 @@ const HomePage: React.FC = () => { return ( - + {/* Grid 1 */} { backgroundSize: "contain", backgroundPosition: " center", backgroundRepeat: "no-repeat", - marginBottom: { xs: "10px", md: "39px", lg: '120px' }, + marginBottom: { xs: "10px", md: "39px", lg: '60px' }, }} > @@ -98,7 +98,11 @@ const HomePage: React.FC = () => { + + Sustainability + {items.map((text, index) => ( + { {/* Grid 2 */} { }} > {/* ROW 1 */} - + { {/* ROW 3 */} { - const theme = useTheme(); // Use the existing theme, don't redeclare it - const isMobile = useMediaQuery(theme.breakpoints.down("sm")); // For screens < 600px + const theme = useTheme(); // Use the theme inside the component + const isMobile = useMediaQuery(theme.breakpoints.down("md")); + + // Function to scroll to the ref + const scrollToRef = (ref: React.RefObject) => { + if (ref.current) { + ref.current.scrollIntoView({ behavior: "smooth", block: "center" }); + } + }; return ( { style={{ width: "100%", height: "100%", - objectFit: "cover" + objectFit: "contain" }} />