Merge branch 'Developer'

This commit is contained in:
Matheus Mariosa 2023-01-20 23:16:49 -03:00
commit 64bb1d865d
45 changed files with 30394 additions and 73 deletions

23
.gitignore vendored Normal file
View File

@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*

View File

@ -1,93 +1,46 @@
# Desafio REACT e Typescript
# Getting Started with Create React App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
## Getting started
In the project directory, you can run:
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
### `npm start`
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
## Add your files
The page will reload if you make edits.\
You will also see any lint errors in the console.
- [ ] [Create](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
### `npm test`
```
cd existing_repo
git remote add origin https://gitlab.com/m3-academy/fase-06/desafio-react-e-typescript.git
git branch -M main
git push -uf origin main
```
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.
## Integrate with your tools
### `npm run build`
- [ ] [Set up project integrations](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://gitlab.com/m3-academy/fase-06/desafio-react-e-typescript/-/settings/integrations)
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
## Collaborate with your team
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
- [ ] [Invite team members and collaborators](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/user/project/members/)
- [ ] [Create a new merge request](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
- [ ] [Automatically close issues from merge requests](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
- [ ] [Enable merge request approvals](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
- [ ] [Automatically merge when pipeline succeeds](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
## Test and Deploy
### `npm run eject`
Use the built-in continuous integration in GitLab.
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
- [ ] [Get started with GitLab CI/CD](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/ci/quick_start/index.html)
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/user/application_security/sast/)
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
- [ ] [Use pull-based deployments for improved Kubernetes management](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/user/clusters/agent/)
- [ ] [Set up protected environments](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
If you arent 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 youre on your own.
# Editing this README
You dont have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://gitlab.com/-/experiment/new_project_readme_content:6ad80019019932803f32a91ae13cb05b?https://www.makeareadme.com/) for this template.
## Learn More
## Suggestions for a good README
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
## Name
Choose a self-explaining name for your project.
## Description
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
## Badges
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
## Visuals
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
## Installation
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
## Usage
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
## Support
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
## Roadmap
If you have ideas for releases in the future, it is a good idea to list them in the README.
## Contributing
State if you are open to contributions and what your requirements are for accepting them.
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
## Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
## License
For open source projects, say how it is licensed.
## Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
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/).

29144
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

49
package.json Normal file
View File

@ -0,0 +1,49 @@
{
"name": "desafio",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.11",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"typescript": "^4.9.4",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"formik": "^2.2.9",
"react-router-dom": "^6.7.0",
"sass": "^1.57.1",
"yup": "^0.32.11"
}
}

37
public/index.html Normal file
View File

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>

BIN
src/assets/img/Boleto.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 816 B

BIN
src/assets/img/Diners.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
src/assets/img/Elo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

BIN
src/assets/img/Hiper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

BIN
src/assets/img/Line 5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

BIN
src/assets/img/Logo-M3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
src/assets/img/Master.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

BIN
src/assets/img/Visa.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

BIN
src/assets/img/m3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
src/assets/img/vtex.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

3
src/assets/svg/arrow.svg Normal file
View File

@ -0,0 +1,3 @@
<svg width="10" height="17" viewBox="0 0 10 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.1918 7.85179L2.47543 1.13564C2.04819 0.708196 1.35549 0.708196 0.928456 1.13564C0.501387 1.56271 0.501387 2.25538 0.928456 2.68241L6.8714 8.62517L0.928629 14.5677C0.50156 14.995 0.50156 15.6876 0.928629 16.1146C1.3557 16.5419 2.04836 16.5419 2.4756 16.1146L9.19197 9.39838C9.4055 9.18474 9.51215 8.90504 9.51215 8.62521C9.51215 8.34523 9.4053 8.06532 9.1918 7.85179Z" fill="#C4C4C4"/>
</svg>

After

Width:  |  Height:  |  Size: 500 B

12
src/assets/svg/cart.svg Normal file
View File

@ -0,0 +1,12 @@
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_3715_4730)">
<path d="M27.823 4.07236C27.6697 3.88079 27.4377 3.76928 27.1923 3.76928H5.69581L5.09469 1.16451C5.01009 0.798054 4.68377 0.538452 4.30768 0.538452H0.80768C0.361648 0.538452 0 0.9001 0 1.34619C0 1.79227 0.361648 2.15387 0.80768 2.15387H3.66516L7.7455 19.8355C7.83005 20.2019 8.15642 20.4615 8.53251 20.4615H24.7154C25.1614 20.4615 25.523 20.0999 25.523 19.6539C25.523 19.2078 25.1614 18.8462 24.7154 18.8462H9.17509L8.55384 16.1539H24.7693C25.1471 16.1539 25.4744 15.892 25.5573 15.5235L27.9803 4.75426C28.0342 4.51483 27.9763 4.26398 27.823 4.07236Z" fill="white"/>
<path d="M11.8461 21.5385C10.2132 21.5385 8.88458 22.867 8.88458 24.5C8.88458 26.133 10.2131 27.4615 11.8461 27.4615C13.4791 27.4615 14.8077 26.133 14.8077 24.5C14.8077 22.867 13.4792 21.5385 11.8461 21.5385Z" fill="white"/>
<path d="M21.5385 21.5385C19.9055 21.5385 18.5769 22.867 18.5769 24.5C18.5769 26.133 19.9054 27.4615 21.5385 27.4615C23.1714 27.4615 24.5 26.133 24.5 24.5C24.5 22.867 23.1715 21.5385 21.5385 21.5385Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_3715_4730">
<rect width="28" height="28" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,16 @@
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_8505_664)">
<g clip-path="url(#clip1_8505_664)">
<path d="M19.1779 27.4911V18.544H22.1735L22.6229 15.0561H19.1779V12.8296C19.1779 11.8201 19.4565 11.1321 20.9027 11.1321L22.7441 11.1314V8.01168C22.4257 7.97021 21.3325 7.87512 20.0602 7.87512C17.4035 7.87512 15.5846 9.50028 15.5846 12.4842V15.0561H12.58V18.544H15.5846V27.4911H19.1779Z" fill="#303030"/>
</g>
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
</g>
<defs>
<clipPath id="clip0_8505_664">
<rect width="35" height="35" fill="white"/>
</clipPath>
<clipPath id="clip1_8505_664">
<rect width="19.574" height="19.616" fill="white" transform="translate(7.875 7.87509)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 799 B

3
src/assets/svg/house.svg Normal file
View File

@ -0,0 +1,3 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M30.9231 14.8352L28.692 12.6041L16.4148 0.326808C15.9789 -0.108936 15.2724 -0.108936 14.8366 0.326808L2.55921 12.6041L0.326997 14.8364C-0.101226 15.2798 -0.088997 15.9863 0.354399 16.4146C0.786939 16.8323 1.47263 16.8323 1.90517 16.4146L2.23105 16.0864V30.1339C2.23105 30.7503 2.73075 31.25 3.34719 31.25H27.9018C28.5183 31.25 29.018 30.7503 29.018 30.1339V16.0864L29.345 16.4134C29.7884 16.8417 30.4949 16.8294 30.9231 16.386C31.3409 15.9535 31.3409 15.2677 30.9231 14.8352ZM18.9729 29.0178H12.2762V20.0888H18.9729V29.0178ZM26.7857 29.0178H21.2051V18.9727C21.2051 18.3563 20.7054 17.8566 20.089 17.8566H11.1601C10.5436 17.8566 10.0439 18.3563 10.0439 18.9727V29.0178H4.46333V13.8542L15.6245 2.69296L26.7857 13.8542V29.0178Z" fill="#C4C4C4"/>
</svg>

After

Width:  |  Height:  |  Size: 855 B

View File

@ -0,0 +1,18 @@
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_8505_669)">
<g clip-path="url(#clip1_8505_669)">
<path d="M22.0996 7.87509H13.2966C10.3071 7.87509 7.875 10.3036 7.875 13.2884V22.0777C7.875 25.0626 10.3071 27.491 13.2966 27.491H22.0996C25.0893 27.491 27.5214 25.0625 27.5214 22.0777V13.2884C27.5215 10.3036 25.0893 7.87509 22.0996 7.87509ZM25.7784 22.0777C25.7784 24.103 24.1281 25.7506 22.0997 25.7506H13.2966C11.2683 25.7507 9.61813 24.103 9.61813 22.0777V13.2884C9.61813 11.2632 11.2683 9.61551 13.2966 9.61551H22.0996C24.128 9.61551 25.7783 11.2632 25.7783 13.2884V22.0777H25.7784Z" fill="#303030"/>
<path d="M17.6983 12.6288C14.9068 12.6288 12.6359 14.8962 12.6359 17.6833C12.6359 20.4703 14.9068 22.7376 17.6983 22.7376C20.4897 22.7376 22.7606 20.4703 22.7606 17.6833C22.7606 14.8962 20.4897 12.6288 17.6983 12.6288ZM17.6983 20.9971C15.8681 20.9971 14.379 19.5105 14.379 17.6832C14.379 15.8558 15.868 14.3691 17.6983 14.3691C19.5285 14.3691 21.0175 15.8558 21.0175 17.6832C21.0175 19.5105 19.5284 20.9971 17.6983 20.9971Z" fill="#303030"/>
<path d="M22.973 11.1531C22.6372 11.1531 22.3072 11.2889 22.0701 11.5267C21.8317 11.7634 21.6947 12.0929 21.6947 12.4294C21.6947 12.7648 21.8318 13.0943 22.0701 13.3321C22.3071 13.5688 22.6372 13.7057 22.973 13.7057C23.31 13.7057 23.6389 13.5688 23.8771 13.3321C24.1153 13.0943 24.2513 12.7647 24.2513 12.4294C24.2513 12.0929 24.1153 11.7634 23.8771 11.5267C23.64 11.2889 23.31 11.1531 22.973 11.1531Z" fill="#303030"/>
</g>
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
</g>
<defs>
<clipPath id="clip0_8505_669">
<rect width="35" height="35" fill="white"/>
</clipPath>
<clipPath id="clip1_8505_669">
<rect width="19.6465" height="19.616" fill="white" transform="translate(7.875 7.87509)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,18 @@
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_8505_684)">
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
<g clip-path="url(#clip1_8505_684)">
<path d="M13.4447 13.8592H10.2981C10.1584 13.8592 10.0453 13.9724 10.0453 14.112V24.2205C10.0453 24.3602 10.1584 24.4733 10.2981 24.4733H13.4447C13.5843 24.4733 13.6975 24.3602 13.6975 24.2205V14.112C13.6975 13.9724 13.5843 13.8592 13.4447 13.8592Z" fill="#303030"/>
<path d="M11.8725 8.83395C10.7276 8.83395 9.79614 9.76438 9.79614 10.908C9.79614 12.0522 10.7276 12.9829 11.8725 12.9829C13.0165 12.9829 13.9472 12.0521 13.9472 10.908C13.9472 9.76438 13.0165 8.83395 11.8725 8.83395Z" fill="#303030"/>
<path d="M21.4482 13.6079C20.1844 13.6079 19.2502 14.1512 18.6835 14.7685V14.112C18.6835 13.9724 18.5704 13.8592 18.4307 13.8592H15.4174C15.2777 13.8592 15.1646 13.9724 15.1646 14.112V24.2206C15.1646 24.3602 15.2777 24.4734 15.4174 24.4734H18.557C18.6967 24.4734 18.8098 24.3602 18.8098 24.2206V19.2192C18.8098 17.5338 19.2676 16.8772 20.4425 16.8772C21.722 16.8772 21.8236 17.9298 21.8236 19.3059V24.2206C21.8236 24.3603 21.9368 24.4734 22.0764 24.4734H25.2173C25.3569 24.4734 25.4701 24.3603 25.4701 24.2206V18.6759C25.4701 16.1698 24.9922 13.6079 21.4482 13.6079Z" fill="#303030"/>
</g>
</g>
<defs>
<clipPath id="clip0_8505_684">
<rect width="35" height="35" fill="white"/>
</clipPath>
<clipPath id="clip1_8505_684">
<rect width="15.6739" height="15.6739" fill="white" transform="translate(9.79614 8.81671)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,3 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.2094 11.6187C14.0951 10.4091 14.6249 8.92334 14.6249 7.31267C14.6249 3.2807 11.3444 0.000183105 7.31245 0.000183105C3.28048 0.000183105 0 3.2807 0 7.31267C0 11.3446 3.28052 14.6252 7.31248 14.6252C8.92315 14.6252 10.409 14.0953 11.6186 13.2095L16.4092 18.0001L18 16.4093C18 16.4092 13.2094 11.6187 13.2094 11.6187ZM7.31248 12.3751C4.52086 12.3751 2.25001 10.1043 2.25001 7.31267C2.25001 4.52104 4.52086 2.25019 7.31248 2.25019C10.1041 2.25019 12.375 4.52104 12.375 7.31267C12.375 10.1043 10.1041 12.3751 7.31248 12.3751Z" fill="#303030"/>
</svg>

After

Width:  |  Height:  |  Size: 655 B

View File

@ -0,0 +1,11 @@
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_8505_676)">
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
<path d="M29.9914 10.1563C29.0947 10.5497 28.1392 10.8104 27.143 10.937C28.1678 10.3251 28.95 9.36358 29.3177 8.20462C28.3622 8.7743 27.3072 9.1767 26.1829 9.40126C25.2757 8.43521 23.9826 7.83688 22.5719 7.83688C19.835 7.83688 17.6316 10.0584 17.6316 12.7817C17.6316 13.1735 17.6648 13.5503 17.7462 13.909C13.6363 13.7086 9.99962 11.7388 7.5566 8.73813C7.13009 9.47812 6.87991 10.3251 6.87991 11.2369C6.87991 12.949 7.76157 14.4666 9.07577 15.3453C8.28152 15.3302 7.50235 15.0996 6.84223 14.7364C6.84223 14.7515 6.84223 14.7711 6.84223 14.7907C6.84223 17.193 8.55581 19.1884 10.8029 19.6481C10.4005 19.7581 9.96195 19.8108 9.5068 19.8108C9.19031 19.8108 8.8708 19.7928 8.57089 19.7264C9.21141 21.6842 11.029 23.1235 13.1902 23.1702C11.5082 24.4859 9.37267 25.2786 7.06076 25.2786C6.65535 25.2786 6.26652 25.2605 5.87769 25.2108C8.06751 26.623 10.6628 27.4293 13.4614 27.4293C22.5583 27.4293 27.5318 19.8937 27.5318 13.3619C27.5318 13.1434 27.5243 12.9324 27.5137 12.7229C28.4948 12.0266 29.3192 11.157 29.9914 10.1563Z" fill="#303030"/>
</g>
<defs>
<clipPath id="clip0_8505_676">
<rect width="35" height="35" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,11 @@
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_8505_681)">
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
<path d="M27.8026 12.2486C27.5447 11.2896 26.7885 10.5336 25.8296 10.2754C24.0778 9.79605 17.0705 9.79605 17.0705 9.79605C17.0705 9.79605 10.0635 9.79605 8.3117 10.2572C7.37124 10.5152 6.59666 11.2897 6.33869 12.2486C5.87769 14.0003 5.87769 17.633 5.87769 17.633C5.87769 17.633 5.87769 21.284 6.33869 23.0174C6.59693 23.9763 7.35279 24.7323 8.31183 24.9905C10.0819 25.47 17.0708 25.47 17.0708 25.47C17.0708 25.47 24.0778 25.47 25.8296 25.0088C26.7887 24.7507 27.5447 23.9947 27.8029 23.0358C28.2638 21.284 28.2638 17.6515 28.2638 17.6515C28.2638 17.6515 28.2822 14.0003 27.8026 12.2486ZM14.8396 20.989V14.277L20.6665 17.633L14.8396 20.989Z" fill="#303030"/>
</g>
<defs>
<clipPath id="clip0_8505_681">
<rect width="35" height="35" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 978 B

View File

@ -0,0 +1,185 @@
.conteiner-footer{
.conteiner-NewsLetter{
display: flex;
align-items: center;
justify-content: center;
border: 1px solid black;
border-right: 0;
border-left: 0;
padding: 16px 0;
.NewsLetter-warrper{
width: 37.03125%;
display: flex;
flex-direction: column;
align-content: flex-start;
flex-wrap: wrap;
.NewsLetter-title {
font-family: 'Roboto';
font-weight: 500;
font-size: 18px;
line-height: 21px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #303030;
}
.NewsLetter-div{
margin-top: 8px;
width: 100%;
.NewsLetter-input, .NewsLetter-input::placeholder {
font-family: 'Roboto';
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: #C4C4C4;
}
.NewsLetter-input{
padding: 12px 16px ;
border: 1px solid #E5E5E5;
border-radius: 4px;
width: 71.7299578%;
color: black;
margin-right: 8px;
}
.NewsLetter-buttom{
width: 126px;
height: 42px;
background-color: black;
border-radius: 4px;
font-family: 'Roboto';
font-weight: 700;
font-size: 12px;
line-height: 14px;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.05em;
color: white;
}
}
}
}
.conteiner-footer-top{
padding: 50px 100px;
display: flex;
justify-content: space-between;
.footer-top-menu-list{
display: flex;
justify-content: space-between;
flex-direction: row;
width: 65.462963%;
.footer-top-div{
width: 21.9236209%;
.footer-top-title{
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
color: #303030;
}
.footer-top-ul{
list-style: none;
.footer-top-li{
margin-top: 12px;
font-family: 'Roboto';
font-weight: 400;
font-size: 12px;
line-height: 14px;
text-transform: capitalize;
color: #303030;
}
.footer-top-bold{
font-weight: 500;
}
.footer-top-underline{
text-decoration: underline;
}
}
}
}
.footer-top-rede{
height: 63px;
.footer-top-rede-conteiner{
margin-bottom: 10px;
height: 35px;
.footer-top-rede-img{
margin-left: 10px;
width: 35px;
height: 35px;
}
}
.footer-top-rede-span{
margin-left: 10px;
font-family: 'Roboto';
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: #303030;
}
}
}
.footer-bottom{
background-color: black;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 100px;
height: 64px;
.footer-bottom-span{
font-family: 'Roboto';
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: capitalize;
color: white;
}
.footer-bottom-conteiner-img{
display: flex;
justify-content: space-between;
align-items: center;
div {
display: flex;
align-items: center;
.footer-img{
margin-right: 12px;
height: 20px;
}
.footer-barra{
margin-right: 12px;
height: auto;
}
}
.footer-conteiner-final{
display: flex;
align-items: center;
.footer-span, .footer-img-vtex{
margin-right: 13px;
}
.footer-span{
font-family: 'Roboto';
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: capitalize;
color: #FFFFFF;
}
}
}
}
}

View File

@ -0,0 +1,64 @@
import React from 'react';
import face from '../../assets/svg/facebook.svg'
import insta from '../../assets/svg/instagram.svg'
import linkd from '../../assets/svg/linkdin.svg'
import twitter from '../../assets/svg/twitter.svg'
import youtube from '../../assets/svg/youtube.svg'
import styles from './footer.module.scss';
import { NewsLetter } from './footerNewsLetter';
import { Bottom } from './footerbottom';
const Footer = () => {
return (
<div className={styles['conteiner-footer']}>
< NewsLetter />
<div className={styles['conteiner-footer-top']}>
<div className={styles['footer-top-menu-list']}>
<div className={styles['footer-top-div']}>
<h5 className={styles['footer-top-title']}>Institucional</h5>
<ul className={styles['footer-top-ul']}>
<li className={styles['footer-top-li']}>Quem Somos</li>
<li className={styles['footer-top-li']}>Política de Privacidade</li>
<li className={styles['footer-top-li']}>Segurança</li>
<li className={`${styles['footer-top-li']} ${styles['footer-top-underline']}`}>Seja um Revendedor</li>
</ul>
</div>
<div className={styles['footer-top-div']}>
<h5 className={styles['footer-top-title']}>DÚVIDAS</h5>
<ul className={styles['footer-top-ul']}>
<li className={styles['footer-top-li']}>Entrega</li>
<li className={styles['footer-top-li']}>Pagamento</li>
<li className={styles['footer-top-li']}>Trocas e Devoluções</li>
<li className={`${styles['footer-top-li']} ${styles['footer-top-underline']}`}>Dúvidas Frequentes</li>
</ul>
</div>
<div className={styles['footer-top-div']}>
<h5 className={styles['footer-top-title']}>FALE CONOSCO</h5>
<ul className={styles['footer-top-ul']}>
<li className={`${styles['footer-top-li']} ${styles['footer-top-bold']}`}>Atendimento ao Consumidor</li>
<li className={styles['footer-top-li']}>(11) 4159-9504</li>
<li className={`${styles['footer-top-li']} ${styles['footer-top-bold']}`}>Atendimento Online</li>
<li className={`${styles['footer-top-li']} ${styles['footer-top-underline']}`}>(11) 99433-8825</li>
</ul>
</div>
</div>
<div className={styles['footer-top-rede']}>
<div className={styles['footer-top-rede-conteiner']}>
<img className={styles['footer-top-rede-img']} src={face} alt="logo do facebook" />
<img className={styles['footer-top-rede-img']} src={insta} alt="logo do instagram" />
<img className={styles['footer-top-rede-img']} src={twitter} alt="logo do likedin" />
<img className={styles['footer-top-rede-img']} src={youtube} alt="logo do twitter" />
<img className={styles['footer-top-rede-img']} src={linkd} alt="logo do youtube" />
</div>
<span className={styles['footer-top-rede-span']}>www.loremipsum.com</span>
</div>
</div>
<Bottom />
</div>
)
}
export { Footer };

View File

@ -0,0 +1,18 @@
import React from 'react';
import styles from './footer.module.scss';
const NewsLetter = () => {
return (
<div className={styles['conteiner-NewsLetter']}>
<div className={styles['NewsLetter-warrper']}>
<h3 className={styles['NewsLetter-title']}>Assine nossa Newsletter</h3>
<div className={styles['NewsLetter-div']}>
<input className={styles['NewsLetter-input']} type="email" placeholder='E-mail' />
<button className={styles['NewsLetter-buttom']}>ENVIAR</button>
</div>
</div>
</div>)
}
export { NewsLetter };

View File

@ -0,0 +1,53 @@
import React from 'react';
import master from '../../assets/img/Master.png'
import visa from '../../assets/img/Visa.png'
import diners from '../../assets/img/Diners.png'
import elo from '../../assets/img/Elo.png'
import hiper from '../../assets/img/Hiper.png'
import pagseguro from '../../assets/img/Pagseguro.png'
import boleto from '../../assets/img/Boleto.png'
import linha from '../../assets/img/Line 5.png'
import vtexpci from '../../assets/img/vtex-pci-200.png'
import vtex from '../../assets/img/vtex.png'
import m3 from '../../assets/img/m3.png'
import styles from './footer.module.scss';
const Bottom = () => {
return(
<div className={styles['footer-bottom']}>
<span className={styles['footer-bottom-span']}>Lorem ipsum dolor sit amet, consectetur adipiscing<br/>
Elit, sed do eiusmod tempor</span>
<div className={styles['footer-bottom-conteiner-img']}>
<div>
<img className={styles['footer-img']} src={master} alt="" />
<img className={styles['footer-img']} src={visa} alt="" />
<img className={styles['footer-img']} src={diners} alt="" />
<img className={styles['footer-img']} src={elo} alt="" />
<img className={styles['footer-img']} src={hiper} alt="" />
<img className={styles['footer-img']} src={pagseguro} alt="" />
<img className={styles['footer-img']} src={boleto} alt="" />
</div>
<div className={styles['conteiner-linha']}>
<img className={styles['footer-barra']} src={linha} alt="" />
</div>
<div className={styles['conteiner-vtex']}>
<img src={vtexpci} alt="" />
</div>
</div>
<div className={styles['footer-bottom-conteiner-img']}>
<div className={styles['footer-conteiner-final']}>
<span className={styles['footer-span']}>Powered by</span>
<img className={styles['footer-img-vtex']}src={vtex} alt="" />
</div>
<div className={styles['footer-conteiner-final']}>
<span className={styles['footer-span']}>Developed by</span>
<img src={m3} alt="" />
</div>
</div>
</div>
)
}
export { Bottom }

View File

@ -0,0 +1,35 @@
import React from 'react';
import Logo from '../../assets/img/Logo-M3.png';
import Search from '../../assets/svg/search.svg';
import Cart from '../../assets/svg/cart.svg';
import styles from './headerStyle.module.scss';
import { HeaderBottom } from "./headerBottom";
const Header = () => {
return (
<div className={styles["conteiner"]}>
<header className={styles["conteiner-header"]}>
<div>
<a href="/">
<img src={Logo} alt="Logo da M3 academy" />
</a>
</div>
<label htmlFor="search" className={styles["conteiner-search"]}>
<input className={styles["search-input"]} id="search" name='search' type="text" placeholder='Buscar...'/>
<img className={styles["search-img"]} src={Search} alt="buscar" />
</label>
<div className={styles['conteiner-cart']}>
<a className={styles['cart-text']} href="/">
Entrar
<img src={Cart} alt="carrinho" />
</a>
</div>
</header>
< HeaderBottom />
</div>
)
}
export { Header };

View File

@ -0,0 +1,26 @@
import React from 'react';
import styles from './headerStyle.module.scss';
interface text{
text: string;
}
const Links = (props: text) => {
const { text } = props;
return (
<a className={styles["bottom-item"]} href="/">{text}</a>
)
}
const HeaderBottom = () => {
return(
<nav className={styles["conteiner-bottom"]}>
<Links text='cursos'/>
<Links text='saiba mais'/>
<Links text='institucionais'/>
</nav>
)
};
export { HeaderBottom }

View File

@ -0,0 +1,75 @@
.conteiner {
background-color: black;
width: 100%;
.conteiner-header {
display: flex;
height: 76px;
justify-content: space-between;
align-items: center;
padding: 0px 100px;
width: 100%;
.conteiner-search {
display: flex;
background-color: white;
border: 2px solid #F2F2F2;
border-radius: 5px;
padding: 5px 16px;
height: 32px;
width: 24.445%;
.search-input, .search-input::placeholder{
font-family: 'Roboto', sans-serif;
font-weight: 400;
font-size: 14px;
border: 0;
line-height: 16px;
color: #C6C6C6;
width: 100%;
}
.search-img {
height: 18px;
width: 18px;
}
}
.conteiner-cart {
width: 12.594%;
.cart-text{
display: flex;
align-items: center;
justify-content: space-between;
text-transform: uppercase;
text-decoration: none;
font-family: 'Roboto', sans-serif;
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: white;
}
}
}
.conteiner-bottom {
border-top: 1px solid #C4C4C4;
height: 44px;
display: flex;
align-items: center;
padding: 0 100px;
.bottom-item{
color: white;
font-family: 'Roboto';
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
text-decoration: none;
margin-right: 55px;
}
}
}

View File

@ -0,0 +1,10 @@
import * as Yup from "yup"
export default Yup.object().shape({
nome: Yup.string().required("*Campo Obrigatório").min(2),
email: Yup.string().required("*Campo Obrigatório").email("E-mail inválido"),
cpf: Yup.number().required("*Campo Obrigatório").min(14),
dataDeNacismento: Yup.date().required("*Campo Obrigatório"),
telefone: Yup.number().required("*Campo Obrigatório").min(9),
})

View File

@ -0,0 +1,209 @@
.conteiner-main{
padding: 0 100px;
.main-top{
position: relative;
.main-house{
display: flex;
align-items: center;
font-family: 'Roboto';
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: #C4C4C4;
margin-top: 30px;
text-transform: uppercase;
.img-house{
height: 16px;
width: 16px;
}
.img-arrow{
height: 8px;
width: 8px;
margin: 0 8px;
}
}
.main-title{
margin: 80px 40.6481481%;
font-family: 'Roboto';
font-weight: 400;
font-size: 24px;
line-height: 28px;
color: #292929;
letter-spacing: 0.1em;
text-transform: uppercase;
}
}
.conteiner-div{
display: flex;
.conteiner-nav{
border-right: 1px solid black;
height: 285px;
width: 27.962963%;
.conteiner-ul {
width: 100%;
li{
list-style: none;
.item-li, .active-style{
display: block;
width: 100%;
padding: 10px 16px;
font-family: 'Roboto';
font-size: 16px;
line-height: 19px;
text-decoration: none;
}
.item-li{
color: #7D7D7D;
font-weight: 400;
}
.active-style{
background-color: black;
color: white;
font-weight: 700;
}
}
}
}
.conteiner-item-description, .conteiner-item-formik{
padding: 10px 0 81px 30px;
.item-description-text, .item-description-title{
font-family: 'Roboto';
}
.item-description-title{
font-weight: 700;
font-size: 24px;
line-height: 28px;
margin-bottom: 12px;
color: #292929;
}
.item-description-text {
font-weight: 400;
font-size: 13px;
line-height: 15px;
color: #7D7D7D;
max-width: 748px;
text-align: justify;
}
}
.conteiner-item-formik{
padding: 0;
}
.conteiner-form{
padding: 10px 0 65px 30px;
width: 72.037037%;;
.item-form-title {
font-family: 'Roboto';
font-weight: 700;
font-size: 24px;
line-height: 28px;
color: #292929;
}
.form{
.item-form-conteiner{
display: flex;
flex-direction: column;
.item-form-conteiner-schema {
height: 40px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
.form-label, .invalid-feedback{
font-family: 'Roboto';
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: #100D0E;
margin-left: 15px;
}
.invalid-feedback{
color: red;
margin-left: 0;
margin-top: 24px;
}
}
.form-input{
font-family: 'Roboto';
font-weight: 400;
font-size: 14px;
line-height: 16px;
border: 1px solid #100D0E;
border-radius: 25px;
padding: 15px 20px;
color: #100D0E;
}
.form-input::placeholder{
color: #B9B7B7;
}
}
.form-conteiner-checkbox{
display: flex;
align-items: center;
justify-content: center;
margin: 12px 0;
.form-checkbox-span{
color: red;
}
.form-checkbox-label{
font-weight: 400;
font-size: 14px;
line-height: 16px;
font-family: 'Roboto';
color: #100D0E;
text-decoration: underline;
margin: 0 4px;
}
.form-checkbox-input{
border-radius: 3px;
width: 18px;
height: 18px;
}
}
.form-buttom{
width: 100%;
padding: 15px 0;
background-color: black;
color: white;
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 400;
font-size: 16px;
line-height: 19px;
font-family: 'Roboto';
border-radius: 25px;
}
}
}
}
}

View File

@ -0,0 +1,27 @@
import React from 'react';
import house from '../../assets/svg/house.svg';
import arrow from '../../assets/svg/arrow.svg';
import styles from './main.module.scss';
import { Nav } from './mainNav'
const Main = () => {
return (
<div className={styles['conteiner-main']}>
<div className={styles['main-top']}>
<div className={styles['main-house']}>
<img className={styles['img-house']} src={house} alt="casa" />
<img className={styles['img-arrow']} src={arrow} alt="flecha" />
<span>Institucional</span>
</div>
<h1 className={styles['main-title']}>Institucional</h1>
</div>
<Nav />
</div>
)
}
export { Main };

View File

@ -0,0 +1,105 @@
import React from 'react';
import styles from './main.module.scss';
import formschema from './formschema';
import {Formik, Form, Field, ErrorMessage} from 'formik';
interface IformikValues {
nome: string;
email: string;
cpf: number;
dataDeNacismento: number;
telefone: number;
instagram: string;
checkbox: boolean;
}
const initialValue = {
nome: "",
email: "",
cpf: 0,
dataDeNacismento: 0,
telefone: 0,
instagram: "",
checkbox: false,
}
const Contato = () => {
const fomikSubmit = (value: IformikValues) => {
console.log(value)
};
return(
<div className={styles['conteiner-form']}>
<h2 className={styles['item-form-title']}>Preencha o formulário </h2>
<Formik onSubmit={fomikSubmit} initialValues={initialValue} validationSchema={formschema}>
<Form className={styles['form']}>
<div className={styles['item-form-conteiner']}>
<div className={styles['item-form-conteiner-schema']}>
<label htmlFor="nome" className={styles['form-label']}>
Nome
</label>
<ErrorMessage component="span" name="nome" className={styles["invalid-feedback"]}/>
</div>
<Field className={styles['form-input']} id="nome" name="nome" placeholder="Seu nome completo" />
</div>
<div className={styles['item-form-conteiner']}>
<div className={styles['item-form-conteiner-schema']}>
<label htmlFor="email" className={styles['form-label']}>
E-mail
</label>
<ErrorMessage component="span" name="email" className={styles["invalid-feedback"]}/>
</div>
<Field className={styles['form-input']} id="email" name="email" placeholder="Seu e-mail" />
</div>
<div className={styles['item-form-conteiner']}>
<div className={styles['item-form-conteiner-schema']}>
<label htmlFor="cpf" className={styles['form-label']}>
CPF
</label>
<ErrorMessage component="span" name="cpf" className={styles["invalid-feedback"]}/>
</div>
<Field className={styles['form-input']} id="cpf" name="cpf" placeholder="000.000.000-00" />
</div>
<div className={styles['item-form-conteiner']}>
<div className={styles['item-form-conteiner-schema']}>
<label htmlFor="dataDeNacismento" className={styles['form-label']}>
Data de Nascimento
</label>
<ErrorMessage component="span" name="dataDeNacismento" className={styles["invalid-feedback"]}/>
</div>
<Field className={styles['form-input']} id="dataDeNacismento" name="dataDeNacismento" placeholder="00.00.0000" />
</div>
<div className={styles['item-form-conteiner']}>
<div className={styles['item-form-conteiner-schema']}>
<label htmlFor="telefone" className={styles['form-label']}>
Telefone
</label>
<ErrorMessage component="span" name="telefone" className={styles["invalid-feedback"]}/>
</div>
<Field className={styles['form-input']} id="telefone" name="telefone" placeholder="(00) 00000-0000" />
</div>
<div className={styles['item-form-conteiner']}>
<div className={styles['item-form-conteiner-schema']}>
<label htmlFor="instagram" className={styles['form-label']}>
Instagram
</label>
</div>
<Field className={styles['form-input']} id="instagram" name="instagram" placeholder="@seuuser" />
</div>
<div className={styles['form-conteiner-checkbox']}>
<span className={styles['form-checkbox-span']}>*</span>
<label className={styles['form-checkbox-label']} htmlFor="checkbox">Declaro que li e aceito</label>
<input className={styles['form-checkbox-input']} type="checkbox" name="checkbox" id="checkbox" />
</div>
<button className={styles['form-buttom']} type="submit">CADASTRE-SE</button>
</Form>
</Formik>
</div>
)
}
export { Contato }

View File

@ -0,0 +1,72 @@
import React from 'react';
import { Sobre } from './mainSobre'
import { Pagamento } from './mainSobre'
import { Entrega } from './mainSobre'
import { Troca } from './mainSobre'
import { Seguranca } from './mainSobre'
import { Contato } from './mainFormik'
import styles from './main.module.scss';
import { BrowserRouter, Routes, Route, NavLink,} from "react-router-dom";
const Nav = () => {
return(
<BrowserRouter>
<div className={styles['conteiner-div']}>
<nav className={styles['conteiner-nav']}>
<ul className={styles['conteiner-ul']}>
<li>
<NavLink
to={'/'}
className={({isActive}) => (isActive ? `${styles["active-style"]}` : `${styles['item-li']}`)}>
Sobre
</NavLink>
</li>
<li>
<NavLink
to={'/pagamento'}
className={({isActive}) => (isActive ? `${styles["active-style"]}` : `${styles['item-li']}`)}>
Forma de Pagamento
</NavLink>
</li>
<li>
<NavLink to={'/entrega'}
className={({isActive}) => (isActive ? `${styles["active-style"]}` : `${styles['item-li']}`)}>
Entrega
</NavLink>
</li>
<li>
<NavLink to={'/troca'}
className={({isActive}) => (isActive ? `${styles["active-style"]}` : `${styles['item-li']}`)}>
Troca e Devolução
</NavLink>
</li>
<li>
<NavLink to={'/seguranca'}
className={({isActive}) => (isActive ? `${styles["active-style"]}` : `${styles['item-li']}`)}>
Segurança e Privacidade
</NavLink>
</li>
<li>
<NavLink to={'/contato'}
className={({isActive}) => (isActive ? `${styles["active-style"]}` : `${styles['item-li']}`)}>
Contato
</NavLink>
</li>
</ul>
</nav>
<Routes>
<Route path="/" element={<Sobre />}></Route>
<Route path="/pagamento" element={<Pagamento />}></Route>
<Route path="/entrega" element={<Entrega/>}></Route>
<Route path="/troca" element={<Troca />}></Route>
<Route path="/seguranca" element={<Seguranca />}></Route>
<Route path="/contato" element={<Contato />}></Route>
</Routes>
</div>
</BrowserRouter>
)
}
export { Nav }

View File

@ -0,0 +1,63 @@
import React from 'react';
import styles from './main.module.scss';
const Text = () => {
return(
<p className={styles['item-description-text']}>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br/><br />
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.<br/><br />
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</p>
)
}
const Sobre = () => {
return(
<div className={styles['conteiner-item-description']}>
<h2 className={styles['item-description-title']}>Sobre</h2>
<Text/>
</div>
)
}
const Pagamento = () => {
return(
<div className={styles['conteiner-item-description']}>
<h2 className={styles['item-description-title']}>Forma de Pagamento</h2>
<Text/>
</div>
)
}
const Entrega = () => {
return(
<div className={styles['conteiner-item-description']}>
<h2 className={styles['item-description-title']}>Entrega</h2>
<Text/>
</div>
)
}
const Troca = () => {
return(
<div className={styles['conteiner-item-description']}>
<h2 className={styles['item-description-title']}>Troca e Devolução</h2>
<Text/>
</div>
)
}
const Seguranca = () => {
return(
<div className={styles['conteiner-item-description']}>
<h2 className={styles['item-description-title']}>Segurança e Privacidade</h2>
<Text/>
</div>
)
}
export { Sobre }
export { Pagamento }
export { Entrega }
export { Troca }
export { Seguranca }

14
src/index.tsx Normal file
View File

@ -0,0 +1,14 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './styles/index.css';
import App from './pages/App';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);

17
src/pages/App.tsx Normal file
View File

@ -0,0 +1,17 @@
import React from 'react';
import '../styles/App.css';
import { Footer } from "../components/Footer/footer";
import { Header } from "../components/Header/header";
import { Main } from "../components/Main/main";
function App() {
return (
<div className="App">
< Header />
<Main />
<Footer />
</div>
);
}
export default App;

3
src/react-app-env.d.ts vendored Normal file
View File

@ -0,0 +1,3 @@
/// <reference types="react-scripts" />
declare module '*.scss';

5
src/styles/App.css Normal file
View File

@ -0,0 +1,5 @@
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}

13
src/styles/index.css Normal file
View File

@ -0,0 +1,13 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

26
tsconfig.json Normal file
View File

@ -0,0 +1,26 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src"
]
}