diff --git a/adilson-fernando/README.md b/adilson-fernando/README.md index b87cb00..9f75554 100644 --- a/adilson-fernando/README.md +++ b/adilson-fernando/README.md @@ -1,46 +1,27 @@ -# Getting Started with Create React App +# PROJETO DESAFIO 5 - ADILSON FERNANDO NEVES ORNELLAS - TYPESCRIPT E REACT -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). + PROJETO REALIZADO ENTRE OS DIAS 27/12/2022 E 15/01/2023 + +# LEYOUT DO PROJETO -## Available Scripts + https://www.figma.com/file/wy2rXH3gsH20KgfUpHh4oz/Desafio-Institucional-React.js?node-id=0%3A1 -In the project directory, you can run: +# RODANDO O PROJETO + 1 - Entrar na pasta "adilson-fernando" + 2 - abrir o terminal dentro a pasta + 3 - digitar " npm i " e enter + 4 - digitar " npm start " -### `npm start` + E o propjeto já irá ser abertro em seu navegador no http://localhost:3000/ -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. - -The page will reload if you make edits.\ -You will also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! - -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/). +# FERRAMENTAS USADAS NO PROJETO + - CREATE REACT-APP TYPESCRIPT + - HTML + - CSS SCSS + - SCSS MODULES + - TYPESCRIPT E REACT + - REACT ROUTER DOM + - MENU MODEL + - ACCORDION + - FORMIK + - YUP \ No newline at end of file diff --git a/adilson-fernando/src/components/Main/Entrega.tsx b/adilson-fernando/src/components/Main/Entrega.tsx new file mode 100644 index 0000000..ea5bed3 --- /dev/null +++ b/adilson-fernando/src/components/Main/Entrega.tsx @@ -0,0 +1,12 @@ +import React from "react"; + + +const Entrega = () =>{ + return ( + <> + + + ); +} + +export default Entrega ; \ No newline at end of file diff --git a/adilson-fernando/src/components/Main/FormaDePagamento.tsx b/adilson-fernando/src/components/Main/FormaDePagamento.tsx new file mode 100644 index 0000000..54a8262 --- /dev/null +++ b/adilson-fernando/src/components/Main/FormaDePagamento.tsx @@ -0,0 +1,11 @@ +import React from "react"; + + +const FormaDePagamento = () =>{ + return ( + <> + + ); +} + +export default FormaDePagamento ; \ No newline at end of file diff --git a/adilson-fernando/src/components/Main/Main.tsx b/adilson-fernando/src/components/Main/Main.tsx index fd76a42..2788855 100644 --- a/adilson-fernando/src/components/Main/Main.tsx +++ b/adilson-fernando/src/components/Main/Main.tsx @@ -3,6 +3,7 @@ import React from "react"; import "../../styles/Global.scss"; import "../../styles/Variaveis.scss"; import Newsletter from "./Newsletter"; +import Router from "./Router"; import styles from "../../styles/Main.module.scss"; @@ -10,14 +11,14 @@ import casinhaInstitucional from "../../assets/images/casinhaInstitucional.png"; const Main = () => { return ( -
- - Icone Casinha + Institucional - -

INSTITUCIONAL

- - -
+
+ + Icone Casinha + Institucional + +

INSTITUCIONAL

+ + +
); }; diff --git a/adilson-fernando/src/components/Main/Router.tsx b/adilson-fernando/src/components/Main/Router.tsx new file mode 100644 index 0000000..9ecb4b5 --- /dev/null +++ b/adilson-fernando/src/components/Main/Router.tsx @@ -0,0 +1,53 @@ +import React from "react"; +import { Route, NavLink, Routes } from "react-router-dom"; + +import "../../styles/Global.scss"; +import "../../styles/Variaveis.scss"; + +import styles from "../../styles/Router.module.scss"; + +import Sobre from "./Sobre"; +import FormaDePagamento from "./FormaDePagamento"; +import Entrega from "./Entrega"; +import Troca from "./Troca"; +import Segurança from "./Segurança"; +import Contato from "./contato"; + +const Router = () => { + return ( + <> + + + } path="/" /> + } path="/formadepagamento" /> + } path="/entrega" /> + } path="/troca" /> + } path="/segurança" /> + } path="/contato" /> + + + ); +}; + +export default Router; diff --git a/adilson-fernando/src/components/Main/Segurança.tsx b/adilson-fernando/src/components/Main/Segurança.tsx new file mode 100644 index 0000000..3b53212 --- /dev/null +++ b/adilson-fernando/src/components/Main/Segurança.tsx @@ -0,0 +1,12 @@ +import React from "react"; + + +const Segurança = () =>{ + return ( + <> + + + ); +} + +export default Segurança ; \ No newline at end of file diff --git a/adilson-fernando/src/components/Main/Sobre.tsx b/adilson-fernando/src/components/Main/Sobre.tsx new file mode 100644 index 0000000..51ec6bd --- /dev/null +++ b/adilson-fernando/src/components/Main/Sobre.tsx @@ -0,0 +1,12 @@ +import React from "react"; + + +const Sobre = () =>{ + return ( + <> +

hello

+ + ); +} + +export default Sobre ; \ No newline at end of file diff --git a/adilson-fernando/src/components/Main/Troca.tsx b/adilson-fernando/src/components/Main/Troca.tsx new file mode 100644 index 0000000..d5226a7 --- /dev/null +++ b/adilson-fernando/src/components/Main/Troca.tsx @@ -0,0 +1,12 @@ +import React from "react"; + + +const Troca = () =>{ + return ( + <> + + + ); +} + +export default Troca ; \ No newline at end of file diff --git a/adilson-fernando/src/components/Main/contato.tsx b/adilson-fernando/src/components/Main/contato.tsx new file mode 100644 index 0000000..021a092 --- /dev/null +++ b/adilson-fernando/src/components/Main/contato.tsx @@ -0,0 +1,12 @@ +import React from "react"; + + +const Contato = () =>{ + return ( + <> + + + ); +} + +export default Contato ; \ No newline at end of file diff --git a/adilson-fernando/src/index.tsx b/adilson-fernando/src/index.tsx index 2275c27..cd9c8ef 100644 --- a/adilson-fernando/src/index.tsx +++ b/adilson-fernando/src/index.tsx @@ -1,6 +1,7 @@ // Esssencias import React from "react"; import ReactDOM from "react-dom/client"; +import { BrowserRouter} from "react-router-dom"; // Projeto Adilson import Home from "./pages/Home"; @@ -12,6 +13,8 @@ const root = ReactDOM.createRoot( root.render( - + + + ); diff --git a/adilson-fernando/src/styles/Router.module.scss b/adilson-fernando/src/styles/Router.module.scss new file mode 100644 index 0000000..e69de29