import React from "react";
// nodejs library that concatenates classes
import classNames from "classnames";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
// @material-ui/icons
// core components
import Header from "/components/Header/Header.js";
import Footer from "/components/Footer/Footer.js";
import GridContainer from "/components/Grid/GridContainer.js";
import GridItem from "/components/Grid/GridItem.js";
import Button from "/components/CustomButtons/Button.js";
import HeaderLinks from "/components/Header/HeaderLinks.js";
import Parallax from "/components/Parallax/Parallax.js";
import styles from "/styles/jss/nextjs-material-kit/pages/landingPage.js";
// Sections for this page
const dashboardRoutes = [];
const useStyles = makeStyles(styles);
/**
* The function `LandingPage` renders a 404 error page with a message and a button to go back to the
* starting page.
* @param props - The `LandingPage` component receives props as input, and it extracts the `rest` prop
* using object destructuring. The `rest` prop contains any additional props that are passed to the
* `LandingPage` component but are not explicitly destructured in the component.
* @returns The `LandingPage` component is being returned, which consists of a header, a parallax
* section with a background image, a grid container with a title and message indicating a 404 error, a
* button to go back to the starting page, and a footer.
*/
export function ErrorPage(props) {
const classes = useStyles();
const { ...rest } = props;
return (
<div>
<Header
color="transparent"
routes={dashboardRoutes}
brand="ThisIsNotFair"
rightLinks={<HeaderLinks enableapps={false} login={false} />}
fixed
changeColorOnScroll={{
height: 400,
color: "white",
}}
{...rest}
/>
<Parallax filter responsive image="/img/landing-bg.jpg">
<div className={classes.container}>
<GridContainer>
<GridItem xs={12} sm={12} md={6}>
<h1 className={classes.title}>404</h1>
<h4>Page could not be found</h4>
<br />
</GridItem>
</GridContainer>
<Button color="info" href="/landing">
Go back to starting page
</Button>
</div>
</Parallax>
<Footer />
</div>
);
}