-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathSeamlessCard.tsx
More file actions
41 lines (37 loc) · 911 Bytes
/
SeamlessCard.tsx
File metadata and controls
41 lines (37 loc) · 911 Bytes
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
import Image from "next/image"
import { Stack, Typography } from "@mui/material"
const SeamlessCard = props => {
const { imageURL, title, content, sx } = props
return (
<Stack
sx={{
maxWidth: ["auto", "auto", "34rem"],
pb: [0, 0, "2.4rem"],
alignItems: "center",
...sx,
}}
>
<Image src={imageURL} className="w-[18rem] h-[18rem] md:w-[22rem] md:h-[22rem]" alt={title} />
<Typography
sx={{
typography: "title",
fontSize: ["1.8rem", "1.8rem"],
lineHeight: ["2.8rem", "2.8rem"],
width: "100%",
mb: "1.2rem",
}}
>
{title}
</Typography>
<Typography
sx={{
fontSize: ["1.6rem", "1.6rem"],
lineHeight: ["2.4rem", "2.4rem"],
}}
>
{content}
</Typography>
</Stack>
)
}
export default SeamlessCard