forked from pancakeswap/pancake-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NotFound.tsx
32 lines (28 loc) · 798 Bytes
/
NotFound.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react'
import styled from 'styled-components'
import { Button, Heading, Text, LogoIcon } from '@pancakeswap/uikit'
import Page from 'components/layout/Page'
import { useTranslation } from 'contexts/Localization'
const StyledNotFound = styled.div`
align-items: center;
display: flex;
flex-direction: column;
height: calc(100vh - 64px);
justify-content: center;
`
const NotFound = () => {
const { t } = useTranslation()
return (
<Page>
<StyledNotFound>
<LogoIcon width="64px" mb="8px" />
<Heading size="xxl">404</Heading>
<Text mb="16px">{t('Oops, page not found.')}</Text>
<Button as="a" href="/" scale="sm">
{t('Back Home')}
</Button>
</StyledNotFound>
</Page>
)
}
export default NotFound