1
- import { Flex , Heading , Text } from "@chakra-ui/react"
2
-
3
- import { ButtonLink } from "@/components/Buttons"
4
- import { Image } from "@/components/Image"
5
-
6
- import Link from "../Link"
1
+ import { TwImage } from "@/components/Image"
2
+ import { ButtonLink } from "@/components/ui/buttons/Button"
3
+ import { Flex } from "@/components/ui/flex"
4
+ import Link from "@/components/ui/Link"
7
5
8
6
import dogeImage from "@/public/images/doge-computer.png"
9
7
import futureImage from "@/public/images/future_transparent.png"
10
8
import settlementImage from "@/public/images/translatathon/settlement.png"
11
9
12
10
export const TranslatathonInANutshell = ( ) => {
13
11
return (
14
- < Flex
15
- direction = "column"
16
- py = { 16 }
17
- px = { 8 }
18
- bgGradient = "linear-gradient(
19
- 49.21deg,
20
- rgba(127, 127, 213, 0.2) 19.87%,
21
- rgba(134, 168, 231, 0.2) 58.46%,
22
- rgba(145, 234, 228, 0.2) 97.05%
23
- )"
24
- >
25
- < Flex m = "auto" >
26
- < Heading as = "h2" fontSize = "3xl" mb = { 8 } >
27
- Translatathon essentials
28
- </ Heading >
12
+ < Flex className = "flex-col bg-gradient-to-r from-[#7f7fd5]/20 via-[#86a8e7]/20 to-[#91eae4]/20 px-8 py-16" >
13
+ < Flex className = "m-auto" >
14
+ < h2 className = "mb-8 text-3xl" > Translatathon essentials</ h2 >
29
15
</ Flex >
30
- < Flex
31
- w = "full"
32
- direction = { { base : "column" , md : "row" } }
33
- align = "flex-start"
34
- p = { 8 }
35
- gap = { 8 }
36
- >
37
- < Flex w = "full" direction = "column" gap = { 2 } alignSelf = "center" >
38
- < Heading as = "h3" fontSize = "2xl" >
39
- Earn points
40
- </ Heading >
41
- < Text >
16
+
17
+ < Flex className = "w-full flex-col items-start gap-8 p-8 md:flex-row" >
18
+ < Flex className = "w-full flex-col justify-center gap-2" >
19
+ < h3 className = "text-2xl" > Earn points</ h3 >
20
+ < p >
42
21
Translate ethereum.org and ecosystem content to earn points and
43
22
compete with other participants. 1 translated word = 1 point
44
- </ Text >
23
+ </ p >
45
24
</ Flex >
46
- < Flex w = " full" justifyContent = " center">
47
- < Image
25
+ < Flex className = "w- full justify- center">
26
+ < TwImage
48
27
src = { settlementImage }
49
28
alt = ""
50
- w = " 327"
29
+ width = { 327 }
51
30
style = { { objectFit : "contain" } }
52
31
/>
53
32
</ Flex >
54
33
</ Flex >
55
- < Flex
56
- w = "full"
57
- direction = { { base : "column-reverse" , md : "row" } }
58
- align = "flex-start"
59
- p = { 8 }
60
- gap = { 8 }
61
- >
62
- < Flex w = "full" justifyContent = "center" >
63
- < Image
34
+
35
+ < Flex className = "w-full flex-col-reverse items-start gap-8 p-8 md:flex-row" >
36
+ < Flex className = "w-full justify-center" >
37
+ < TwImage
64
38
src = { futureImage }
65
39
alt = ""
66
- w = " 327"
40
+ width = { 327 }
67
41
style = { { objectFit : "contain" } }
68
42
/>
69
43
</ Flex >
70
- < Flex w = "full" direction = "column" gap = { 2 } alignSelf = "center" >
71
- < Heading as = "h3" fontSize = "2xl" >
72
- Human translations only
73
- </ Heading >
74
- < Text >
44
+ < Flex className = "w-full flex-col justify-center gap-2" >
45
+ < h3 className = "text-2xl" > Human translations only</ h3 >
46
+ < p >
75
47
Using machine translation is forbidden! All translations will be
76
48
reviewed and evaluated, and participants using machine translation
77
49
will be automatically disqualified and not be eligible to claim
@@ -80,36 +52,30 @@ export const TranslatathonInANutshell = () => {
80
52
terms and conditions
81
53
</ Link >
82
54
)
83
- </ Text >
55
+ </ p >
84
56
</ Flex >
85
57
</ Flex >
86
- < Flex
87
- w = "full"
88
- direction = { { base : "column" , md : "row" } }
89
- align = "flex-start"
90
- p = { 8 }
91
- gap = { 8 }
92
- >
93
- < Flex w = "full" direction = "column" gap = { 2 } alignSelf = "center" >
94
- < Heading as = "h3" fontSize = "2xl" >
95
- Focus on untranslated lines only
96
- </ Heading >
97
- < Text >
58
+
59
+ < Flex className = "w-full flex-col items-start gap-8 p-8 md:flex-row" >
60
+ < Flex className = "w-full flex-col justify-center gap-2" >
61
+ < h3 className = "text-2xl" > Focus on untranslated lines only</ h3 >
62
+ < p >
98
63
Translate strings that do not have any suggested translations yet.
99
64
Do not translate strings that have already been translated and
100
65
approved
101
- </ Text >
66
+ </ p >
102
67
</ Flex >
103
- < Flex w = " full" justifyContent = " center">
104
- < Image
68
+ < Flex className = "w- full justify- center">
69
+ < TwImage
105
70
src = { dogeImage }
106
71
alt = ""
107
- w = " 327"
72
+ width = { 327 }
108
73
style = { { objectFit : "contain" } }
109
74
/>
110
75
</ Flex >
111
76
</ Flex >
112
- < Flex width = "full" justifyContent = "center" >
77
+
78
+ < Flex className = "w-full justify-center" >
113
79
< ButtonLink href = "/contributing/translation-program/translatathon/details" >
114
80
Details and rules
115
81
</ ButtonLink >
0 commit comments