Merge pull request 'feature/development' (#1) from feature/development into main
Reviewed-on: #1
23
.gitignore
vendored
Normal 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*
|
99
README.md
@ -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.
|
||||
### `yarn 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:
|
||||
### `yarn 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
|
||||
### `yarn 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
|
||||
### `yarn eject`
|
||||
|
||||
Use the built-in continuous integration in GitLab.
|
||||
**Note: this is a one-way operation. Once you `eject`, you can’t 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 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.
|
||||
|
||||
# Editing this README
|
||||
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.
|
||||
|
||||
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/).
|
||||
|
93
README.old.md
Normal file
@ -0,0 +1,93 @@
|
||||
# Desafio REACT e Typescript
|
||||
|
||||
|
||||
|
||||
## Getting started
|
||||
|
||||
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
||||
|
||||
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)!
|
||||
|
||||
## Add your files
|
||||
|
||||
- [ ] [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:
|
||||
|
||||
```
|
||||
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
|
||||
```
|
||||
|
||||
## Integrate with your tools
|
||||
|
||||
- [ ] [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)
|
||||
|
||||
## Collaborate with your team
|
||||
|
||||
- [ ] [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)
|
||||
|
||||
## Test and Deploy
|
||||
|
||||
Use the built-in continuous integration in GitLab.
|
||||
|
||||
- [ ] [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)
|
||||
|
||||
***
|
||||
|
||||
# Editing this README
|
||||
|
||||
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.
|
||||
|
||||
## 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.
|
||||
|
53
package.json
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
"name": "desafio-react-e-typescript-josecarloslins",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@testing-library/jest-dom": "^5.14.1",
|
||||
"@testing-library/react": "^13.0.0",
|
||||
"@testing-library/user-event": "^13.2.1",
|
||||
"@types/jest": "^27.0.1",
|
||||
"@types/node": "^16.7.13",
|
||||
"@types/react": "^18.0.0",
|
||||
"@types/react-dom": "^18.0.0",
|
||||
"cpf-cnpj-validator": "^1.0.3",
|
||||
"date-fns": "^2.29.3",
|
||||
"formik": "^2.2.9",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.6.1",
|
||||
"react-scripts": "5.0.1",
|
||||
"react-text-mask": "^5.5.0",
|
||||
"sass": "^1.57.1",
|
||||
"typescript": "^4.4.2",
|
||||
"web-vitals": "^2.1.0",
|
||||
"yup": "^0.32.11"
|
||||
},
|
||||
"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": {
|
||||
"@types/react-text-mask": "^5.4.11"
|
||||
}
|
||||
}
|
3
public/assets/icons/arrow-icon.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg viewBox="0 0 6 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M5.11608 3.60396L1.6762 0.164193C1.45738 -0.0547314 1.10261 -0.0547314 0.883896 0.164193C0.665166 0.382921 0.665166 0.737679 0.883896 0.95639L3.92766 4.00006L0.883984 7.04362C0.665255 7.26244 0.665255 7.61716 0.883984 7.83589C1.10271 8.0547 1.45747 8.0547 1.67629 7.83589L5.11617 4.39607C5.22553 4.28665 5.28015 4.1434 5.28015 4.00008C5.28015 3.85668 5.22543 3.71332 5.11608 3.60396Z" fill="#C4C4C4"/>
|
||||
</svg>
|
After Width: | Height: | Size: 489 B |
12
public/assets/icons/cart-icon.svg
Normal file
@ -0,0 +1,12 @@
|
||||
<svg viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet">
|
||||
<g clip-path="url(#clip0_3856_4)">
|
||||
<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.8462 21.5385C10.2132 21.5385 8.88464 22.867 8.88464 24.5C8.88464 26.133 10.2132 27.4615 11.8462 27.4615C13.4792 27.4615 14.8077 26.133 14.8077 24.5C14.8077 22.867 13.4792 21.5385 11.8462 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_3856_4">
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
4
public/assets/icons/closeMenu.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<svg viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M11.2284 1.28215L1.22996 10.9942C0.550673 11.6541 0.568968 12.7044 1.27083 13.3401C1.97268 13.9759 3.09232 13.9564 3.77161 13.2966L13.77 3.58449C14.4493 2.92466 14.431 1.87436 13.7292 1.23858C13.0273 0.602806 11.9077 0.622311 11.2284 1.28215Z" fill="white"/>
|
||||
<path d="M1.65213 3.40819L10.8751 13.7186C11.5082 14.4263 12.6262 14.5239 13.3724 13.9366C14.1185 13.3493 14.2102 12.2995 13.5771 11.5918L4.35414 1.28143C3.72107 0.573715 2.603 0.476092 1.85686 1.06338C1.11072 1.65067 1.01906 2.70048 1.65213 3.40819Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 615 B |
16
public/assets/icons/facebook-icon.svg
Normal file
@ -0,0 +1,16 @@
|
||||
<svg viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4151_910)">
|
||||
<g clip-path="url(#clip1_4151_910)">
|
||||
<path d="M19.1778 27.4911V18.544H22.1734L22.6228 15.0561H19.1778V12.8296C19.1778 11.8201 19.4564 11.1321 20.9026 11.1321L22.7441 11.1314V8.01166C22.4256 7.97019 21.3325 7.87511 20.0602 7.87511C17.4034 7.87511 15.5845 9.50026 15.5845 12.4842V15.0561H12.5799V18.544H15.5845V27.4911H19.1778Z" fill="#303030"/>
|
||||
</g>
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_4151_910">
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_4151_910">
|
||||
<rect width="19.574" height="19.616" fill="white" transform="translate(7.87497 7.87509)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 784 B |
3
public/assets/icons/home-icon.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M15.8326 7.59562L14.6903 6.4533L8.40431 0.167326C8.18118 -0.0557753 7.81942 -0.0557753 7.59628 0.167326L1.31028 6.4533L0.167381 7.59623C-0.0518699 7.82324 -0.0456085 8.185 0.18141 8.40425C0.402871 8.61814 0.753946 8.61814 0.975407 8.40425L1.14226 8.23623V15.4285C1.14226 15.7442 1.3981 16 1.71372 16H14.2857C14.6013 16 14.8572 15.7442 14.8572 15.4285V8.23623L15.0246 8.40368C15.2516 8.62293 15.6134 8.61664 15.8326 8.38965C16.0465 8.16819 16.0465 7.81708 15.8326 7.59562ZM9.71409 14.8571H6.28537V10.2855H9.71409V14.8571ZM13.7142 14.8571H10.857V9.71403C10.857 9.39841 10.6011 9.14256 10.2855 9.14256H5.7139C5.39829 9.14256 5.14244 9.39841 5.14244 9.71403V14.8571H2.28518V7.09334L7.99969 1.3788L13.7142 7.09334V14.8571Z" fill="#C4C4C4"/>
|
||||
</svg>
|
After Width: | Height: | Size: 825 B |
18
public/assets/icons/instagram-icon.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<svg viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4151_915)">
|
||||
<g clip-path="url(#clip1_4151_915)">
|
||||
<path d="M22.0996 7.87509H13.2966C10.3071 7.87509 7.87497 10.3036 7.87497 13.2884V22.0777C7.87497 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.6181 24.103 9.6181 22.0777V13.2884C9.6181 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.6982 12.6288C14.9067 12.6288 12.6358 14.8962 12.6358 17.6833C12.6358 20.4703 14.9067 22.7376 17.6982 22.7376C20.4896 22.7376 22.7606 20.4703 22.7606 17.6833C22.7606 14.8962 20.4896 12.6288 17.6982 12.6288ZM17.6982 20.9971C15.868 20.9971 14.3789 19.5105 14.3789 17.6832C14.3789 15.8558 15.8679 14.3691 17.6982 14.3691C19.5285 14.3691 21.0175 15.8558 21.0175 17.6832C21.0175 19.5105 19.5284 20.9971 17.6982 20.9971Z" fill="#303030"/>
|
||||
<path d="M22.9729 11.1531C22.6371 11.1531 22.3072 11.2889 22.07 11.5267C21.8317 11.7634 21.6946 12.0929 21.6946 12.4294C21.6946 12.7648 21.8318 13.0942 22.07 13.3321C22.3071 13.5688 22.6371 13.7057 22.9729 13.7057C23.3099 13.7057 23.6388 13.5688 23.877 13.3321C24.1153 13.0942 24.2512 12.7647 24.2512 12.4294C24.2512 12.0929 24.1153 11.7634 23.877 11.5267C23.64 11.2889 23.3099 11.1531 22.9729 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_4151_915">
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_4151_915">
|
||||
<rect width="19.6465" height="19.616" fill="white" transform="translate(7.87497 7.87509)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
18
public/assets/icons/linkedin-icon.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<svg viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4151_930)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<g clip-path="url(#clip1_4151_930)">
|
||||
<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.83394C10.7276 8.83394 9.7962 9.76436 9.7962 10.908C9.7962 12.0521 10.7276 12.9829 11.8725 12.9829C13.0165 12.9829 13.9472 12.0521 13.9472 10.908C13.9473 9.76436 13.0165 8.83394 11.8725 8.83394Z" 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.2205C15.1646 24.3602 15.2777 24.4733 15.4174 24.4733H18.557C18.6967 24.4733 18.8098 24.3602 18.8098 24.2205V19.2191C18.8098 17.5338 19.2676 16.8772 20.4425 16.8772C21.722 16.8772 21.8236 17.9298 21.8236 19.3058V24.2206C21.8236 24.3602 21.9368 24.4734 22.0764 24.4734H25.2173C25.3569 24.4734 25.4701 24.3602 25.4701 24.2206V18.6759C25.4701 16.1698 24.9922 13.6079 21.4482 13.6079Z" fill="#303030"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_4151_930">
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_4151_930">
|
||||
<rect width="15.6739" height="15.6739" fill="white" transform="translate(9.7962 8.8167)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
4
public/assets/icons/logoM3M3Academy.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<svg viewBox="0 0 29 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17.0307 5.35268C16.5833 4.75927 16.0213 4.26577 15.3795 3.90269C14.7376 3.53961 14.0296 3.31466 13.2992 3.24175C12.5688 3.16883 11.8315 3.2495 11.1328 3.47877C10.4342 3.70803 9.78905 4.08103 9.23731 4.57469L8.76065 4.20515C5.48598 1.85175 0.900479 3.8502 0.471483 7.88112C0.34098 9.82309 0.307571 11.7706 0.371384 13.716C0.360856 13.9656 0.400742 14.2148 0.488564 14.4481C0.576387 14.6814 0.710272 14.8937 0.88191 15.072C1.05355 15.2503 1.25928 15.3907 1.48632 15.4845C1.71337 15.5782 1.95689 15.6234 2.20177 15.6172C2.44143 15.6161 2.6784 15.5657 2.89845 15.4688C3.11851 15.372 3.31709 15.2307 3.48227 15.0536C3.64746 14.8765 3.77583 14.6671 3.85968 14.4381C3.94352 14.209 3.98111 13.9651 3.97019 13.7209C3.97019 12.3205 3.97019 10.9201 3.97019 9.51489C3.96633 9.0983 3.99502 8.68206 4.05599 8.27012C4.13287 7.84849 4.3634 7.4722 4.70121 7.21691C5.03901 6.96162 5.45905 6.84627 5.87684 6.89406C6.28524 6.92547 6.66838 7.10775 6.95445 7.40673C7.24052 7.70571 7.40987 8.10086 7.43076 8.5181C7.45459 9.03351 7.43076 9.54893 7.43076 10.0643C7.43076 11.3188 7.43076 12.5733 7.43076 13.8278C7.42587 14.1917 7.53195 14.5481 7.73434 14.8478C7.93673 15.1475 8.22541 15.3755 8.56045 15.5005C9.77594 16.0159 11.0153 15.1115 11.0391 13.6868C11.0391 12.0288 11.0391 10.3707 11.0868 8.71259C11.1028 8.31178 11.2229 7.92249 11.4347 7.58452C11.6364 7.2865 11.9287 7.06453 12.2665 6.95292C12.6042 6.8413 12.9685 6.84625 13.3032 6.96699C13.6808 7.07493 14.0109 7.31116 14.2388 7.63656C14.4668 7.96196 14.579 8.35703 14.5569 8.75636C14.5569 10.4339 14.5569 12.1114 14.5569 13.7889C14.5569 14.0297 14.6033 14.268 14.6937 14.4904C14.784 14.7129 14.9163 14.9149 15.0832 15.0852C15.2501 15.2554 15.4482 15.3904 15.6662 15.4825C15.8842 15.5746 16.1179 15.6221 16.3539 15.6221C16.5899 15.6221 16.8236 15.5746 17.0416 15.4825C17.2596 15.3904 17.4577 15.2554 17.6246 15.0852C17.7914 14.9149 17.9238 14.7129 18.0141 14.4904C18.1044 14.268 18.1509 14.0297 18.1509 13.7889C18.1509 12.0725 18.1509 10.3853 18.1509 8.64452C18.1542 7.44943 17.7592 6.28868 17.0307 5.35268Z" fill="white"/>
|
||||
<path d="M26.035 6.32487L25.4678 6.08661C26.0302 5.63927 26.5641 5.25514 27.0407 4.81752C27.4642 4.4774 27.8298 4.06832 28.1228 3.60679C28.9808 1.97302 27.77 0.0718221 25.8491 0.0280605C24.0759 0.00374847 22.3075 0.00374847 20.5343 0.00374847C20.3171 -0.0115626 20.0992 0.0201443 19.8949 0.0967889C19.6905 0.173434 19.5044 0.293284 19.3486 0.448477C19.1929 0.60367 19.0711 0.790699 18.9912 0.997294C18.9113 1.20389 18.8751 1.42538 18.8851 1.64724C18.8638 1.87321 18.891 2.10119 18.9648 2.31538C19.0385 2.52956 19.157 2.72483 19.3121 2.88764C19.4671 3.05046 19.6551 3.17692 19.8628 3.25828C20.0706 3.33964 20.2932 3.37394 20.5152 3.3588C21.3828 3.3588 22.2503 3.3588 23.1178 3.3588C23.2656 3.40743 23.4181 3.40743 23.7041 3.40743C22.5268 4.37991 21.44 5.30376 20.3675 6.21789C19.6763 6.80138 19.4666 7.43836 19.7097 8.16285C19.8388 8.52047 20.0794 8.82497 20.3946 9.02963C20.7097 9.23429 21.082 9.3278 21.4543 9.29579C22.3742 9.29579 23.2989 9.29579 24.2189 9.29579C24.4252 9.25688 24.6374 9.26476 24.8404 9.31886C25.0434 9.37297 25.2322 9.47198 25.3935 9.60888C25.5548 9.74577 25.6846 9.91719 25.7736 10.111C25.8627 10.3048 25.9089 10.5162 25.9089 10.7302C25.9089 10.9442 25.8627 11.1556 25.7736 11.3494C25.6846 11.5432 25.5548 11.7146 25.3935 11.8515C25.2322 11.9884 25.0434 12.0874 24.8404 12.1415C24.6374 12.1956 24.4252 12.2035 24.2189 12.1646C23.0273 12.1646 21.8356 12.1646 20.6439 12.1646C20.2262 12.1876 19.833 12.3731 19.5453 12.6829C19.2576 12.9927 19.0972 13.4032 19.0972 13.83C19.0972 14.2567 19.2576 14.6672 19.5453 14.977C19.833 15.2868 20.2262 15.4723 20.6439 15.4954C21.888 15.4954 23.1369 15.4954 24.381 15.4954C25.4738 15.4671 26.5239 15.0565 27.3553 14.3323C28.1867 13.6082 28.7488 12.6145 28.9474 11.5179C29.1057 10.4443 28.9043 9.34753 28.3758 8.40513C27.8473 7.46273 27.0225 6.72978 26.035 6.32487Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 3.9 KiB |
7
public/assets/icons/logoVTEXM3Academy.svg
Normal file
@ -0,0 +1,7 @@
|
||||
<svg viewBox="0 0 46 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M33.3909 5.99083H31.7838V11.4557C31.7838 11.558 31.6953 11.6456 31.5921 11.6456H30.3535C30.2503 11.6456 30.1619 11.558 30.1619 11.4557V5.99083H28.5399C28.4957 5.99083 28.4367 5.97622 28.4072 5.94699C28.3778 5.91777 28.3483 5.87394 28.3483 5.81549V4.8511C28.3483 4.80727 28.363 4.74882 28.4072 4.7196C28.4367 4.69037 28.4957 4.66115 28.5399 4.67576H33.3909C33.4941 4.67576 33.5826 4.74882 33.5826 4.8511V5.81549C33.5826 5.91777 33.4941 5.99083 33.3909 5.99083Z" fill="white"/>
|
||||
<path d="M38.5662 11.6017C37.9322 11.6893 37.2834 11.7332 36.6494 11.7186C35.4256 11.7186 34.3492 11.4117 34.3492 9.70213V6.5898C34.3492 4.88021 35.4403 4.58797 36.6641 4.58797C37.2982 4.57336 37.9322 4.6172 38.5662 4.70487C38.6989 4.71948 38.7579 4.77793 38.7579 4.89482V5.77154C38.7579 5.87382 38.6694 5.96149 38.5662 5.96149H36.5757C36.1333 5.96149 35.9711 6.10761 35.9711 6.60441V7.4519H38.4925C38.5957 7.4519 38.6842 7.53957 38.6842 7.64186V8.53318C38.6842 8.63547 38.5957 8.72314 38.4925 8.72314H35.9711V9.71674C35.9711 10.1989 36.1333 10.3597 36.5757 10.3597H38.5662C38.6694 10.3597 38.7579 10.4473 38.7579 10.5496V11.4263C38.7579 11.5286 38.6989 11.5871 38.5662 11.6017Z" fill="white"/>
|
||||
<path d="M45.7027 11.6455H44.1988C44.0956 11.6601 43.9924 11.6016 43.9481 11.4993L42.6359 9.45367L41.4563 11.4555C41.3973 11.5724 41.3236 11.6455 41.2204 11.6455H39.8196C39.7901 11.6455 39.7459 11.6455 39.7164 11.6162C39.6869 11.587 39.6722 11.5578 39.6722 11.5139C39.6722 11.4847 39.6869 11.4701 39.6869 11.4555L41.7364 8.06555L39.6574 4.85094C39.6427 4.83632 39.6427 4.8071 39.6427 4.79249C39.6427 4.71943 39.7164 4.66098 39.7901 4.67559H41.3383C41.4415 4.67559 41.5153 4.76327 41.5742 4.85094L42.7833 6.75048L43.9629 4.85094C44.0071 4.74865 44.0956 4.69021 44.1988 4.67559H45.5995C45.6732 4.67559 45.747 4.71943 45.747 4.79249C45.747 4.8071 45.7322 4.83632 45.7322 4.85094L43.668 8.09477L45.8207 11.4555C45.8354 11.4847 45.8502 11.5139 45.8502 11.5432C45.8354 11.6016 45.7765 11.6455 45.7027 11.6455Z" fill="white"/>
|
||||
<path d="M26.0923 4.69055C26.0186 4.69055 25.9596 4.73439 25.9449 4.80745L24.5736 9.84854C24.5589 9.95082 24.5294 9.99466 24.4409 9.99466C24.3524 9.99466 24.323 9.95082 24.3082 9.84854L22.937 4.80745C22.9222 4.73439 22.8632 4.69055 22.7895 4.69055H21.433C21.3888 4.69055 21.3445 4.70516 21.3151 4.749C21.2856 4.77822 21.2708 4.82206 21.2856 4.86589C21.2856 4.86589 22.9665 10.6522 22.9812 10.7106C23.2024 11.3974 23.7479 11.7335 24.4409 11.7335C25.1044 11.7627 25.7089 11.3389 25.9006 10.7106C25.9301 10.6376 27.5668 4.86589 27.5668 4.86589C27.5815 4.82206 27.5668 4.77822 27.5373 4.749C27.5078 4.71978 27.4636 4.69055 27.4193 4.69055H26.0923Z" fill="white"/>
|
||||
<path d="M18.4251 0H4.31453C3.79847 0 3.32664 0.277625 3.07599 0.70137C2.81058 1.13973 2.79584 1.68037 3.03175 2.11872L4.44723 4.77808H1.88167C1.55729 4.77808 1.24766 4.93881 1.07072 5.21644C0.893786 5.49406 0.893786 5.84475 1.04123 6.13699L5.58257 14.6411C5.74476 14.9479 6.06914 15.1379 6.40826 15.1379C6.74739 15.1379 7.07177 14.9479 7.23396 14.6411L8.47251 12.3324L10.0207 15.2402C10.2713 15.7078 10.7727 16 11.3035 16C11.8343 16 12.3356 15.7078 12.5863 15.2402L19.6637 2.04566C19.8996 1.60731 19.8848 1.08128 19.6194 0.672146C19.3835 0.248402 18.9117 0 18.4251 0ZM12.1144 5.56712L9.01806 11.3242C8.91485 11.5288 8.70842 11.6457 8.47251 11.6457C8.23659 11.6457 8.03017 11.5142 7.92696 11.3242L4.87483 5.62557C4.78636 5.45023 4.78636 5.24566 4.88957 5.07032C4.99278 4.89498 5.18446 4.79269 5.37614 4.79269H11.6279C11.8195 4.79269 11.9965 4.88036 12.0849 5.0411C12.2029 5.20183 12.2029 5.40639 12.1144 5.56712Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 3.6 KiB |
3
public/assets/icons/search-icon.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M13.2094 11.6186C14.0951 10.409 14.6249 8.92328 14.6249 7.31261C14.6249 3.28064 11.3444 0.00012207 7.31245 0.00012207C3.28048 0.00012207 0 3.28064 0 7.31261C0 11.3446 3.28052 14.6251 7.31248 14.6251C8.92315 14.6251 10.409 14.0952 11.6186 13.2094L16.4092 18L18 16.4092C18 16.4092 13.2094 11.6186 13.2094 11.6186ZM7.31248 12.3751C4.52086 12.3751 2.25001 10.1042 2.25001 7.31261C2.25001 4.52098 4.52086 2.25013 7.31248 2.25013C10.1041 2.25013 12.375 4.52098 12.375 7.31261C12.375 10.1042 10.1041 12.3751 7.31248 12.3751Z" fill="#303030"/>
|
||||
</svg>
|
After Width: | Height: | Size: 625 B |
BIN
public/assets/icons/topo-site-icon.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
11
public/assets/icons/twitter-icon.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4151_922)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<path d="M29.9915 10.1563C29.0947 10.5497 28.1392 10.8104 27.143 10.937C28.1679 10.3251 28.95 9.36358 29.3178 8.20462C28.3623 8.7743 27.3073 9.1767 26.183 9.40126C25.2757 8.43521 23.9826 7.83688 22.572 7.83688C19.8351 7.83688 17.6317 10.0584 17.6317 12.7817C17.6317 13.1735 17.6648 13.5503 17.7462 13.909C13.6363 13.7086 9.99968 11.7388 7.55666 8.73813C7.13015 9.47812 6.87997 10.3251 6.87997 11.2369C6.87997 12.949 7.76163 14.4666 9.07583 15.3453C8.28158 15.3302 7.50241 15.0996 6.8423 14.7364C6.8423 14.7515 6.8423 14.7711 6.8423 14.7907C6.8423 17.193 8.55588 19.1884 10.803 19.6481C10.4006 19.7581 9.96201 19.8108 9.50686 19.8108C9.19037 19.8108 8.87086 19.7928 8.57095 19.7264C9.21147 21.6842 11.029 23.1235 13.1902 23.1702C11.5083 24.4859 9.37273 25.2786 7.06083 25.2786C6.65541 25.2786 6.26658 25.2605 5.87775 25.2108C8.06757 26.623 10.6628 27.4293 13.4615 27.4293C22.5584 27.4293 27.5319 19.8937 27.5319 13.3619C27.5319 13.1434 27.5243 12.9324 27.5138 12.7229C28.4949 12.0266 29.3193 11.157 29.9915 10.1563Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_4151_922">
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
11
public/assets/icons/whatsapp-icon.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_3403_1267)">
|
||||
<path d="M17.0042 0H16.9958C7.62238 0 0 7.6245 0 17C0 20.7188 1.1985 24.1655 3.23638 26.9641L1.11775 33.2796L7.65213 31.1908C10.3403 32.9715 13.5469 34 17.0042 34C26.3776 34 34 26.3734 34 17C34 7.62663 26.3776 0 17.0042 0Z" fill="#4CAF50"/>
|
||||
<path d="M26.8961 24.0061C26.486 25.1642 24.8582 26.1247 23.5599 26.4052C22.6716 26.5944 21.5114 26.7452 17.6056 25.126C12.6097 23.0562 9.39249 17.9796 9.14174 17.6502C8.90161 17.3209 7.12299 14.9621 7.12299 12.5226C7.12299 10.0831 8.36186 8.89524 8.86124 8.38524C9.27136 7.96662 9.94924 7.77537 10.5995 7.77537C10.8099 7.77537 10.999 7.78599 11.169 7.79449C11.6684 7.81574 11.9191 7.84549 12.2485 8.63387C12.6586 9.62199 13.6574 12.0615 13.7764 12.3122C13.8975 12.563 14.0186 12.903 13.8486 13.2324C13.6892 13.5724 13.549 13.7232 13.2982 14.0122C13.0475 14.3012 12.8095 14.5222 12.5587 14.8325C12.3292 15.1024 12.07 15.3914 12.359 15.8907C12.648 16.3795 13.6467 18.0094 15.1172 19.3184C17.0149 21.0077 18.5534 21.5475 19.1037 21.777C19.5139 21.947 20.0026 21.9066 20.3022 21.5879C20.6826 21.1777 21.1522 20.4977 21.6304 19.8284C21.9704 19.3481 22.3996 19.2886 22.8501 19.4586C23.3091 19.618 25.738 20.8186 26.2374 21.0672C26.7367 21.318 27.0661 21.437 27.1872 21.6474C27.3062 21.8577 27.3062 22.8459 26.8961 24.0061Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_3403_1267">
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
11
public/assets/icons/youtube-icon.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4151_927)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<path d="M27.8027 12.2486C27.5447 11.2896 26.7886 10.5336 25.8297 10.2754C24.0779 9.79604 17.0706 9.79604 17.0706 9.79604C17.0706 9.79604 10.0636 9.79604 8.31176 10.2572C7.3713 10.5152 6.59672 11.2897 6.33875 12.2486C5.87775 14.0003 5.87775 17.633 5.87775 17.633C5.87775 17.633 5.87775 21.284 6.33875 23.0174C6.59699 23.9763 7.35285 24.7323 8.31189 24.9905C10.082 25.47 17.0709 25.47 17.0709 25.47C17.0709 25.47 24.0779 25.47 25.8297 25.0088C26.7887 24.7507 27.5447 23.9947 27.803 23.0358C28.2638 21.284 28.2638 17.6514 28.2638 17.6514C28.2638 17.6514 28.2823 14.0003 27.8027 12.2486ZM14.8396 20.989V14.277L20.6665 17.633L14.8396 20.989Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_4151_927">
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 957 B |
BIN
public/assets/images/Logo-M3Academy.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
public/assets/images/amexM3Academy.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
public/assets/images/boletoM3Academy.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
public/assets/images/eloM3Academy.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
public/assets/images/hiperCardM3Academy.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
public/assets/images/masterCardM3Academy.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
public/assets/images/payPalM3Academy.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
public/assets/images/visaM3Academy.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
public/assets/images/vtexPCIM3Academy.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
48
public/index.html
Normal file
@ -0,0 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
||||
|
||||
<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" />
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
Only files inside the `public` folder can be referenced from the HTML.
|
||||
|
||||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
||||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>Institucional - M3 Academy</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>
|
13
src/components/Footer/Footer.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import Newsletter from "../Newsletter/Newsletter";
|
||||
import FooterBottom from "./FooterBottom/FooterBottom";
|
||||
import FooterTop from "./FooterTop/FooterTop";
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
<footer>
|
||||
<Newsletter />
|
||||
<FooterTop />
|
||||
<FooterBottom />
|
||||
</footer>
|
||||
);
|
||||
}
|
85
src/components/Footer/FooterBottom/FooterBottom.tsx
Normal file
@ -0,0 +1,85 @@
|
||||
import styles from "./footerBottom.module.scss";
|
||||
|
||||
export default function FooterBottom() {
|
||||
return (
|
||||
<div className={styles.containerFooterBottom}>
|
||||
<div className={styles.footerAdress}>
|
||||
<span>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
|
||||
eiusmod tempor
|
||||
</span>
|
||||
</div>
|
||||
<ul className={styles.footerPayments}>
|
||||
<li className={styles.footerPaymentsWrapper}>
|
||||
<div>
|
||||
<img
|
||||
className={styles.paymentFooter}
|
||||
src="/assets/images/masterCardM3Academy.png"
|
||||
alt="Logo Master Card"
|
||||
/>
|
||||
<img
|
||||
className={styles.paymentFooter}
|
||||
src="/assets/images/visaM3Academy.png"
|
||||
alt="Logo Visa"
|
||||
/>
|
||||
<img
|
||||
className={styles.paymentFooter}
|
||||
src="/assets/images/amexM3Academy.png"
|
||||
alt="Logo American Express"
|
||||
/>
|
||||
<img
|
||||
className={styles.paymentFooter}
|
||||
src="/assets/images/eloM3Academy.png"
|
||||
alt="Logo Elo"
|
||||
/>
|
||||
<img
|
||||
className={styles.paymentFooter}
|
||||
src="/assets/images/hipercardM3Academy.png"
|
||||
alt="Logo HiperCard"
|
||||
/>
|
||||
<img
|
||||
className={styles.paymentFooter}
|
||||
src="/assets/images/paypalM3Academy.png"
|
||||
alt="Logo PayPal"
|
||||
/>
|
||||
<img
|
||||
className={styles.paymentFooter}
|
||||
src="/assets/images/boletoM3Academy.png"
|
||||
alt="Logo Boleto"
|
||||
/>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<span className={styles.divider}></span>
|
||||
</li>
|
||||
<li className={styles.footerPaymentsWrapperVtex}>
|
||||
<div>
|
||||
<img
|
||||
className={styles.vtexIcon}
|
||||
src="/assets/images/vtexPCIM3Academy.png"
|
||||
alt="Logo VTEX PCI Certificado"
|
||||
/>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<ul className={styles.containerDevelop}>
|
||||
<li>
|
||||
<span>Powered by</span>
|
||||
<img
|
||||
className={styles.logoVtexFooter}
|
||||
src="/assets/icons/logoVTEXM3Academy.svg"
|
||||
alt="Logo VTEX"
|
||||
/>
|
||||
</li>
|
||||
<li>
|
||||
<span>Developed by</span>
|
||||
<img
|
||||
className={styles.logoM3Footer}
|
||||
src="/assets/icons/logoM3M3Academy.svg"
|
||||
alt="Logo M3"
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
}
|
244
src/components/Footer/FooterBottom/footerBottom.module.scss
Normal file
@ -0,0 +1,244 @@
|
||||
.containerFooterBottom {
|
||||
padding: 15px 100px;
|
||||
background: var(--black);
|
||||
color: var(--white);
|
||||
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
ul li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.footerAdress {
|
||||
width: 21.66%;
|
||||
max-width: 234px;
|
||||
|
||||
span {
|
||||
font-weight: 400;
|
||||
font-size: 10px;
|
||||
line-height: 12px;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
}
|
||||
|
||||
.footerPayments {
|
||||
width: 399px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.footerPaymentsWrapper {
|
||||
div {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
img {
|
||||
width: 36px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.divider {
|
||||
background-color: var(--gray-400);
|
||||
display: block;
|
||||
align-items: center;
|
||||
height: 24px;
|
||||
width: 1px;
|
||||
|
||||
margin: 0 12px;
|
||||
}
|
||||
|
||||
.footerPaymentsWrapperVtex {
|
||||
div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
|
||||
.vtexIcon {
|
||||
width: 54.61px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.containerDevelop {
|
||||
max-width: 226px;
|
||||
display: flex;
|
||||
gap: 13px;
|
||||
|
||||
li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
li span {
|
||||
font-weight: 400;
|
||||
font-size: 10px;
|
||||
line-height: 12px;
|
||||
}
|
||||
|
||||
.logoVtexFooter {
|
||||
width: 44.92px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.logoM3Footer {
|
||||
width: 28.66px;
|
||||
height: 15.65px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
.containerFooterBottom {
|
||||
.footerAdress {
|
||||
width: 20.3043%;
|
||||
max-width: 467px;
|
||||
|
||||
span {
|
||||
font-size: 20px;
|
||||
line-height: 23px;
|
||||
}
|
||||
}
|
||||
|
||||
.footerPayments {
|
||||
width: 692px;
|
||||
|
||||
.footerPaymentsWrapper {
|
||||
div {
|
||||
img {
|
||||
width: 70px;
|
||||
height: 39.27px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footerPaymentsWrapperVtex {
|
||||
div {
|
||||
.vtexIcon {
|
||||
width: 106px;
|
||||
height: 66px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.containerDevelop {
|
||||
max-width: 404.17px;
|
||||
gap: 12px;
|
||||
|
||||
li span {
|
||||
font-size: 20px;
|
||||
line-height: 23px;
|
||||
}
|
||||
|
||||
.logoVtexFooter {
|
||||
width: 84.22px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.logoM3Footer {
|
||||
width: 54.95px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.containerFooterBottom {
|
||||
padding: 19px 16px 15px 16px;
|
||||
|
||||
display: grid;
|
||||
grid-template-areas:
|
||||
"payments"
|
||||
"address"
|
||||
"develop";
|
||||
gap: 15px;
|
||||
|
||||
.footerAdress {
|
||||
grid-area: address;
|
||||
width: 100%;
|
||||
max-width: 258px;
|
||||
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.footerPayments {
|
||||
grid-area: payments;
|
||||
max-width: 344px;
|
||||
width: auto;
|
||||
|
||||
.footerPaymentsWrapper {
|
||||
div {
|
||||
gap: 11px;
|
||||
img {
|
||||
width: 30.27px;
|
||||
height: 16.97px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.divider {
|
||||
height: 20.36px;
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
.footerPaymentsWrapperVtex {
|
||||
div {
|
||||
.vtexIcon {
|
||||
width: 45px;
|
||||
height: 28px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.containerDevelop {
|
||||
grid-area: develop;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 370px) {
|
||||
.containerFooterBottom {
|
||||
.footerPayments {
|
||||
display: block;
|
||||
|
||||
.footerPaymentsWrapper {
|
||||
div {
|
||||
display: block;
|
||||
img {
|
||||
width: 30.27px;
|
||||
height: 16.97px;
|
||||
margin-right: 11px;
|
||||
|
||||
&:last-child {
|
||||
margin-top: 11px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.divider {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.footerPaymentsWrapperVtex {
|
||||
div {
|
||||
.vtexIcon {
|
||||
width: 45px;
|
||||
height: 28px;
|
||||
margin-left: -2px;
|
||||
margin-top: 11px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
170
src/components/Footer/FooterTop/FooterTop.tsx
Normal file
@ -0,0 +1,170 @@
|
||||
import { useRef, useState } from "react";
|
||||
import styles from "./footerTop.module.scss";
|
||||
|
||||
export default function FooterTop() {
|
||||
const footerLinks = {
|
||||
institucional: useRef<HTMLUListElement>(null),
|
||||
duvidas: useRef<HTMLUListElement>(null),
|
||||
faleConosco: useRef<HTMLUListElement>(null),
|
||||
};
|
||||
|
||||
const titleMenuFooter = {
|
||||
institucional: useRef<HTMLHeadingElement>(null),
|
||||
duvidas: useRef<HTMLHeadingElement>(null),
|
||||
faleConosco: useRef<HTMLHeadingElement>(null),
|
||||
};
|
||||
|
||||
const [openList, setOpenList] = useState({
|
||||
institucional: false,
|
||||
duvidas: false,
|
||||
faleConosco: false,
|
||||
});
|
||||
|
||||
const footerLinkToggle = (e: any) => {
|
||||
const textH2OnClick = e.target.textContent;
|
||||
|
||||
if (window.screen.width <= 1024) {
|
||||
if (textH2OnClick === "Institucional" && !openList.institucional) {
|
||||
titleMenuFooter.institucional.current?.classList.add(
|
||||
`${styles.titleActive}`
|
||||
);
|
||||
footerLinks.institucional.current?.classList.add(`${styles.active}`);
|
||||
return setOpenList((prevState) => ({
|
||||
...prevState,
|
||||
institucional: true,
|
||||
}));
|
||||
} else if (textH2OnClick === "Institucional" && openList.institucional) {
|
||||
titleMenuFooter.institucional.current?.classList.remove(
|
||||
`${styles.titleActive}`
|
||||
);
|
||||
footerLinks.institucional.current?.classList.remove(`${styles.active}`);
|
||||
return setOpenList((prevState) => ({
|
||||
...prevState,
|
||||
institucional: false,
|
||||
}));
|
||||
}
|
||||
|
||||
if (textH2OnClick === "Dúvidas" && !openList.duvidas) {
|
||||
titleMenuFooter.duvidas.current?.classList.add(`${styles.titleActive}`);
|
||||
footerLinks.duvidas.current?.classList.add(`${styles.active}`);
|
||||
return setOpenList((prevState) => ({ ...prevState, duvidas: true }));
|
||||
} else if (textH2OnClick === "Dúvidas" && openList.duvidas) {
|
||||
titleMenuFooter.duvidas.current?.classList.remove(
|
||||
`${styles.titleActive}`
|
||||
);
|
||||
footerLinks.duvidas.current?.classList.remove(`${styles.active}`);
|
||||
return setOpenList((prevState) => ({ ...prevState, duvidas: false }));
|
||||
}
|
||||
|
||||
if (textH2OnClick === "Fale Conosco" && !openList.faleConosco) {
|
||||
titleMenuFooter.faleConosco.current?.classList.add(
|
||||
`${styles.titleActive}`
|
||||
);
|
||||
footerLinks.faleConosco.current?.classList.add(`${styles.active}`);
|
||||
return setOpenList((prevState) => ({
|
||||
...prevState,
|
||||
faleConosco: true,
|
||||
}));
|
||||
} else if (textH2OnClick === "Fale Conosco" && openList.faleConosco) {
|
||||
titleMenuFooter.faleConosco.current?.classList.remove(
|
||||
`${styles.titleActive}`
|
||||
);
|
||||
footerLinks.faleConosco.current?.classList.remove(`${styles.active}`);
|
||||
return setOpenList((prevState) => ({
|
||||
...prevState,
|
||||
faleConosco: false,
|
||||
}));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={styles.containerFooterTop}>
|
||||
<div>
|
||||
<h4 ref={titleMenuFooter.institucional} onClick={footerLinkToggle}>
|
||||
Institucional
|
||||
</h4>
|
||||
<ul
|
||||
ref={footerLinks.institucional}
|
||||
className={styles.listLinksFooterTop}
|
||||
>
|
||||
<li>
|
||||
<a href="/">Quem Somos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Política de Privacidade</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Segurança</a>
|
||||
</li>
|
||||
<li>
|
||||
<a className={styles.linkRevendedor} href="/">
|
||||
Seja um Revendendor
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h4 ref={titleMenuFooter.duvidas} onClick={footerLinkToggle}>
|
||||
Dúvidas
|
||||
</h4>
|
||||
<ul ref={footerLinks.duvidas} className={styles.listLinksFooterTop}>
|
||||
<li>
|
||||
<a href="/">Entrega</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Pagamento</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Trocas e Devoluções</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Dúvidas Frequentes</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className={styles.containerSupportClient}>
|
||||
<h4 ref={titleMenuFooter.faleConosco} onClick={footerLinkToggle}>
|
||||
Fale Conosco
|
||||
</h4>
|
||||
<ul ref={footerLinks.faleConosco} className={styles.listLinksFooterTop}>
|
||||
<li className={styles.supportClient}>
|
||||
<span className={styles.titleSuportClient}>
|
||||
Atendimento Ao Consumidor
|
||||
</span>
|
||||
<a href="tel:114159-9504">{`(11) 4159 9504`}</a>
|
||||
</li>
|
||||
<li className={styles.supportClient}>
|
||||
<span className={styles.titleSuportClient}>Atendimento Online</span>
|
||||
<a
|
||||
href="tel:1199433-8825"
|
||||
className={styles.numberDecoration}
|
||||
>{`(11) 99433-8825`}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className={styles.containerSocialIcons}>
|
||||
<div className={styles.wrapperSocialIcons}>
|
||||
<a href="/">
|
||||
<img src="/assets/icons/facebook-icon.svg" alt="Facebook" />
|
||||
</a>
|
||||
<a href="/">
|
||||
<img src="/assets/icons/instagram-icon.svg" alt="Instagram" />
|
||||
</a>
|
||||
<a href="/">
|
||||
<img src="/assets/icons/twitter-icon.svg" alt="Twitter" />
|
||||
</a>
|
||||
<a href="/">
|
||||
<img src="/assets/icons/youtube-icon.svg" alt="Youtube" />
|
||||
</a>
|
||||
<a href="/">
|
||||
<img src="/assets/icons/linkedin-icon.svg" alt="Linkedin" />
|
||||
</a>
|
||||
</div>
|
||||
<a className={styles.linkSocial} href="/">
|
||||
www.loremipsum.com
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
159
src/components/Footer/FooterTop/footerTop.module.scss
Normal file
@ -0,0 +1,159 @@
|
||||
.containerFooterTop {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
padding: 50px 100px;
|
||||
|
||||
div h4 {
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
|
||||
text-transform: uppercase;
|
||||
|
||||
color: var(--black-100);
|
||||
}
|
||||
|
||||
div ul li {
|
||||
list-style: none;
|
||||
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
text-transform: capitalize;
|
||||
margin-top: 12px;
|
||||
|
||||
color: var(--black-100);
|
||||
|
||||
&:last-child {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.containerSupportClient {
|
||||
.supportClient {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
text-decoration: none;
|
||||
|
||||
.titleSuportClient {
|
||||
margin-bottom: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.numberDecoration {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.containerSocialIcons {
|
||||
width: 19.9074%;
|
||||
.wrapperSocialIcons {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-bottom: 8px;
|
||||
|
||||
a {
|
||||
width: 16.279%;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.linkSocial {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
|
||||
color: var(--black-100);
|
||||
}
|
||||
}
|
||||
|
||||
.linkRevendedor {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
.containerFooterTop {
|
||||
div h4 {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
|
||||
div ul li {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.containerSocialIcons {
|
||||
width: 16.9565%;
|
||||
.wrapperSocialIcons {
|
||||
a {
|
||||
width: 17.9487%;
|
||||
}
|
||||
}
|
||||
|
||||
.linkSocial {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.containerFooterTop {
|
||||
padding: 24px 16px;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
|
||||
div h4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
text-transform: none;
|
||||
&::after {
|
||||
content: "+";
|
||||
display: inline-block;
|
||||
line-height: 8.28px;
|
||||
}
|
||||
|
||||
&.titleActive::after {
|
||||
content: "-";
|
||||
}
|
||||
}
|
||||
|
||||
.listLinksFooterTop {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.containerSocialIcons {
|
||||
width: max-content;
|
||||
|
||||
.wrapperSocialIcons {
|
||||
margin-bottom: 0;
|
||||
a {
|
||||
width: 100%;
|
||||
|
||||
img {
|
||||
width: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.linkSocial {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
56
src/components/Header/Header.tsx
Normal file
@ -0,0 +1,56 @@
|
||||
import MenuNav from "../MenuNav/MenuNav";
|
||||
import { MenuToggle } from "../MenuToggle/MenuToggle";
|
||||
|
||||
import { useState } from "react";
|
||||
|
||||
import styles from "./header.module.scss";
|
||||
|
||||
export default function Header() {
|
||||
const [showMenuToggle, setShowMenuToggle] = useState(false);
|
||||
|
||||
const openMenuToggle = () => {
|
||||
setShowMenuToggle((prev) => !prev);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<header>
|
||||
<div className={styles.containerHeader}>
|
||||
<div onClick={openMenuToggle} className={styles.menuToggle}>
|
||||
<div className={styles.toggleOne}></div>
|
||||
<div className={styles.toggleTwo}></div>
|
||||
<div className={styles.toggleThree}></div>
|
||||
</div>
|
||||
<img
|
||||
className={styles.logo}
|
||||
src="/assets/images/Logo-M3Academy.png"
|
||||
alt="Logo M3 Academy"
|
||||
/>
|
||||
<form className={styles.formSearch} action="#">
|
||||
<input
|
||||
type="search"
|
||||
id="search"
|
||||
name="search"
|
||||
placeholder="Buscar..."
|
||||
/>
|
||||
<button type="submit">
|
||||
<img src="/assets/icons/search-icon.svg" alt="Buscar" />
|
||||
</button>
|
||||
</form>
|
||||
<div className={styles.entrarContainer}>
|
||||
<a href="/">Entrar</a>
|
||||
<a className={styles.cartIcon} href="http://">
|
||||
<img src="/assets/icons/cart-icon.svg" alt="Carrinho" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{window.screen.width > 1024 && <MenuNav />}
|
||||
</header>
|
||||
<MenuToggle
|
||||
showMenuToggle={showMenuToggle}
|
||||
setShowMenuToggle={setShowMenuToggle}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
203
src/components/Header/header.module.scss
Normal file
@ -0,0 +1,203 @@
|
||||
.containerHeader {
|
||||
background: var(--black);
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 100px;
|
||||
|
||||
.menuToggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 12.5925%;
|
||||
|
||||
padding: 25px 0;
|
||||
}
|
||||
|
||||
.formSearch {
|
||||
width: 24.44%;
|
||||
height: 32px;
|
||||
|
||||
background: var(--white);
|
||||
|
||||
border: 2px solid #f2f2f2;
|
||||
border-radius: 5px;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
input {
|
||||
background: transparent;
|
||||
padding: 0 10px 0 16px;
|
||||
width: 100%;
|
||||
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
|
||||
color: var(--gray-400);
|
||||
|
||||
&::placeholder {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
|
||||
color: var(--gray-400);
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
background: transparent;
|
||||
height: auto;
|
||||
padding-right: 16px;
|
||||
|
||||
img {
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.entrarContainer {
|
||||
width: 12.5925%;
|
||||
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
a {
|
||||
color: var(--white);
|
||||
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.cartIcon {
|
||||
width: 20.5882%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
.containerHeader {
|
||||
.logo {
|
||||
width: 11.5486%;
|
||||
}
|
||||
|
||||
.formSearch {
|
||||
width: 22.3913%;
|
||||
height: 57px;
|
||||
|
||||
border: 2px solid #f0f0f0;
|
||||
|
||||
input {
|
||||
padding: 0 16px;
|
||||
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
|
||||
&::placeholder {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
background: transparent;
|
||||
height: auto;
|
||||
padding-right: 11px;
|
||||
|
||||
img {
|
||||
height: 35.5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.entrarContainer {
|
||||
width: 9.3339%;
|
||||
|
||||
a {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
|
||||
.cartIcon {
|
||||
width: 25.4704%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.containerHeader {
|
||||
padding: 0 16px;
|
||||
padding-top: 25px;
|
||||
display: grid;
|
||||
grid-template-areas:
|
||||
"menuToggle logo cart"
|
||||
"search search search";
|
||||
grid-template-columns: 28px 136px 28px;
|
||||
|
||||
.menuToggle {
|
||||
grid-area: menuToggle;
|
||||
display: block;
|
||||
width: 28px;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
.toggleOne,
|
||||
.toggleTwo,
|
||||
.toggleThree {
|
||||
background: var(--white);
|
||||
height: 3.5px;
|
||||
width: 100%;
|
||||
margin-top: 6px;
|
||||
border-radius: 5px;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.logo {
|
||||
grid-area: logo;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.formSearch {
|
||||
grid-area: search;
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
|
||||
margin: 25px 0;
|
||||
|
||||
input {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
padding-right: 9px;
|
||||
}
|
||||
}
|
||||
|
||||
.entrarContainer {
|
||||
grid-area: cart;
|
||||
width: 100%;
|
||||
|
||||
a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.cartIcon {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
188
src/components/Institucional/Contato/Contato.tsx
Normal file
@ -0,0 +1,188 @@
|
||||
import { Formik, Form, Field, ErrorMessage } from "formik";
|
||||
import MaskedInput from "react-text-mask";
|
||||
import FormSchema from "../../../schema/FormSchema";
|
||||
import { useState } from "react";
|
||||
import styles from "./contato.module.scss";
|
||||
|
||||
interface IFormikValues {
|
||||
name: string;
|
||||
email: string;
|
||||
cpf: string;
|
||||
dataNasc: string;
|
||||
phone: string;
|
||||
instagram: string;
|
||||
}
|
||||
|
||||
const initialValues = {
|
||||
name: "",
|
||||
email: "",
|
||||
cpf: "",
|
||||
dataNasc: "",
|
||||
phone: "",
|
||||
instagram: "",
|
||||
};
|
||||
|
||||
export default function Contato() {
|
||||
const [validSubmit, setValidSubmit] = useState(false);
|
||||
const handleFormikSubmit = (values: IFormikValues) => {
|
||||
setValidSubmit(true);
|
||||
};
|
||||
|
||||
return (
|
||||
<Formik
|
||||
onSubmit={handleFormikSubmit}
|
||||
initialValues={initialValues}
|
||||
validationSchema={FormSchema}
|
||||
>
|
||||
<Form className={styles.formContato}>
|
||||
<h3>Preencha o formulário</h3>
|
||||
|
||||
<div className={styles.wrapperInput}>
|
||||
<label htmlFor="name">Nome</label>
|
||||
<ErrorMessage
|
||||
name="name"
|
||||
component="span"
|
||||
className={styles.errorForm}
|
||||
/>
|
||||
<Field id="name" name="name" placeholder="Seu nome completo" />
|
||||
</div>
|
||||
|
||||
<div className={styles.wrapperInput}>
|
||||
<label htmlFor="email">Email</label>
|
||||
<ErrorMessage
|
||||
name="email"
|
||||
component="span"
|
||||
className={styles.errorForm}
|
||||
/>
|
||||
<Field id="email" name="email" placeholder="Seu e-mail" />
|
||||
</div>
|
||||
|
||||
<div className={styles.wrapperInput}>
|
||||
<label htmlFor="cpf">CPF</label>
|
||||
<ErrorMessage
|
||||
name="cpf"
|
||||
component="span"
|
||||
className={styles.errorForm}
|
||||
/>
|
||||
<Field
|
||||
name="cpf"
|
||||
render={({ field }: any) => {
|
||||
return (
|
||||
<MaskedInput
|
||||
mask={[
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
".",
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
".",
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
"-",
|
||||
/\d/,
|
||||
/\d/,
|
||||
]}
|
||||
{...field}
|
||||
id="cpf"
|
||||
placeholder="000.000.000-00"
|
||||
/>
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className={styles.wrapperInput}>
|
||||
<label htmlFor="dataNasc">Data de Nascimento</label>
|
||||
<ErrorMessage
|
||||
name="dataNasc"
|
||||
component="span"
|
||||
className={styles.errorForm}
|
||||
/>
|
||||
<Field
|
||||
name="dataNasc"
|
||||
render={({ field }: any) => {
|
||||
return (
|
||||
<MaskedInput
|
||||
mask={[
|
||||
/\d/,
|
||||
/\d/,
|
||||
".",
|
||||
/\d/,
|
||||
/\d/,
|
||||
".",
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
]}
|
||||
{...field}
|
||||
id="dataNasc"
|
||||
placeholder="00.00.0000"
|
||||
/>
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className={styles.wrapperInput}>
|
||||
<label htmlFor="phone">Telefone</label>
|
||||
<ErrorMessage
|
||||
name="phone"
|
||||
component="span"
|
||||
className={styles.errorForm}
|
||||
/>
|
||||
<Field
|
||||
name="phone"
|
||||
render={({ field }: any) => {
|
||||
return (
|
||||
<MaskedInput
|
||||
mask={[
|
||||
"(",
|
||||
/\d/,
|
||||
/\d/,
|
||||
")",
|
||||
" ",
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
"-",
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
]}
|
||||
{...field}
|
||||
id="phone"
|
||||
placeholder="(00) 00000-0000"
|
||||
/>
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className={styles.wrapperInput}>
|
||||
<label htmlFor="instagram">Instagram</label>
|
||||
<Field id="instagram" name="instagram" placeholder="@seuuser" />
|
||||
</div>
|
||||
<div className={styles.containerTermos}>
|
||||
<label htmlFor="termos">
|
||||
<span className={styles.required}>* </span>
|
||||
<span className={styles.termosAcept}>Declaro que li e aceito</span>
|
||||
</label>
|
||||
<Field type="checkbox" id="termos" name="termos" required />
|
||||
</div>
|
||||
<button type="submit">Cadastre-se</button>
|
||||
{validSubmit && (
|
||||
<span className={styles.sucessSubmit}>
|
||||
*Formulário enviado com sucesso!
|
||||
</span>
|
||||
)}
|
||||
</Form>
|
||||
</Formik>
|
||||
);
|
||||
}
|
161
src/components/Institucional/Contato/contato.module.scss
Normal file
@ -0,0 +1,161 @@
|
||||
.formContato {
|
||||
width: 100%;
|
||||
h3 {
|
||||
font-weight: 700;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
color: var(--black);
|
||||
|
||||
margin: 10px 0 12px;
|
||||
}
|
||||
|
||||
.wrapperInput {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
input,
|
||||
label {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
|
||||
color: #100d0e;
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
input {
|
||||
margin: 12px 0;
|
||||
height: 46px;
|
||||
|
||||
border: 1px solid #100d0e;
|
||||
border-radius: 25px;
|
||||
|
||||
padding: 15px 20px;
|
||||
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
|
||||
color: #b9b7b7;
|
||||
|
||||
&::placeholder {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
|
||||
color: #b9b7b7;
|
||||
}
|
||||
}
|
||||
|
||||
.containerTermos {
|
||||
display: flex;
|
||||
width: max-content;
|
||||
white-space: nowrap;
|
||||
align-items: flex-end;
|
||||
margin: 2px auto 12px auto;
|
||||
|
||||
label {
|
||||
margin: 0;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
input {
|
||||
margin: 0;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
.required {
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
.termosAcept {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
background: var(--black);
|
||||
border-radius: 25px;
|
||||
color: var(--white);
|
||||
padding: 17px 0;
|
||||
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 19px;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.errorForm {
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
color: #ff0000;
|
||||
|
||||
position: absolute;
|
||||
display: flex;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
.sucessSubmit {
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
color: #008000;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
.formContato {
|
||||
h3 {
|
||||
font-size: 48px;
|
||||
line-height: 56px;
|
||||
}
|
||||
|
||||
label,
|
||||
input {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
|
||||
input {
|
||||
height: 63px;
|
||||
&::placeholder {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
|
||||
.containerTermos {
|
||||
input {
|
||||
min-width: 36.4px;
|
||||
height: 35.15px;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
font-size: 32px;
|
||||
line-height: 38px;
|
||||
}
|
||||
|
||||
.errorForm {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
top: 17px;
|
||||
}
|
||||
|
||||
.sucessSubmit {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
}
|
100
src/components/Institucional/Institucional.tsx
Normal file
@ -0,0 +1,100 @@
|
||||
import styles from "./institucional.module.scss";
|
||||
import Sobre from "./Sobre/Sobre";
|
||||
import Contato from "./Contato/Contato";
|
||||
|
||||
import { HashRouter, Route, Routes, Link } from "react-router-dom";
|
||||
import { useState } from "react";
|
||||
|
||||
export default function Institucional() {
|
||||
const hash = window.location.hash.replace("#", "");
|
||||
const [active, setActive] = useState(hash);
|
||||
|
||||
const listNavLinks = [
|
||||
{
|
||||
link: "/sobre",
|
||||
name: "Sobre",
|
||||
},
|
||||
{
|
||||
link: "/forma-de-entrega",
|
||||
name: "Forma de Entrega",
|
||||
},
|
||||
{
|
||||
link: "/entrega",
|
||||
name: "Entrega",
|
||||
},
|
||||
{
|
||||
link: "/troca-e-devolucao",
|
||||
name: "Troca e Devolução",
|
||||
},
|
||||
{
|
||||
link: "/seguranca-e-privacidade",
|
||||
name: "Segurança e Privacidade",
|
||||
},
|
||||
{
|
||||
link: "/contato",
|
||||
name: "Contato",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<HashRouter>
|
||||
<div className={styles.containerInstitucional}>
|
||||
<div className={styles.containerBreadcrumb}>
|
||||
<i className={styles.homeIcon}>
|
||||
<a href="/">
|
||||
<img src="/assets/icons/home-icon.svg" alt="Home" />
|
||||
</a>
|
||||
</i>
|
||||
<i className={styles.arrowIcon}>
|
||||
<img src="/assets/icons/arrow-icon.svg" alt="Seta BreadCrumb" />
|
||||
</i>
|
||||
<a href="/">Institucional</a>
|
||||
</div>
|
||||
<h2 className={styles.titleInstitucional}>Institucional</h2>
|
||||
|
||||
<div className={styles.containerInfo}>
|
||||
<nav>
|
||||
<ul>
|
||||
{listNavLinks.map((item) => {
|
||||
return (
|
||||
<li
|
||||
key={item.name}
|
||||
className={
|
||||
active === item.link ||
|
||||
(active === "" && item.name === "Sobre")
|
||||
? `${styles.active}`
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<Link onClick={() => setActive(item.link)} to={item.link}>
|
||||
{item.name}
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<Routes>
|
||||
<Route index element={<Sobre title="Sobre" />} />
|
||||
<Route path="/sobre" element={<Sobre title="Sobre" />} />
|
||||
<Route
|
||||
path="/forma-de-entrega"
|
||||
element={<Sobre title="Forma de Entrega" />}
|
||||
/>
|
||||
<Route path="/entrega" element={<Sobre title="Entrega" />} />
|
||||
<Route
|
||||
path="/troca-e-devolucao"
|
||||
element={<Sobre title="Troca e Devolução" />}
|
||||
/>
|
||||
<Route
|
||||
path="/seguranca-e-privacidade"
|
||||
element={<Sobre title="Segurança e Privacidade" />}
|
||||
/>
|
||||
<Route path="/contato" element={<Contato />} />
|
||||
</Routes>
|
||||
</div>
|
||||
</div>
|
||||
</HashRouter>
|
||||
);
|
||||
}
|
42
src/components/Institucional/Sobre/Sobre.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import styles from "./sobre.module.scss";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
export default function Sobre({ title }: Props) {
|
||||
return (
|
||||
<section className={styles.contentInfo}>
|
||||
<h3>{title}</h3>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
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>
|
||||
</section>
|
||||
);
|
||||
}
|
49
src/components/Institucional/Sobre/sobre.module.scss
Normal file
@ -0,0 +1,49 @@
|
||||
.contentInfo {
|
||||
padding-bottom: 27px;
|
||||
h3 {
|
||||
font-weight: 700;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
|
||||
color: var(--black-50);
|
||||
|
||||
margin: 10px 0 12px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-weight: 400;
|
||||
font-size: 13px;
|
||||
line-height: 15px;
|
||||
|
||||
color: var(--gray-500);
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
.contentInfo {
|
||||
h3 {
|
||||
font-size: 48px;
|
||||
line-height: 56px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 26px;
|
||||
line-height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.contentInfo {
|
||||
padding: 0;
|
||||
h3 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: justify;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
}
|
||||
}
|
154
src/components/Institucional/institucional.module.scss
Normal file
@ -0,0 +1,154 @@
|
||||
.containerInstitucional {
|
||||
padding: 0 100px;
|
||||
.containerBreadcrumb {
|
||||
padding: 29px 0 0 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.homeIcon,
|
||||
.arrowIcon {
|
||||
margin-right: 10px;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.homeIcon {
|
||||
width: 16px;
|
||||
|
||||
a {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.arrowIcon {
|
||||
img {
|
||||
width: 4.6px;
|
||||
height: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
text-transform: uppercase;
|
||||
color: var(--gray-400);
|
||||
}
|
||||
}
|
||||
|
||||
.titleInstitucional {
|
||||
margin: 80px 0;
|
||||
text-align: center;
|
||||
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
color: var(--black-50);
|
||||
}
|
||||
|
||||
.containerInfo {
|
||||
display: flex;
|
||||
margin-bottom: 60px;
|
||||
nav {
|
||||
min-width: 27.9629%;
|
||||
height: 285px;
|
||||
margin-right: 30px;
|
||||
|
||||
border-right: 1px solid var(--black);
|
||||
|
||||
ul {
|
||||
li {
|
||||
list-style: none;
|
||||
padding: 10px 0;
|
||||
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 19px;
|
||||
color: var(--gray-500);
|
||||
|
||||
a {
|
||||
padding: 0 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.active {
|
||||
background: var(--black);
|
||||
color: var(--white);
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
.containerInstitucional {
|
||||
.containerBreadcrumb {
|
||||
.homeIcon,
|
||||
.arrowIcon {
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.homeIcon {
|
||||
width: 31px;
|
||||
|
||||
a {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.arrowIcon {
|
||||
img {
|
||||
width: 8.9px;
|
||||
height: 15.62px;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.titleInstitucional {
|
||||
font-size: 48px;
|
||||
line-height: 56px;
|
||||
}
|
||||
|
||||
.containerInfo {
|
||||
nav {
|
||||
min-width: 25.6521%;
|
||||
height: 465px;
|
||||
|
||||
ul {
|
||||
li {
|
||||
font-size: 32px;
|
||||
line-height: 38px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.containerInstitucional {
|
||||
padding: 0 16px;
|
||||
|
||||
.titleInstitucional {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.containerInfo {
|
||||
flex-direction: column;
|
||||
margin-bottom: 80px;
|
||||
nav {
|
||||
min-width: 100%;
|
||||
border: 0;
|
||||
height: auto;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
19
src/components/MenuNav/MenuNav.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import styles from "./menuNav.module.scss";
|
||||
|
||||
export default function MenuNav() {
|
||||
return (
|
||||
<nav>
|
||||
<ul className={styles.menuNav}>
|
||||
<li>
|
||||
<a href="/">Cursos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Saiba mais</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Institucionais</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
);
|
||||
}
|
47
src/components/MenuNav/menuNav.module.scss
Normal file
@ -0,0 +1,47 @@
|
||||
.menuNav {
|
||||
border-top: 1px solid var(--gray-400);
|
||||
|
||||
display: flex;
|
||||
background: var(--black);
|
||||
gap: 55px;
|
||||
padding: 0 100px;
|
||||
|
||||
li {
|
||||
color: var(--white);
|
||||
list-style: none;
|
||||
text-transform: uppercase;
|
||||
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
|
||||
padding: 14px 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
.menuNav {
|
||||
li {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.menuNav {
|
||||
border: 0;
|
||||
padding: 0 16px;
|
||||
|
||||
background: transparent;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
|
||||
margin-top: 31px;
|
||||
|
||||
li {
|
||||
color: var(--gray-400);
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
34
src/components/MenuToggle/MenuToggle.tsx
Normal file
@ -0,0 +1,34 @@
|
||||
import React, { SetStateAction } from "react";
|
||||
import MenuNav from "../MenuNav/MenuNav";
|
||||
|
||||
import styles from "./menuToggle.module.scss";
|
||||
|
||||
interface PropsMenuTogle {
|
||||
showMenuToggle: boolean;
|
||||
setShowMenuToggle: React.Dispatch<SetStateAction<boolean>>;
|
||||
}
|
||||
|
||||
export const MenuToggle = ({
|
||||
showMenuToggle,
|
||||
setShowMenuToggle,
|
||||
}: PropsMenuTogle) => {
|
||||
return (
|
||||
<>
|
||||
{showMenuToggle ? (
|
||||
<div className={styles.containerMenuToggle}>
|
||||
<div className={styles.contentMenuToogle}>
|
||||
<div className={styles.headerMenuToggle}>
|
||||
<a href="/">Entrar</a>
|
||||
<img
|
||||
onClick={() => setShowMenuToggle((prev) => !prev)}
|
||||
src="/assets/icons/closeMenu.svg"
|
||||
alt="Fechar Menu"
|
||||
/>
|
||||
</div>
|
||||
<MenuNav />
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
</>
|
||||
);
|
||||
};
|
54
src/components/MenuToggle/menuToggle.module.scss
Normal file
@ -0,0 +1,54 @@
|
||||
.containerMenuToggle {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
z-index: 50;
|
||||
|
||||
background: rgba(69, 69, 69, 0.7);
|
||||
.contentMenuToogle {
|
||||
width: 96.4843%;
|
||||
height: 585px;
|
||||
|
||||
background: var(--white);
|
||||
|
||||
.headerMenuToggle {
|
||||
width: 100%;
|
||||
height: 78px;
|
||||
|
||||
background: var(--black);
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
padding: 0 16px;
|
||||
|
||||
a {
|
||||
color: var(--white);
|
||||
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 15px;
|
||||
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 540px) {
|
||||
.containerMenuToggle {
|
||||
.contentMenuToogle {
|
||||
width: 90.4%;
|
||||
}
|
||||
}
|
||||
}
|
20
src/components/Newsletter/Newsletter.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import styles from "./newsletter.module.scss";
|
||||
|
||||
export default function Newsletter() {
|
||||
return (
|
||||
<form className={styles.formNewsletter} action="#">
|
||||
<div className={styles.containerForm}>
|
||||
<h3>Assine nossa Newsletter</h3>
|
||||
<div className={styles.containerInputNewsletter}>
|
||||
<input
|
||||
type="email"
|
||||
name="email-newsletter"
|
||||
id="email-newsletter"
|
||||
placeholder="E-mail"
|
||||
/>
|
||||
<button type="submit">Enviar</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
);
|
||||
}
|
127
src/components/Newsletter/newsletter.module.scss
Normal file
@ -0,0 +1,127 @@
|
||||
.formNewsletter {
|
||||
padding: 16px 0;
|
||||
border-top: 1px solid var(--black);
|
||||
border-bottom: 1px solid var(--black);
|
||||
|
||||
.containerForm {
|
||||
width: 37.0312%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0 auto;
|
||||
|
||||
h3 {
|
||||
font-weight: 500;
|
||||
font-size: 18px;
|
||||
line-height: 21px;
|
||||
letter-spacing: 0.05em;
|
||||
font-variant: small-caps;
|
||||
text-transform: uppercase;
|
||||
|
||||
color: var(--black-100);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.containerInputNewsletter {
|
||||
display: flex;
|
||||
|
||||
input {
|
||||
flex: 1;
|
||||
background: transparent;
|
||||
border: 1px solid #e5e5e5;
|
||||
border-radius: 4px;
|
||||
padding: 13px 16px;
|
||||
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--gray-400);
|
||||
|
||||
&::placeholder {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--gray-400);
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
width: 26.5822%;
|
||||
background: #000000;
|
||||
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
||||
border-radius: 4px;
|
||||
margin-left: 8px;
|
||||
|
||||
font-weight: 700;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
|
||||
color: var(--white);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
.formNewsletter {
|
||||
.containerForm {
|
||||
width: 37.3581%;
|
||||
|
||||
h3 {
|
||||
font-size: 36px;
|
||||
line-height: 42px;
|
||||
}
|
||||
|
||||
.containerInputNewsletter {
|
||||
input {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
|
||||
&::placeholder {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.formNewsletter {
|
||||
padding: 16px;
|
||||
|
||||
.containerForm {
|
||||
width: 100%;
|
||||
|
||||
h3 {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.containerInputNewsletter {
|
||||
flex-direction: column;
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
margin-top: 16px;
|
||||
padding: 17px 0;
|
||||
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
36
src/global.scss
Normal file
@ -0,0 +1,36 @@
|
||||
:root {
|
||||
--black: #000000;
|
||||
--black-100: #303030;
|
||||
--black-50: #292929;
|
||||
|
||||
--white: #ffffff;
|
||||
|
||||
--gray-500: #7d7d7d;
|
||||
--gray-400: #c4c4c4;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
border: none;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Roboto", sans-serif;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
|
||||
monospace;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.active {
|
||||
display: block;
|
||||
}
|
13
src/index.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import "./global.scss";
|
||||
import Home from "./pages/Home";
|
||||
|
||||
const root = ReactDOM.createRoot(
|
||||
document.getElementById("root") as HTMLElement
|
||||
);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<Home />
|
||||
</React.StrictMode>
|
||||
);
|
51
src/pages/Home.tsx
Normal file
@ -0,0 +1,51 @@
|
||||
import styles from "./home.module.scss";
|
||||
import { useState } from "react";
|
||||
|
||||
import Footer from "../components/Footer/Footer";
|
||||
import Header from "../components/Header/Header";
|
||||
import Institucional from "../components/Institucional/Institucional";
|
||||
|
||||
function Home() {
|
||||
const [pageYPosition, setPageYPosition] = useState(0);
|
||||
|
||||
function getPageYAfterScroll() {
|
||||
setPageYPosition(window.scrollY);
|
||||
}
|
||||
|
||||
window.addEventListener("scroll", getPageYAfterScroll);
|
||||
|
||||
const btnScrollTop = () => {
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={styles.containerHome}>
|
||||
<Header />
|
||||
<Institucional />
|
||||
<Footer />
|
||||
{pageYPosition > 140 && (
|
||||
<div className={styles.floatElementsFooter}>
|
||||
<div className={styles.whatsappIcon}>
|
||||
<a href="http://api.whatsapp.com/send?1=pt_BR&phone=5582999976243">
|
||||
<img src="/assets/icons/whatsapp-icon.svg" alt="WhatsApp" />
|
||||
</a>
|
||||
</div>
|
||||
<div className={styles.topoSiteIcon}>
|
||||
<button onClick={btnScrollTop}>
|
||||
<img
|
||||
src="/assets/icons/topo-site-icon.png"
|
||||
alt="Voltar para o topo"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Home;
|
46
src/pages/home.module.scss
Normal file
@ -0,0 +1,46 @@
|
||||
.containerHome {
|
||||
position: relative;
|
||||
|
||||
.floatElementsFooter {
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
bottom: 21px;
|
||||
|
||||
width: 2.6562%;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.whatsappIcon,
|
||||
.topoSiteIcon {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.topoSiteIcon {
|
||||
button {
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.containerHome {
|
||||
.floatElementsFooter {
|
||||
width: 34px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 540px) {
|
||||
.containerHome {
|
||||
.floatElementsFooter {
|
||||
right: 16px;
|
||||
bottom: 16px;
|
||||
}
|
||||
}
|
||||
}
|
50
src/schema/FormSchema.ts
Normal file
@ -0,0 +1,50 @@
|
||||
import * as Yup from "yup";
|
||||
import { cpf as cpfValid } from "cpf-cnpj-validator";
|
||||
import { parse, isValid, isFuture } from "date-fns";
|
||||
import enGb from "date-fns/locale/en-GB";
|
||||
|
||||
const convertDate = (value: string) => {
|
||||
if (value === null || value === undefined) {
|
||||
return false;
|
||||
} else {
|
||||
const dataFormated = value.replaceAll(".", "/");
|
||||
const parsedDate = parse(dataFormated, "P", new Date(), { locale: enGb });
|
||||
|
||||
if (isFuture(parsedDate)) {
|
||||
return false;
|
||||
} else if (isValid(parsedDate)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
const convertPhone = (value: string) => {
|
||||
if (value === null || value === undefined) {
|
||||
return false;
|
||||
} else {
|
||||
const phoneNumbers = value.replace(/\D/g, "");
|
||||
if (phoneNumbers.length < 11) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default Yup.object().shape({
|
||||
name: Yup.string()
|
||||
.required("*Campo obrigatório")
|
||||
.min(3, "*Nome muito pequeno"),
|
||||
email: Yup.string().required("*Campo obrigatório").email("*Email inválido"),
|
||||
cpf: Yup.string()
|
||||
.required("*Campo obrigatório")
|
||||
.test("cpf", "*CPF Inválido", (value) => cpfValid.isValid(value!)),
|
||||
dataNasc: Yup.string()
|
||||
.required("*Campo obrigatório")
|
||||
.test("dataNasc", "*Data Inválida", (data) => convertDate(data!)),
|
||||
phone: Yup.string()
|
||||
.required("*Campo obrigatório")
|
||||
.test("phone", "*Telefone Inválido", (phone) => convertPhone(phone!)),
|
||||
});
|
1
src/types/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
declare module "*.module.scss";
|
20
tsconfig.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"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"]
|
||||
}
|