Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #82

Merged
merged 2 commits into from
Feb 21, 2024
Merged

Dev #82

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 28 additions & 8 deletions src/component/HeroSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import HeroImg from "../image/hero-img.PNG";
import { Button as MuiButton } from "@mui/material";
import { Box } from "@mui/material";
import { Link } from "react-router-dom";
import Wave from "../image/waves/heroSection.svg";

const Title = styled(Typography)({
color: "#226a49",
Expand All @@ -15,24 +16,33 @@ const Title = styled(Typography)({
fontSize: "clamp(2rem, 6vw, 6.2rem)",
});

const WaveImg = styled("img")({
width: "100%",
height: "auto",
position: "absolute",
bottom: "-3rem",
left: "0",
});

export default function HeroSection() {
return (
<Container
id="hs"
maxWidth="xl"
maxWidth="xxl"
sx={{
position: "relative",
height: { sm: "100%" },
minHeight: { xs: "100%", sm: "100%", md: "100vh" },
display: "flex",
flexDirection: { xs: "column-reverse", sm: "row" },
justifyContent: "space-between",
alignItem: "center",
gap: { xs: "0", sm: "5vw", md: "5vw" },
gap: { xs: "5vw", sm: "5vw", md: "5vw" },
width: "100%",
padding: {
xs: "5rem 5vw 5rem 5vw",
sm: "8rem 5vw 5rem 5vw",
md: "10rem 5vw 5rem 5vw",
xs: "6rem 5vw 5rem 5vw",
sm: "7rem 5vw 6rem 5vw",
md: "6rem 15vw 5rem 15vw",
},
textAlign: "center",
}}
Expand Down Expand Up @@ -69,8 +79,9 @@ export default function HeroSection() {
sm: "clamp(1.3rem, 1.3vw, 3rem)",
md: "clamp(1.5rem, 1.3vw, 3rem)",
},
margin: "-1rem 0 0 0",
margin: {xs:"-1rem 0 0 0",sm:"-1.5rem 0 0 0",md:"-2rem 0 0 0"},
fontWeight: "bold",
color: "#458d43",
}}
>
Bag The Future Responsibly
Expand All @@ -91,8 +102,8 @@ export default function HeroSection() {
<MuiButton
style={{
width: "max-content",
padding: "1rem 2rem",
fontSize: "clamp(1rem, 1vw, 2rem)",
padding: ".5rem 1rem",
fontSize: "clamp(.7rem, 1vw, 2rem)",
margin: "0 auto",
border: "none",
borderRadius: ".5rem",
Expand Down Expand Up @@ -135,6 +146,15 @@ export default function HeroSection() {
}}
/>
</Box>
<WaveImg
src={Wave}
alt="Wave for next component. This will give a nice transition."
sx={{
position: {xs:"absolute"},
bottom: {xs:"-0.3rem",m:"23.5rem", md: "-3rem" },
left: { xs:"0",m:"0", md: "0" },
}}
/>
</Container>
);
}
4 changes: 2 additions & 2 deletions src/component/ProblemStatement.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ const ProblemBodyText = styled(Typography)({

const ProblemImage = styled("img")({
width: "100%",
aspectRatio: "5/4",
// aspectRatio: "5/4",
objectFit: "content",
"@media (min-width:600px)": {
width: "40%",
width: "30%",
},
"@media (max-width:600px)": {
"&:nth-child(odd)": {
Expand Down
Binary file added src/image/our_Story.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/image/waves/heroSection.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.