-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPageNotFound.jsx
47 lines (39 loc) · 973 Bytes
/
PageNotFound.jsx
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
38
39
40
41
42
43
44
45
46
47
import styled from "styled-components";
import { useMoveBack } from "../hooks/useMoveBack";
import Heading from "../ui/Heading";
const StyledPageNotFound = styled.main`
height: 100vh;
background-color: var(--color-grey-50);
display: flex;
align-items: center;
justify-content: center;
padding: 4.8rem;
`;
const Box = styled.div`
/* box */
background-color: var(--color-grey-0);
border: 1px solid var(--color-grey-100);
border-radius: var(--border-radius-md);
padding: 4.8rem;
flex: 0 1 96rem;
text-align: center;
& h1 {
margin-bottom: 3.2rem;
}
`;
function PageNotFound() {
const moveBack = useMoveBack();
return (
<StyledPageNotFound>
<Box>
<Heading as="h1">
The page you are looking for could not be found 😢
</Heading>
<button onClick={moveBack} size="large">
← Go back
</button>
</Box>
</StyledPageNotFound>
);
}
export default PageNotFound;