Source: pages/landing.js

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
import ProductSection from "/pages-sections/LandingPage-Sections/ProductSection.js";

const dashboardRoutes = [];

const useStyles = makeStyles(styles);

/**
 * The function `LandingPage` renders a landing page with a header, parallax background image, product
 * section, and footer.
 * @param props - The `LandingPage` component is a functional component that takes in props as its
 * parameter. Inside the component, it uses the `useStyles` hook to access CSS styles, spreads the
 * props using object destructuring, and renders the following structure:
 * @returns The `LandingPage` component is being returned, which consists of a layout with a header, a
 * parallax image section, a main content section with a product section, and a footer. The header
 * includes a brand name "ThisIsNotFair" and navigation links. The parallax section displays an image
 * "/img/landing-bg.jpg" with a title "Your journey to run starts with us
 */
export function LandingPage(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}>
                Your journey to run starts with us
              </h1>
              <br />
            </GridItem>
          </GridContainer>
        </div>
      </Parallax>
      <div className={classNames(classes.main, classes.mainRaised)}>
        <div className={classes.container}>
          <ProductSection />
        </div>
      </div>
      <Footer />
    </div>
  );
}