File tree Expand file tree Collapse file tree 1 file changed +17
-31
lines changed
src/components/Translatathon Expand file tree Collapse file tree 1 file changed +17
-31
lines changed Original file line number Diff line number Diff line change 1
- import { Box , Flex , Text } from "@chakra-ui/react"
2
-
3
1
import { ButtonLink } from "@/components/Buttons"
4
2
5
3
import Emoji from "../Emoji"
@@ -75,46 +73,34 @@ const localCommunitiesData = [
75
73
76
74
export const LocalCommunitiesList = ( ) => {
77
75
return (
78
- < Flex gap = { 4 } direction = "column ">
76
+ < div className = "flex flex-col gap-4 ">
79
77
{ localCommunitiesData . map ( ( community , index ) => (
80
- < Flex
81
- bg = "background.highlight"
78
+ < div
82
79
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-background-highlight p-6 md:flex-row"
87
81
>
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 >
104
90
< ButtonLink
105
91
href = { community . lumaLink }
106
92
variant = "outline"
107
93
color = "body.base"
108
94
>
109
95
Register here
110
96
</ ButtonLink >
111
- </ Flex >
112
- </ Flex >
113
- < Flex minW = "90 ">
97
+ </ div >
98
+ </ div >
99
+ < div className = "min-w-[90px] ">
114
100
< Emoji className = "text-[90px]" text = { community . emojiString } />
115
- </ Flex >
116
- </ Flex >
101
+ </ div >
102
+ </ div >
117
103
) ) }
118
- </ Flex >
104
+ </ div >
119
105
)
120
106
}
You can’t perform that action at this time.
0 commit comments