|
|
@ -2,6 +2,8 @@ import { Box, Button, Image, Link, Stack, HStack, Text } from '@chakra-ui/react' |
|
|
|
import { FC } from 'react'; |
|
|
|
import { FC } from 'react'; |
|
|
|
import NextLink from 'next/link'; |
|
|
|
import NextLink from 'next/link'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { DOWNLOAD_HEADER_BUTTONS } from '../../../constants' |
|
|
|
|
|
|
|
|
|
|
|
interface DownloadsHero { |
|
|
|
interface DownloadsHero { |
|
|
|
currentBuildName: string |
|
|
|
currentBuildName: string |
|
|
|
currentBuildVersion: string |
|
|
|
currentBuildVersion: string |
|
|
@ -21,11 +23,16 @@ export const DownloadsHero: FC<DownloadsHero> = ({ |
|
|
|
sourceCodeURL, |
|
|
|
sourceCodeURL, |
|
|
|
windowsBuildURL |
|
|
|
windowsBuildURL |
|
|
|
}) => { |
|
|
|
}) => { |
|
|
|
|
|
|
|
DOWNLOAD_HEADER_BUTTONS.linuxBuild.buildURL = linuxBuildURL |
|
|
|
|
|
|
|
DOWNLOAD_HEADER_BUTTONS.macOSBuild.buildURL = macOSBuildURL |
|
|
|
|
|
|
|
DOWNLOAD_HEADER_BUTTONS.windowsBuild.buildURL = windowsBuildURL |
|
|
|
|
|
|
|
DOWNLOAD_HEADER_BUTTONS.sourceCode.buildURL = sourceCodeURL |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<Stack border='3px solid' borderColor='brand.light.primary' py={4} px={4}> |
|
|
|
<Stack border='3px solid' borderColor='brand.light.primary' py={4} px={4}> |
|
|
|
<Box> |
|
|
|
<Stack alignItems='center'> |
|
|
|
<Image w={'180px'} m={'auto'} src='/images/pages/gopher-downloads-front-light.svg' alt='Gopher greeting' />
|
|
|
|
<Image src='/images/pages/gopher-downloads-front-light.svg' alt='Gopher plugged in' />
|
|
|
|
</Box> |
|
|
|
</Stack> |
|
|
|
|
|
|
|
|
|
|
|
<Box mb={4}> |
|
|
|
<Box mb={4}> |
|
|
|
<Box |
|
|
|
<Box |
|
|
@ -48,107 +55,48 @@ export const DownloadsHero: FC<DownloadsHero> = ({ |
|
|
|
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. |
|
|
|
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. |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
|
|
|
|
|
|
|
|
<NextLink href={linuxBuildURL} passHref> |
|
|
|
{ |
|
|
|
<Button |
|
|
|
Object.keys(DOWNLOAD_HEADER_BUTTONS).map((key: string, idx) => { |
|
|
|
as='a' |
|
|
|
return ( |
|
|
|
variant='primary' |
|
|
|
<NextLink |
|
|
|
width={{ base: '100%' }} |
|
|
|
key={idx} |
|
|
|
p={8} |
|
|
|
href={DOWNLOAD_HEADER_BUTTONS[key].buildURL} |
|
|
|
mb={4} |
|
|
|
passHref |
|
|
|
> |
|
|
|
> |
|
|
|
<HStack spacing={4}> |
|
|
|
<Button |
|
|
|
<Box> |
|
|
|
as='a' |
|
|
|
<Image m={'auto'} src='/images/pages/linux-penguin.svg' alt='Gopher greeting' /> |
|
|
|
variant='primary' |
|
|
|
</Box>
|
|
|
|
width={{ base: '100%' }} |
|
|
|
<Box> |
|
|
|
p={8} |
|
|
|
<Text textStyle='downloads-button-label'> |
|
|
|
mb={4} |
|
|
|
For linux |
|
|
|
> |
|
|
|
</Text> |
|
|
|
<HStack spacing={4}> |
|
|
|
<Text textStyle='downloads-button-label'> |
|
|
|
<Stack alignItems='center'> |
|
|
|
geth {currentBuildName} |
|
|
|
<Image |
|
|
|
</Text> |
|
|
|
src={DOWNLOAD_HEADER_BUTTONS[key].image} |
|
|
|
</Box> |
|
|
|
alt={DOWNLOAD_HEADER_BUTTONS[key].imageAlt} |
|
|
|
</HStack> |
|
|
|
/> |
|
|
|
</Button> |
|
|
|
</Stack>
|
|
|
|
</NextLink> |
|
|
|
<Box> |
|
|
|
|
|
|
|
<Text textStyle='downloads-button-label'> |
|
|
|
<NextLink href={macOSBuildURL} passHref> |
|
|
|
For {DOWNLOAD_HEADER_BUTTONS[key].name} |
|
|
|
<Button |
|
|
|
</Text> |
|
|
|
as='a' |
|
|
|
<Text textStyle='downloads-button-label'> |
|
|
|
variant='primary' |
|
|
|
geth {currentBuildName} |
|
|
|
width={{ base: '100%' }} |
|
|
|
</Text> |
|
|
|
p={8} |
|
|
|
</Box> |
|
|
|
mb={4} |
|
|
|
</HStack> |
|
|
|
> |
|
|
|
</Button> |
|
|
|
<HStack spacing={4}> |
|
|
|
</NextLink> |
|
|
|
<Box> |
|
|
|
) |
|
|
|
<Image m={'auto'} src='/images/pages/macos-logo.svg' alt='Gopher greeting' /> |
|
|
|
}) |
|
|
|
</Box>
|
|
|
|
} |
|
|
|
<Box> |
|
|
|
|
|
|
|
<Text textStyle='downloads-button-label'> |
|
|
|
|
|
|
|
For macos |
|
|
|
|
|
|
|
</Text> |
|
|
|
|
|
|
|
<Text textStyle='downloads-button-label'> |
|
|
|
|
|
|
|
geth {currentBuildName} |
|
|
|
|
|
|
|
</Text> |
|
|
|
|
|
|
|
</Box> |
|
|
|
|
|
|
|
</HStack> |
|
|
|
|
|
|
|
</Button> |
|
|
|
|
|
|
|
</NextLink> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<NextLink href={windowsBuildURL} passHref> |
|
|
|
|
|
|
|
<Button |
|
|
|
|
|
|
|
as='a' |
|
|
|
|
|
|
|
variant='primary' |
|
|
|
|
|
|
|
width={{ base: '100%' }} |
|
|
|
|
|
|
|
p={8} |
|
|
|
|
|
|
|
mb={4} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<HStack spacing={4}> |
|
|
|
|
|
|
|
<Box> |
|
|
|
|
|
|
|
<Image m={'auto'} src='/images/pages/windows-logo.svg' alt='Gopher greeting' /> |
|
|
|
|
|
|
|
</Box>
|
|
|
|
|
|
|
|
<Box> |
|
|
|
|
|
|
|
<Text textStyle='downloads-button-label'> |
|
|
|
|
|
|
|
For windows |
|
|
|
|
|
|
|
</Text> |
|
|
|
|
|
|
|
<Text textStyle='downloads-button-label'> |
|
|
|
|
|
|
|
geth {currentBuildName} |
|
|
|
|
|
|
|
</Text> |
|
|
|
|
|
|
|
</Box> |
|
|
|
|
|
|
|
</HStack> |
|
|
|
|
|
|
|
</Button> |
|
|
|
|
|
|
|
</NextLink> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<NextLink href={sourceCodeURL} passHref> |
|
|
|
|
|
|
|
<Button |
|
|
|
|
|
|
|
as='a' |
|
|
|
|
|
|
|
variant='primary' |
|
|
|
|
|
|
|
width={{ base: '100%' }} |
|
|
|
|
|
|
|
p={8} |
|
|
|
|
|
|
|
mb={4} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<HStack spacing={4}> |
|
|
|
|
|
|
|
<Box> |
|
|
|
|
|
|
|
<Image m={'auto'} src='/images/pages/source-branch.svg' alt='Gopher greeting' /> |
|
|
|
|
|
|
|
</Box>
|
|
|
|
|
|
|
|
<Box> |
|
|
|
|
|
|
|
<Text textStyle='downloads-button-label'> |
|
|
|
|
|
|
|
Sources |
|
|
|
|
|
|
|
</Text> |
|
|
|
|
|
|
|
<Text textStyle='downloads-button-label'> |
|
|
|
|
|
|
|
geth {currentBuildName} |
|
|
|
|
|
|
|
</Text> |
|
|
|
|
|
|
|
</Box> |
|
|
|
|
|
|
|
</HStack> |
|
|
|
|
|
|
|
</Button> |
|
|
|
|
|
|
|
</NextLink> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Box textAlign={'center'}> |
|
|
|
<Box textAlign={'center'}> |
|
|
|
<Link |
|
|
|
<Link |
|
|
|
href={releaseNotesURL} |
|
|
|
href={releaseNotesURL} |
|
|
|
isExternal |
|
|
|
isExternal |
|
|
|
variant='href' |
|
|
|
variant='light' |
|
|
|
> |
|
|
|
> |
|
|
|
Release notes for {currentBuildName} {currentBuildVersion} |
|
|
|
Release notes for {currentBuildName} {currentBuildVersion} |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|