@@ -144,40 +144,45 @@ const ResourcesPage = ({ txCostsMedianUsd }) => {
144
144
) ) }
145
145
</ nav >
146
146
</ div >
147
-
148
- { resourceSections . map ( ( { key, icon, title : sectionTitle , boxes } ) => (
149
- < section id = { key } key = { key } className = "mb-16 scroll-mt-40" >
150
- < div className = "group flex w-full items-center gap-3 border-b bg-transparent px-4 py-6" >
151
- < div className = "grid size-12 place-items-center rounded-lg border border-border-low-contrast text-2xl [&_svg]:shrink-0" >
152
- { icon || < StackIcon /> }
153
- </ div >
154
- < h2 className = "flex-1 text-start font-black" > { sectionTitle } </ h2 >
155
- </ div >
156
- < div className = "grid grid-cols-1 gap-8 px-4 pb-12 pt-8 md:pb-12 md:pt-8 lg:grid-cols-2" >
157
- { boxes . map ( ( { title, metric, items, className } ) => (
158
- < div
159
- className = { cn (
160
- "overflow-hidden rounded-2xl border shadow-lg" ,
161
- className
162
- ) }
163
- key = { title }
164
- >
165
- < div className = "border-b bg-[#ffffff] px-6 py-4 font-bold dark:bg-[#171717]" >
166
- { title }
167
- </ div >
168
- < div className = "h-full bg-background bg-gradient-to-br from-white to-primary/10 px-2 py-6 dark:from-transparent dark:to-primary/10" >
169
- { metric && metric }
170
- < ResourcesContainer >
171
- { items . map ( ( item ) => (
172
- < ResourceItem item = { item } key = { item . title } />
173
- ) ) }
174
- </ ResourcesContainer >
147
+ < Stack className = "gap-11 pt-12 md:gap-16 lg:gap-24" >
148
+ { resourceSections . map ( ( { key, icon, title : sectionTitle , boxes } ) => (
149
+ < Stack key = { key } asChild >
150
+ < section id = { key } className = "scroll-mt-40 gap-8 md:gap-6" >
151
+ < div className = "group flex w-full items-center gap-4 border-b bg-transparent px-2 py-4" >
152
+ < div className = "grid size-12 place-items-center rounded-lg border border-border-low-contrast text-2xl [&_svg]:shrink-0" >
153
+ { icon || < StackIcon /> }
175
154
</ div >
155
+ < h2 className = "flex-1 text-start font-black" >
156
+ { sectionTitle }
157
+ </ h2 >
176
158
</ div >
177
- ) ) }
178
- </ div >
179
- </ section >
180
- ) ) }
159
+ < div className = "grid grid-cols-1 gap-8 lg:grid-cols-2 lg:gap-y-6" >
160
+ { boxes . map ( ( { title, metric, items, className } ) => (
161
+ < div
162
+ className = { cn (
163
+ "overflow-hidden rounded-2xl border shadow-lg" ,
164
+ className
165
+ ) }
166
+ key = { title }
167
+ >
168
+ < div className = "border-b bg-[#ffffff] px-6 py-4 font-bold dark:bg-[#171717]" >
169
+ { title }
170
+ </ div >
171
+ < div className = "h-full bg-background bg-gradient-to-br from-white to-primary/10 px-2 py-6 dark:from-transparent dark:to-primary/10" >
172
+ { metric && metric }
173
+ < ResourcesContainer >
174
+ { items . map ( ( item ) => (
175
+ < ResourceItem item = { item } key = { item . title } />
176
+ ) ) }
177
+ </ ResourcesContainer >
178
+ </ div >
179
+ </ div >
180
+ ) ) }
181
+ </ div >
182
+ </ section >
183
+ </ Stack >
184
+ ) ) }
185
+ </ Stack >
181
186
182
187
< div className = "mb-20 text-center" >
183
188
< Translation id = "page-resources:page-resources-find-more" />
0 commit comments