Merge pull request 'feature/challenge' (#1) from feature/challenge into main
Reviewed-on: #1
13
.editorconfig
Normal file
@ -0,0 +1,13 @@
|
||||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
max_line_length = 100
|
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*
|
5
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"esbenp.prettier-vscode"
|
||||
]
|
||||
}
|
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.
|
||||
|
57
package.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"name": "desafio-react-e-typescript-bernardo-waldhelm",
|
||||
"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",
|
||||
"@types/react-text-mask": "^5.4.11",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"cpf-cnpj-validator": "^1.0.3",
|
||||
"formik": "^2.2.9",
|
||||
"node-sass": "^8.0.0",
|
||||
"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",
|
||||
"styled-components": "^5.3.6",
|
||||
"typescript": "^4.4.2",
|
||||
"vanilla-masker": "^1.2.0",
|
||||
"web-vitals": "^2.1.0",
|
||||
"yarn": "^1.22.19",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"resolutions": {
|
||||
"styled-components": "^5"
|
||||
}
|
||||
}
|
45
public/index.html
Normal file
@ -0,0 +1,45 @@
|
||||
<!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" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="description" content="Web site created using create-react-app" />
|
||||
<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"
|
||||
/>
|
||||
<!-- <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>React App</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
|
||||
You can add webfonts, meta tags, or analytics to this file.
|
||||
The build step will place the bundled scripts into the <body> tag.
|
||||
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
--></body>
|
||||
</html>
|
43
src/_variaveis.scss
Normal file
@ -0,0 +1,43 @@
|
||||
/* fonts */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
|
||||
$font-family: 'Roboto', sans-serif;
|
||||
|
||||
/* Colors */
|
||||
$color-black: #000;
|
||||
$color-black1: #100D0E;
|
||||
$color-black2: #292929;
|
||||
$color-black-transparent: rgba(69, 69, 69, 0.7);
|
||||
$color-black-500: #303030;
|
||||
|
||||
$color-white: #fff;
|
||||
$color-primary-200: #B9B7B7;
|
||||
$color-primary-300: #7D7D7D;
|
||||
$color-primary-400: #C4C4C4;
|
||||
$color-primary-500: #C6C6C6;
|
||||
$color-primary-600: #E5E5E5;
|
||||
$color-primary-700: #F2F2F2;
|
||||
|
||||
$color-red: #ff0000;
|
||||
$color-success: #008000;
|
||||
/* Grid breakpoints */
|
||||
$grid-breakpoints: (
|
||||
xs: 0,
|
||||
cstm: 400,
|
||||
sm: 576px,
|
||||
md: 768px,
|
||||
lg: 992px,
|
||||
xl: 1200px
|
||||
) !default;
|
||||
|
||||
$z-index: (
|
||||
level1: 5,
|
||||
level2: 10,
|
||||
level3: 15,
|
||||
level4: 20,
|
||||
level5: 25
|
||||
) !default;
|
||||
|
||||
//media-queries
|
||||
$mq-desktop: "(min-width: 1025px) and (max-width: 2499px)";
|
||||
$mq-tablet: "(min-width: 491px) and (max-width: 1024px)";
|
||||
$mq-mobile: "(min-width: 280px) and (max-width: 490px)";
|
BIN
src/assets/imgs/arrow-point-to-right.png
Normal file
After Width: | Height: | Size: 282 B |
BIN
src/assets/imgs/boleto.png
Normal file
After Width: | Height: | Size: 816 B |
BIN
src/assets/imgs/cart-icon-header.png
Normal file
After Width: | Height: | Size: 445 B |
BIN
src/assets/imgs/close-menu-mobile.png
Normal file
After Width: | Height: | Size: 269 B |
BIN
src/assets/imgs/diners.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
src/assets/imgs/elo.png
Normal file
After Width: | Height: | Size: 888 B |
BIN
src/assets/imgs/hiper.png
Normal file
After Width: | Height: | Size: 745 B |
BIN
src/assets/imgs/icon-home.png
Normal file
After Width: | Height: | Size: 472 B |
BIN
src/assets/imgs/logo-facebook.png
Normal file
After Width: | Height: | Size: 818 B |
BIN
src/assets/imgs/logo-instagram.png
Normal file
After Width: | Height: | Size: 1014 B |
BIN
src/assets/imgs/logo-linkedin.png
Normal file
After Width: | Height: | Size: 847 B |
BIN
src/assets/imgs/logo-top.png
Normal file
After Width: | Height: | Size: 731 B |
BIN
src/assets/imgs/logo-twitter.png
Normal file
After Width: | Height: | Size: 988 B |
BIN
src/assets/imgs/logo-whatsapp.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
src/assets/imgs/logo-youtube.png
Normal file
After Width: | Height: | Size: 897 B |
BIN
src/assets/imgs/m3-acdemy-logo.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
src/assets/imgs/m3-logo-footer.png
Normal file
After Width: | Height: | Size: 448 B |
BIN
src/assets/imgs/master.png
Normal file
After Width: | Height: | Size: 739 B |
BIN
src/assets/imgs/menu-hamburger-header.png
Normal file
After Width: | Height: | Size: 217 B |
BIN
src/assets/imgs/pagseguro.png
Normal file
After Width: | Height: | Size: 888 B |
BIN
src/assets/imgs/search-icon-header.png
Normal file
After Width: | Height: | Size: 439 B |
BIN
src/assets/imgs/visa.png
Normal file
After Width: | Height: | Size: 1000 B |
BIN
src/assets/imgs/vtex-logo.png
Normal file
After Width: | Height: | Size: 552 B |
BIN
src/assets/imgs/vtex-pci-200.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
18
src/components/Atoms/ButtonForm/ButtonForm.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
import { ButtonHTMLAttributes } from "react";
|
||||
|
||||
interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
||||
className?: string;
|
||||
type: "button" | "submit" | "reset";
|
||||
disabled?: boolean;
|
||||
text: string;
|
||||
}
|
||||
|
||||
export const ButtonForm = (props: IButtonProps) => {
|
||||
const { className, text, type, disabled } = props;
|
||||
|
||||
return (
|
||||
<button className={className} type={type} disabled={disabled}>
|
||||
{text}
|
||||
</button>
|
||||
);
|
||||
};
|
77
src/components/Atoms/ButtonsFixed/ButtonsFixed.module.scss
Normal file
@ -0,0 +1,77 @@
|
||||
@import '../../../variaveis';
|
||||
|
||||
.buttons-fixeds {
|
||||
position: fixed;
|
||||
bottom: 229px;
|
||||
top: auto;
|
||||
right: 0;
|
||||
left: auto;
|
||||
z-index: 3;
|
||||
|
||||
padding-right: 16px;
|
||||
|
||||
@media #{$mq-tablet} {
|
||||
bottom: 51px;
|
||||
}
|
||||
|
||||
@media #{$mq-mobile} {
|
||||
bottom: 29px;
|
||||
}
|
||||
|
||||
&__list {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
|
||||
&__item {
|
||||
button {
|
||||
border: none;
|
||||
border-radius: 100%;
|
||||
background: transparent;
|
||||
background-image: url('../../../assets/imgs/logo-top.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 66px 66px;
|
||||
width: 66px;
|
||||
height: 66px;
|
||||
cursor: pointer;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
background-size: 34px 34px;
|
||||
|
||||
}
|
||||
|
||||
img {
|
||||
width: 66px;
|
||||
height: 66px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
|
||||
|
||||
img {
|
||||
width: 66px;
|
||||
height: 66px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
29
src/components/Atoms/ButtonsFixed/ButtonsFixed.tsx
Normal file
@ -0,0 +1,29 @@
|
||||
import styles from "./ButtonsFixed.module.scss";
|
||||
|
||||
import wpp from "../../../assets/imgs/logo-whatsapp.png";
|
||||
|
||||
const ButtonsFixeds = () => {
|
||||
const scrollTop = () => {
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<section className={styles["buttons-fixeds"]}>
|
||||
<ul className={styles["buttons-fixeds__list"]}>
|
||||
<li className={styles["buttons-fixeds__list__item"]}>
|
||||
<a href="http://wa.me/5522999644229" target="_blank" rel="noopener noreferrer">
|
||||
<img src={wpp} alt="Logo Whatsapp" />
|
||||
</a>
|
||||
</li>
|
||||
<li className={styles["buttons-fixeds__list__item"]}>
|
||||
<button onClick={scrollTop}></button>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { ButtonsFixeds };
|
15
src/components/Atoms/Icones/Icone.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
interface iconProps {
|
||||
src: string;
|
||||
alt: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export const Icone = (props: iconProps) => {
|
||||
const { src, alt, className } = props;
|
||||
|
||||
return (
|
||||
<li>
|
||||
<img src={src} alt={alt} className={className} />
|
||||
</li>
|
||||
);
|
||||
};
|
15
src/components/Atoms/LabelForm/LabelFrom.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
interface ILabelProps {
|
||||
className: string;
|
||||
htmlFor: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
export const LabelForm = (props: ILabelProps) => {
|
||||
const { className, htmlFor, text } = props;
|
||||
|
||||
return (
|
||||
<label htmlFor={htmlFor} className={className}>
|
||||
{text}
|
||||
</label>
|
||||
);
|
||||
};
|
11
src/components/Atoms/TitleBread/TitleBread.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
interface IProps {
|
||||
text: string,
|
||||
className?: string
|
||||
}
|
||||
|
||||
export const TitleBread = (props: IProps) => {
|
||||
|
||||
const {text, className} = props;
|
||||
|
||||
return <li className={className}> {text} </li>
|
||||
}
|
58
src/components/molecules/Breadcrumbs/Breadcrumbs.module.scss
Normal file
@ -0,0 +1,58 @@
|
||||
@import '../../../variaveis';
|
||||
|
||||
.breadcrumbs {
|
||||
padding: 29px 100px;
|
||||
width: calc(100% - 200px);
|
||||
margin-bottom: 51px;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile}{
|
||||
padding: 29px 16px;
|
||||
width: calc(100% - 32px);
|
||||
}
|
||||
|
||||
&__list {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
list-style: none;
|
||||
gap: 8px;
|
||||
|
||||
li {
|
||||
|
||||
text-decoration: none;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
text-transform: uppercase;
|
||||
color: $color-primary-400;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
}
|
||||
img {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 31.25px;
|
||||
height: 31.25px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile}{
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
&.seta {
|
||||
width: 15.62px;
|
||||
height: 15.62px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
20
src/components/molecules/Breadcrumbs/Breadcrumbs.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import styles from "./Breadcrumbs.module.scss";
|
||||
|
||||
import home from "../../../assets/imgs/icon-home.png";
|
||||
import seta from "../../../assets/imgs/arrow-point-to-right.png";
|
||||
import { Icone } from "../../Atoms/Icones/Icone";
|
||||
import { TitleBread } from "../../Atoms/TitleBread/TitleBread";
|
||||
|
||||
const BreadCrumbs = () => {
|
||||
return (
|
||||
<section className={styles["breadcrumbs"]}>
|
||||
<ul className={styles["breadcrumbs__list"]}>
|
||||
<Icone src={home} alt="Home" />
|
||||
<Icone src={seta} alt="Seta" className={styles["seta"]} />
|
||||
<TitleBread text="Institucional" />
|
||||
</ul>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { BreadCrumbs };
|
226
src/components/molecules/FaleConosco/FaleConosco.module.scss
Normal file
@ -0,0 +1,226 @@
|
||||
@import '../../../variaveis';
|
||||
|
||||
.form {
|
||||
width: 73%;
|
||||
padding-left: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&__wrapper {
|
||||
width: calc(100% - 30px);
|
||||
position: relative;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&__success {
|
||||
bottom: -30px;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
color: $color-success;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
bottom: -20px;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__title {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-size: 48px;
|
||||
line-height: 56px;
|
||||
color: $color-black;
|
||||
margin-bottom: 12px;
|
||||
text-align: start;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&__col {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
|
||||
&__type{
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
color: $color-black1;
|
||||
margin-bottom: 12px;
|
||||
margin-left: 15px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
border: 1px solid $color-black1;
|
||||
border-radius: 25px;
|
||||
width: calc(100% - 40px);
|
||||
height: 31px;
|
||||
padding: 15px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
margin-bottom: 12px;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
color: $color-black;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
height: 14px;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
color: $color-primary-200;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__error {
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 15px;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
color: $color-red;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__col-checkbox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 12px;
|
||||
|
||||
&__type {
|
||||
position: relative;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
color: $color-black1;
|
||||
text-decoration-line: underline;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
width: 36.4px;
|
||||
height: 35.15px;
|
||||
border-radius: 3px;
|
||||
border: 1px solid $color-black;
|
||||
cursor: pointer;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet},#{$mq-mobile} {
|
||||
width: 18.64px;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
&__error {
|
||||
position: absolute;
|
||||
left: -10px;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
color: $color-red;
|
||||
text-decoration: none;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
left: -6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__button {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 71px;
|
||||
background-color: $color-black;
|
||||
border: none;
|
||||
border-radius: 25px;
|
||||
color: $color-white;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 32px;
|
||||
line-height: 38px;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
height: 52px;
|
||||
font-size: 16px;
|
||||
line-height: 19px;
|
||||
}
|
||||
|
||||
&:disabled{
|
||||
background-color: $color-black-500;
|
||||
cursor: inherit;
|
||||
}
|
||||
}
|
||||
}
|
239
src/components/molecules/FaleConosco/FaleConosco.tsx
Normal file
@ -0,0 +1,239 @@
|
||||
import { Link } from "react-router-dom";
|
||||
import { Formik, Form, Field, ErrorMessage } from "formik";
|
||||
import MaskedInput from "react-text-mask";
|
||||
import { useState } from "react";
|
||||
|
||||
import FormSchema from "../../../schema/FormSchema";
|
||||
import styles from "./FaleConosco.module.scss";
|
||||
import { ButtonForm } from "../../Atoms/ButtonForm/ButtonForm";
|
||||
import { LabelForm } from "../../Atoms/LabelForm/LabelFrom";
|
||||
|
||||
interface IFormikValues {
|
||||
name: string;
|
||||
email: string;
|
||||
cpf: string;
|
||||
birthDate: string;
|
||||
celPhone: string;
|
||||
instagram: string;
|
||||
acceptTerms: boolean;
|
||||
}
|
||||
const initialValues = {
|
||||
name: "",
|
||||
email: "",
|
||||
cpf: "",
|
||||
birthDate: "",
|
||||
celPhone: "",
|
||||
instagram: "",
|
||||
acceptTerms: false,
|
||||
};
|
||||
|
||||
const FaleConosco = () => {
|
||||
const [FormSuccess, setFormiSuccess] = useState(false);
|
||||
|
||||
return (
|
||||
<div className={styles["form"]}>
|
||||
<Formik
|
||||
onSubmit={(values: IFormikValues, onSubmitProps) => {
|
||||
console.log(values);
|
||||
onSubmitProps.resetForm();
|
||||
onSubmitProps.setSubmitting(false);
|
||||
setFormiSuccess(true);
|
||||
}}
|
||||
initialValues={initialValues}
|
||||
validationSchema={FormSchema}
|
||||
>
|
||||
{({ isValid }) => (
|
||||
<Form className={styles["form__wrapper"]}>
|
||||
<h2 className={styles["form__title"]}>Preencha o formulário </h2>
|
||||
<div className={styles["form__col"]}>
|
||||
<LabelForm
|
||||
className={styles["form__col__type"]}
|
||||
htmlFor={"name"}
|
||||
text={"Nome"}
|
||||
/>
|
||||
<Field id="name" name="name" placeholder="Seu nome completo" />
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="name"
|
||||
className={styles["form__col__error"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={styles["form__col"]}>
|
||||
<LabelForm
|
||||
className={styles["form__col__type"]}
|
||||
htmlFor={"email"}
|
||||
text={"E-mail"}
|
||||
/>
|
||||
<Field id="email" name="email" placeholder="Seu email" />
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="email"
|
||||
className={styles["form__col__error"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={styles["form__col"]}>
|
||||
<LabelForm
|
||||
className={styles["form__col__type"]}
|
||||
htmlFor={"cpf"}
|
||||
text={"CPF"}
|
||||
/>
|
||||
<Field
|
||||
name="cpf"
|
||||
render={({ field }: any) => (
|
||||
<MaskedInput
|
||||
id="cpf"
|
||||
type="tel"
|
||||
mask={[
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
".",
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
".",
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
"-",
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
]}
|
||||
{...field}
|
||||
placeholder="000.000.000-00"
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="cpf"
|
||||
className={styles["form__col__error"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={styles["form__col"]}>
|
||||
<LabelForm
|
||||
className={styles["form__col__type"]}
|
||||
htmlFor={"birthDate"}
|
||||
text={"Data de Nascimento"}
|
||||
/>
|
||||
|
||||
<Field
|
||||
type="tel"
|
||||
name="birthDate"
|
||||
render={({ field }: any) => (
|
||||
<MaskedInput
|
||||
id="birthDate"
|
||||
type="tel"
|
||||
mask={[
|
||||
/[0-3]/,
|
||||
/[0-9]/,
|
||||
".",
|
||||
/[0-1]/,
|
||||
/[0-9]/,
|
||||
".",
|
||||
/[0-9]/,
|
||||
/[0-9]/,
|
||||
/[0-9]/,
|
||||
/[0-9]/,
|
||||
]}
|
||||
{...field}
|
||||
placeholder="00.00.0000"
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="birthDate"
|
||||
className={styles["form__col__error"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={styles["form__col"]}>
|
||||
<LabelForm
|
||||
className={styles["form__col__type"]}
|
||||
htmlFor={"celPhone"}
|
||||
text={"Telefone"}
|
||||
/>
|
||||
<Field
|
||||
type="tel"
|
||||
name="celPhone"
|
||||
render={({ field }: any) => (
|
||||
<MaskedInput
|
||||
id="celPhone"
|
||||
type="tel"
|
||||
mask={[
|
||||
"(",
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
")",
|
||||
" ",
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
"-",
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
]}
|
||||
{...field}
|
||||
placeholder="(00) 00000-0000"
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="celPhone"
|
||||
className={styles["form__col__error"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={styles["form__col"]}>
|
||||
<LabelForm
|
||||
className={styles["form__col__type"]}
|
||||
htmlFor={"instagram"}
|
||||
text={"Instagram"}
|
||||
/>
|
||||
<Field id="instagram" name="instagram" placeholder="@seuuser" />
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="instagram"
|
||||
className={styles["form__col__error"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={styles["form__col-checkbox"]}>
|
||||
<Link
|
||||
className={styles["form__col-checkbox__type"]}
|
||||
to="/segurancaprivacidade"
|
||||
target="_blank"
|
||||
>
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="acceptTerms"
|
||||
className={styles["form__col-checkbox__error"]}
|
||||
/>{" "}
|
||||
Declaro que li e aceito
|
||||
</Link>
|
||||
<Field name="acceptTerms" type="checkbox" />
|
||||
</div>
|
||||
|
||||
<ButtonForm
|
||||
className={styles["form__button"]}
|
||||
disabled={!isValid}
|
||||
type="submit"
|
||||
text={"CADASTRE-SE"}
|
||||
/>
|
||||
|
||||
{FormSuccess && (
|
||||
<span className={styles["form__wrapper__success"]}>
|
||||
*Formulário enviado com sucesso!
|
||||
</span>
|
||||
)}
|
||||
</Form>
|
||||
)}
|
||||
</Formik>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { FaleConosco };
|
90
src/components/molecules/MenuMobile/MenuMobile.scss
Normal file
@ -0,0 +1,90 @@
|
||||
@import '../../../variaveis.scss';
|
||||
|
||||
.container-menu {
|
||||
position: absolute;
|
||||
backdrop-filter: blur(1px);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 5;
|
||||
|
||||
background: $color-black-transparent;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: all 0.4s ease-in-out;
|
||||
|
||||
&.opened {
|
||||
opacity: 1;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
&__wrapper {
|
||||
width: 96.484375%;
|
||||
background-color: $color-white;
|
||||
height: 585px;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
|
||||
@media #{$mq-mobile} {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
&__top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
width: calc(100% - 32px);
|
||||
height: 78px;
|
||||
padding: 0 16px;
|
||||
|
||||
background: $color-black;
|
||||
|
||||
&__log {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: $color-white;
|
||||
text-decoration: none;
|
||||
|
||||
margin-right: 55px;
|
||||
}
|
||||
|
||||
&__close {
|
||||
background: transparent;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
&__bottom {
|
||||
padding: 0 16px;
|
||||
width: calc(100% - 32px);
|
||||
|
||||
&__list {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
margin-top: 31px;
|
||||
|
||||
&__items-menu {
|
||||
margin-bottom: 12px;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
color: $color-primary-400;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
55
src/components/molecules/MenuMobile/MenuMobile.tsx
Normal file
@ -0,0 +1,55 @@
|
||||
import "./MenuMobile.scss";
|
||||
|
||||
import close from "../../../assets/imgs/close-menu-mobile.png";
|
||||
import { useEffect } from "react";
|
||||
|
||||
interface MenuMobileProps {
|
||||
menuIsVisible: boolean;
|
||||
setMenuIsVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
||||
}
|
||||
|
||||
const MenuMobile = ({ menuIsVisible, setMenuIsVisible }: MenuMobileProps) => {
|
||||
useEffect(() => {
|
||||
if (window.innerWidth <= 1024) {
|
||||
document.body.style.overflowY = menuIsVisible ? "hidden" : "auto";
|
||||
} else {
|
||||
document.body.style.overflowY = "auto";
|
||||
}
|
||||
});
|
||||
|
||||
return (
|
||||
<section
|
||||
className={`container-menu ${menuIsVisible && "opened"} `}
|
||||
onClick={() => setMenuIsVisible(false)}
|
||||
>
|
||||
<div className={"container-menu__wrapper"}>
|
||||
<div className={"container-menu__top"}>
|
||||
<a href="/" className={"container-menu__top__log"}>
|
||||
ENTRAR
|
||||
</a>
|
||||
<button
|
||||
className={"container-menu__top__close"}
|
||||
onClick={() => setMenuIsVisible(false)}
|
||||
>
|
||||
<img src={close} alt="Icone de Fechar Menu" />
|
||||
</button>
|
||||
</div>
|
||||
<div className={"container-menu__bottom"}>
|
||||
<nav className={"container-menu__bottom__list"}>
|
||||
<a href="/" className={"container-menu__bottom__list__items-menu"}>
|
||||
CURSOS
|
||||
</a>
|
||||
<a href="/" className={"container-menu__bottom__list__items-menu"}>
|
||||
SAIBA MAIS
|
||||
</a>
|
||||
<a href="/" className={"container-menu__bottom__list__items-menu"}>
|
||||
INSTITUCIONAIS
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { MenuMobile };
|
14
src/components/molecules/Subpages/Entrega.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import styles from './geral.module.scss';
|
||||
|
||||
const Entrega = () => {
|
||||
return (
|
||||
<div className={styles['container-info']}>
|
||||
<h1 className={styles['container-info__title']}>Entrega</h1>
|
||||
<p className={styles['container-info__paragrafo']} >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>
|
||||
<p className={styles['container-info__paragrafo']}>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>
|
||||
<p className={styles['container-info__paragrafo']}>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>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export { Entrega }
|
14
src/components/molecules/Subpages/FormaPagamento.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import styles from './geral.module.scss'
|
||||
|
||||
const FormaPagamento = () => {
|
||||
return (
|
||||
<div className={styles['container-info']}>
|
||||
<h1 className={styles['container-info__title']}>Forma de Pagamento</h1>
|
||||
<p className={styles['container-info__paragrafo']} >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>
|
||||
<p className={styles['container-info__paragrafo']}>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>
|
||||
<p className={styles['container-info__paragrafo']}>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>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export { FormaPagamento }
|
14
src/components/molecules/Subpages/SegurancaPrivacidade.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import styles from './geral.module.scss';
|
||||
|
||||
const SegurancaPrivacidade = () => {
|
||||
return (
|
||||
<div className={styles['container-info']}>
|
||||
<h1 className={styles['container-info__title']}>Seguranca e Privacidade</h1>
|
||||
<p className={styles['container-info__paragrafo']} >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>
|
||||
<p className={styles['container-info__paragrafo']}>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>
|
||||
<p className={styles['container-info__paragrafo']}>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>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export { SegurancaPrivacidade }
|
14
src/components/molecules/Subpages/Sobre.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import styles from './geral.module.scss';
|
||||
|
||||
const Sobre = () => {
|
||||
return (
|
||||
<div className={styles['container-info']}>
|
||||
<h1 className={styles['container-info__title']}>Sobre</h1>
|
||||
<p className={styles['container-info__paragrafo']} >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>
|
||||
<p className={styles['container-info__paragrafo']}>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>
|
||||
<p className={styles['container-info__paragrafo']}>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>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export { Sobre }
|
14
src/components/molecules/Subpages/TrocaDevolucao.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import styles from './geral.module.scss'
|
||||
|
||||
const TrocaDevolucao = () => {
|
||||
return (
|
||||
<div className={styles['container-info']}>
|
||||
<h1 className={styles['container-info__title']}>Troca e Devolução</h1>
|
||||
<p className={styles['container-info__paragrafo']} >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>
|
||||
<p className={styles['container-info__paragrafo']}>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>
|
||||
<p className={styles['container-info__paragrafo']}>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>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export { TrocaDevolucao }
|
54
src/components/molecules/Subpages/geral.module.scss
Normal file
@ -0,0 +1,54 @@
|
||||
@import '../../../variaveis';
|
||||
|
||||
.container-info {
|
||||
width: 73%;
|
||||
padding-left: 30px;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 100%;
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&__title {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-size: 48px;
|
||||
line-height: 56px;
|
||||
color: $color-black2;
|
||||
margin-bottom: 12px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile}{
|
||||
text-align: center;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&__paragrafo {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 26px;
|
||||
line-height: 30px;
|
||||
color: $color-primary-300;
|
||||
margin-bottom: 12px;
|
||||
|
||||
@media #{$mq-desktop} {
|
||||
font-size: 13px;
|
||||
line-height: 15px;
|
||||
}
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
19
src/components/organisms/Accordion/@types/index.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
export interface IDefaultProps {
|
||||
customKey: string | number,
|
||||
children: ReactNode | ReactNode[],
|
||||
}
|
||||
|
||||
|
||||
export interface IAccordionContextProps {
|
||||
current: number | string,
|
||||
handleSetCurrent: (customKey: string | number) => void,
|
||||
}
|
||||
|
||||
export interface IAccordionProviderProps {
|
||||
children: ReactNode | ReactNode[],
|
||||
value: IAccordionContextProps,
|
||||
}
|
||||
|
||||
export interface IRootProps extends IDefaultProps{}
|
||||
export interface IHeaderProps extends IDefaultProps{}
|
||||
export interface IContentProps extends Omit <IDefaultProps, 'customKey'>{}
|
@ -0,0 +1,11 @@
|
||||
import { createContext } from "react";
|
||||
|
||||
import { IAccordionContextProps, IAccordionProviderProps } from "../@types";
|
||||
|
||||
export const AccordionContext = createContext<IAccordionContextProps>({
|
||||
current: "",
|
||||
} as IAccordionContextProps);
|
||||
|
||||
export const AccordionProvider = ({ children, value }: IAccordionProviderProps) => {
|
||||
return <AccordionContext.Provider value={value}>{children}</AccordionContext.Provider>;
|
||||
};
|
58
src/components/organisms/Accordion/index.module.scss
Normal file
@ -0,0 +1,58 @@
|
||||
@import '../../../variaveis';
|
||||
|
||||
.accordion {
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
.accordionContent {
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.accordionHeader {
|
||||
margin-bottom: 12px;
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
&__icon::after {
|
||||
content: '+';
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
text-transform: uppercase;
|
||||
color: $color-black-500;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
.opened {
|
||||
.accordionContent {
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
display: block;
|
||||
margin-bottom: 12px;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
text-transform: uppercase;
|
||||
color: $color-black-500;
|
||||
}
|
||||
}
|
||||
|
||||
.accordionHeader {
|
||||
&__icon::after {
|
||||
content: '-';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
40
src/components/organisms/Accordion/index.tsx
Normal file
@ -0,0 +1,40 @@
|
||||
import { useContext } from "react";
|
||||
|
||||
import { AccordionContext } from "./context/ContentAccordion";
|
||||
|
||||
import styles from "./index.module.scss";
|
||||
|
||||
import { IContentProps, IRootProps, IHeaderProps } from "./@types";
|
||||
|
||||
const Root = ({ customKey, children }: IRootProps) => {
|
||||
const { current } = useContext(AccordionContext);
|
||||
|
||||
const Opened = () => {
|
||||
if (current === customKey) {
|
||||
return styles.opened;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
};
|
||||
|
||||
return <div className={`${styles["accordion"]} ${Opened()}`}>{children}</div>;
|
||||
};
|
||||
|
||||
const Header = ({ customKey, children }: IHeaderProps) => {
|
||||
const { handleSetCurrent } = useContext(AccordionContext);
|
||||
|
||||
return (
|
||||
<header className={styles["accordionHeader"]} onClick={() => handleSetCurrent(customKey)}>
|
||||
{children}
|
||||
<i className={styles["accordionHeader__icon"]}></i>
|
||||
</header>
|
||||
);
|
||||
};
|
||||
|
||||
const Content = ({ children }: IContentProps) => {
|
||||
return <div className={styles["accordionContent"]}>{children}</div>;
|
||||
};
|
||||
|
||||
const Accordion = Object.assign(Root, { Header, Content });
|
||||
|
||||
export { Accordion };
|
18
src/components/organisms/Footer/Footer.module.scss
Normal file
@ -0,0 +1,18 @@
|
||||
@import '../../../variaveis';
|
||||
|
||||
.footer {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
top: 100%;
|
||||
width: 100%;
|
||||
margin-top: 84px;
|
||||
|
||||
@media #{$mq-desktop}{
|
||||
position: relative;
|
||||
margin-top: 70px;
|
||||
}
|
||||
|
||||
@media #{$mq-tablet},#{$mq-mobile} {
|
||||
margin-top: 81px;
|
||||
}
|
||||
}
|
17
src/components/organisms/Footer/Footer.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
import { FooterNewsletter } from "./FooterNewsletter/FooterNewsletter";
|
||||
import { FooterTop } from "./FooterTop/FooterTop";
|
||||
import { FooterBottom } from "./FooterBottom/FooterBottom";
|
||||
|
||||
import styles from "./Footer.module.scss";
|
||||
|
||||
const Footer = () => {
|
||||
return (
|
||||
<footer className={styles["footer"]}>
|
||||
<FooterNewsletter />
|
||||
<FooterTop />
|
||||
<FooterBottom />
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
export { Footer };
|
@ -0,0 +1,185 @@
|
||||
@import '../../../../variaveis';
|
||||
|
||||
.footer__bottom {
|
||||
width: calc(100% - 200px);
|
||||
padding: 15px 100px;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
background-color: $color-black;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: calc(100% - 32px);
|
||||
height: 116px;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
padding: 15px 16px;
|
||||
}
|
||||
|
||||
&__paragrafo {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 20px;
|
||||
line-height: 23px;
|
||||
text-transform: capitalize;
|
||||
|
||||
color: $color-white;
|
||||
|
||||
@media #{$mq-desktop} {
|
||||
font-size: 10px;
|
||||
line-height: 12px;
|
||||
}
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 10px;
|
||||
line-height: 12px;
|
||||
order: 2;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
&__payments {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
&__cards{
|
||||
list-style: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
li{
|
||||
margin-right: 12px;
|
||||
|
||||
width: 70px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet} {
|
||||
width: 35px;
|
||||
}
|
||||
|
||||
@media #{$mq-mobile} {
|
||||
width: 30px;
|
||||
margin-right: 11px;
|
||||
}
|
||||
|
||||
@media (max-width: 370px) {
|
||||
margin-right: 5px;
|
||||
}
|
||||
@media (max-width: 300px) {
|
||||
margin-right: 2.5px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 70px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet} {
|
||||
width: 35px;
|
||||
}
|
||||
|
||||
@media #{$mq-mobile} {
|
||||
width: 30px;
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
@media (max-width: 310px) {
|
||||
width: 25px;
|
||||
}
|
||||
|
||||
&.vtex-security {
|
||||
width: 45px;
|
||||
|
||||
@media (max-width: 310px) {
|
||||
width: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&__divider {
|
||||
width: 1px;
|
||||
height: 24px;
|
||||
background: $color-primary-400;
|
||||
margin-right: 12px;
|
||||
|
||||
@media #{$mq-mobile} {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 370px) {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
}
|
||||
&__security {
|
||||
list-style: none;
|
||||
img {
|
||||
width: 106px;
|
||||
height: 66px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 54px;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
@media (max-width: 320px) {
|
||||
width: 40px;
|
||||
}
|
||||
@media (max-width: 300px) {
|
||||
width: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__development {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
&__logo{
|
||||
margin-right: 13px;
|
||||
text-decoration: none;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
span {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 20px;
|
||||
line-height: 23px;
|
||||
text-transform: capitalize;
|
||||
color: $color-white;
|
||||
margin-right: 13px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 10px;
|
||||
line-height: 12px;
|
||||
}
|
||||
}
|
||||
img {
|
||||
height: 30px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
height: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,73 @@
|
||||
import styles from "./FooterBottom.module.scss";
|
||||
|
||||
import boleto from "../../../../assets/imgs/boleto.png";
|
||||
import diners from "../../../../assets/imgs/diners.png";
|
||||
import elo from "../../../../assets/imgs/elo.png";
|
||||
import hiper from "../../../../assets/imgs/hiper.png";
|
||||
import master from "../../../../assets/imgs/master.png";
|
||||
import pagseguro from "../../../../assets/imgs/pagseguro.png";
|
||||
import visa from "../../../../assets/imgs/visa.png";
|
||||
import vtex from "../../../../assets/imgs/vtex-pci-200.png";
|
||||
import vtexLogo from "../../../../assets/imgs/vtex-logo.png";
|
||||
import m3Logo from "../../../../assets/imgs/m3-logo-footer.png";
|
||||
import { Icone } from "../../../Atoms/Icones/Icone";
|
||||
|
||||
const FooterBottom = () => {
|
||||
return (
|
||||
<section className={styles["footer__bottom"]}>
|
||||
<p className={styles["footer__bottom__paragrafo"]}>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing <br />
|
||||
elit, sed do eiusmod tempor
|
||||
</p>
|
||||
<div className={styles["footer__bottom__payments"]}>
|
||||
<ul className={styles["footer__bottom__payments__cards"]}>
|
||||
<Icone src={master} alt="Cartão Mastercard" />
|
||||
|
||||
<Icone src={visa} alt="Cartão Visa" />
|
||||
|
||||
<Icone src={diners} alt="Cartão American Express" />
|
||||
|
||||
<Icone src={elo} alt="Cartão Elo" />
|
||||
|
||||
<Icone src={hiper} alt="Cartão Hipercard" />
|
||||
|
||||
<Icone src={pagseguro} alt="PagSeguro" />
|
||||
|
||||
<Icone src={boleto} alt="Boleto" />
|
||||
</ul>
|
||||
<div className={styles["footer__bottom__payments__divider"]}></div>
|
||||
<ul className={styles["footer__bottom__payments__security"]}>
|
||||
<Icone
|
||||
src={vtex}
|
||||
alt="Vtex PCI - SECURITY"
|
||||
className={styles["vtex-security"]}
|
||||
/>
|
||||
</ul>
|
||||
</div>
|
||||
<div className={styles["footer__bottom__development"]}>
|
||||
<a
|
||||
className={styles["footer__bottom__development__logo"]}
|
||||
href="https://vtex.com/"
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
title="M3"
|
||||
>
|
||||
<span>Powered By</span>
|
||||
<img src={vtexLogo} alt="Logo Vtex" />
|
||||
</a>
|
||||
<a
|
||||
className={styles["footer__bottom__development__logo"]}
|
||||
href="http://m3ecommerce.com/"
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
title="VTEX"
|
||||
>
|
||||
<span>Developed By</span>
|
||||
<img src={m3Logo} alt="Logo M3" />
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FooterBottom };
|
@ -0,0 +1,168 @@
|
||||
@import "../../../../variaveis";
|
||||
|
||||
.footer-newsletter {
|
||||
width: 100%;
|
||||
background: $color-white;
|
||||
border-top: 1px solid $color-black;
|
||||
border-bottom: 1px solid $color-black;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 16px 0;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
padding: 16px;
|
||||
width: calc(100% - 32px);
|
||||
}
|
||||
|
||||
&__form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
width: 37%;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&__title {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 36px;
|
||||
line-height: 42px;
|
||||
letter-spacing: 0.05em;
|
||||
font-variant: small-caps;
|
||||
color: $color-black-500;
|
||||
|
||||
@media #{$mq-desktop} {
|
||||
font-size: 18px;
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
&__input-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
&__input {
|
||||
width: 71.72%;
|
||||
height: 33px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
padding: 13px 16px;
|
||||
gap: 10px;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
color: $color-black;
|
||||
background: $color-white;
|
||||
border: 1px solid $color-primary-600;
|
||||
border-radius: 4px;
|
||||
|
||||
@media #{$mq-desktop} {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: calc(100% - 32px);
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
padding: 17px 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
color: $color-primary-400;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& span{
|
||||
position: absolute;
|
||||
bottom: -18px;
|
||||
left: 0;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
text-align: right;
|
||||
|
||||
color: #FF0000;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
left: initial;
|
||||
right: 0;
|
||||
bottom: initial;
|
||||
top: -18px;
|
||||
}
|
||||
}
|
||||
|
||||
&__btn {
|
||||
width: 28%;
|
||||
height: 59px;
|
||||
// padding: 14px 20px;
|
||||
border: none;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
letter-spacing: 0.05em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: $color-black;
|
||||
color: $color-white;
|
||||
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
||||
border-radius: 4px;
|
||||
margin-left: 8px;
|
||||
cursor: pointer;
|
||||
|
||||
@media #{$mq-desktop} {
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
height: 42px;
|
||||
}
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
margin-top: 16px;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
height: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
import { Formik, Form, Field, ErrorMessage } from "formik";
|
||||
import EmailNewsletter from "../../../../schema/EmailNewsletter";
|
||||
import { ButtonForm } from "../../../Atoms/ButtonForm/ButtonForm";
|
||||
import { LabelForm } from "../../../Atoms/LabelForm/LabelFrom";
|
||||
import styles from "./FooterNewsletter.module.scss";
|
||||
|
||||
interface IFormikValue {
|
||||
emailNewsletter: string;
|
||||
}
|
||||
|
||||
const initialValues = {
|
||||
emailNewsletter: "",
|
||||
};
|
||||
|
||||
const FooterNewsletter = () => {
|
||||
return (
|
||||
<section className={styles["footer-newsletter"]}>
|
||||
<Formik
|
||||
initialValues={initialValues}
|
||||
onSubmit={(values: IFormikValue, actions) => {
|
||||
console.log(values);
|
||||
actions.resetForm();
|
||||
actions.setSubmitting(false);
|
||||
}}
|
||||
validationSchema={EmailNewsletter}
|
||||
>
|
||||
<Form className={styles["footer-newsletter__form"]}>
|
||||
<LabelForm
|
||||
htmlFor="emailNewsletter"
|
||||
className={styles["footer-newsletter__form__title"]}
|
||||
text={"assine nossa newsletter"}
|
||||
/>
|
||||
<div className={styles["footer-newsletter__form__input-btn"]}>
|
||||
<Field
|
||||
id="emailNewsletter"
|
||||
name="emailNewsletter"
|
||||
placeholder="E-mail"
|
||||
className={styles["footer-newsletter__form__input"]}
|
||||
/>
|
||||
<ErrorMessage
|
||||
name="emailNewsletter"
|
||||
className={styles["footer-newsletter__form__error"]}
|
||||
component="span"
|
||||
/>
|
||||
<ButtonForm
|
||||
type="submit"
|
||||
className={styles["footer-newsletter__form__btn"]}
|
||||
text={"ENVIAR"}
|
||||
/>
|
||||
</div>
|
||||
</Form>
|
||||
</Formik>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FooterNewsletter };
|
154
src/components/organisms/Footer/FooterTop/FooterTop.scss
Normal file
@ -0,0 +1,154 @@
|
||||
@import '../../../../variaveis';
|
||||
|
||||
.footer__top {
|
||||
width: calc(100% - 200px);
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 50px 100px;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: calc(100% - 32px);
|
||||
padding: 24px 16px;
|
||||
}
|
||||
|
||||
&__wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
&__block {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
margin-right: 121px;
|
||||
width: 100%;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
&__title {
|
||||
width: 100%;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
text-transform: uppercase;
|
||||
color: $color-black-500;
|
||||
text-align: start;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
text-transform: initial;
|
||||
}
|
||||
|
||||
&.opened ~ .footer__top__block__item-list{
|
||||
display: flex;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
&__item-list {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
padding: 0px;
|
||||
gap: 12px;
|
||||
|
||||
}
|
||||
&__item:last-child {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&__link {
|
||||
text-decoration: none;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
text-transform: capitalize;
|
||||
color: $color-black-500;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&__block-social {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
margin-left: 37px;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&__social-medias {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
margin-bottom: 10px;
|
||||
list-style: none;
|
||||
|
||||
&__logo {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
margin-right: 10px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
a img {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
margin-right: 10px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__site {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
color: $color-black-500;
|
||||
text-decoration: none;
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile}{
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
213
src/components/organisms/Footer/FooterTop/FooterTop.tsx
Normal file
@ -0,0 +1,213 @@
|
||||
import { useState } from "react";
|
||||
|
||||
import "./FooterTop.scss";
|
||||
|
||||
import facebook from "../../../../assets/imgs/logo-facebook.png";
|
||||
import instagram from "../../../../assets/imgs/logo-instagram.png";
|
||||
import twitter from "../../../../assets/imgs/logo-twitter.png";
|
||||
import youtube from "../../../../assets/imgs/logo-youtube.png";
|
||||
import linkedin from "../../../../assets/imgs/logo-linkedin.png";
|
||||
|
||||
import { Accordion } from "../../Accordion";
|
||||
import { AccordionProvider } from "../../Accordion/context/ContentAccordion";
|
||||
|
||||
const FooterTop = () => {
|
||||
const [ulIsVisible, setUlIsVisible] = useState<string | number | "">("");
|
||||
|
||||
const handleSetCurrent = (customKey: string | number | "") => {
|
||||
if (window.innerWidth < 1025) {
|
||||
if (customKey === ulIsVisible) {
|
||||
setUlIsVisible("");
|
||||
} else {
|
||||
setUlIsVisible(customKey);
|
||||
}
|
||||
}
|
||||
console.log("funcionando", customKey);
|
||||
};
|
||||
|
||||
return (
|
||||
<section className={"footer__top"}>
|
||||
<div className={"footer__top__wrapper"}>
|
||||
<AccordionProvider value={{ current: ulIsVisible, handleSetCurrent }}>
|
||||
<Accordion customKey={1}>
|
||||
<div className={"footer__top__block"}>
|
||||
<Accordion.Header customKey={1}>
|
||||
<h4 className={`footer__top__block__title`}> Institucional </h4>
|
||||
</Accordion.Header>
|
||||
<Accordion.Content>
|
||||
<ul className={"footer__top__block__item-list"}>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a href="/" className={"footer__top__block__link"}>
|
||||
Quem Somos
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a href="/" className={"footer__top__block__link"}>
|
||||
Política de Privacidade
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a href="/" className={"footer__top__block__link"}>
|
||||
Segurança
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a href="/" className={"footer__top__block__link"}>
|
||||
Seja um Revendedor
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</Accordion.Content>
|
||||
</div>
|
||||
</Accordion>
|
||||
|
||||
<Accordion customKey={2}>
|
||||
<div className={"footer__top__block"}>
|
||||
<Accordion.Header customKey={2}>
|
||||
<h4 className={`footer__top__block__title`}> Dúvidas </h4>
|
||||
</Accordion.Header>
|
||||
<Accordion.Content>
|
||||
<ul className={"footer__top__block__item-list"}>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a href="/" className={"footer__top__block__link"}>
|
||||
Entrega
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a href="/" className={"footer__top__block__link"}>
|
||||
Pagamento
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a href="/" className={"footer__top__block__link"}>
|
||||
Trocas e Devoluções
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a href="/" className={"footer__top__block__link"}>
|
||||
Dúvidas Frequentes
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</Accordion.Content>
|
||||
</div>
|
||||
</Accordion>
|
||||
|
||||
<Accordion customKey={3}>
|
||||
<div className={"footer__top__block"}>
|
||||
<Accordion.Header customKey={3}>
|
||||
<h4 className={`footer__top__block__title`}> Fale Conosco </h4>
|
||||
</Accordion.Header>
|
||||
<Accordion.Content>
|
||||
<ul className={"footer__top__block__item-list"}>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a
|
||||
href="http://wa.me/(11)4159 9504"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className={"footer__top__block__link"}
|
||||
>
|
||||
<span className={"footer__top__block__link"}>
|
||||
<strong>
|
||||
Atendimento Ao <br /> Consumidor
|
||||
</strong>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a
|
||||
href="tel:(11)4159 9504"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className={"footer__top__block__link"}
|
||||
>
|
||||
(11) 4159 9504
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a
|
||||
href="http://wa.me/(11)99433-8825"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className={"footer__top__block__link"}
|
||||
>
|
||||
<span className={"footer__top__block__link"}>
|
||||
<strong>Atendimento Online</strong>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block__item"}>
|
||||
<a
|
||||
href="tel:(11)99433-8825"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className={"footer__top__block__link"}
|
||||
>
|
||||
(11) 99433-8825
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</Accordion.Content>
|
||||
</div>
|
||||
</Accordion>
|
||||
</AccordionProvider>
|
||||
|
||||
<div className={"footer__top__block-social"}>
|
||||
<ul className={"footer__top__block-social__social-medias"}>
|
||||
<li className={"footer__top__block-social__social-medias__logo"}>
|
||||
<a
|
||||
href="https://www.facebook.com/digitalm3"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<img src={facebook} alt="Logo Facebook" />
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block-social__social-medias__logo"}>
|
||||
<a
|
||||
href="https://www.instagram.com/m3.ecommerce/"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<img src={instagram} alt="Logo instagram" />
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block-social__social-medias__logo"}>
|
||||
<a href="https://twitter.com/home" target="_blank" rel="noreferrer">
|
||||
<img src={twitter} alt="Logo twitter" />
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block-social__social-medias__logo"}>
|
||||
<a
|
||||
href="https://www.youtube.com/@m3e-commerce796"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<img src={youtube} alt="Logo youtube" />
|
||||
</a>
|
||||
</li>
|
||||
<li className={"footer__top__block-social__social-medias__logo"}>
|
||||
<a
|
||||
href="https://www.linkedin.com/company/m3ecommerce/"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<img src={linkedin} alt="Logo linkedin" />
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<a
|
||||
href="https://www.loremipsum.com"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className={"footer__top__block-social__social-medias__site"}
|
||||
>
|
||||
www.loremipsum.com
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FooterTop };
|
13
src/components/organisms/Header/Header.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import { HeaderMobile } from "./HeaderMobile/HeaderMobile";
|
||||
import { HeaderDesktop } from "./HeaderDesktop/HeaderDesktop";
|
||||
|
||||
const Header = () => {
|
||||
return (
|
||||
<>
|
||||
<HeaderDesktop />
|
||||
<HeaderMobile />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export { Header };
|
@ -0,0 +1,169 @@
|
||||
@import '../../../../variaveis';
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header-top {
|
||||
width: calc(100% - 200px);
|
||||
height: 31px;
|
||||
padding: 22px 100px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
border-bottom: 1px solid $color-primary-400;
|
||||
background: $color-black;
|
||||
|
||||
@media (min-width: 2500px) {
|
||||
height: 102px;
|
||||
}
|
||||
|
||||
&__logo-link {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
&__logo {
|
||||
width: 265.62px;
|
||||
height: 50.5px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 136px;
|
||||
height: 25.86px;
|
||||
}
|
||||
}
|
||||
|
||||
&__input {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
padding: 7px 16px;
|
||||
gap: 10px;
|
||||
|
||||
background: $color-white;
|
||||
border: 2px solid $color-primary-700;
|
||||
border-radius: 5px;
|
||||
|
||||
width: 24.44%;
|
||||
height: 14px;
|
||||
|
||||
background-image: url("../../../../assets/imgs/search-icon-header.png");
|
||||
background-size: 18px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: bottom 50% right 16px;
|
||||
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: $color-primary-500;
|
||||
|
||||
@media (min-width: 2500px) {
|
||||
width: 22%;
|
||||
height: 30px;
|
||||
padding: 11px 16px;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
background-size: 35.15px;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: $color-primary-500;
|
||||
|
||||
@media (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__log-cart {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&__log {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: $color-white;
|
||||
text-decoration: none;
|
||||
margin-right: 55px;
|
||||
|
||||
@media (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
|
||||
&__cart {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
display: contents;
|
||||
cursor: pointer;
|
||||
|
||||
img {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
|
||||
@media (min-width: 2500px) {
|
||||
width: 54.68px;
|
||||
height: 54.68px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.header-bottom {
|
||||
width: calc(100% - 200px);
|
||||
height: 16px;
|
||||
padding: 14px 100px;
|
||||
background-color: $color-black;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
|
||||
@media (min-width: 2500px) {
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
&__list {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&__items-menu {
|
||||
margin-right: 55px;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
color: $color-white;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
import logo from "../../../../assets/imgs/m3-acdemy-logo.png";
|
||||
import cart from "../../../../assets/imgs/cart-icon-header.png";
|
||||
|
||||
import styles from "./HeaderDesktop.module.scss";
|
||||
|
||||
const HeaderDesktop = () => {
|
||||
return (
|
||||
<header className={styles["header"]}>
|
||||
<div className={styles["header-top"]}>
|
||||
<a href="/" className={styles["header-top__logo-link"]}>
|
||||
<img src={logo} alt="Logo M3" className={styles["header-top__logo"]} />
|
||||
</a>
|
||||
<input placeholder="Buscar..." className={styles["header-top__input"]} />
|
||||
<div className={styles["header-top__log-cart"]}>
|
||||
<a href="/" className={styles["header-top__log"]}>
|
||||
ENTRAR
|
||||
</a>
|
||||
<button
|
||||
className={styles["header-top__cart"]}
|
||||
aria-label="Abrir Carrinho"
|
||||
onClick={() => {
|
||||
alert("Carrinho vazio!");
|
||||
}}
|
||||
>
|
||||
<img src={cart} alt="Img do Carrinho" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles["header-bottom"]}>
|
||||
<nav className={styles["header-bottom__list"]}>
|
||||
<a href="/" className={styles["header-bottom__list__items-menu"]}>
|
||||
CURSOS
|
||||
</a>
|
||||
<a href="/" className={styles["header-bottom__list__items-menu"]}>
|
||||
SAIBA MAIS
|
||||
</a>
|
||||
<a href="/" className={styles["header-bottom__list__items-menu"]}>
|
||||
INSTITUCIONAIS
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
};
|
||||
|
||||
export { HeaderDesktop };
|
@ -0,0 +1,78 @@
|
||||
@import '../../../../variaveis';
|
||||
|
||||
.header-mobile {
|
||||
display: none;
|
||||
padding: 25px 16px;
|
||||
background: $color-black;
|
||||
width: calc(100% - 32px);
|
||||
height: 89px;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&__top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
&__icon-hamburger {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
display: contents;
|
||||
|
||||
img {
|
||||
width: 28px;
|
||||
height: 22.5px;
|
||||
}
|
||||
}
|
||||
|
||||
&__icon-cart {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
display: contents;
|
||||
|
||||
img {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__input {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
padding: 10px 16px;
|
||||
gap: 10px;
|
||||
|
||||
background: $color-white;
|
||||
border: 2px solid $color-primary-700;
|
||||
border-radius: 5px;
|
||||
|
||||
width: calc(100% - 32px);
|
||||
height: 12px;
|
||||
margin-top: 25.54px;
|
||||
|
||||
background-image: url("../../../../assets/imgs/search-icon-header.png");
|
||||
background-size: 18px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: bottom 50% right 16px;
|
||||
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: $color-primary-500;
|
||||
|
||||
&::placeholder {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: $color-primary-500;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import styles from "./HeaderMobile.module.scss";
|
||||
|
||||
import { MenuMobile } from "../../../molecules/MenuMobile/MenuMobile";
|
||||
import hamburger from "../../../../assets/imgs/menu-hamburger-header.png";
|
||||
import logo from "../../../../assets/imgs/m3-acdemy-logo.png";
|
||||
import cart from "../../../../assets/imgs/cart-icon-header.png";
|
||||
|
||||
const HeaderMobile = () => {
|
||||
const [menuIsVisible, setMenuIsVisible] = useState(false);
|
||||
|
||||
const scrollWindow = () => {
|
||||
window.addEventListener("resize", () => {
|
||||
if (window.innerWidth <= 1024 && menuIsVisible) {
|
||||
document.body.style.overflowY = "hidden";
|
||||
} else {
|
||||
document.body.style.overflowY = "auto";
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
scrollWindow();
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
<header className={styles["header-mobile"]}>
|
||||
<div className={styles["header-mobile__top"]}>
|
||||
<button
|
||||
onClick={() => setMenuIsVisible(true)}
|
||||
className={styles["header-mobile__top__icon-hamburger"]}
|
||||
aria-label="Abrir Menu"
|
||||
>
|
||||
<img src={hamburger} alt="Imagem Menu Hamburger" />
|
||||
</button>
|
||||
<a href="/" className={styles["header-mobile__top__icons"]}>
|
||||
<img src={logo} alt="Logo M3-ACADEMY" />
|
||||
</a>
|
||||
|
||||
<button
|
||||
className={styles["header-mobile__top__icon-cart"]}
|
||||
aria-label="Abrir Carrinho"
|
||||
onClick={() => {
|
||||
alert("Carrinho vazio!");
|
||||
}}
|
||||
>
|
||||
<img src={cart} alt="Img do Carrinho" />
|
||||
</button>
|
||||
</div>
|
||||
<input placeholder="Buscar..." className={styles["header-mobile__input"]} />
|
||||
<MenuMobile menuIsVisible={menuIsVisible} setMenuIsVisible={setMenuIsVisible} />
|
||||
</header>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export { HeaderMobile };
|
36
src/components/organisms/Main/Main.module.scss
Normal file
@ -0,0 +1,36 @@
|
||||
@import '../../../variaveis';
|
||||
|
||||
.main {
|
||||
width: calc(100% - 200px);
|
||||
padding: 0 100px;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
padding: 0 16px;
|
||||
width: calc(100% - 32px);
|
||||
}
|
||||
|
||||
&__title {
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 48px;
|
||||
line-height: 56px;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
color: $color-black2;
|
||||
text-align: center;
|
||||
margin-bottom: 80px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
margin-bottom: 40px;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
&__group {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
14
src/components/organisms/Main/Main.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import { Submenu } from "../SubmenuMain/router";
|
||||
|
||||
import styles from "./Main.module.scss";
|
||||
|
||||
export const Main = () => {
|
||||
return (
|
||||
<main className={styles["main"]}>
|
||||
<h1 className={styles["main__title"]}>Institucional</h1>
|
||||
<div className={styles["main__group"]}>
|
||||
<Submenu />
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
};
|
@ -0,0 +1,39 @@
|
||||
@import '../../../../variaveis';
|
||||
|
||||
.navbar {
|
||||
width: 25%;
|
||||
height: 509px;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-right: 1px solid $color-black;
|
||||
|
||||
@media #{$mq-desktop} {
|
||||
width: 28%;
|
||||
height: 302px;
|
||||
}
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border: none;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
&__link{
|
||||
text-decoration: none;
|
||||
font-family: $font-family;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 32px;
|
||||
line-height: 38px;
|
||||
color: $color-primary-300;
|
||||
width: calc(100% - 32px);
|
||||
padding: 10px 16px;
|
||||
|
||||
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
|
||||
font-size: 16px;
|
||||
line-height: 19px;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
import { NavLink } from "react-router-dom"
|
||||
|
||||
import styles from './NavbarSubmenu.module.scss';
|
||||
|
||||
export const NavbarSubmenu = () => {
|
||||
return (
|
||||
<div className={styles['navbar']}>
|
||||
<NavLink className={styles['navbar__link']} to='/'
|
||||
style={({ isActive }) => ({
|
||||
color: isActive ? "#fff" : "#7d7d7d",
|
||||
background: isActive ? "#000000" : "unset",
|
||||
fontWeight: isActive ? "700" : "400",
|
||||
})}>
|
||||
Sobre
|
||||
</NavLink>
|
||||
|
||||
<NavLink className={styles['navbar__link']} style={({ isActive }) => ({
|
||||
color: isActive ? "#fff" : "#7d7d7d",
|
||||
background: isActive ? "#000000" : "unset",
|
||||
fontWeight: isActive ? "700" : "400",
|
||||
})}
|
||||
to='/formapagamento' >
|
||||
Forma de Pagamento
|
||||
</NavLink>
|
||||
|
||||
<NavLink className={styles['navbar__link']}
|
||||
style={({ isActive }) => ({
|
||||
color: isActive ? "#fff" : "#7d7d7d",
|
||||
background: isActive ? "#000000" : "unset",
|
||||
fontWeight: isActive ? "700" : "400",
|
||||
})}
|
||||
to='/entrega'>
|
||||
Entrega
|
||||
</NavLink>
|
||||
<NavLink className={styles['navbar__link']}
|
||||
style={({ isActive }) => ({
|
||||
color: isActive ? "#fff" : "#7d7d7d",
|
||||
background: isActive ? "#000000" : "unset",
|
||||
fontWeight: isActive ? "700" : "400",
|
||||
})} to='/trocadevolucao'>
|
||||
Troca e Devolução
|
||||
</NavLink>
|
||||
|
||||
<NavLink className={styles['navbar__link']}
|
||||
style={({ isActive }) => ({
|
||||
color: isActive ? "#fff" : "#7d7d7d",
|
||||
background: isActive ? "#000000" : "unset",
|
||||
fontWeight: isActive ? "700" : "400",
|
||||
})}
|
||||
to='/segurancaprivacidade'>
|
||||
Segurança e Privacidade
|
||||
</NavLink>
|
||||
|
||||
<NavLink className={styles['navbar__link']}
|
||||
style={({ isActive }) => ({
|
||||
color: isActive ? "#fff" : "#7d7d7d",
|
||||
background: isActive ? "#000000" : "unset",
|
||||
fontWeight: isActive ? "700" : "400",
|
||||
})}
|
||||
to='/contato'>
|
||||
Contato
|
||||
</NavLink>
|
||||
</div>
|
||||
)
|
||||
}
|
12
src/components/organisms/SubmenuMain/Submenu.module.scss
Normal file
@ -0,0 +1,12 @@
|
||||
@import '../../../variaveis';
|
||||
|
||||
.submenu {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
width: 100%;
|
||||
|
||||
@media #{$mq-tablet}, #{$mq-mobile} {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
32
src/components/organisms/SubmenuMain/router.tsx
Normal file
@ -0,0 +1,32 @@
|
||||
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
|
||||
|
||||
import { NavbarSubmenu } from "./NavBar/NavbarSubmenu";
|
||||
|
||||
import { Sobre } from "../../molecules/Subpages/Sobre";
|
||||
import { FormaPagamento } from "../../molecules/Subpages/FormaPagamento";
|
||||
import { Entrega } from "../../molecules/Subpages/Entrega";
|
||||
import { TrocaDevolucao } from "../../molecules/Subpages/TrocaDevolucao";
|
||||
import { SegurancaPrivacidade } from "../../molecules/Subpages/SegurancaPrivacidade";
|
||||
|
||||
import styles from "./Submenu.module.scss";
|
||||
import { FaleConosco } from "../../molecules/FaleConosco/FaleConosco";
|
||||
|
||||
const Submenu = () => {
|
||||
return (
|
||||
<section className={styles["submenu"]}>
|
||||
<Router>
|
||||
<NavbarSubmenu />
|
||||
<Routes>
|
||||
<Route path="/" element={<Sobre />} />
|
||||
<Route path="/formapagamento" element={<FormaPagamento />} />
|
||||
<Route path="/entrega" element={<Entrega />} />
|
||||
<Route path="/trocadevolucao" element={<TrocaDevolucao />} />
|
||||
<Route path="/segurancaprivacidade" element={<SegurancaPrivacidade />} />
|
||||
<Route path="/contato" element={<FaleConosco />} />
|
||||
</Routes>
|
||||
</Router>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Submenu };
|
66
src/global.scss
Normal file
@ -0,0 +1,66 @@
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||
sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
||||
monospace;
|
||||
}
|
||||
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
menu, nav, output, ruby, section, summary,
|
||||
time, mark, audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article, aside, details, figcaption, figure,
|
||||
footer, header, hgroup, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
blockquote, q {
|
||||
quotes: none;
|
||||
}
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: auto;
|
||||
}
|
||||
|
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>
|
||||
);
|
5
src/pages/Home.module.scss
Normal file
@ -0,0 +1,5 @@
|
||||
.home {
|
||||
@media (min-width: 3000px) {
|
||||
height: 100vh;
|
||||
}
|
||||
}
|
21
src/pages/Home.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import styles from "./Home.module.scss";
|
||||
|
||||
import { Header } from "../components/organisms/Header/Header";
|
||||
import { BreadCrumbs } from "../components/molecules/Breadcrumbs/Breadcrumbs";
|
||||
import { Main } from "../components/organisms/Main/Main";
|
||||
import { ButtonsFixeds } from "../components/Atoms/ButtonsFixed/ButtonsFixed";
|
||||
import { Footer } from "../components/organisms/Footer/Footer";
|
||||
|
||||
function Home() {
|
||||
return (
|
||||
<div className={styles["home"]}>
|
||||
<Header />
|
||||
<BreadCrumbs />
|
||||
<Main />
|
||||
<ButtonsFixeds />
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export { Home };
|
1
src/react-app-env.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
/// <reference types="react-scripts" />
|
5
src/schema/EmailNewsletter.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import * as Yup from 'yup';
|
||||
|
||||
export default Yup.object().shape({
|
||||
emailNewsletter: Yup.string().email("*Email inválido").required(""),
|
||||
})
|
13
src/schema/FormSchema.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import * as Yup from 'yup';
|
||||
import { cpf } from 'cpf-cnpj-validator';
|
||||
import { insta } from './validations';
|
||||
|
||||
export default Yup.object().shape({
|
||||
name: Yup.string().required("*Campo Obrigatório").min(3, "*No mínimo 3 digitos"),
|
||||
email: Yup.string().email("*Email inválido").required("*Campo Obrigatório"),
|
||||
cpf: Yup.string().test((value:any) => cpf.isValid(value)).required("*Campo Obrigatório"),
|
||||
birthDate: Yup.date().max(new Date(), "*Data inválida!").required("*Campo Obrigatório"),
|
||||
celPhone: Yup.string().required('*Campo Obrigatório'),
|
||||
instagram: Yup.string().matches(insta, 'Usuário Inválido!'),
|
||||
acceptTerms: Yup.boolean().oneOf([true], '*'),
|
||||
})
|
4
src/schema/validations.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export const phoneNumber = /\([1-9]{2}\) 9[0-9]\d{3}-\d{4}/;
|
||||
export const cpfNumber = /^[0-9]{3}.?[0-9]{3}.?[0-9]{3}-?[0-9]{2}/;
|
||||
export const insta = /@(?:(?:[\w][.]{0,1})*[\w]){1,29}/;
|
||||
|
26
tsconfig.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|