Skip to content

Commit 3584ae3

Browse files
committed
little changes
1 parent b00f1f0 commit 3584ae3

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

src/pages/assets.tsx

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { HTMLAttributes } from "react"
12
import type { GetStaticProps } from "next/types"
23
import { useTranslation } from "next-i18next"
34
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
@@ -83,23 +84,13 @@ import whatIsEthereum from "@/public/images/what-is-ethereum.png"
8384

8485
const Row = (props: ChildOnlyProp) => (
8586
<div
86-
className="-mx-4 mb-8 grid"
87-
style={{
88-
gridTemplateColumns: "repeat(auto-fit, minmax(min(288px, 100%), 1fr))",
89-
}}
87+
className="-mx-4 mb-8 grid grid-cols-[repeat(auto-fit,minmax(min(288px,100%),1fr))]"
9088
{...props}
9189
/>
9290
)
9391

94-
const H2 = (props: ChildOnlyProp) => (
95-
<Heading
96-
fontSize={{ base: "2xl", md: "3xl" }}
97-
lineHeight={1.4}
98-
mt={16}
99-
mb="6"
100-
scrollMarginTop={24}
101-
{...props}
102-
/>
92+
const H2 = (props: HTMLAttributes<HTMLHeadingElement>) => (
93+
<h2 className="mb-6 mt-16 scroll-mt-24 leading-xs" {...props} />
10394
)
10495

10596
const H3 = (props: ChildOnlyProp) => (
@@ -169,7 +160,7 @@ const AssetsPage = () => {
169160
</Center>
170161
</Flex>
171162

172-
<H2>{t("page-assets-illustrations")}</H2>
163+
<H2 id="illustrations">{t("page-assets-illustrations")}</H2>
173164

174165
<Row>
175166
<AssetDownload
@@ -368,8 +359,8 @@ const AssetsPage = () => {
368359
artistUrl="https://www.patrickatkins.co.uk/"
369360
/>
370361
</Row>
371-
<H2>{t("page-assets-historical-artwork")}</H2>
372-
<H2>{t("page-assets-ethereum-brand-assets")}</H2>
362+
<H2 id="historical">{t("page-assets-historical-artwork")}</H2>
363+
<H2 id="brand">{t("page-assets-ethereum-brand-assets")}</H2>
373364
<H3>{t("page-assets-page-assets-transparent-background")}</H3>
374365
<Row>
375366
<AssetDownload
@@ -535,7 +526,7 @@ const AssetsPage = () => {
535526
svgUrl="/images/assets/svgs/ethereum-wordmark-purple-white.svg"
536527
/>
537528
</Row>
538-
<H2>{t("page-assets-illustrations")}</H2>
529+
<H2 id="historical-illustrations">{t("page-assets-illustrations")}</H2>
539530
<Row>
540531
<AssetDownload
541532
title={t("page-assets-hero-panda")}

0 commit comments

Comments
 (0)