Skip to content

Commit 481b6b3

Browse files
refactor(resources): update spacing for contribute section
1 parent 717ebfc commit 481b6b3

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

src/pages/[locale]/resources.tsx

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -195,41 +195,41 @@ const ResourcesPage = ({ txCostsMedianUsd }) => {
195195

196196
<Section
197197
id="contribute"
198-
className={cn(
199-
"before:absolute before:-inset-px before:bottom-0 before:z-hide before:rounded-[calc(theme(borderRadius.4xl)+1px)] before:content-['']", // Border/gradient positioning
200-
"before:bg-gradient-to-b before:from-primary-hover/[0.24] before:to-primary-hover/[0.08] before:dark:from-primary-hover/40 before:dark:to-primary-hover/20", // Border/gradient coloring
201-
"relative inset-0 rounded-4xl bg-background" // Paint background color over card portion
202-
)}
198+
className="relative rounded-4xl border border-body/5 bg-background"
203199
>
204-
<div className="mb-12 flex flex-col gap-y-8 rounded-4xl bg-radial-a px-8 py-12 lg:mb-32 xl:mb-36">
205-
<div className="flex flex-col gap-y-4 text-center">
206-
<h2>{t("page-resources-contribute-title")}</h2>
207-
<p>{t("page-resources-contribute-description")}</p>
208-
</div>
209-
<div className="mx-auto grid grid-cols-1 gap-16 md:grid-cols-2">
210-
{/* TODO: Add issue template for resource listing and redirect to new template */}
211-
<ButtonLink
212-
href={new URL(
213-
"issues/new?template=feature_request.yaml",
214-
GITHUB_REPO_URL
215-
).toString()}
216-
variant="outline"
217-
isSecondary
218-
>
219-
{t("page-resources-suggest-resource")}
220-
</ButtonLink>
221-
<ButtonLink
222-
href={new URL(
223-
"issues/new?template=bug_report.yaml",
224-
GITHUB_REPO_URL
225-
).toString()}
226-
variant="outline"
227-
isSecondary
228-
>
229-
<FaGithub /> {t("page-resources-found-bug")}
230-
</ButtonLink>
231-
</div>
232-
</div>
200+
<VStack className="rounded-4xl bg-radial-a px-4 py-6 md:py-12">
201+
<Stack className="max-w-xl gap-y-10 py-6 lg:max-w-[700px]">
202+
<div className="flex flex-col gap-y-4 text-center">
203+
<h2>{t("page-resources-contribute-title")}</h2>
204+
<p className="text-lg">
205+
{t("page-resources-contribute-description")}
206+
</p>
207+
</div>
208+
<div className="mx-auto grid grid-cols-1 gap-x-3 gap-y-4 md:grid-cols-2">
209+
{/* TODO: Add issue template for resource listing and redirect to new template */}
210+
<ButtonLink
211+
href={new URL(
212+
"issues/new?template=feature_request.yaml",
213+
GITHUB_REPO_URL
214+
).toString()}
215+
variant="outline"
216+
isSecondary
217+
>
218+
{t("page-resources-suggest-resource")}
219+
</ButtonLink>
220+
<ButtonLink
221+
href={new URL(
222+
"issues/new?template=bug_report.yaml",
223+
GITHUB_REPO_URL
224+
).toString()}
225+
variant="outline"
226+
isSecondary
227+
>
228+
<FaGithub /> {t("page-resources-found-bug")}
229+
</ButtonLink>
230+
</div>
231+
</Stack>
232+
</VStack>
233233
</Section>
234234
</Stack>
235235
</MainArticle>

0 commit comments

Comments
 (0)