updated waste management image
This commit is contained in:
parent
179aba704a
commit
56fff75acf
|
|
@ -19,6 +19,8 @@ const Header: React.FC = () => {
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: "#7c77770d",
|
backgroundColor: "#7c77770d",
|
||||||
margin: "20px 20px 10px 20px",
|
margin: "20px 20px 10px 20px",
|
||||||
|
|
||||||
|
boxShadow: "none",
|
||||||
width: {
|
width: {
|
||||||
xs: "91.6vw",
|
xs: "91.6vw",
|
||||||
sm: "95.5vw",
|
sm: "95.5vw",
|
||||||
|
|
@ -36,7 +38,7 @@ const Header: React.FC = () => {
|
||||||
<img
|
<img
|
||||||
src={headerlogo}
|
src={headerlogo}
|
||||||
alt="Logo"
|
alt="Logo"
|
||||||
style={{ height: "50px", cursor: "pointer", width:'159px' }}
|
style={{ height: "50px", cursor: "pointer", width:'176px' }}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,15 +67,15 @@ const HomePage: React.FC = () => {
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
typography: {
|
// typography: {
|
||||||
fontFamily: "SF Pro Rounded Medium, Arial, sans-serif",
|
// fontFamily: "SF Pro Rounded Medium, Arial, sans-serif",
|
||||||
h4: {
|
// h4: {
|
||||||
color: "#333333",
|
// color: "#333333",
|
||||||
},
|
// },
|
||||||
body2:{
|
// body2:{
|
||||||
color:"#77808B"
|
// color:"#77808B"
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 4.8 MiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 4.8 MiB |
|
|
@ -1,6 +1,7 @@
|
||||||
import { createTheme, ThemeProvider, useMediaQuery, useTheme, Box, Grid } from "@mui/material";
|
import { createTheme, ThemeProvider, useMediaQuery, useTheme, Grid } from "@mui/material";
|
||||||
import wasteimage from "../components/imageandgif/loopwastemanage.png";
|
import wasteimage from "../components/imageandgif/Loop Transforming waste.svg";
|
||||||
import mobileWasteImage from "../components/imageandgif/Soil & Water Contamination mob.png";
|
import { ReactComponent as MobileWasteImage } from "../components/imageandgif/Soil & Water Contamination.svg";
|
||||||
|
|
||||||
const customTheme = createTheme({
|
const customTheme = createTheme({
|
||||||
breakpoints: {
|
breakpoints: {
|
||||||
values: {
|
values: {
|
||||||
|
|
@ -14,38 +15,42 @@ const customTheme = createTheme({
|
||||||
});
|
});
|
||||||
|
|
||||||
const WasteImageSection = () => {
|
const WasteImageSection = () => {
|
||||||
const theme = useTheme(); // Use the theme inside the component
|
const theme = useTheme();
|
||||||
const isMobile = useMediaQuery(theme.breakpoints.down("md"));
|
const isMobile = useMediaQuery(theme.breakpoints.down("md"));
|
||||||
|
|
||||||
// Function to scroll to the ref
|
|
||||||
const scrollToRef = (ref: React.RefObject<HTMLDivElement>) => {
|
|
||||||
if (ref.current) {
|
|
||||||
ref.current.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Grid
|
<Grid
|
||||||
container
|
container
|
||||||
xs={12}
|
xs={12}
|
||||||
sx={{
|
sx={{
|
||||||
height: {lg:"820px", xs:'900px' , md:"900px"},
|
height: { lg: "820px", xs: "900px", md: "900px" },
|
||||||
marginTop: { lg: 20, xs: 0 },
|
marginTop: { lg: 20, xs: 0 },
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
overflow: "hidden"
|
overflow: "hidden",
|
||||||
|
background:'#fafafa'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
{isMobile ? (
|
||||||
src={isMobile ? mobileWasteImage : wasteimage} // Different images for mobile & desktop
|
<MobileWasteImage
|
||||||
alt="Waste Image"
|
style={{
|
||||||
style={{
|
width: "100%",
|
||||||
width: "100%",
|
height: "100%",
|
||||||
height: "100%",
|
objectFit: "contain"
|
||||||
objectFit: "contain"
|
}}
|
||||||
}}
|
/>
|
||||||
/>
|
) : (
|
||||||
|
<img
|
||||||
|
src={wasteimage}
|
||||||
|
alt="Waste Image"
|
||||||
|
style={{
|
||||||
|
width: "100%",
|
||||||
|
height: "100%",
|
||||||
|
objectFit: "contain"
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</Grid>
|
</Grid>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ import { Box, Grid, Typography } from "@mui/material";
|
||||||
import { styled } from "@mui/system";
|
import { styled } from "@mui/system";
|
||||||
|
|
||||||
const Circle = styled(Box)(({ theme }) => ({
|
const Circle = styled(Box)(({ theme }) => ({
|
||||||
width: 150, // Increased size
|
width: 170, // Increased size
|
||||||
height: 150,
|
height: 170,
|
||||||
borderRadius: "50%",
|
borderRadius: "50%",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
|
|
@ -27,7 +27,7 @@ const items = [
|
||||||
const WhyChooseUs: React.FC = () => {
|
const WhyChooseUs: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<Box sx={{ textAlign: "center", mt: 5 }}>
|
<Box sx={{ textAlign: "center", mt: 5 }}>
|
||||||
<Typography variant="h5" fontWeight="bold" mb={3}>
|
<Typography variant="h4" sx={{ fontWeight: "bold" , color:'#333333' ,mb:4}}>
|
||||||
Why Choose Us?
|
Why Choose Us?
|
||||||
</Typography>
|
</Typography>
|
||||||
<Grid
|
<Grid
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue