Skip to content

Commit

Permalink
Merge pull request ethereum#14065 from 0xgun/migrate-LocalCommunities…
Browse files Browse the repository at this point in the history
…List

Migrate  `LocalCommunitiesList` to tailwind
  • Loading branch information
pettinarip authored Oct 28, 2024
2 parents 03f6e3c + 22527eb commit c596b5f
Showing 1 changed file with 17 additions and 31 deletions.
48 changes: 17 additions & 31 deletions src/components/Translatathon/LocalCommunitiesList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Box, Flex, Text } from "@chakra-ui/react"

import { ButtonLink } from "@/components/Buttons"

import Emoji from "../Emoji"
Expand Down Expand Up @@ -75,46 +73,34 @@ const localCommunitiesData = [

export const LocalCommunitiesList = () => {
return (
<Flex gap={4} direction="column">
<div className="flex flex-col gap-4">
{localCommunitiesData.map((community, index) => (
<Flex
bg="background.highlight"
<div
key={index}
direction={{ base: "column-reverse", md: "row" }}
p={6}
gap={8}
justifyContent={"space-between"}
className="flex flex-col-reverse justify-between gap-8 bg-background-highlight p-6 md:flex-row"
>
<Flex direction="column" gap={6}>
<Flex
borderRadius={80}
bg="background.base"
px={5}
py={1}
w="fit-content"
>
<Text fontWeight="bold">{community.location}</Text>
</Flex>
<Box>
<Text size="lg" fontWeight="bold">
{community.eventName}
</Text>
</Box>
<Flex>
<div className="flex flex-col gap-6">
<div className="flex w-fit items-center rounded-full bg-white px-5 py-1 dark:bg-black">
<p className="font-bold">{community.location} </p>
</div>
<div>
<p className="text-lg font-bold">{community.eventName}</p>
</div>
<div>
<ButtonLink
href={community.lumaLink}
variant="outline"
color="body.base"
>
Register here
</ButtonLink>
</Flex>
</Flex>
<Flex minW="90">
</div>
</div>
<div className="min-w-[90px]">
<Emoji className="text-[90px]" text={community.emojiString} />
</Flex>
</Flex>
</div>
</div>
))}
</Flex>
</div>
)
}

0 comments on commit c596b5f

Please sign in to comment.