Skip to content

Commit

Permalink
Merge pull request #14046 from 0xgun/migrate-ApplyNow
Browse files Browse the repository at this point in the history
 Migrate ApplyNow Components to shadcn/Tailwind
  • Loading branch information
pettinarip authored Oct 10, 2024
2 parents 3b683d5 + 20d3f86 commit 21748e3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/Translatathon/ApplyNow.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Box, Flex } from "@chakra-ui/react"

import { ButtonLink } from "@/components/Buttons"
import Callout from "@/components/Callout"

import { ButtonLink } from "../ui/buttons/Button"
import { Flex } from "../ui/flex"

import { APPLICATION_END_DATE, APPLICATION_URL } from "./constants"

import DolphinImage from "@/public/images/translatathon/translatathon_dolphin.png"
Expand All @@ -15,20 +15,20 @@ export const ApplyNow = () => {

if (dateToday < deadline) {
return (
<Box pt={12}>
<div className="pt-12">
<Callout
flex="1 1 416px"
className="flex-1 flex-shrink basis-[416px]"
image={DolphinImage}
titleKey="page-translatathon:translatathon-apply-now"
descriptionKey="page-translatathon:translatathon-apply-now-desc"
alignItems="center"
textAlign="center"
>
<Flex m="auto">
<Flex className="m-auto">
<ButtonLink href={APPLICATION_URL}>Apply now</ButtonLink>
</Flex>
</Callout>
</Box>
</div>
)
} else {
return <></>
Expand Down

0 comments on commit 21748e3

Please sign in to comment.