Skip to content

Commit c8ee186

Browse files
committed
Refactor LocalCommunitiesList component to use Tailwind CSS classes
1 parent c9a5708 commit c8ee186

File tree

1 file changed

+17
-31
lines changed

1 file changed

+17
-31
lines changed

src/components/Translatathon/LocalCommunitiesList.tsx

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Box, Flex, Text } from "@chakra-ui/react"
2-
31
import { ButtonLink } from "@/components/Buttons"
42

53
import Emoji from "../Emoji"
@@ -75,46 +73,34 @@ const localCommunitiesData = [
7573

7674
export const LocalCommunitiesList = () => {
7775
return (
78-
<Flex gap={4} direction="column">
76+
<div className="flex flex-col gap-4">
7977
{localCommunitiesData.map((community, index) => (
80-
<Flex
81-
bg="background.highlight"
78+
<div
8279
key={index}
83-
direction={{ base: "column-reverse", md: "row" }}
84-
p={6}
85-
gap={8}
86-
justifyContent={"space-between"}
80+
className="flex flex-col-reverse justify-between gap-8 bg-gray-100 p-6 md:flex-row dark:bg-gray-900"
8781
>
88-
<Flex direction="column" gap={6}>
89-
<Flex
90-
borderRadius={80}
91-
bg="background.base"
92-
px={5}
93-
py={1}
94-
w="fit-content"
95-
>
96-
<Text fontWeight="bold">{community.location}</Text>
97-
</Flex>
98-
<Box>
99-
<Text size="lg" fontWeight="bold">
100-
{community.eventName}
101-
</Text>
102-
</Box>
103-
<Flex>
82+
<div className="flex flex-col gap-6">
83+
<div className="flex w-fit items-center rounded-full bg-white px-5 py-1 dark:bg-black">
84+
<p className="font-bold">{community.location} </p>
85+
</div>
86+
<div>
87+
<p className="text-lg font-bold">{community.eventName}</p>
88+
</div>
89+
<div>
10490
<ButtonLink
10591
href={community.lumaLink}
10692
variant="outline"
10793
color="body.base"
10894
>
10995
Register here
11096
</ButtonLink>
111-
</Flex>
112-
</Flex>
113-
<Flex minW="90">
97+
</div>
98+
</div>
99+
<div className="min-w-[90px]">
114100
<Emoji className="text-[90px]" text={community.emojiString} />
115-
</Flex>
116-
</Flex>
101+
</div>
102+
</div>
117103
))}
118-
</Flex>
104+
</div>
119105
)
120106
}

0 commit comments

Comments
 (0)