Files
rubix/src/components/UseCase/UseCase.jsx

179 lines
4.8 KiB
React
Raw Normal View History

2024-04-10 20:38:16 +05:30
/* eslint-disable react/jsx-key */
/* eslint-disable react/prop-types */
/* eslint-disable no-unused-vars */
// eslint-disable-next-line no-unused-vars
import React from "react";
import { Box, Text } from "@chakra-ui/react";
// eslint-disable-next-line react/prop-types
const UseCase = ({ useCase, bannerImage, bannerHeading, bannerSubHeading }) => {
return (
<div>
<Box
height={"75vh"}
width={"100%"}
backgroundImage={`url(${bannerImage})`}
backgroundRepeat={"no-repeat"}
backgroundSize={"cover"}
position="relative"
2024-04-16 17:08:05 +05:30
sx={{
"@media (max-width: 600px)": {
height: "400px",
},
}}
2024-04-10 20:38:16 +05:30
>
<Box
position="absolute"
top={0}
left={0}
width="100%"
height="100%"
backgroundColor="rgba(0, 0, 0, 0.8)"
display={"flex"}
justifyContent={"center"}
alignItems={"center"}
flexDirection={"column"}
>
2024-04-16 17:08:05 +05:30
<Box
w={"50vw"}
sx={{
"@media (max-width: 600px)": {
width: "100vw",
padding: "2rem",
},
}}
>
2024-04-10 20:38:16 +05:30
<Text
textAlign={"center"}
2024-04-16 17:08:05 +05:30
className="rubix-fw-700"
fontSize={"40px"}
fontFamily={"Mona Sans"}
color={"#fff"}
sx={{
"@media (max-width: 600px)": {
fontSize: "30px",
},
}}
2024-04-10 20:38:16 +05:30
>
{bannerHeading}
</Text>
<Text
textAlign={"center"}
2024-04-16 17:08:05 +05:30
className="rubix-fw-500"
fontSize={"20px"}
fontFamily={"Poppins"}
color={"#fff"}
sx={{
"@media (max-width: 600px)": {
fontSize: "16px",
},
}}
2024-04-10 20:38:16 +05:30
>
{bannerSubHeading}
</Text>
</Box>
</Box>
</Box>
<Box
p={5}
pb={14}
backgroundColor={"#000000"}
display={"flex"}
justifyContent={"center"}
flexDirection={"column"}
alignItems={"center"}
gap={16}
w={"100%"}
>
{useCase.map(
({ useCaseHeading, useCaseSubHeading, useCaseDetails }) => (
<Box
display={"flex"}
justifyContent={"center"}
flexDirection={"column"}
alignItems={"start"}
gap={7}
pt={5}
width={"85vw"}
2024-04-16 17:08:05 +05:30
sx={{
"@media (max-width: 600px)": {
width: "100%",
},
}}
2024-04-10 20:38:16 +05:30
>
{/* ========[ Head-Para ]====== */}
2024-04-16 17:08:05 +05:30
<Box width={"65vw"}
sx={{
"@media (max-width: 600px)": {
width: "100%",
},
}}
>
2024-04-10 20:38:16 +05:30
<Text
style={{ marginBottom: 6 }}
className="rubix-fw-500"
fontSize="3xl"
textColor={"#ffffff"}
2024-04-16 17:08:05 +05:30
sx={{
"@media (max-width: 600px)": {
fontSize: "22px",
},
}}
2024-04-10 20:38:16 +05:30
>
{useCaseHeading}
</Text>
2024-04-16 17:08:05 +05:30
<Text textColor={"#ffffff"} fontSize="xl"
sx={{
"@media (max-width: 600px)": {
fontSize: "14px",
},
}}
>
2024-04-10 20:38:16 +05:30
{useCaseSubHeading}
</Text>
</Box>
{useCaseDetails.map(({ title, description }, index) => (
2024-04-16 17:08:05 +05:30
<Box width={"75vw"}
sx={{
"@media (max-width: 600px)": {
width: "100%",
},
}}
>
2024-04-10 20:38:16 +05:30
<Text
style={{ marginBottom: 6 }}
className="rubix-fw-500"
fontSize="2xl"
textColor={"#ffffff"}
2024-04-16 17:08:05 +05:30
sx={{
"@media (max-width: 600px)": {
fontSize: "16px",
},
}}
2024-04-10 20:38:16 +05:30
>
{title}
</Text>
2024-04-16 17:08:05 +05:30
<Text textColor={"#ffffff"} fontSize="lg"
sx={{
"@media (max-width: 600px)": {
fontSize: "14px",
},
}}
>
2024-04-10 20:38:16 +05:30
{description}
</Text>
</Box>
))}
</Box>
)
)}
</Box>
</div>
);
};
export default UseCase;