add and use constant for go website

pull/26459/head^2
Corwin Smith 2 years ago
parent d7c713437b
commit 2ad8a1e24f
  1. 1
      src/constants.ts
  2. 5
      src/pages/index.tsx

@ -9,3 +9,4 @@ export const ETHEREUM_ORG_URL = 'https://ethereum.org';
export const ETHEREUM_ORG_RUN_A_NODE_URL = 'https://ethereum.org/en/run-a-node/'; export const ETHEREUM_ORG_RUN_A_NODE_URL = 'https://ethereum.org/en/run-a-node/';
export const ETHEREUM_FOUNDATION_URL = 'https://ethereum.foundation'; export const ETHEREUM_FOUNDATION_URL = 'https://ethereum.foundation';
export const GETH_REPO_URL = 'https://github.com/ethereum/go-ethereum'; export const GETH_REPO_URL = 'https://github.com/ethereum/go-ethereum';
export const GO_URL = 'https://go.dev/';

@ -9,7 +9,8 @@ import {
ETHEREUM_FOUNDATION_URL, ETHEREUM_FOUNDATION_URL,
ETHEREUM_ORG_RUN_A_NODE_URL, ETHEREUM_ORG_RUN_A_NODE_URL,
ETHEREUM_ORG_URL, ETHEREUM_ORG_URL,
GETH_REPO_URL GETH_REPO_URL,
GO_URL,
} from '../constants'; } from '../constants';
const HomePage: NextPage = ({}) => { const HomePage: NextPage = ({}) => {
@ -31,7 +32,7 @@ const HomePage: NextPage = ({}) => {
> >
<Text fontFamily='"Inter", sans-serif' lineHeight='26px'> <Text fontFamily='"Inter", sans-serif' lineHeight='26px'>
Geth (go-ethereum) is a{' '} Geth (go-ethereum) is a{' '}
<Link href='https://go.dev/' isExternal variant='light'> <Link href={GO_URL} isExternal variant='light'>
Go Go
</Link>{' '} </Link>{' '}
implementation of{' '} implementation of{' '}

Loading…
Cancel
Save