Skip to content

Commit 3371aee

Browse files
committed
migrate TranslationHubCallout to custom UI components and Shadcn/Tailwind CSS
1 parent 378fd29 commit 3371aee

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

src/components/Translatathon/TranslationHubCallout.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,25 @@
1-
import { Center, Flex } from "@chakra-ui/react"
2-
31
import { ButtonLink } from "@/components/Buttons"
4-
import { Image } from "@/components/Image"
2+
import { TwImage } from "@/components/Image"
3+
import { Center, Flex } from "@/components/ui/flex"
54

65
import WalkingImage from "@/public/images/translatathon/walking.png"
76

87
export const TranslationHubCallout = ({ children }) => {
98
return (
10-
<Flex
11-
w="full"
12-
align="stretch"
13-
bg="background.highlight"
14-
direction={{ base: "column", lg: "row" }}
15-
p={8}
16-
gap={8}
17-
>
18-
<Flex w="full" direction="column">
9+
<Flex className="align-stretch w-full flex-col gap-8 bg-background-highlight p-8 lg:flex-row">
10+
<Flex className="w-full flex-col">
1911
{children}
2012
<Flex>
2113
<ButtonLink href="/contributing/translation-program/translatathon/translatathon-hubs">
2214
Find out more on hubs
2315
</ButtonLink>
2416
</Flex>
2517
</Flex>
26-
<Center w="full">
27-
<Image
18+
<Center className="w-full">
19+
<TwImage
2820
src={WalkingImage}
2921
alt=""
30-
maxW={265}
22+
width={265}
3123
style={{ objectFit: "contain" }}
3224
/>
3325
</Center>

0 commit comments

Comments
 (0)