Skip to content

Commit

Permalink
Merge pull request #14412 from Sambit03/migrate-Translatathon/Transla…
Browse files Browse the repository at this point in the history
…tionHubCallout

Migrate TranslationHubCallout.tsx to custom UI components and Shadcn/Tailwindcss
  • Loading branch information
pettinarip authored Dec 26, 2024
2 parents 47bb5d7 + 912f132 commit 0a0da82
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions src/components/Translatathon/TranslationHubCallout.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
import { Center, Flex } from "@chakra-ui/react"
import { TwImage } from "@/components/Image"
import { Center, Flex } from "@/components/ui/flex"

import { ButtonLink } from "@/components/Buttons"
import { Image } from "@/components/Image"
import { ButtonLink } from "../ui/buttons/Button"

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

export const TranslationHubCallout = ({ children }) => {
return (
<Flex
w="full"
align="stretch"
bg="background.highlight"
direction={{ base: "column", lg: "row" }}
p={8}
gap={8}
>
<Flex w="full" direction="column">
<Flex className="w-full flex-col items-stretch gap-8 bg-background-highlight p-8 lg:flex-row">
<Flex className="w-full flex-col">
{children}
<Flex>
<ButtonLink href="/contributing/translation-program/translatathon/translatathon-hubs">
Find out more on hubs
</ButtonLink>
</Flex>
</Flex>
<Center w="full">
<Image
<Center className="w-full">
<TwImage
src={WalkingImage}
alt=""
maxW={265}
style={{ objectFit: "contain" }}
className="max-w-[265px]"
/>
</Center>
</Flex>
Expand Down

0 comments on commit 0a0da82

Please sign in to comment.