Skip to content

Commit 329ed4f

Browse files
committed
Migrate Translatathon/TranslatathonCalendar.tsx to Shadcn/Tailwind
1 parent f08e001 commit 329ed4f

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

src/components/Translatathon/TranslatathonCalendar.tsx

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
import { useRouter } from "next/router"
22
import { FaDiscord } from "react-icons/fa"
3-
import { Heading, Icon, Text } from "@chakra-ui/react"
43

54
import type { Lang } from "@/lib/types"
65

7-
import { ButtonLink } from "@/components/Buttons"
8-
import InlineLink from "@/components/Link"
6+
import { ButtonLink } from "@/components/ui/buttons/Button"
7+
import { Flex } from "@/components/ui/flex"
8+
import InlineLink from "@/components/ui/Link"
99

1010
import { cn } from "@/lib/utils/cn"
1111
import { trackCustomEvent } from "@/lib/utils/matomo"
1212
import { getLocaleTimestamp } from "@/lib/utils/time"
1313

14-
import { Flex } from "../ui/flex"
15-
1614
const matomoEvent = (buttonType: string) => {
1715
trackCustomEvent({
1816
eventCategory: "TranslatathonCalender",
@@ -65,31 +63,23 @@ export const TranslatathonCalendar = () => {
6563
"bg-gradient-to-r from-accent-a/10 to-accent-c/10 dark:from-accent-a/20 dark:to-accent-c-hover/20"
6664
)}
6765
>
68-
<Heading as="h3" fontSize="2xl">
69-
Translatathon calls
70-
</Heading>
71-
<Text>
66+
<h3 className="text-2xl font-bold">Translatathon calls</h3>
67+
<p>
7268
Join us on the ethereum.org Discord for a series of onboarding calls
7369
and workshops where we’ll cover everything you need to know about the
7470
Translatathon, walk through using Crowdin and answer any questions you
7571
might have.
76-
</Text>
77-
<ButtonLink
78-
href="/discord/"
79-
gap={2}
80-
onClick={() => matomoEvent("discord")}
81-
>
82-
<Icon as={FaDiscord} fontSize={25} />
72+
</p>
73+
<ButtonLink href="/discord/" onClick={() => matomoEvent("discord")}>
74+
<FaDiscord className="text-2xl" />
8375
Join Discord
8476
</ButtonLink>
8577
</Flex>
8678
<Flex className="w-full flex-col bg-background-highlight p-8 lg:w-1/2">
87-
<Text fontSize="lg" fontWeight="bold" mb={2}>
88-
Translatathon calls
89-
</Text>
79+
<p className="mb-2 text-lg font-bold">Translatathon calls</p>
9080
{events.map((event, index) => (
9181
<Flex className="mb-4 gap-6" key={index}>
92-
<Text>{getLocaleTimestamp(locale! as Lang, event.date)}</Text>
82+
<p>{getLocaleTimestamp(locale! as Lang, event.date)}</p>
9383
<InlineLink href={event.calendarLink}>{event.title}</InlineLink>
9484
</Flex>
9585
))}

0 commit comments

Comments
 (0)