add links for socials

This commit is contained in:
Corwin Smith 2022-10-18 21:10:17 -05:00
parent 91464f5aba
commit 18e605e646
2 changed files with 18 additions and 3 deletions

View File

@ -2,7 +2,13 @@ import { Grid, GridItem, Image, Link, Stack, Text } from '@chakra-ui/react';
import { FC } from 'react';
import NextLink from 'next/link';
import { DOCS_PAGE, DOWNLOADS_PAGE, GETH_TWITTER_URL } from '../../constants'
import {
DOCS_PAGE,
DOWNLOADS_PAGE,
GETH_DISCORD_URL,
GETH_REPO_URL,
GETH_TWITTER_URL
} from '../../constants'
export const Footer: FC = () => {
return (
@ -65,7 +71,11 @@ export const Footer: FC = () => {
alignItems="center"
>
<Stack alignItems='center' p={4}>
<Image src="/images/pages/discord.svg" alt="Discord logo" />
<NextLink href={GETH_DISCORD_URL} passHref>
<Link isExternal>
<Image src="/images/pages/discord.svg" alt="Discord logo" />
</Link>
</NextLink>
</Stack>
</GridItem>
@ -75,7 +85,11 @@ export const Footer: FC = () => {
alignItems="center"
>
<Stack alignItems='center' p={4}>
<Image src="/images/pages/github.svg" alt="GitHub logo" />
<NextLink href={GETH_REPO_URL} passHref>
<Link isExternal>
<Image src="/images/pages/github.svg" alt="GitHub logo" />
</Link>
</NextLink>
</Stack>
</GridItem>
</Grid>

View File

@ -10,4 +10,5 @@ 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 GETH_REPO_URL = 'https://github.com/ethereum/go-ethereum';
export const GETH_TWITTER_URL = 'https://twitter.com/go_ethereum';
export const GETH_DISCORD_URL = 'https://discord.com/invite/nthXNEv';
export const GO_URL = 'https://go.dev/';