-
Notifications
You must be signed in to change notification settings - Fork 0
/
BannerCard.tsx
40 lines (37 loc) · 1.39 KB
/
BannerCard.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { Button, Col, Row } from "antd";
import { ProCard } from "@ant-design/pro-components";
import { useNavigate } from "react-router-dom";
interface BannerCard {
name?: string
}
const BannerCard = ({ name = "default" }: BannerCard) => {
const navigate = useNavigate()
return (
<ProCard
colSpan={12}
bordered
style={{
borderRadius: "10px",
backgroundImage: 'url("http://yoda.hypeople.studio/yoda-admin-template/react/static/media/analytics-payment-bg.55fb02f6.svg")',
backgroundPosition: 'center',
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat'
}}>
<Row justify="space-between" align="middle" >
<Col>
<h4 style={{ fontSize: "20px", fontWeight: 500, color: "#2d3436" }}>{name}</h4>
<div>Check all Organization</div>
</Col>
<Col >
<Button
onClick={() => navigate("/Organizations")}
type="default"
style={{ fontSize: 15, textTransform: "none", borderRadius: 10, color: "blue" }}>
See now
</Button>
</Col>
</Row>
</ProCard>
);
}
export default BannerCard