|
| 1 | +import { HTMLAttributes } from "react" |
1 | 2 | import type { GetStaticProps } from "next/types"
|
2 | 3 | import { useTranslation } from "next-i18next"
|
3 | 4 | import { serverSideTranslations } from "next-i18next/serverSideTranslations"
|
@@ -83,23 +84,13 @@ import whatIsEthereum from "@/public/images/what-is-ethereum.png"
|
83 | 84 |
|
84 | 85 | const Row = (props: ChildOnlyProp) => (
|
85 | 86 | <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))]" |
90 | 88 | {...props}
|
91 | 89 | />
|
92 | 90 | )
|
93 | 91 |
|
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} /> |
103 | 94 | )
|
104 | 95 |
|
105 | 96 | const H3 = (props: ChildOnlyProp) => (
|
@@ -169,7 +160,7 @@ const AssetsPage = () => {
|
169 | 160 | </Center>
|
170 | 161 | </Flex>
|
171 | 162 |
|
172 |
| - <H2>{t("page-assets-illustrations")}</H2> |
| 163 | + <H2 id="illustrations">{t("page-assets-illustrations")}</H2> |
173 | 164 |
|
174 | 165 | <Row>
|
175 | 166 | <AssetDownload
|
@@ -368,8 +359,8 @@ const AssetsPage = () => {
|
368 | 359 | artistUrl="https://www.patrickatkins.co.uk/"
|
369 | 360 | />
|
370 | 361 | </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> |
373 | 364 | <H3>{t("page-assets-page-assets-transparent-background")}</H3>
|
374 | 365 | <Row>
|
375 | 366 | <AssetDownload
|
@@ -535,7 +526,7 @@ const AssetsPage = () => {
|
535 | 526 | svgUrl="/images/assets/svgs/ethereum-wordmark-purple-white.svg"
|
536 | 527 | />
|
537 | 528 | </Row>
|
538 |
| - <H2>{t("page-assets-illustrations")}</H2> |
| 529 | + <H2 id="historical-illustrations">{t("page-assets-illustrations")}</H2> |
539 | 530 | <Row>
|
540 | 531 | <AssetDownload
|
541 | 532 | title={t("page-assets-hero-panda")}
|
|
0 commit comments