mirror of https://github.com/ethereum/go-ethereum
* add 404 page not found fallback * clean up stylingpull/26459/head^2
parent
022a7be96e
commit
dfa4a0b335
@ -0,0 +1,49 @@ |
||||
import { Button, Flex, Text } from '@chakra-ui/react'; |
||||
import type { NextPage } from 'next'; |
||||
import NextLink from 'next/link'; |
||||
|
||||
import { GopherHomeFront } from '../components/UI/svgs'; |
||||
import { PageMetadata } from '../components/UI'; |
||||
|
||||
import { METADATA} from '../constants'; |
||||
|
||||
const Page404NotFound: NextPage = ({}) => { |
||||
return ( |
||||
<> |
||||
<PageMetadata title={METADATA.PAGE_404_TITLE} description={METADATA.PAGE_404_DESCRIPTION} /> |
||||
|
||||
<main id='main-content'> |
||||
<Flex direction='column' alignItems='center' py={{ base: 16, md: 24 }} border="2px" borderColor="primary"> |
||||
<GopherHomeFront /> |
||||
<Text |
||||
fontSize={{ base: "8xl", md: "9xl" }} |
||||
lineHeight='120%' |
||||
fontFamily='heading' |
||||
textAlign='center' |
||||
letterSpacing='0.05em' |
||||
fontWeight='500' |
||||
> |
||||
404 |
||||
</Text> |
||||
<Text |
||||
fontSize={{ base: 'xl', md: '2xl'}} |
||||
fontFamily='heading' |
||||
fontWeight='700' |
||||
textAlign='center' |
||||
mb={{ base: 8, md: 12 }} |
||||
letterSpacing='0.05em' |
||||
> |
||||
page not found |
||||
</Text> |
||||
<NextLink href='/' passHref legacyBehavior> |
||||
<Button variant='primary' as='a' data-group> |
||||
<Text textStyle='homepage-primary-label'>Go to homepage</Text> |
||||
</Button> |
||||
</NextLink> |
||||
</Flex> |
||||
</main> |
||||
</> |
||||
); |
||||
}; |
||||
|
||||
export default Page404NotFound; |
Loading…
Reference in new issue