svgl/components/error/index.js

39 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-01-21 22:30:32 +00:00
import React from "react";
import { Box, Flex, Button, Container, Text, Icon } from "@chakra-ui/react";
import { IoHome, IoShapesOutline } from "react-icons/io5";
2022-01-21 22:30:32 +00:00
import Link from "next/link";
import Show from "animations/show";
const Error = () => {
return (
<>
<Show delay="0">
2022-03-03 14:48:37 +00:00
<Box px={{ base: 4, lg: 20 }} py={{ base: "3", md: "24" }}>
<Flex align="center" justify="center" direction="column" w="full">
<Icon name="error" boxSize="80px" mb="3" as={IoShapesOutline} />
<Text fontSize="40px" mb="2">
Oh no!
</Text>
<Text fontSize="20px" mb="3">
This page does not exist.
</Text>
<Link href="/" passHref>
<Button
leftIcon={<IoHome />}
2022-03-25 14:57:20 +00:00
borderWidth="1px"
2022-03-03 14:48:37 +00:00
variant="outline"
2022-03-25 14:57:20 +00:00
fontWeight="light"
2022-03-03 14:48:37 +00:00
mb="4"
>
Go home
</Button>
</Link>
</Flex>
</Box>
2022-01-21 22:30:32 +00:00
</Show>
</>
);
};
export default Error;