-
Notifications
You must be signed in to change notification settings - Fork 26k
/
Card.tsx
52 lines (49 loc) · 988 Bytes
/
Card.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
41
42
43
44
45
46
47
48
49
50
51
52
import { Anchor, Text } from "@mantine/core";
type Props = {
title: string;
description: string;
link: string;
};
const Card = (props: Props) => {
return (
<Anchor
href={props.link}
target="_blank"
sx={{
border: "1px solid #eaeaea",
margin: "1rem",
padding: "1.5rem",
borderRadius: "10px",
textAlign: "left",
color: "black",
maxWidth: "300px",
transition: "all 0.3s ease-in-out",
"&:hover": {
borderColor: "#0070f3",
color: "#0070f3",
},
}}
>
<Text
component="h2"
sx={{
fontSize: "1.5rem",
fontWeight: "bold",
textAlign: "left",
}}
>
{props.title}
</Text>
<Text
component="p"
sx={{
fontSize: "1rem",
textAlign: "left",
}}
>
{props.description}
</Text>
</Anchor>
);
};
export default Card;