File size: 1,208 Bytes
f909d7c |
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 48 49 50 51 52 |
import React from "react";
import { useRouter } from "next/router";
import { Button } from "@mantine/core";
import styled from "styled-components";
const StyledNotFound = styled.div`
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 0 40px;
text-align: center;
`;
const StyledMessage = styled.h4`
color: ${({ theme }) => theme.FULL_WHITE};
font-size: 25px;
font-weight: 800;
margin: 10px 0;
`;
const StyledSubMessage = styled.div`
width: 50%;
color: ${({ theme }) => theme.SILVER};
margin-bottom: 25px;
`;
const StyledImageWrapper = styled.div`
width: 300px;
`;
const NotFound: React.FC = () => {
const router = useRouter();
return (
<StyledNotFound>
<StyledImageWrapper>
<img src="/assets/404.svg" alt="not found" width={300} height={400} />
</StyledImageWrapper>
<StyledMessage>WIZARDS BEHIND CURTAINS?</StyledMessage>
<StyledSubMessage>
Looks like you're lost, let's head back to the home!
</StyledSubMessage>
<Button type="button" onClick={() => router.push("/")}>
Go Home
</Button>
</StyledNotFound>
);
};
export default NotFound;
|