Skip to content

Commit ba1466a

Browse files
committed
emoji support for localcommunities
1 parent 7923b16 commit ba1466a

File tree

3 files changed

+15
-71
lines changed

3 files changed

+15
-71
lines changed
-4.19 KB
Binary file not shown.

src/components/Translatathon/LocalCommunitiesList.tsx

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,15 @@
11
import { Box, Flex, Text } from "@chakra-ui/react"
22

33
import { ButtonLink } from "@/components/Buttons"
4-
import { Image } from "@/components/Image"
54

6-
import KipuLogo from "@/public/images/translatathon/kipu-logo.png"
5+
import Emoji from "../Emoji"
76

87
const localCommunitiesData = [
98
{
109
organizer: "ETH Kypo",
1110
description:
1211
"ETH Kipu is an organization dedicated to supporting the Ethereum ecosystem in Latin America.",
13-
logo: KipuLogo,
14-
lumaLink: "https://example.com",
15-
location: "🇦🇷 Buenos Aires, Argentina",
16-
},
17-
{
18-
organizer: "ETH Kypo",
19-
description:
20-
"ETH Kipu is an organization dedicated to supporting the Ethereum ecosystem in Latin America.",
21-
logo: KipuLogo,
22-
lumaLink: "https://example.com",
23-
location: "🇦🇷 Buenos Aires, Argentina",
24-
},
25-
{
26-
organizer: "ETH Kypo",
27-
description:
28-
"ETH Kipu is an organization dedicated to supporting the Ethereum ecosystem in Latin America.",
29-
logo: KipuLogo,
30-
lumaLink: "https://example.com",
31-
location: "🇦🇷 Buenos Aires, Argentina",
32-
},
33-
{
34-
organizer: "ETH Kypo",
35-
description:
36-
"ETH Kipu is an organization dedicated to supporting the Ethereum ecosystem in Latin America.",
37-
logo: KipuLogo,
38-
lumaLink: "https://example.com",
39-
location: "🇦🇷 Buenos Aires, Argentina",
40-
},
41-
{
42-
organizer: "ETH Kypo",
43-
description:
44-
"ETH Kipu is an organization dedicated to supporting the Ethereum ecosystem in Latin America.",
45-
logo: KipuLogo,
46-
lumaLink: "https://example.com",
47-
location: "🇦🇷 Buenos Aires, Argentina",
48-
},
49-
{
50-
organizer: "ETH Kypo",
51-
description:
52-
"ETH Kipu is an organization dedicated to supporting the Ethereum ecosystem in Latin America.",
53-
logo: KipuLogo,
54-
lumaLink: "https://example.com",
55-
location: "🇦🇷 Buenos Aires, Argentina",
56-
},
57-
{
58-
organizer: "ETH Kypo",
59-
description:
60-
"ETH Kipu is an organization dedicated to supporting the Ethereum ecosystem in Latin America.",
61-
logo: KipuLogo,
12+
emojiString: ":peru:",
6213
lumaLink: "https://example.com",
6314
location: "🇦🇷 Buenos Aires, Argentina",
6415
},
@@ -105,13 +56,7 @@ export const LocalCommunitiesList = () => {
10556
</Flex>
10657
</Flex>
10758
<Flex minW="90">
108-
<Image
109-
src={community.logo}
110-
alt={community.organizer}
111-
width="90"
112-
height="130"
113-
style={{ objectFit: "contain" }}
114-
/>
59+
<Emoji fontSize={90} text={community.emojiString} />
11560
</Flex>
11661
</Flex>
11762
))}

src/layouts/Translatathon.tsx

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const TranslatathonLayout = ({
161161
matomo: {
162162
eventCategory: "translatathon menu",
163163
eventAction: "click",
164-
eventName: "translatathon hub",
164+
eventName: "translatathon translatathon hub",
165165
},
166166
},
167167
{
@@ -170,7 +170,7 @@ export const TranslatathonLayout = ({
170170
matomo: {
171171
eventCategory: "translatathon menu",
172172
eventAction: "click",
173-
eventName: "details and submission criteria",
173+
eventName: "translatathon details and submission criteria",
174174
},
175175
},
176176
{
@@ -179,19 +179,18 @@ export const TranslatathonLayout = ({
179179
matomo: {
180180
eventCategory: "translatathon menu",
181181
eventAction: "click",
182-
eventName: "terms and conditions",
182+
eventName: "translatathon terms and conditions",
183+
},
184+
},
185+
{
186+
text: "Local communities",
187+
href: "/contributing/translation-program/translatathon/local-communities",
188+
matomo: {
189+
eventCategory: "translatathon menu",
190+
eventAction: "click",
191+
eventName: "translatathon local communities",
183192
},
184193
},
185-
// TODO: Add back in when this page is ready
186-
// {
187-
// text: "Local communities",
188-
// to: "/translatathon/local-communities",
189-
// matomo: {
190-
// eventCategory: "translatathon menu",
191-
// eventAction: "click",
192-
// eventName: "local communities",
193-
// },
194-
// },
195194
],
196195
}
197196

0 commit comments

Comments
 (0)