Skip to content

Commit 334423f

Browse files
authored
Merge pull request #14812 from JoeChenJ/Shadcn_Migrate_RoadmapActionCard.tsx
Shadcn Migrate: Roadmap/RoadmapActionCard/index.tsx
2 parents 70628b3 + 7ad6519 commit 334423f

File tree

1 file changed

+12
-25
lines changed
  • src/components/Roadmap/RoadmapActionCard

1 file changed

+12
-25
lines changed

src/components/Roadmap/RoadmapActionCard/index.tsx

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import {
2-
Center,
3-
Flex,
4-
Heading,
5-
LinkBox,
6-
LinkOverlay,
7-
Text,
8-
} from "@chakra-ui/react"
9-
101
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"
126

137
import futureProofing from "@/public/images/roadmap/roadmap-future.png"
148
import security from "@/public/images/roadmap/roadmap-security.png"
@@ -41,22 +35,15 @@ const RoadmapActionCard = ({
4135
const imgSrc = images[image] ?? images.futureProofing
4236

4337
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">
39+
<Center className="h-[260px] bg-gradient-main">
40+
<TwImage src={imgSrc} alt={alt} style={{ objectFit: "contain" }} />
5241
</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>
6047
</LinkOverlay>
6148
</Flex>
6249
</LinkBox>

0 commit comments

Comments
 (0)