diff --git a/src/components/homepage.tsx b/src/components/homepage.tsx index 2bca1c1..b430c5e 100644 --- a/src/components/homepage.tsx +++ b/src/components/homepage.tsx @@ -19,8 +19,8 @@ import loopgreenback from "../components/imageandgif/newloop.png" import OurTeam from "./ourteam"; import mobileLogo from "../components/imageandgif/loopsMoblogo.png" import mobileback from "../components/imageandgif/mobileback.png" - -import { createTheme, ThemeProvider } from "@mui/material/styles"; +import { useMediaQuery, useTheme } from "@mui/material"; +import { createTheme, ThemeProvider } from "@mui/material/styles"; import newbackground from "../components/imageandgif/full.png" import newbackgroundtwo from "../components/imageandgif/newbacktwo.png" import wasteimage from "../components/imageandgif/loopwastemanage.png" @@ -29,7 +29,6 @@ import WhyChooseUs from "./whyus"; - const HomePage: React.FC = () => { // Create refs for each content box const mineRef = useRef(null); @@ -46,12 +45,16 @@ const HomePage: React.FC = () => { "Loop Sustainability extends the life cycle of electronics through advanced technology and smart algorithms, enabling efficient reuse and responsible recycling.", "We collaborate with consumer brands, retailers, recyclers, repair centers, policymakers, and more—all working together to reduce e-waste and drive sustainability.", ]; + // const theme = useTheme(); + // const isMobile = useMediaQuery(theme.breakpoints.down("sm")); + // Function to scroll to the ref const scrollToRef = (ref: React.RefObject) => { if (ref.current) { ref.current.scrollIntoView({ behavior: "smooth", block: "center" }); } }; + const theme = createTheme({ breakpoints: { values: { @@ -59,7 +62,7 @@ const HomePage: React.FC = () => { sm: 600, // Default md: 1000, // Default lg: 1400, // Default - xl: 1800, // Default + xl: 1600, // Default }, }, @@ -68,7 +71,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: '120px' }, }} > @@ -113,11 +116,11 @@ const HomePage: React.FC = () => { {/* Grid 2 */} { { textAlign: 'center', marginBottom: { xs: "20px", md: "0" }, }}> - - Gif + + Gif Mine from nature @@ -153,10 +156,10 @@ const HomePage: React.FC = () => { - + {/* ROW 2 */} - + { Manufacturing

Materials are processed in energy-intensive factories that rely on fossil fuels, generating high carbon emissions

- + Gif @@ -187,7 +190,7 @@ const HomePage: React.FC = () => { display: "flex", justifyContent: { lg: 'flex-end', xs: 'center' }, alignItems: "center" }}> { marginBottom: { xs: "20px", md: "0" }, }}> - + Gif @@ -209,10 +212,10 @@ const HomePage: React.FC = () => {
- + {/* ROW 4 */} - + {

Devices are used by consumers and businesses, but their production and usage contribute significantly to carbon footprints, energy consumption, and waste generation.

- + Gif
{/* new2 */} - + @@ -352,10 +355,17 @@ const HomePage: React.FC = () => {
{/* mobile only */} - + {/* Reuse */} - + Reuse @@ -370,14 +380,14 @@ const HomePage: React.FC = () => { {/* Repair */} - + Repair - Loop Sustainability steps in to repair damaged or outdated electronics. - Our repair services extend the life of devices, minimizing waste and - reducing the need for new products. - + Loop Sustainability steps in to repair damaged or outdated electronics. + Our repair services extend the life of devices, minimizing waste and + reducing the need for new products. + Repair Gif @@ -387,27 +397,27 @@ const HomePage: React.FC = () => { {/* Disintegrate (Added Extra Margin to Separate from Top Row) */} - + Disintegrate Gif - Disintegrate - When electronics can no longer be repaired or reused, we safely disintegrate them into valuable materials, ensuring they are properly processed and recycled. + Disintegrate + When electronics can no longer be repaired or reused, we safely disintegrate them into valuable materials, ensuring they are properly processed and recycled. {/* Remine */} - - + + Remine Gif - - Remine - We take the disintegrated materials and remines them for precious metals ,turning waste back into usable resources .closing the loop on electronic waste. + + Remine + We take the disintegrated materials and remines them for precious metals ,turning waste back into usable resources .closing the loop on electronic waste. @@ -419,7 +429,6 @@ const HomePage: React.FC = () => { { }} > Waste Image { }} /> - +