theme cleanup

This commit is contained in:
Corwin Smith 2022-10-08 13:12:57 -06:00
parent 53420ede87
commit b845d71098
5 changed files with 39 additions and 46 deletions

@ -148,14 +148,7 @@ export const DownloadsHero: FC<DownloadsHero> = ({
<Link <Link
href={releaseNotesURL} href={releaseNotesURL}
isExternal isExternal
color='brand.light.primary' variant='href'
_hover={{ color: 'brand.light.body', textDecorationColor: 'brand.light.body' }}
_focus={{
color: 'brand.light.primary',
boxShadow: 'linkBoxShadow',
textDecoration: 'none'
}}
_pressed={{ color: 'brand.light.secondary', textDecorationColor: 'brand.light.secondary' }}
> >
Release notes for {currentBuildName} {currentBuildVersion} Release notes for {currentBuildName} {currentBuildVersion}
</Link> </Link>

@ -3,6 +3,7 @@ import { FC } from 'react';
interface Props { interface Props {
children?: React.ReactNode; children?: React.ReactNode;
id: string;
imgSrc?: string; imgSrc?: string;
imgAltText?: string; imgAltText?: string;
sectionTitle: string sectionTitle: string
@ -13,9 +14,10 @@ export const DownloadsSection: FC<Props> = ({
imgSrc, imgSrc,
imgAltText, imgAltText,
sectionTitle, sectionTitle,
id
}) => { }) => {
return ( return (
<Stack border='2px solid' borderColor='brand.light.primary'> <Stack border='2px solid' borderColor='brand.light.primary' id={id}>
{!!imgSrc && ( {!!imgSrc && (
<Stack alignItems='center' p={4} borderBottom='2px solid' borderColor='brand.light.primary'> <Stack alignItems='center' p={4} borderBottom='2px solid' borderColor='brand.light.primary'>
{/* TODO: use NextImage */} {/* TODO: use NextImage */}

@ -19,7 +19,11 @@ export const DownloadsTable: FC<Props> = ({
data data
}) => { }) => {
return ( return (
<Stack sx={{ mt: '0 !important' }} borderBottom='2px solid #11866f'> <Stack
sx={{ mt: '0 !important' }}
borderBottom='2px solid'
borderColor='brand.light.primary'
>
<Tabs variant='unstyled'> <Tabs variant='unstyled'>
<TabList <TabList
color='brand.light.primary' color='brand.light.primary'

@ -1,5 +1,4 @@
import { import {
Button,
Code, Code,
Link, Link,
ListItem, ListItem,
@ -45,6 +44,7 @@ const DownloadsPage: NextPage = ({}) => {
imgSrc='/images/pages/gopher-home-side-desktop.svg' imgSrc='/images/pages/gopher-home-side-desktop.svg'
imgAltText='Gopher facing right' imgAltText='Gopher facing right'
sectionTitle='Specific Versions' sectionTitle='Specific Versions'
id='specificversions'
> >
<Stack p={4}> <Stack p={4}>
<Text textStyle='quick-link-text'> <Text textStyle='quick-link-text'>
@ -72,16 +72,8 @@ const DownloadsPage: NextPage = ({}) => {
<Text textStyle='quick-link-text'> <Text textStyle='quick-link-text'>
Please select your desired platform from the lists below and download your bundle of choice. Please be aware that the MD5 checksums are provided by our binary hosting platform (Azure Blobstore) to help check for download errors. For security guarantees please verify any downloads via the attached PGP signature files (see{' '} Please select your desired platform from the lists below and download your bundle of choice. Please be aware that the MD5 checksums are provided by our binary hosting platform (Azure Blobstore) to help check for download errors. For security guarantees please verify any downloads via the attached PGP signature files (see{' '}
<Link <Link
href={''} href={'#pgpsignatures'}
isExternal variant='href'
color='#11866f'
_hover={{ color: '#1d242c', textDecorationColor: '#1d242c' }}
_focus={{
color: '#11866f',
boxShadow: '0 0 0 1px #11866f !important',
textDecoration: 'none'
}}
_pressed={{ color: '#25453f', textDecorationColor: '#25453f' }}
> >
OpenPGP OpenPGP
</Link>{' '} </Link>{' '}
@ -90,21 +82,14 @@ const DownloadsPage: NextPage = ({}) => {
</Stack> </Stack>
</DownloadsSection> </DownloadsSection>
<DownloadsSection sectionTitle='Stable releases'> <DownloadsSection sectionTitle='Stable releases' id='stablereleases'>
<Stack p={4} borderBottom='2px solid #11866f'> <Stack p={4} borderBottom='2px solid' borderColor='brand.light.primary'>
<Text textStyle='quick-link-text'> <Text textStyle='quick-link-text'>
These are the current and previous stable releases of go-ethereum, updated automatically when a new version is tagged in our{' '} These are the current and previous stable releases of go-ethereum, updated automatically when a new version is tagged in our{' '}
<Link <Link
href={GETH_REPO_URL} href={GETH_REPO_URL}
isExternal isExternal
color='#11866f' variant='href'
_hover={{ color: '#1d242c', textDecorationColor: '#1d242c' }}
_focus={{
color: '#11866f',
boxShadow: '0 0 0 1px #11866f !important',
textDecoration: 'none'
}}
_pressed={{ color: '#25453f', textDecorationColor: '#25453f' }}
> >
GitHub repository. GitHub repository.
</Link> </Link>
@ -130,21 +115,14 @@ const DownloadsPage: NextPage = ({}) => {
</Stack> </Stack>
</DownloadsSection> </DownloadsSection>
<DownloadsSection sectionTitle='Develop builds'> <DownloadsSection sectionTitle='Develop builds' id='developbuilds'>
<Stack p={4} borderBottom='2px solid #11866f'> <Stack p={4} borderBottom='2px solid' borderColor='brand.light.primary'>
<Text textStyle='quick-link-text'> <Text textStyle='quick-link-text'>
These are the develop snapshots of go-ethereum, updated automatically when a new commit is pushed into our{' '} These are the develop snapshots of go-ethereum, updated automatically when a new commit is pushed into our{' '}
<Link <Link
href={GETH_REPO_URL} href={GETH_REPO_URL}
isExternal isExternal
color='#11866f' variant='href'
_hover={{ color: '#1d242c', textDecorationColor: '#1d242c' }}
_focus={{
color: '#11866f',
boxShadow: '0 0 0 1px #11866f !important',
textDecoration: 'none'
}}
_pressed={{ color: '#25453f', textDecorationColor: '#25453f' }}
> >
GitHub repository. GitHub repository.
</Link> </Link>
@ -170,8 +148,8 @@ const DownloadsPage: NextPage = ({}) => {
</Stack> </Stack>
</DownloadsSection> </DownloadsSection>
<DownloadsSection sectionTitle='OpenPGP Signatures'> <DownloadsSection sectionTitle='OpenPGP Signatures' id='pgpsignatures'>
<Stack p={4} borderBottom='2px solid #11866f'> <Stack p={4} borderBottom='2px solid' borderColor='brand.light.primary'>
<Text textStyle='quick-link-text'> <Text textStyle='quick-link-text'>
All the binaries available from this page are signed via our build server PGP keys: All the binaries available from this page are signed via our build server PGP keys:
</Text> </Text>
@ -189,8 +167,8 @@ const DownloadsPage: NextPage = ({}) => {
</Stack> */} </Stack> */}
</DownloadsSection> </DownloadsSection>
<DownloadsSection sectionTitle='Importing keys and verifying builds'> <DownloadsSection sectionTitle='Importing keys and verifying builds' id='importingkeys'>
<Stack p={4} borderBottom='2px solid #11866f'> <Stack p={4} borderBottom='2px solid' borderColor='brand.light.primary'>
<Text textStyle='quick-link-text'> <Text textStyle='quick-link-text'>
You can import the build server public keys by grabbing the individual keys directly from the keyserver network: You can import the build server public keys by grabbing the individual keys directly from the keyserver network:
</Text> </Text>
@ -201,7 +179,7 @@ const DownloadsPage: NextPage = ({}) => {
</Code> </Code>
</Stack> </Stack>
<Stack p={4} borderBottom='2px solid #11866f'> <Stack p={4} borderBottom='2px solid' borderColor='brand.light.primary'>
<Text textStyle='quick-link-text'> <Text textStyle='quick-link-text'>
Similarly you can import all the developer public keys by grabbing them directly from the keyserver network: Similarly you can import all the developer public keys by grabbing them directly from the keyserver network:
</Text> </Text>

@ -11,6 +11,22 @@ export const Link = {
boxShadow: 'inset 0 0 0 3px #f0f2e2 !important' boxShadow: 'inset 0 0 0 3px #f0f2e2 !important'
}, },
_active: { textDecoration: 'none', bg: 'brand.light.secondary', color: 'yellow.50' } _active: { textDecoration: 'none', bg: 'brand.light.secondary', color: 'yellow.50' }
},
href: {
color: 'brand.light.primary',
_hover: {
color: 'brand.light.body',
textDecorationColor: 'brand.light.body'
},
_focus: {
color: 'brand.light.primary',
boxShadow: 'linkBoxShadow',
textDecoration: 'none'
},
_pressed: {
color: 'brand.light.secondary',
textDecorationColor: 'brand.light.secondary'
}
} }
} }
}; };