2024-04-03 20:34:26 +05:30
|
|
|
/* eslint-disable react/prop-types */
|
2024-03-22 20:52:36 +05:30
|
|
|
/* eslint-disable no-unused-vars */
|
|
|
|
|
import { Box, Container, Text, Image, Button } from "@chakra-ui/react";
|
|
|
|
|
import cardimg from "../../assets/images/CardImg.png";
|
|
|
|
|
import { Badge } from "@chakra-ui/react";
|
|
|
|
|
|
2024-04-02 15:22:12 +05:30
|
|
|
const HomeCard = ({ key, date, text }) => {
|
2024-03-22 20:52:36 +05:30
|
|
|
return (
|
|
|
|
|
<Box
|
|
|
|
|
backgroundImage={
|
|
|
|
|
"-webkit-gradient(linear, left bottom, left top, color-stop(0.33, #8D54F8), color-stop(0.67, #F8697A));"
|
|
|
|
|
}
|
|
|
|
|
padding={"1px"}
|
|
|
|
|
borderRadius={"10px"}
|
|
|
|
|
>
|
2024-04-02 15:22:12 +05:30
|
|
|
<Box
|
|
|
|
|
width={"502px"}
|
|
|
|
|
background={"#151419"}
|
|
|
|
|
borderRadius={"10px"}
|
|
|
|
|
minHeight={"502px"}
|
|
|
|
|
key={key}
|
|
|
|
|
>
|
2024-03-22 20:52:36 +05:30
|
|
|
<Image src={cardimg} />
|
|
|
|
|
<Box padding={"1rem"}>
|
|
|
|
|
<Badge
|
|
|
|
|
backgroundColor={"#565263"}
|
|
|
|
|
color={"#fff"}
|
|
|
|
|
fontWeight={"400"}
|
|
|
|
|
borderRadius={"20px"}
|
|
|
|
|
padding={"3px 16px"}
|
|
|
|
|
>
|
|
|
|
|
INSIGHT
|
|
|
|
|
</Badge>
|
|
|
|
|
|
|
|
|
|
<Text fontSize={"12px"} color={"#979797"} margin={"25px 0px"}>
|
2024-04-02 15:22:12 +05:30
|
|
|
{date}
|
2024-03-22 20:52:36 +05:30
|
|
|
</Text>
|
2024-04-02 15:22:12 +05:30
|
|
|
<Text
|
|
|
|
|
color={"#fff"}
|
|
|
|
|
fontSize={"24px"}
|
|
|
|
|
marginBottom={"20px"}
|
|
|
|
|
minHeight={"73px"}
|
|
|
|
|
maxWidth={"460px"}
|
|
|
|
|
>
|
|
|
|
|
{text}
|
2024-03-22 20:52:36 +05:30
|
|
|
</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",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Read More
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default HomeCard;
|