From 03888a014209eeb2ee5a20ec02a562cd826f1214 Mon Sep 17 00:00:00 2001 From: Wagner Vieira Date: Thu, 5 Aug 2021 07:13:52 -0300 Subject: [PATCH 1/6] Create routes directory --- src/App.js | 14 +- src/components/pages/About.js | 232 ++++++++++++------------- src/components/pages/ProductDetails.js | 161 ++++++++--------- src/routes/about.js | 12 ++ src/routes/home.js | 7 + src/routes/index.js | 17 ++ src/routes/servicos/index.js | 12 ++ 7 files changed, 238 insertions(+), 217 deletions(-) create mode 100644 src/routes/about.js create mode 100644 src/routes/home.js create mode 100644 src/routes/index.js create mode 100644 src/routes/servicos/index.js diff --git a/src/App.js b/src/App.js index 2af3aac..34631a6 100644 --- a/src/App.js +++ b/src/App.js @@ -1,24 +1,18 @@ import React from "react"; -import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; +import { BrowserRouter as Router } from "react-router-dom"; import ThemeProvider from "styles/ThemeProvider"; import GlobalStyle from "styles/GlobalStyle"; -import Home from "components/pages/Home"; -import About from "components/pages/About"; -import PoductDetails from "components/pages/ProductDetails"; -import ProductDetails from "components/pages/ProductDetails"; +// Pode chamar routes porque é um export default +import Routes from "routes"; function App() { return ( - - } /> - } /> - } /> - + ); diff --git a/src/components/pages/About.js b/src/components/pages/About.js index 55f2c9c..0dbeac2 100644 --- a/src/components/pages/About.js +++ b/src/components/pages/About.js @@ -3,8 +3,6 @@ import PropTypes from "prop-types"; import styled from "styled-components"; import BreadCrump from "components/atoms/BreadCrump"; -import { useScrollToTop } from "hooks/scroll"; - import Hero from "components/molecules/Hero"; import BgCarImage from "assets/street.jpg"; import Section from "components/molecules/Section"; @@ -35,127 +33,115 @@ const ImageContainer = styled.div` } `; -const About = () => { - useScrollToTop(); - - return ( - <> - - -

Auto escola Nardini

-
- -
-
- -
-

+const About = () => ( + <> + + +

Auto escola Nardini

+ + + +
+ +
+

+ Lorem ipsum dolor sit amet consectetur adipisicing elit. + Corporis tempora distinctio ipsam fuga, eveniet quasi + nam enim aspernatur harum suscipit temporibus sint + cupiditate iste aliquam non. Ipsa explicabo natus nam. +

+

+ Officiis eum perspiciatis alias dolorem officia + explicabo molestias dolorum dolores eveniet delectus, + repudiandae itaque corporis sequi? Quidem voluptatum + iste id labore, magnam deserunt, similique unde + accusamus possimus impedit ad? Similique. +

+

+ Sequi itaque quas odit ratione. Officiis consectetur + iste eligendi optio odio odit iure nam illum vitae, + consequatur, blanditiis veritatis! Placeat non velit + suscipit incidunt praesentium iure obcaecati sapiente + nobis temporibus! +

+
    +
  • Lorem ipsum dolor sit amet consectetur adipisicing - elit. Corporis tempora distinctio ipsam fuga, - eveniet quasi nam enim aspernatur harum suscipit - temporibus sint cupiditate iste aliquam non. Ipsa - explicabo natus nam. -

    -

    - Officiis eum perspiciatis alias dolorem officia - explicabo molestias dolorum dolores eveniet - delectus, repudiandae itaque corporis sequi? Quidem - voluptatum iste id labore, magnam deserunt, - similique unde accusamus possimus impedit ad? - Similique. -

    -

    - Sequi itaque quas odit ratione. Officiis consectetur - iste eligendi optio odio odit iure nam illum vitae, - consequatur, blanditiis veritatis! Placeat non velit - suscipit incidunt praesentium iure obcaecati - sapiente nobis temporibus! -

    -
      -
    • - Lorem ipsum dolor sit amet consectetur - adipisicing elit. -
    • -
    • - Lorem ipsum dolor sit amet consectetur - adipisicing elit. -
    • -
    • - Lorem ipsum dolor sit amet consectetur - adipisicing elit. -
    • -
    • - Lorem ipsum dolor sit amet consectetur - adipisicing elit. -
    • -
    • - Lorem ipsum dolor sit amet consectetur - adipisicing elit. -
    • -
    -
-
-

- Lorem ipsum dolor sit amet consectetur, adipisicing - elit. Aliquid similique repudiandae tenetur qui - placeat commodi minus dolor rem impedit sed sit - obcaecati culpa maxime, tempore quia natus itaque - dolores. Neque. -

- - - -
-
-
-
- -
-

Missão

-

- Lorem ipsum, dolor sit amet consectetur adipisicing - elit. Nisi deleniti maiores debitis suscipit neque - sit error doloribus, sed provident animi quas - ratione reiciendis odit doloremque ab ut laborum - odio rem? -

-
-
-

Visão

-

- Adipisci quasi sit non sunt dolor esse in animi cum - reprehenderit! Veniam autem eaque quia? Nesciunt, - nobis. Hic ut, eligendi, quasi placeat harum a - beatae reiciendis, tenetur est ex in. -

-
-
-
-
- -

Conheça nossos professores

-
- - {instructors.map((instructor) => ( - - - -
{instructor.name}
-
-
-
- ))} -
-
-
- - ); -}; - -About.defaultProps = {}; - -About.propTypes = {}; + elit. + +
  • + Lorem ipsum dolor sit amet consectetur adipisicing + elit. +
  • +
  • + Lorem ipsum dolor sit amet consectetur adipisicing + elit. +
  • +
  • + Lorem ipsum dolor sit amet consectetur adipisicing + elit. +
  • +
  • + Lorem ipsum dolor sit amet consectetur adipisicing + elit. +
  • + +
    +
    +

    + Lorem ipsum dolor sit amet consectetur, adipisicing + elit. Aliquid similique repudiandae tenetur qui placeat + commodi minus dolor rem impedit sed sit obcaecati culpa + maxime, tempore quia natus itaque dolores. Neque. +

    + + + +
    +
    +
    +
    + +
    +

    Missão

    +

    + Lorem ipsum, dolor sit amet consectetur adipisicing + elit. Nisi deleniti maiores debitis suscipit neque sit + error doloribus, sed provident animi quas ratione + reiciendis odit doloremque ab ut laborum odio rem? +

    +
    +
    +

    Visão

    +

    + Adipisci quasi sit non sunt dolor esse in animi cum + reprehenderit! Veniam autem eaque quia? Nesciunt, nobis. + Hic ut, eligendi, quasi placeat harum a beatae + reiciendis, tenetur est ex in. +

    +
    +
    +
    +
    + +

    Conheça nossos professores

    +
    + + {instructors.map((instructor) => ( + + + +
    {instructor.name}
    +
    +
    +
    + ))} +
    +
    +