temp/src/Components/HomepageCard.jsx

28 lines
560 B
React
Raw Normal View History

2024-05-23 09:43:09 +05:30
import React from "react";
import { Card, Col, Row } from "antd";
import { useNavigate } from "react-router";
const HomepageCard = ({ title, url }) => {
const navigate = useNavigate();
return (
<Row
gutter={16}
className="p-2"
>
2024-07-04 12:59:18 +05:30
<Col span={24}>
<Card
onClick={() => {
navigate(url);
}}
title="" className="shadow"
bordered={true}
style={{with:'100%'}}
>
2024-05-23 09:43:09 +05:30
{title}
</Card>
</Col>
</Row>
);
};
export default HomepageCard;