From 53420ede873479ed1f801acf9924e38feff5c1ae Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Sat, 8 Oct 2022 09:53:09 -0600 Subject: [PATCH] refactor to use theme --- src/components/UI/downloads/DownloadsHero.tsx | 141 ++++-------------- .../UI/downloads/DownloadsSection.tsx | 27 ++-- .../UI/downloads/DownloadsTable.tsx | 88 ++++------- src/pages/downloads.tsx | 54 ++----- src/theme/foundations/index.ts | 1 + src/theme/foundations/shadows.ts | 3 + src/theme/index.ts | 16 +- 7 files changed, 103 insertions(+), 227 deletions(-) create mode 100644 src/theme/foundations/shadows.ts diff --git a/src/components/UI/downloads/DownloadsHero.tsx b/src/components/UI/downloads/DownloadsHero.tsx index 488171096b..4b492b5f55 100644 --- a/src/components/UI/downloads/DownloadsHero.tsx +++ b/src/components/UI/downloads/DownloadsHero.tsx @@ -1,4 +1,4 @@ -import { Box, Button, Heading, Image, Link, Stack, HStack, Text } from '@chakra-ui/react'; +import { Box, Button, Image, Link, Stack, HStack, Text } from '@chakra-ui/react'; import { FC } from 'react'; import NextLink from 'next/link'; @@ -28,17 +28,12 @@ export const DownloadsHero: FC = ({ - Download go-ethereum - + = ({ {currentBuildName} ({currentBuildVersion}) - + You can download the latest 64-bit stable release of Geth for our primary platforms below. Packages for all supported platforms, as well as develop builds, can be found further down the page. If you're looking to install Geth and/or associated tools via your favorite package manager, please check our installation guide. + - + These are the develop snapshots of go-ethereum, updated automatically when a new commit is pushed into our{' '} { - + - + All the binaries available from this page are signed via our build server PGP keys: @@ -215,7 +191,7 @@ const DownloadsPage: NextPage = ({}) => { - + You can import the build server public keys by grabbing the individual keys directly from the keyserver network: @@ -226,7 +202,7 @@ const DownloadsPage: NextPage = ({}) => { - + Similarly you can import all the developer public keys by grabbing them directly from the keyserver network: @@ -237,7 +213,7 @@ const DownloadsPage: NextPage = ({}) => { - + From the download listings above you should see a link both to the downloadable archives as well as detached signature files. To verify the authenticity of any downloaded data, grab both files and then run: diff --git a/src/theme/foundations/index.ts b/src/theme/foundations/index.ts index 06d0f4f4f0..b0e872689b 100644 --- a/src/theme/foundations/index.ts +++ b/src/theme/foundations/index.ts @@ -1,2 +1,3 @@ export * from './colors'; +export * from './shadows'; export * from './sizes'; diff --git a/src/theme/foundations/shadows.ts b/src/theme/foundations/shadows.ts new file mode 100644 index 0000000000..d870a80e6b --- /dev/null +++ b/src/theme/foundations/shadows.ts @@ -0,0 +1,3 @@ +export const shadows = { + linkBoxShadow: '0 0 0 1px #11866f !important' +} \ No newline at end of file diff --git a/src/theme/index.ts b/src/theme/index.ts index ee49f0ac91..69069c2030 100644 --- a/src/theme/index.ts +++ b/src/theme/index.ts @@ -1,6 +1,6 @@ import { extendTheme } from '@chakra-ui/react'; -import { colors, sizes } from './foundations'; +import { colors, shadows, sizes } from './foundations'; import { Button, Link } from './components'; const overrides = { @@ -9,6 +9,7 @@ const overrides = { Button, Link }, + shadows, sizes, styles: { global: () => ({ @@ -65,6 +66,19 @@ const overrides = { fontSize: '13px', fontFamily: '"Inter", sans-serif' }, + 'downloads-button-label': { + fontFamily:'"JetBrains Mono", monospace', + color:'yellow.50', + fontSize:'xs', + textTransform:'uppercase', + }, + 'download-tab-label': { + fontFamily: '"JetBrains Mono", monospace', + fontWeight: 700, + textTransform: 'uppercase', + textAlign: 'center', + fontSize: 'sm', + }, // TODO: refactor w/ semantic tokens for light/dark mode 'link-light': {}, // TODO: refactor w/ semantic tokens for light/dark mode