|
1 |
| -import { |
2 |
| - Center, |
3 |
| - Flex, |
4 |
| - Heading, |
5 |
| - LinkBox, |
6 |
| - LinkOverlay, |
7 |
| - Text, |
8 |
| -} from "@chakra-ui/react" |
9 |
| - |
10 | 1 | import { ButtonLink } from "@/components/Buttons"
|
11 |
| -import { Image } from "@/components/Image" |
| 2 | +import { TwImage } from "@/components/Image" |
| 3 | +import { Center, Flex } from "@/components/ui/flex" |
| 4 | +import { LinkBox } from "@/components/ui/link-box" |
| 5 | +import { LinkOverlay } from "@/components/ui/link-box" |
12 | 6 |
|
13 | 7 | import futureProofing from "@/public/images/roadmap/roadmap-future.png"
|
14 | 8 | import security from "@/public/images/roadmap/roadmap-security.png"
|
@@ -41,22 +35,15 @@ const RoadmapActionCard = ({
|
41 | 35 | const imgSrc = images[image] ?? images.futureProofing
|
42 | 36 |
|
43 | 37 | return (
|
44 |
| - <LinkBox |
45 |
| - as={Flex} |
46 |
| - direction="column" |
47 |
| - border="1px solid" |
48 |
| - borderColor="lightBorder" |
49 |
| - > |
50 |
| - <Center background="cardGradient" h="260px"> |
51 |
| - <Image src={imgSrc} alt={alt} style={{ objectFit: "contain" }} /> |
| 38 | + <LinkBox className="flex flex-col border border-border"> |
| 39 | + <Center className="h-[260px] bg-main-gradient"> |
| 40 | + <TwImage src={imgSrc} alt={alt} style={{ objectFit: "contain" }} /> |
52 | 41 | </Center>
|
53 |
| - <Flex p={6} flex="1" flexDir="column" justify="space-between" gap={4}> |
54 |
| - <Heading as="h3" size="md"> |
55 |
| - {title} |
56 |
| - </Heading> |
57 |
| - <Text flex="1">{description}</Text> |
58 |
| - <LinkOverlay as={ButtonLink} href={href}> |
59 |
| - {buttonText} |
| 42 | + <Flex className="flex-1 flex-col justify-between gap-4 p-6"> |
| 43 | + <h3 className="text-2xl">{title}</h3> |
| 44 | + <p className="flex-1">{description}</p> |
| 45 | + <LinkOverlay asChild> |
| 46 | + <ButtonLink href={href}>{buttonText}</ButtonLink> |
60 | 47 | </LinkOverlay>
|
61 | 48 | </Flex>
|
62 | 49 | </LinkBox>
|
|
0 commit comments