diff --git a/public/index.html b/public/index.html index aa069f2..dff3868 100644 --- a/public/index.html +++ b/public/index.html @@ -24,7 +24,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - React App + Loop Sustainability diff --git a/src/components/homepage.tsx b/src/components/homepage.tsx index fa96d34..a0497aa 100644 --- a/src/components/homepage.tsx +++ b/src/components/homepage.tsx @@ -1,22 +1,25 @@ import React, { useRef } from "react"; import { Box, Grid, Typography } from "@mui/material"; import logo from "../loopslogo2.png"; -import backone from "../components/imageandgif/backgroundone.png"; -import backthree from "../components/imageandgif/backgroundthree.png"; -import backfour from "../components/imageandgif/backgroundfour.png"; -import backfive from "../components/imageandgif/backgroundfive.png"; -import backsix from "../components/imageandgif/backgroundsix.png"; -import gifone from "../components/imageandgif/gifone.gif" -import giftwo from "../components/imageandgif/giftwo.gif" -import gifthree from "../components/imageandgif/gifthree.gif" -import giffour from "../components/imageandgif/giffour.gif" -import giffive from "../components/imageandgif/giffive.gif" -import gifsix from "../components/imageandgif/gifsix.gif" -import gifseven from "../components/imageandgif/gifseven.gif" -import gifeight from "../components/imageandgif/gifeight.gif" -import loopgreen from "../components/imageandgif/newloop.png" +import backone from "../components/imageandgif/newbgone.png"; +import backtwo from "../components/imageandgif/newnewtwo.png"; +import backthree from "../components/imageandgif/newthree.png"; +import gifone from "../components/imageandgif/gifone.gif"; +import giftwo from "../components/imageandgif/giftwo.gif"; +import gifthree from "../components/imageandgif/gifthree.gif"; +import giffour from "../components/imageandgif/giffour.gif"; +import giffive from "../components/imageandgif/giffive.gif"; +import gifsix from "../components/imageandgif/gifsix.gif"; +import gifseven from "../components/imageandgif/gifseven.gif"; +import gifeight from "../components/imageandgif/gifeight.gif"; +import loopgreen from "../components/imageandgif/newloop.png"; import PartnerWork from "./ourwork"; import Footer from "./footer"; +import loopgreenback from "../components/imageandgif/loopgreenbackground.png" +import OurTeam from "./ourteam"; +import mobileLogo from "../components/imageandgif/loopsMoblogo.png" +import { createTheme, ThemeProvider } from "@mui/material/styles"; + const HomePage: React.FC = () => { // Create refs for each content box @@ -29,382 +32,430 @@ const HomePage: React.FC = () => { const remineRef = useRef(null); const impactRef = useRef(null); const reuseRef = useRef(null); + // 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: { + xs: 0, // Default + sm: 600, // Default + md: 1000, // Default + lg: 1400, // Default + xl: 1800, // Default + + }, + }, + }); return ( - - - {/* Grid 1 */} - - + + + {/* Grid 1 */} + -
    +
      +
    • scrollToRef(mineRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Mine
    • +
    • scrollToRef(manufactureRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Manufacture
    • +
    • scrollToRef(assembleRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Assemble
    • +
    • scrollToRef(useRefBox)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Use
    • +
    • scrollToRef(reuseRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Reuse
    • +
    • scrollToRef(repairRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Repair
    • +
    • scrollToRef(disintegrateRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Disintegrate
    • +
    • scrollToRef(remineRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Remine
    • +
    • scrollToRef(impactRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Impact
    • +
    + + + + {/* Grid 2 */} + + + + Gif + + + Mine from nature +

    Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis doloremque architecto eos provident et deserunt temporibus non iusto quis inventore expedita neque

    +
    +
    + + + + Manufacture +

    Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis doloremque architecto eos provident et deserunt temporibus non iusto

    +
    + + Gif + +
    + + + + Assemble +

    Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis!

    +
    + + Gif + +
    +
    + + {/* Grid 3 */} + -
  • scrollToRef(mineRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Mine
  • -
  • scrollToRef(manufactureRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Manufacture
  • -
  • scrollToRef(assembleRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Assemble
  • -
  • scrollToRef(useRefBox)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Use
  • -
  • scrollToRef(reuseRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Reuse
  • -
  • scrollToRef(repairRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Repair
  • -
  • scrollToRef(disintegrateRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Disintegrate
  • -
  • scrollToRef(remineRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Remine
  • -
  • scrollToRef(impactRef)} style={{ fontSize: "18px", fontWeight: "semibold", padding: "8px", borderRadius: "5px", cursor: "pointer" }}>Impact
  • -
-
-
+ + + Use +

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis !

+
+ + Gif + +
+
- - - - Gif + position: "relative", + backgroundImage: { lg: `url(${backthree})`, xs: null }, + backgroundSize: "contain", + backgroundPosition: "46.2% 50%", + backgroundRepeat: "no-repeat", + }}> + + + Reuse +

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendisss !

+
+ + Gif +
- - Mine from nature -

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis doloremque architecto eos provident et deserunt temporibus non iusto quis inventore expedita neque, dolorum ea consectetur repudiandae iste. Aliquid, aspernatur in!

+ + + + + Repair +

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis !

+
+ + Gif +
-
-
- {/* Grid 3 */} - + + Disintegrate +

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis !

+
+ + Gif + +
- sx={{ - height: "400px", - backgroundColor: "white", - position: "relative", - backgroundImage: `url(${backone})`, - backgroundSize: "contain", - backgroundPosition: "50.5% 50%", - backgroundRepeat: "no-repeat", + + + Gif + + + Remine +

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis !

+
+
+ - }}> - - - Manufacture -

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis doloremque architecto eos provident et deserunt temporibus non iusto quis inventore expedita neque, dolorum ea consectetur repudiandae iste. Aliquid, aspernatur in!

-
- - Gif - -
+ height: { xs: "200px", md: "300px" }, + backgroundImage: `url(${loopgreen})`, + position: "relative", + backgroundSize: "contain", + backgroundPosition: "center", + backgroundRepeat: "no-repeat", + }}> + - - {/* Grid 4 */} - - - - Assemble -

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis !

-
- - Gif - -
-
- - {/* Grid 5 */} - - - - Use -

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis !

-
- - Gif - -
- - - Reuse -

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendisss !

-
- - Gif - -
-
- - {/* Grid 6 */} - - - - Repair -

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis !

-
- - Gif - -
- - - Disintegrate -

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis !

-
- - Gif - -
-
- {/* grid */} - - - - Gif - - - Remine -

Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis !

-
- -
-
- - - - - -