forked from opencollective/opencollective-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.js
37 lines (35 loc) · 1.28 KB
/
404.js
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
33
34
35
36
37
import React from 'react';
import Router from 'next/router';
import { FormattedMessage } from 'react-intl';
import Body from '../components/Body';
import Container from '../components/Container';
import Footer from '../components/Footer';
import { Flex } from '../components/Grid';
import Header from '../components/Header';
import StyledButton from '../components/StyledButton';
import { H1, P } from '../components/Text';
export default function Custom404() {
return (
<div className="ErrorPage" data-cy="error-page">
<Header />
<Body>
<Container borderTop="1px solid #E8E9EB" py={[5, 6]}>
<Flex data-cy="not-found" flexDirection="column" alignItems="center">
<H1 textAlign="center">
<FormattedMessage id="notFound" defaultMessage="Not found" />
</H1>
<P fontSize="3.6rem" color="primary.500" mt={4} mb={5}>
¯\_(ツ)_/¯
</P>
<Flex flexWrap="wrap" justifyContent="center">
<StyledButton m={2} onClick={() => Router.back()}>
← <FormattedMessage id="error.goBack" defaultMessage="Go back to the previous page" />
</StyledButton>
</Flex>
</Flex>
</Container>
</Body>
<Footer />
</div>
);
}