|
1 | 1 | import { useRouter } from "next/router"
|
2 | 2 | import { FaDiscord } from "react-icons/fa"
|
3 |
| -import { Heading, Icon, Text } from "@chakra-ui/react" |
4 | 3 |
|
5 | 4 | import type { Lang } from "@/lib/types"
|
6 | 5 |
|
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" |
9 | 9 |
|
10 | 10 | import { cn } from "@/lib/utils/cn"
|
11 | 11 | import { trackCustomEvent } from "@/lib/utils/matomo"
|
12 | 12 | import { getLocaleTimestamp } from "@/lib/utils/time"
|
13 | 13 |
|
14 |
| -import { Flex } from "../ui/flex" |
15 |
| - |
16 | 14 | const matomoEvent = (buttonType: string) => {
|
17 | 15 | trackCustomEvent({
|
18 | 16 | eventCategory: "TranslatathonCalender",
|
@@ -65,31 +63,23 @@ export const TranslatathonCalendar = () => {
|
65 | 63 | "bg-gradient-to-r from-accent-a/10 to-accent-c/10 dark:from-accent-a/20 dark:to-accent-c-hover/20"
|
66 | 64 | )}
|
67 | 65 | >
|
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> |
72 | 68 | Join us on the ethereum.org Discord for a series of onboarding calls
|
73 | 69 | and workshops where we’ll cover everything you need to know about the
|
74 | 70 | Translatathon, walk through using Crowdin and answer any questions you
|
75 | 71 | 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" /> |
83 | 75 | Join Discord
|
84 | 76 | </ButtonLink>
|
85 | 77 | </Flex>
|
86 | 78 | <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> |
90 | 80 | {events.map((event, index) => (
|
91 | 81 | <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> |
93 | 83 | <InlineLink href={event.calendarLink}>{event.title}</InlineLink>
|
94 | 84 | </Flex>
|
95 | 85 | ))}
|
|
0 commit comments