Skip to content

Commit 0a0da82

Browse files
authored
Merge pull request #14412 from Sambit03/migrate-Translatathon/TranslationHubCallout
Migrate TranslationHubCallout.tsx to custom UI components and Shadcn/Tailwindcss
2 parents 47bb5d7 + 912f132 commit 0a0da82

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

src/components/Translatathon/TranslationHubCallout.tsx

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
1-
import { Center, Flex } from "@chakra-ui/react"
1+
import { TwImage } from "@/components/Image"
2+
import { Center, Flex } from "@/components/ui/flex"
23

3-
import { ButtonLink } from "@/components/Buttons"
4-
import { Image } from "@/components/Image"
4+
import { ButtonLink } from "../ui/buttons/Button"
55

66
import WalkingImage from "@/public/images/translatathon/walking.png"
77

88
export const TranslationHubCallout = ({ children }) => {
99
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">
10+
<Flex className="w-full flex-col items-stretch gap-8 bg-background-highlight p-8 lg:flex-row">
11+
<Flex className="w-full flex-col">
1912
{children}
2013
<Flex>
2114
<ButtonLink href="/contributing/translation-program/translatathon/translatathon-hubs">
2215
Find out more on hubs
2316
</ButtonLink>
2417
</Flex>
2518
</Flex>
26-
<Center w="full">
27-
<Image
19+
<Center className="w-full">
20+
<TwImage
2821
src={WalkingImage}
2922
alt=""
30-
maxW={265}
3123
style={{ objectFit: "contain" }}
24+
className="max-w-[265px]"
3225
/>
3326
</Center>
3427
</Flex>

0 commit comments

Comments
 (0)