2024-03-27 16:32:05 +05:30
|
|
|
/* eslint-disable react/prop-types */
|
|
|
|
|
/* eslint-disable no-unused-vars */
|
|
|
|
|
import { Box, Container, Text, Image, Button } from "@chakra-ui/react";
|
|
|
|
|
|
|
|
|
|
const LearnCard = ({ id, src, alt, text }) => {
|
|
|
|
|
return (
|
|
|
|
|
<Box
|
|
|
|
|
backgroundImage={
|
|
|
|
|
"-webkit-gradient(linear, left bottom, left top, color-stop(0.33, #8D54F8), color-stop(0.67, #F8697A));"
|
|
|
|
|
}
|
|
|
|
|
padding={"1px"}
|
|
|
|
|
borderRadius={"10px"}
|
|
|
|
|
>
|
|
|
|
|
{/* {images.map((img) => (
|
|
|
|
|
<></>
|
|
|
|
|
))} */}
|
|
|
|
|
|
|
|
|
|
<Box
|
|
|
|
|
display="inline-block"
|
2024-03-28 20:29:24 +05:30
|
|
|
width={"650px"}
|
2024-03-27 16:32:05 +05:30
|
|
|
height={"300px"}
|
|
|
|
|
background={"#151419"}
|
|
|
|
|
borderRadius={"10px"}
|
|
|
|
|
key={id}
|
2024-03-29 19:54:51 +05:30
|
|
|
sx={{
|
|
|
|
|
"@media (max-width: 435px)": {
|
|
|
|
|
width: "390px",
|
|
|
|
|
},
|
|
|
|
|
}}
|
2024-03-27 16:32:05 +05:30
|
|
|
>
|
|
|
|
|
<Box padding={"1rem"}>
|
|
|
|
|
<Image src={src} alt={alt} />
|
|
|
|
|
</Box>
|
|
|
|
|
|
2024-03-28 20:29:24 +05:30
|
|
|
<Box padding={"1rem"} height={"110px"}>
|
2024-03-27 16:32:05 +05:30
|
|
|
<Text
|
|
|
|
|
color={"#fff"}
|
|
|
|
|
fontSize={"18px"}
|
|
|
|
|
fontFamily={"Poppins"}
|
|
|
|
|
marginBottom={"20px"}
|
|
|
|
|
fontWeight={"300"}
|
|
|
|
|
>
|
|
|
|
|
{text}
|
|
|
|
|
</Text>
|
|
|
|
|
<Box
|
|
|
|
|
display={"flex"}
|
|
|
|
|
alignItems={"center"}
|
|
|
|
|
_hover={
|
|
|
|
|
{
|
|
|
|
|
// flexDirection: "column-reverse",
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
position={"relative"}
|
|
|
|
|
width={"10%"}
|
|
|
|
|
_before={{
|
|
|
|
|
content: '""',
|
|
|
|
|
width: "100%",
|
|
|
|
|
position: "absolute",
|
|
|
|
|
left: "0",
|
|
|
|
|
borderBottom: "1px solid #DE858E",
|
|
|
|
|
zIndex: "2",
|
|
|
|
|
}}
|
|
|
|
|
></Box>
|
|
|
|
|
<Button
|
|
|
|
|
position={"relative"}
|
|
|
|
|
backgroundColor={"transparent"}
|
|
|
|
|
color={"#fff"}
|
|
|
|
|
fontFamily={"Poppins"}
|
|
|
|
|
fontWeight={"400"}
|
|
|
|
|
_hover={{
|
|
|
|
|
backgroundColor: "transparent",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Visit Website
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default LearnCard;
|