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";
|
2024-04-11 21:00:19 +05:30
|
|
|
import { Link } from "react-router-dom";
|
2024-06-10 15:12:25 +05:30
|
|
|
const API_URL = import.meta.env.VITE_API_BASE_URL;
|
2024-03-27 16:32:05 +05:30
|
|
|
|
2024-05-15 17:39:01 +05:30
|
|
|
const LearnCard = ({ id, src, text, href }) => {
|
2024-03-27 16:32:05 +05:30
|
|
|
return (
|
2024-04-11 13:41:31 +05:30
|
|
|
<Box padding={"1px"} borderRadius={"10px"}>
|
2024-03-27 16:32:05 +05:30
|
|
|
{/* {images.map((img) => (
|
|
|
|
|
<></>
|
|
|
|
|
))} */}
|
|
|
|
|
|
|
|
|
|
<Box
|
|
|
|
|
display="inline-block"
|
2024-04-09 13:00:11 +05:30
|
|
|
width={"520px"}
|
2024-06-05 19:16:31 +05:30
|
|
|
minHeightheight={"300px"}
|
2024-04-09 13:00:11 +05:30
|
|
|
background={"#161616"}
|
2024-03-27 16:32:05 +05:30
|
|
|
borderRadius={"10px"}
|
2024-04-09 13:00:11 +05:30
|
|
|
padding={"20px"}
|
2024-03-27 16:32:05 +05:30
|
|
|
key={id}
|
2024-03-29 19:54:51 +05:30
|
|
|
sx={{
|
2024-04-16 17:08:05 +05:30
|
|
|
"@media (max-width: 500px)": {
|
|
|
|
|
width: "320px",
|
|
|
|
|
fontWeight: "400",
|
|
|
|
|
minHeight: "290px",
|
2024-03-29 19:54:51 +05:30
|
|
|
},
|
|
|
|
|
}}
|
2024-03-27 16:32:05 +05:30
|
|
|
>
|
2024-04-16 17:08:05 +05:30
|
|
|
<Box
|
2024-06-05 19:16:31 +05:30
|
|
|
padding={"1rem 1rem 0 1rem"}
|
2024-04-16 17:08:05 +05:30
|
|
|
sx={{
|
|
|
|
|
"@media (max-width: 600px)": {
|
|
|
|
|
padding: "0rem",
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Image
|
|
|
|
|
height={"60px"}
|
2024-06-10 15:12:25 +05:30
|
|
|
src={`${API_URL} /${src}`}
|
2024-05-15 17:39:01 +05:30
|
|
|
alt="company-logo"
|
2024-04-16 17:08:05 +05:30
|
|
|
sx={{
|
|
|
|
|
"@media (max-width: 600px)": {
|
|
|
|
|
height: "40px",
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
/>
|
2024-03-27 16:32:05 +05:30
|
|
|
</Box>
|
|
|
|
|
|
2024-05-15 17:39:01 +05:30
|
|
|
<Box
|
|
|
|
|
padding={"1rem"}
|
2024-04-16 17:08:05 +05:30
|
|
|
sx={{
|
|
|
|
|
"@media (max-width: 500px)": {
|
|
|
|
|
padding: "1rem 0px",
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
>
|
2024-03-27 16:32:05 +05:30
|
|
|
<Text
|
2024-04-09 13:00:11 +05:30
|
|
|
color={"#E8E8E8"}
|
2024-03-27 16:32:05 +05:30
|
|
|
fontSize={"18px"}
|
|
|
|
|
fontFamily={"Poppins"}
|
|
|
|
|
marginBottom={"20px"}
|
2024-04-09 13:00:11 +05:30
|
|
|
// fontWeight={"100"}
|
2024-06-05 20:01:41 +05:30
|
|
|
minHeight={"85px"}
|
2024-04-16 17:08:05 +05:30
|
|
|
sx={{
|
2024-06-05 20:01:41 +05:30
|
|
|
display: "-webkit-box",
|
|
|
|
|
WebkitBoxOrient: "vertical",
|
|
|
|
|
overflow: "hidden",
|
|
|
|
|
WebkitLineClamp: 3,
|
2024-04-16 17:08:05 +05:30
|
|
|
"@media (max-width: 500px)": {
|
|
|
|
|
fontSize: "14px",
|
|
|
|
|
},
|
|
|
|
|
}}
|
2024-03-27 16:32:05 +05:30
|
|
|
>
|
|
|
|
|
{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>
|
2024-04-11 21:00:19 +05:30
|
|
|
<Link to={href} target="_blank" rel="noopener noreferrer">
|
|
|
|
|
<Button
|
|
|
|
|
position={"relative"}
|
|
|
|
|
backgroundColor={"transparent"}
|
|
|
|
|
color={"#fff"}
|
|
|
|
|
fontFamily={"Poppins"}
|
|
|
|
|
fontWeight={"400"}
|
|
|
|
|
_hover={{
|
|
|
|
|
backgroundColor: "transparent",
|
|
|
|
|
}}
|
2024-04-16 17:08:05 +05:30
|
|
|
sx={{
|
|
|
|
|
"@media (max-width: 500px)": {
|
|
|
|
|
fontSize: "14px",
|
|
|
|
|
},
|
|
|
|
|
}}
|
2024-04-11 21:00:19 +05:30
|
|
|
>
|
|
|
|
|
Visit Website
|
|
|
|
|
</Button>
|
|
|
|
|
</Link>
|
2024-03-27 16:32:05 +05:30
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default LearnCard;
|