Merge pull request 'develop' (#1) from develop into main

Reviewed-on: #1
This commit is contained in:
Sabrina Miranda 2023-01-17 00:01:00 +00:00
commit d6519f14f8
75 changed files with 32105 additions and 63 deletions

23
.gitignore vendored Normal file
View File

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

100
README.md
View File

@ -1,93 +1,67 @@
# Desafio REACT e Typescript
## Sobre o Projeto
Projeto realizado para o "Desafio React e TypeScript" do treinamento da M3 Academy da M3.
## Getting started
## Desenvolvedor(a) do Projeto
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Sabrina Miranda
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)!
## Figma
## Add your files
Layout utlizado no Projeto: https://www.figma.com/file/wy2rXH3gsH20KgfUpHh4oz/Desafio-Institucional-React.js?node-id=0%3A1
- [ ] [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:
## Getting Started with Create React App
```
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
```
Para criar o projeto inicial foi feito o comando: npx create-react-app my-app --template typescript
## Integrate with your tools
## Instalando Formik / Yup / sass / react-router-dom
- [ ] [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)
- Utilizei npm. Comandos:
## Collaborate with your team
npm install formik
npm install yup
npm install -D sass
npm install react-router-dom
- [ ] [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)
## Rodando o Projeto
## Test and Deploy
Comando para rodar o projeto: npm start
Use the built-in continuous integration in GitLab.
Irá Executar o aplicativo no modo de desenvolvimento.
Abra http://localhost:3000 para visualizá-lo no navegador.
Você também verá quaisquer erros de lint no console.
- [ ] [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)
## Outros
***
### `npm test`
# Editing this README
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.
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.
### `npm run build`
## 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.
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
## Name
Choose a self-explaining name for your project.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
## 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.
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
## 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.
### `npm run eject`
## 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.
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
## 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.
If you arent satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
## 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.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.
## 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.
You dont have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.
## Roadmap
If you have ideas for releases in the future, it is a good idea to list them in the README.
## Learn More
## 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/).

29140
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

49
package.json Normal file
View File

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

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 B

21
public/index.html Normal file
View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="pt-br">
<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"
/>
<title>Desafio - React e TypeScript</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>

View File

@ -0,0 +1,18 @@
import React from "react";
import { Newsletter } from "../Newsletter/Newsletter";
import { FooterTop } from "./FooterTop/FooterTop";
import { FooterBottom } from "./FooterBottom/FooterBottom";
const Footer = () => {
return (
<>
<Newsletter />
<FooterTop />
<FooterBottom />
</>
);
}
export { Footer };

View File

@ -0,0 +1,149 @@
@use '../../../variables';
.footer-bottom {
background-color: variables.$black;
height: 100%;
&__wrapper {
display: flex;
padding: 15px 100px;
justify-content: space-between;
align-items: center;
@media (max-width: 1024px) {
display: grid;
grid-template-columns: 100%;
padding: 15px 16px;
gap: 15px;
}
}
&__address {
font-size: 10px;
line-height: 12px;
text-transform: capitalize;
color: variables.$white;
@media (min-width: 2500px) {
font-size: 20px;
line-height: 23px;
}
@media (max-width: 1024px) {
grid-area: 2;
}
}
&__payments-icons {
display: flex;
align-items: center;
gap: 12px;
@media ((min-width: 1025px) and (max-width: 1100px)) {
gap: 6px;
}
@media (min-width: 370px) and (max-width: 425px) {
gap: 11px;
}
@media (max-width: 369px) {
flex-wrap: wrap;
}
.li-card {
display: flex;
}
.card {
width: auto;
height: 20px;
@media (min-width: 2500px) {
height: 39px;
}
@media (max-width: 420px) {
height: 17px;
}
}
.li-divider {
border: 1px solid variables.$gray-400;
height: 24px;
@media (max-width: 420px) {
height: 20px;
}
}
.li-vtexpci {
width: auto;
height: 34px;
@media (min-width: 2500px) {
height: 66px;
}
@media (max-width: 420px) {
height: 28px;
}
}
}
&__developedby {
display: flex;
align-items: center;
gap: 13px;
@media (min-width: 2500px) {
gap: 12px;
}
@media ((min-width: 1025px) and (max-width: 1150px)) {
gap: 7px;
}
&__li,
&__text {
display: flex;
align-items: center;
}
&__text {
font-size: 10px;
line-height: 12px;
text-transform: capitalize;
color: variables.$white;
@media (min-width: 2500px) {
font-size: 20px;
line-height: 23px;
}
}
&__logo-vtex {
width: 44px;
@media (min-width: 2500px) {
width: 84px;
}
&:hover {
filter: brightness(80%);
}
}
&__logo-m3 {
width: 28px;
@media (min-width: 2500px) {
width: 54px;
}
&:hover {
filter: brightness(80%);
}
}
}
}

View File

@ -0,0 +1,116 @@
import React from "react";
import styles from "./FooterBottom.module.scss";
import imgLogoVtex from "./assets/vtex-logo.svg";
import imgLogoM3 from "./assets/m3-logo.svg";
import imgLogoMaster from "./assets/Master.png";
import imgLogoVisa from "./assets/Visa.png";
import imgLogoAmericanExpress from "./assets/AmericanExpress.png";
import imgLogoElo from "./assets/Elo.png";
import imgLogoHipercard from "./assets/Hiper.png";
import imgLogoPayPal from "./assets/PayPal.png";
import imgLogoBoleto from "./assets/Boleto.png";
import imgLogoVtexPCI from "./assets/vtex-pci-200.png";
import { IconList } from "../../IconList/IconList";
import { ItemList } from "../../ItemList/ItemList";
const FooterBottom = () => {
return (
<div className={styles["footer-bottom"]}>
<div className={styles["footer-bottom__wrapper"]}>
<div className={styles["footer-bottom__address"]}>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing</p>
<p>Elit, sed do eiusmod tempor</p>
</div>
<ul className={styles["footer-bottom__payments-icons"]}>
<IconList
src={imgLogoMaster}
alt="Logo Master Card"
imgClassName={styles["card"]}
liClassName={styles["li-card"]}
/>
<IconList
src={imgLogoVisa}
alt="Logo Visa"
imgClassName={styles["card"]}
liClassName={styles["li-card"]}
/>
<IconList
src={imgLogoAmericanExpress}
alt="Logo American Express"
imgClassName={styles["card"]}
liClassName={styles["li-card"]}
/>
<IconList
src={imgLogoElo}
alt="Logo Elo"
imgClassName={styles["card"]}
liClassName={styles["li-card"]}
/>
<IconList
src={imgLogoHipercard}
alt="Logo Hipercard"
imgClassName={styles["card"]}
liClassName={styles["li-card"]}
/>
<IconList
src={imgLogoPayPal}
alt="Logo PayPal"
imgClassName={styles["card"]}
liClassName={styles["li-card"]}
/>
<IconList
src={imgLogoBoleto}
alt="Logo Boleto"
imgClassName={styles["card"]}
liClassName={styles["li-card"]}
/>
<li className={styles["li-divider"]}></li>
<IconList
src={imgLogoVtexPCI}
alt="Logo Vtex PCI"
imgClassName={styles["li-vtexpci"]}
liClassName={styles["li-card"]}
/>
</ul>
<ul className={styles["footer-bottom__developedby"]}>
<ItemList
text="Powered by"
textClassName={styles["footer-bottom__developedby__text"]}
/>
<a href="/">
<IconList
src={imgLogoVtex}
alt="Logo Vtex"
imgClassName={styles["footer-bottom__developedby__logo-vtex"]}
liClassName={styles["footer-bottom__developedby__li"]}
/>
</a>
<ItemList
text="Developed by"
textClassName={styles["footer-bottom__developedby__text"]}
/>
<a href="/">
<IconList
src={imgLogoM3}
alt="Logo M3"
imgClassName={styles["footer-bottom__developedby__logo-m3"]}
liClassName={styles["footer-bottom__developedby__li"]}
/>
</a>
</ul>
</div>
</div>
);
};
export { FooterBottom };

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -0,0 +1,4 @@
<svg width="55" height="30" viewBox="0 0 55 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M32.0512 10.2627C31.1932 9.1249 30.1157 8.17871 28.8851 7.48256C27.6545 6.78641 26.297 6.35511 24.8966 6.21531C23.4961 6.07551 22.0824 6.23018 20.7429 6.66976C19.4033 7.10934 18.1664 7.82449 17.1085 8.77102L16.1946 8.06248C9.91595 3.55022 1.12401 7.38191 0.301479 15.1106C0.0512614 18.834 -0.0127963 22.5679 0.109555 26.298C0.0893703 26.7766 0.165844 27.2544 0.33423 27.7017C0.502615 28.1489 0.759319 28.5561 1.08841 28.8979C1.41749 29.2397 1.81194 29.5089 2.24727 29.6887C2.68259 29.8685 3.1495 29.9552 3.61902 29.9432C4.07853 29.9412 4.53289 29.8444 4.9548 29.6587C5.37671 29.473 5.75747 29.2022 6.07418 28.8626C6.39089 28.523 6.63702 28.1215 6.79779 27.6824C6.95855 27.2433 7.03062 26.7756 7.00967 26.3073C7.00967 23.6223 7.00967 20.9373 7.00967 18.243C7.00228 17.4443 7.05729 16.6462 7.17418 15.8564C7.3216 15.048 7.76359 14.3265 8.41128 13.837C9.05897 13.3476 9.86432 13.1264 10.6654 13.218C11.4484 13.2782 12.183 13.6277 12.7315 14.201C13.28 14.7742 13.6047 15.5319 13.6448 16.3319C13.6905 17.3201 13.6448 18.3083 13.6448 19.2965C13.6448 21.7018 13.6448 24.1071 13.6448 26.5124C13.6354 27.2101 13.8388 27.8934 14.2268 28.468C14.6149 29.0425 15.1684 29.4799 15.8108 29.7195C18.1413 30.7077 20.5175 28.9736 20.5632 26.242C20.5632 23.063 20.5632 19.8839 20.6545 16.7048C20.6853 15.9363 20.9156 15.1899 21.3217 14.5419C21.7084 13.9705 22.2689 13.5449 22.9164 13.3309C23.564 13.1169 24.2626 13.1264 24.9043 13.3579C25.6282 13.5648 26.261 14.0177 26.6981 14.6416C27.1352 15.2656 27.3504 16.023 27.3079 16.7887C27.3079 20.0051 27.3079 23.2214 27.3079 26.4378C27.3079 26.8994 27.397 27.3564 27.5702 27.7829C27.7433 28.2093 27.9971 28.5967 28.3171 28.9231C28.637 29.2495 29.0168 29.5084 29.4349 29.685C29.8529 29.8616 30.3009 29.9525 30.7534 29.9525C31.2059 29.9525 31.6539 29.8616 32.0719 29.685C32.49 29.5084 32.8698 29.2495 33.1897 28.9231C33.5097 28.5967 33.7635 28.2093 33.9366 27.7829C34.1098 27.3564 34.1989 26.8994 34.1989 26.4378C34.1989 23.1469 34.1989 19.9118 34.1989 16.5742C34.2051 14.2829 33.4478 12.0573 32.0512 10.2627Z" fill="white"/>
<path d="M49.3155 12.1271L48.228 11.6703C49.3064 10.8126 50.33 10.0761 51.2439 9.23706C52.0559 8.58492 52.7568 7.80059 53.3185 6.91567C54.9636 3.78319 52.6422 0.137951 48.9591 0.0540455C45.5593 0.00743122 42.1686 0.00743122 38.7689 0.00743122C38.3524 -0.0219252 37.9346 0.0388675 37.5428 0.185821C37.151 0.332775 36.7941 0.562568 36.4955 0.860126C36.1969 1.15768 35.9634 1.51628 35.8102 1.91239C35.657 2.30851 35.5877 2.73318 35.6067 3.15856C35.566 3.59182 35.6181 4.02893 35.7595 4.4396C35.9009 4.85026 36.1281 5.22465 36.4254 5.53682C36.7228 5.84899 37.0831 6.09148 37.4814 6.24747C37.8797 6.40346 38.3066 6.46922 38.7323 6.4402C40.3956 6.4402 42.059 6.4402 43.7223 6.4402C44.0056 6.53343 44.2981 6.53343 44.8464 6.53343C42.5891 8.398 40.5053 10.1693 38.449 11.922C37.1238 13.0408 36.7217 14.2621 37.1878 15.6512C37.4353 16.3368 37.8967 16.9207 38.5009 17.3131C39.1052 17.7055 39.819 17.8848 40.5327 17.8234C42.2966 17.8234 44.0696 17.8234 45.8335 17.8234C46.2291 17.7488 46.6359 17.7639 47.0251 17.8676C47.4143 17.9714 47.7764 18.1612 48.0856 18.4237C48.3948 18.6862 48.6437 19.0148 48.8144 19.3864C48.9852 19.7579 49.0737 20.1633 49.0737 20.5736C49.0737 20.984 48.9852 21.3894 48.8144 21.7609C48.6437 22.1325 48.3948 22.4611 48.0856 22.7236C47.7764 22.9861 47.4143 23.1759 47.0251 23.2797C46.6359 23.3834 46.2291 23.3985 45.8335 23.3239C43.5487 23.3239 41.2639 23.3239 38.9791 23.3239C38.1781 23.3681 37.4243 23.7237 36.8726 24.3177C36.321 24.9117 36.0135 25.6988 36.0135 26.517C36.0135 27.3352 36.321 28.1223 36.8726 28.7162C37.4243 29.3102 38.1781 29.6659 38.9791 29.71C41.3644 29.71 43.7589 29.71 46.1442 29.71C48.2396 29.6558 50.253 28.8685 51.847 27.4801C53.4411 26.0917 54.5188 24.1865 54.8996 22.084C55.2032 20.0254 54.817 17.9226 53.8037 16.1157C52.7903 14.3088 51.209 12.9035 49.3155 12.1271Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -0,0 +1,7 @@
<svg width="86" height="30" viewBox="0 0 86 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M61.6881 11.2328H58.6747V21.4794C58.6747 21.6712 58.5088 21.8355 58.3153 21.8355H55.993C55.7995 21.8355 55.6336 21.6712 55.6336 21.4794V11.2328H52.5926C52.5096 11.2328 52.399 11.2054 52.3437 11.1506C52.2884 11.0958 52.2332 11.0136 52.2332 10.904V9.09582C52.2332 9.01363 52.2608 8.90404 52.3437 8.84924C52.399 8.79445 52.5096 8.73966 52.5926 8.76705H61.6881C61.8817 8.76705 62.0475 8.90404 62.0475 9.09582V10.904C62.0475 11.0958 61.8817 11.2328 61.6881 11.2328Z" fill="white"/>
<path d="M71.3916 21.7535C70.2029 21.9179 68.9864 22.0001 67.7977 21.9727C65.503 21.9727 63.4849 21.3974 63.4849 18.1919V12.3563C63.4849 9.15079 65.5307 8.60285 67.8253 8.60285C69.0141 8.57545 70.2029 8.65764 71.3916 8.82203C71.6405 8.84942 71.751 8.95901 71.751 9.17819V10.822C71.751 11.0138 71.5852 11.1782 71.3916 11.1782H67.6594C66.83 11.1782 66.5259 11.4522 66.5259 12.3837V13.9727H71.2534C71.4469 13.9727 71.6128 14.1371 71.6128 14.3289V16.0001C71.6128 16.1919 71.4469 16.3563 71.2534 16.3563H66.5259V18.2193C66.5259 19.1234 66.83 19.4248 67.6594 19.4248H71.3916C71.5852 19.4248 71.751 19.5892 71.751 19.7809V21.4248C71.751 21.6166 71.6405 21.7261 71.3916 21.7535Z" fill="white"/>
<path d="M84.7727 21.8352H81.9528C81.7593 21.8626 81.5658 21.753 81.4828 21.5612L79.0223 17.7256L76.8106 21.479C76.7 21.6982 76.5618 21.8352 76.3683 21.8352H73.7419C73.6866 21.8352 73.6037 21.8352 73.5484 21.7804C73.4931 21.7256 73.4654 21.6708 73.4654 21.5886C73.4654 21.5338 73.4931 21.5064 73.4931 21.479L77.3359 15.1228L73.4378 9.09544C73.4102 9.06805 73.4102 9.01325 73.4102 8.98586C73.4102 8.84887 73.5484 8.73928 73.6866 8.76668H76.5895C76.783 8.76668 76.9212 8.93106 77.0318 9.09544L79.2988 12.6571L81.5105 9.09544C81.5934 8.90366 81.7593 8.79407 81.9528 8.76668H84.5792C84.7174 8.76668 84.8557 8.84887 84.8557 8.98586C84.8557 9.01325 84.828 9.06805 84.828 9.09544L80.9576 15.1776L84.9939 21.479C85.0215 21.5338 85.0492 21.5886 85.0492 21.6434C85.0215 21.753 84.911 21.8352 84.7727 21.8352Z" fill="white"/>
<path d="M48.0032 8.79443C47.865 8.79443 47.7544 8.87663 47.7268 9.01361L45.1557 18.4657C45.128 18.6574 45.0727 18.7396 44.9069 18.7396C44.741 18.7396 44.6857 18.6574 44.658 18.4657L42.0869 9.01361C42.0593 8.87663 41.9487 8.79443 41.8105 8.79443H39.267C39.1841 8.79443 39.1012 8.82183 39.0459 8.90402C38.9906 8.95882 38.9629 9.04101 38.9906 9.1232C38.9906 9.1232 42.1422 19.9725 42.1699 20.0821C42.5846 21.3698 43.6075 21.9999 44.9069 21.9999C46.1509 22.0547 47.2844 21.2602 47.6438 20.0821C47.6991 19.9451 50.7678 9.1232 50.7678 9.1232C50.7955 9.04101 50.7678 8.95882 50.7125 8.90402C50.6572 8.84923 50.5743 8.79443 50.4914 8.79443H48.0032Z" fill="white"/>
<path d="M33.6272 0H7.16989C6.20227 0 5.3176 0.520548 4.84761 1.31507C4.34998 2.13699 4.32234 3.15068 4.76468 3.9726L7.4187 8.9589H2.60828C2.00006 8.9589 1.41949 9.26027 1.08774 9.78082C0.755988 10.3014 0.755988 10.9589 1.03245 11.5068L9.54745 27.4521C9.85156 28.0274 10.4598 28.3836 11.0956 28.3836C11.7315 28.3836 12.3397 28.0274 12.6438 27.4521L14.9661 23.1233L17.8689 28.5753C18.3389 29.4521 19.2789 30 20.2741 30C21.2694 30 22.2094 29.4521 22.6794 28.5753L35.9495 3.83562C36.3918 3.0137 36.3642 2.0274 35.8666 1.26027C35.4242 0.465753 34.5395 0 33.6272 0ZM21.7947 10.4384L15.989 21.2329C15.7955 21.6164 15.4084 21.8356 14.9661 21.8356C14.5238 21.8356 14.1367 21.589 13.9432 21.2329L8.22044 10.5479C8.05456 10.2192 8.05456 9.83562 8.24809 9.50685C8.44161 9.17808 8.80101 8.9863 9.16041 8.9863H20.8824C21.2418 8.9863 21.5735 9.15069 21.7394 9.45205C21.9606 9.75342 21.9606 10.137 21.7947 10.4384Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -0,0 +1,120 @@
@use '../../../variables';
.footer-menu {
display: flex;
gap: 121px;
@media (min-width: 2500px) {
gap: 293px;
}
@media ((min-width: 1025px) and (max-width: 1170px)) {
gap: 75px;
}
@media (max-width: 1024px) {
flex-direction: column;
gap: 0;
}
&__top {
&__title-wrapper {
@media (max-width: 1024px) {
display: flex;
justify-content: space-between;
}
}
&__title,
&__item,
&__item-title,
&__title-active {
color: variables.$black-300;
margin-bottom: 12px;
}
&__title,
&__title-active {
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
@media (max-width: 1024px) {
cursor: pointer;
}
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
&__title {
@media (max-width: 1024px) {
&:hover {
filter: contrast(60%);
}
}
}
&__title-active {
text-decoration-line: underline;
}
&__plus-sign {
font-weight: 500;
color: variables.$black-300;
cursor: pointer;
@media (min-width: 1025px) {
display: none;
}
}
&__items {
@media (max-width: 1024px) {
visibility: visible;
opacity: 1;
padding-bottom: 12px;
transition: .3s ease;
transform: translateY(0);
}
}
&__items-inactive {
@media (max-width: 1024px) {
visibility: hidden;
opacity: 0;
height: 0;
transform: translateY(-20%);
}
}
&__item,
&__item-title {
font-size: 12px;
line-height: 14px;
text-transform: capitalize;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
&__item {
&:hover {
text-decoration-line: underline;
}
}
&__item-title {
font-weight: 500;
@media ((min-width: 1025px) and (max-width: 2499px)){
width: 150px;
}
}
}
}

View File

@ -0,0 +1,126 @@
import {useState} from "react";
import styles from "./FooterMenu.module.scss";
import { ItemList } from "../../ItemList/ItemList";
const FooterMenu = () => {
const [isActive, setIsActive] = useState(false);
const [isActive2, setIsActive2] = useState(false);
const [isActive3, setIsActive3] = useState(false);
return (
<div className={styles["footer-menu"]}>
<div className={styles["footer-menu__top"]}>
<div className={styles["footer-menu__top__title-wrapper"]} onClick={() => setIsActive(!isActive)}>
<h3 className={isActive === true && (window.innerWidth <= 1024)
? styles["footer-menu__top__title-active"]
: styles["footer-menu__top__title"]}>
INSTITUCIONAL
</h3>
<div className={styles["footer-menu__top__plus-sign"]}>
{isActive ? "-" : "+"}
</div>
</div>
<ul className={isActive === true
? styles["footer-menu__top__items"]
: styles["footer-menu__top__items-inactive"]}>
<a href="/">
<ItemList text="Quem Somos" textClassName={styles["footer-menu__top__item"]} />
</a>
<a href="/">
<ItemList text="Política de Privacidade" textClassName={styles["footer-menu__top__item"]} />
</a>
<a href="/">
<ItemList text="Segurança" textClassName={styles["footer-menu__top__item"]} />
</a>
<a href="/">
<ItemList text="Seja um Revendedor" textClassName={styles["footer-menu__top__item"]} />
</a>
</ul>
</div>
<div className={styles["footer-menu__top"]}>
<div className={styles["footer-menu__top__title-wrapper"]} onClick={() => setIsActive2(!isActive2)}>
<h3 className={isActive2 === true && (window.innerWidth <= 1024)
? styles["footer-menu__top__title-active"]
: styles["footer-menu__top__title"]}>
DÚVIDAS
</h3>
<div className={styles["footer-menu__top__plus-sign"]}>
{isActive2 ? "-" : "+"}
</div>
</div>
<ul className={isActive2 === true
? styles["footer-menu__top__items"]
: styles["footer-menu__top__items-inactive"]}>
<a href="/">
<ItemList text="Entrega" textClassName={styles["footer-menu__top__item"]} />
</a>
<a href="/">
<ItemList text="Pagamento" textClassName={styles["footer-menu__top__item"]} />
</a>
<a href="/">
<ItemList text="Trocas e Devoluções" textClassName={styles["footer-menu__top__item"]} />
</a>
<a href="/">
<ItemList text="Dúvidas Frequentes" textClassName={styles["footer-menu__top__item"]} />
</a>
</ul>
</div>
<div className={styles["footer-menu__top"]}>
<div className={styles["footer-menu__top__title-wrapper"]} onClick={() => setIsActive3(!isActive3)}>
<h3 className={isActive3 === true && (window.innerWidth <= 1024)
? styles["footer-menu__top__title-active"]
: styles["footer-menu__top__title"]}>
FALE CONOSCO
</h3>
<div className={styles["footer-menu__top__plus-sign"]}>
{isActive3 ? "-" : "+"}
</div>
</div>
<ul className={isActive3 === true
? styles["footer-menu__top__items"]
: styles["footer-menu__top__items-inactive"]}>
<ItemList text="Atendimento ao Consumidor" textClassName={styles["footer-menu__top__item-title"]} />
<a href="/">
<ItemList text="(11) 4159-9504" textClassName={styles["footer-menu__top__item"]} />
</a>
<ItemList text="Atendimento Online" textClassName={styles["footer-menu__top__item-title"]} />
<a href="/">
<ItemList text="(11) 99433-8825" textClassName={styles["footer-menu__top__item"]} />
</a>
</ul>
</div>
</div>
);
}
export { FooterMenu };

View File

@ -0,0 +1,15 @@
@use '../../../variables';
.footer-top {
display: flex;
justify-content: space-between;
margin: 50px 0;
padding: 0 100px;
@media (max-width: 1024px) {
flex-direction: column;
justify-content: flex-start;
margin: 24px 0;
padding: 0 16px;
}
}

View File

@ -0,0 +1,18 @@
import React from "react";
import styles from "./FooterTop.module.scss";
import { RedesSociais } from "../../RedesSociais/RedesSociais";
import { FooterMenu } from "../FooterMenu/FooterMenu";
const FooterTop = () => {
return (
<div className={styles["footer-top"]}>
<FooterMenu />
<RedesSociais />
</div>
);
}
export { FooterTop };

View File

@ -0,0 +1,183 @@
@use '../../variables';
.form {
&__container {
width: 100%;
}
form {
width: 100%;
}
&__inputs-container {
display: flex;
flex-direction: column;
label {
font-size: 14px;
line-height: 16px;
color: variables.$black-100;
margin-left: 15px;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
input {
height: 46px;
background: variables.$white;
border: 1px solid variables.$black-100;
font-size: 14px;
line-height: 16px;
color: variables.$gray-200;
border-radius: 25px;
margin-top: 12px;
margin-bottom: 12px;
padding: 15px 20px;
@media (min-width: 2500px) {
height: 63px;
font-size: 28px;
line-height: 33px;
}
&::placeholder {
font-size: 14px;
line-height: 16px;
color: variables.$gray-200;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
}
}
&__checkbox-container {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
position: relative;
input {
width: 18px;
height: 18px;
margin-left: 4px;
@media (min-width: 2500px) {
width: 36px;
height: 35px;
}
@media (max-width: 289px) {
margin-left: 2px;
}
}
}
&__checkbox,
&__checkbox-alert {
font-size: 14px;
line-height: 16px;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
&__checkbox {
color: variables.$black-100;
text-decoration: underline;
}
&__checkbox-alert {
color: variables.$red;
text-decoration: none;
}
&__invalid-feedback,
&__invalid-feedback-terms {
font-size: 12px;
line-height: 14px;
color: variables.$red;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
&__invalid-feedback {
right: 120px;
margin-top: 12px;
position: absolute;
@media (max-width: 1024px) {
right: 32px;
}
}
&__invalid-feedback-terms {
margin-left: 5px;
@media (min-width: 2500px) {
margin-left: 7px;
}
@media (max-width: 289px) {
font-size: 11px;
margin-left: 2px;
}
}
&__btn {
width: 100%;
height: 52px;
background-color: variables.$black;
border-radius: 25px;
border: none;
font-size: 16px;
line-height: 19px;
letter-spacing: 0.05em;
color: variables.$white;
padding: 17px 0;
display: flex;
align-items: center;
justify-content: center;
&:hover {
filter: opacity(.85);
}
&:active {
filter: opacity(1);
}
@media (min-width: 2500px) {
height: 71px;
font-size: 32px;
line-height: 38px;
}
}
&__msg-submit {
font-size: 12px;
line-height: 14px;
color: variables.$green;
margin-top: 12px;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
}

View File

@ -0,0 +1,188 @@
import {useState} from "react";
import { Formik, Form, Field, ErrorMessage, FormikHelpers} from "formik";
import styles from "./RegistrationForm.module.scss";
import RegistrationFormSchema from "./Schema/RegistrationFormSchema";
interface FormValue {
name: string;
email: string;
cpf: string;
birthDate: string;
phone: string;
instagram: string;
acceptTerms: boolean;
}
const initialValue = {
name: "",
email: "",
cpf: "",
birthDate: "",
phone: "",
instagram: "",
acceptTerms: false,
}
let listClient: Array<FormValue> = [];
const RegistrationForm = () => {
const [successMessage, setSuccessMessage] = useState(false);
const handleSubmit = async (values: FormValue, actions: FormikHelpers<FormValue>) => {
listClient.push(values);
console.log(listClient);
actions.resetForm();
setSuccessMessage(true);
setTimeout(() => setSuccessMessage(false), 3000);
};
return (
<div className={styles["form__container"]}>
<Formik
onSubmit={handleSubmit}
initialValues={initialValue}
validationSchema={RegistrationFormSchema} >
{({errors, touched}) => (
<Form>
<div className={styles["form__inputs-container"]}>
<label htmlFor="name">Nome</label>
<Field
type="text"
id="name"
name="name"
placeholder="Seu nome completo"
className={errors.name && touched.name && "invalid"}
/>
<ErrorMessage
component="span"
name="name"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__inputs-container"]}>
<label htmlFor="email">E-mail</label>
<Field
type="text"
id="email"
name="email"
placeholder="Seu e-mail"
className={errors.email && touched.email && "invalid"}
/>
<ErrorMessage
component="span"
name="email"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__inputs-container"]}>
<label htmlFor="cpf">CPF</label>
<Field
type="text"
id="cpf"
name="cpf"
placeholder="000.000.000-00"
className={errors.cpf && touched.cpf && "invalid"}
/>
<ErrorMessage
component="span"
name="cpf"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__inputs-container"]}>
<label htmlFor="birthDate">Data de Nascimento</label>
<Field
type="text"
id="birthDate"
name="birthDate"
placeholder="00.00.0000"
className={errors.birthDate && touched.birthDate && "invalid"}
/>
<ErrorMessage
component="span"
name="birthDate"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__inputs-container"]}>
<label htmlFor="phone">Telefone</label>
<Field
type="text"
id="phone"
name="phone"
placeholder="(00) 00000-0000"
className={errors.phone && touched.phone && "invalid"}
/>
<ErrorMessage
component="span"
name="phone"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__inputs-container"]}>
<label htmlFor="instagram">Instagram</label>
<Field
type="text"
id="instagram"
name="instagram"
placeholder="@seuuser"
className={errors.instagram && touched.instagram && "invalid"}
/>
<ErrorMessage
component="span"
name="instagram"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__checkbox-container"]}>
<label htmlFor="acceptTerms">
<span className={styles["form__checkbox-alert"]}>* </span>
<a href="/" className={styles["form__checkbox"]}>
Declaro que li e aceito
</a>
</label>
<Field
id="acceptTerms"
name="acceptTerms"
type="checkbox"
className={
errors.acceptTerms && touched.acceptTerms && "invalid"
}
/>
<ErrorMessage
component="span"
name="acceptTerms"
className={styles["form__invalid-feedback-terms"]}
/>
</div>
<div>
<button type="submit" className={styles["form__btn"]}>
CADASTRE-SE
</button>
{successMessage
? (<span className={styles["form__msg-submit"]}>*Formulário enviado com sucesso!</span> )
: ("")
}
</div>
</Form>
)}
</Formik>
</div>
);
};
export { RegistrationForm };

View File

@ -0,0 +1,17 @@
import * as Yup from "yup";
export default Yup.object().shape({
name: Yup.string().required("*Campo Obrigatório").matches(/^([a-zA-Z\u00C0-\u017F´]{3,}?[+\s+]?[+a-zA-Z\u00C0-\u017F´]{0,})+$/, "*Nome Inválido"),
email: Yup.string().required("*Campo Obrigatório").email("*E-mail Inválido"),
cpf: Yup.string().required("*Campo Obrigatório").matches(/^([0-9]{3}\.?[0-9]{3}\.?[0-9]{3}\-?[0-9]{2})$/, "*CPF Inválido"),
birthDate: Yup.string().required("*Campo Obrigatório").matches(/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/, "*Data Inválida"),
phone: Yup.string().required("*Campo Obrigatório").matches(/^[\+]?[(]?[0-9]{2}[)]?[\s]?[0-9]{4,5}[-\s\.]?[0-9]{4}$/, "*Número Inválido"),
instagram: Yup.string().matches(/^(?:@)([A-Za-z0-9_](?:(?:[A-Za-z0-9_]|(?:\.(?!\.))){0,28}(?:[A-Za-z0-9_]))?)$/, "*Instagram Inválido"),
acceptTerms: Yup.bool().oneOf([true], "*Aceitar termos"),
});

View File

@ -0,0 +1,16 @@
import React from "react";
import { HeaderTop } from "./HeaderTop/HeaderTop";
import { HeaderBottom } from "./HeaderBottom/HeaderBottom";
const Header = () => {
return (
<>
<HeaderTop />
<HeaderBottom />
</>
);
}
export { Header };

View File

@ -0,0 +1,7 @@
@use '../../../variables';
.header-bottom {
@media (max-width: 1024px) {
display: none;
}
}

View File

@ -0,0 +1,16 @@
import React from 'react';
import styles from "./HeaderBottom.module.scss";
import { HeaderNavBar } from '../HeaderNavBar/HeaderNavBar';
const HeaderBottom = () => {
return (
<div className={styles["header-bottom"]}>
<HeaderNavBar />
</div>
);
}
export {HeaderBottom};

View File

@ -0,0 +1,71 @@
@use '../../../variables';
.header-nav-bar {
height: 44px;
@media (min-width: 3600px) {
height: 70px;
}
@media ((min-width: 2500px) and (max-width: 3599px)){
height: 61px;
}
@media (max-width: 1024px) {
height: 0;
}
&__ul {
display: flex;
align-items: center;
text-transform: none;
padding: 14px 100px;
height: 44px;
gap: 55px;
@media (min-width: 3600px) {
height: 70px;
}
@media ((min-width: 2500px) and (max-width: 3599px)){
height: 61px;
}
@media (max-width: 1024px) {
flex-direction: column;
align-items: flex-start;
background-color: variables.$white;
height: 507px;
padding: 31px 16px;
gap: 0;
}
}
&__item {
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
color: variables.$white;
cursor: pointer;
@media (min-width: 3600px) {
font-size: 32px;
line-height: 38px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
font-size: 28px;
line-height: 33px;
}
@media (max-width: 1024px) {
color: variables.$gray-400;
margin-bottom: 12px;
}
&:hover {
filter: brightness(80%);
}
}
}

View File

@ -0,0 +1,36 @@
import React from "react";
import styles from "./HeaderNavBar.module.scss";
import { ItemList } from "../../ItemList/ItemList";
const HeaderNavBar = () => {
return (
<nav className={styles["header-nav-bar"]}>
<ul className={styles["header-nav-bar__ul"]}>
<a href="/">
<ItemList
textClassName={styles["header-nav-bar__item"]}
text="cursos"
/>
</a>
<a href="/">
<ItemList
textClassName={styles["header-nav-bar__item"]}
text="Saiba mais"
/>
</a>
<a href="/">
<ItemList
textClassName={styles["header-nav-bar__item"]}
text="Institucionais"
/>
</a>
</ul>
</nav>
);
};
export { HeaderNavBar };

View File

@ -0,0 +1,344 @@
@use '../../../variables';
.header-top {
border-bottom: 1px solid variables.$gray-400;
@media (max-width: 1024px) {
border-bottom: none;
}
&__wrapper {
display: grid;
grid-template-columns: 1fr minmax(264px, 24.4445%) 1fr;
padding: 22px 100px;
height: 76px;
@media (min-width: 3600px) {
grid-template-columns: 1fr 700px 1fr;
height: 111px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
grid-template-columns: 1fr 515px 1fr;
height: 101px;
}
@media ((min-width: 1900px) and (max-width: 2499px)) {
grid-template-columns: 1fr 415px 1fr;
}
@media (max-width: 1024px) {
grid-template-columns: 10% 80% 10%;
padding: 25px 16px;
height: 139px;
}
}
&__btn-hamburger {
display: none;
@media (max-width: 1024px) {
display: flex;
align-items: center;
background: transparent;
border: none;
grid-area: 1/1;
&__img {
width: 100%;
max-width: 28px;
}
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
}
}
&__menu-mobile {
&__active,
&__inactive {
width: 96.484375%;
height: 585px;
position: absolute;
top: 0;
left: 0;
z-index: map-get(variables.$z-index, level2);
@media (min-width: 1025px) {
display: none;
}
@media (max-width: 375px) {
width: 90.4%;
}
}
&__active {
opacity: 1;
visibility: visible;
transition: all 0.5s ease;
transform: translateX(0%);
}
&__inactive {
opacity: 0;
visibility: hidden;
transition: all 0.5s ease;
transform: translateX(-100%);
}
&__items {
display: flex;
justify-content: space-between;
height: 78px;
padding: 31px 16px;
background-color: variables.$black;
}
&__login{
display: flex;
align-items: center;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
color: variables.$white;
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
}
&__close-btn {
background: transparent;
border: none;
&__img {
width: 100%;
max-width: 15px;
}
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
}
}
&__logo {
display: flex;
align-items: center;
justify-content: left;
@media (max-width: 1024px) {
justify-content: center;
grid-area: 1/2;
}
&__img {
width: 100%;
max-width: 136px;
@media (min-width: 3600px) {
min-width: 290px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
min-width: 265px;
}
}
}
&__search-bar {
display: flex;
justify-content: center;
align-items: center;
position: relative;
@media (max-width: 1024px) {
grid-area: 2 / 1 / 2 / 4;
}
&__input {
margin: 0 auto;
width: 100%;
min-width: 264px;
height: 32px;
background-color: variables.$white;
border: 2px solid variables.$gray-500;
border-radius: 5px;
padding: 12px 16px;
font-size: 14px;
line-height: 16px;
color: variables.$gray-300;
@media (min-width: 3600px) {
max-width: 700px;
height: 62px;
font-size: 32px;
line-height: 38px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
max-width: 515px;
height: 57px;
font-size: 28px;
line-height: 33px;
}
@media ((min-width: 1900px) and (max-width: 2499px)){
max-width: 415px;
}
@media (max-width: 1024px) {
min-width: 100%;
margin-top: 25px;
height: 36px;
}
&::placeholder {
font-size: 14px;
line-height: 16px;
color: variables.$gray-300;
@media (min-width: 3600px) {
font-size: 32px;
line-height: 38px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
font-size: 28px;
line-height: 33px;
}
}
&::-webkit-search-cancel-button {
-webkit-appearance: none;
}
}
&__btn {
border: none;
background: transparent;
position: absolute;
top: 7px;
right: 16px;
@media (min-width: 3600px) {
top: 16px;
bottom: 11px;
}
@media ((min-width: 2500px) and (max-width: 3599px)){
top: 11px;
bottom: 11px;
}
@media (max-width: 1024px) {
top: 34px;
}
&__img {
@media (min-width: 2500px) {
width: 100%;
min-width: 35px;
}
}
}
}
&__menu {
display: flex;
align-items: center;
justify-content: right;
gap: 55px;
@media (max-width: 1024px) {
grid-area: 1/3;
gap: 0;
}
&__login {
color: variables.$white;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
@media (min-width: 3600px) {
font-size: 32px;
line-height: 38px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
font-size: 28px;
line-height: 33px;
}
@media (max-width: 1024px) {
display: none;
}
}
&__btn-cart {
background: transparent;
border: none;
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
&__img {
width: 100%;
max-width: 28px;
@media (min-width: 2500px) {
min-width: 54px;
}
}
}
}
&__overlay {
display: block;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: variables.$shadow2;
z-index: map-get(variables.$z-index, level1);
transition: all 0.5s ease-in-out;
@media (min-width: 1025px) {
display: none;
}
}
&__overlay-close {
display: none;
}
}

View File

@ -0,0 +1,112 @@
import { useState, useEffect, useRef } from "react";
import styles from "./HeaderTop.module.scss";
import imgLogo from "./assets/logo-m3academy.svg";
import imgCart from "./assets/cart.svg";
import imgSearch from "./assets/search.svg";
import imgHamburgerBtn from "./assets/hamburger-menu-btn-icon.svg";
import imgCloseBtn from "./assets/close-menu-btn-icon.svg";
import { HeaderNavBar } from "../HeaderNavBar/HeaderNavBar";
const HeaderTop = () => {
const [open, setOpen] = useState(false);
const handleOpen = () => setOpen(true);
const handleClose = () => setOpen(false);
let menuRef = useRef<any>();
useEffect(() => {
let handler = (e: MouseEvent) => {
if (!menuRef.current.contains(e.target)) {
setOpen(false);
}
};
document.addEventListener("mousedown", handler);
});
//--------------------------------------------------------
const [search, setSearch] = useState("");
const handleSearch = (target: any) => {
setSearch(target.value);
};
const cleanSearch = () => setSearch("");
return (
<div className={styles["header-top"]}>
<div className={styles["header-top__wrapper"]}>
<button className={styles["header-top__btn-hamburger"]} onClick={handleOpen} >
<img className={styles["header-top__btn-hamburger__img"]} src={imgHamburgerBtn} alt="Ícone Menu Hamburguer" />
</button>
<div ref={menuRef} className={ open === true
? styles["header-top__menu-mobile__active"]
: styles["header-top__menu-mobile__inactive"] } >
<div className={styles["header-top__menu-mobile__items"]}>
<a href="/" className={styles["header-top__menu-mobile__login"]}>
Entrar
</a>
<button className={styles["header-top__menu-mobile__close-btn"]} onClick={handleClose} >
<img className={styles["header-top__menu-mobile__close-btn__img"]} src={imgCloseBtn} alt="Ícone Fechar" />
</button>
</div>
<HeaderNavBar />
</div>
<picture className={styles["header-top__logo"]}>
<a href="/">
<img
className={styles["header-top__logo__img"]}
src={imgLogo}
alt="Logo M3 Academy"
/>
</a>
</picture>
<div className={styles["header-top__search-bar"]}>
<input
className={styles["header-top__search-bar__input"]}
type="search"
id="search-bar"
name="search"
placeholder="Buscar..."
value={search}
onChange={handleSearch}
onBlur={cleanSearch}
/>
<button className={styles["header-top__search-bar__btn"]} type="submit" >
<img className={styles["header-top__search-bar__btn__img"]} src={imgSearch} alt="ìcone Lupa" />
</button>
</div>
<div className={styles["header-top__menu"]}>
<a href="/" className={styles["header-top__menu__login"]}>
Entrar
</a>
<button className={styles["header-top__menu__btn-cart"]}>
<img className={styles["header-top__menu__btn-cart__img"]} src={imgCart} alt="Ícone Carrinho" />
</button>
</div>
</div>
<div
className={ open === false
? styles["header-top__overlay-close"]
: styles["header-top__overlay"] } >
</div>
</div>
);
};
export { HeaderTop };

View File

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

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,4 @@
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.2284 1.28215L1.22996 10.9942C0.550673 11.6541 0.568968 12.7044 1.27083 13.3401C1.97268 13.9759 3.09232 13.9564 3.77161 13.2966L13.77 3.58449C14.4493 2.92466 14.431 1.87436 13.7292 1.23858C13.0273 0.602806 11.9077 0.622311 11.2284 1.28215Z" fill="white"/>
<path d="M1.65213 3.40819L10.8751 13.7186C11.5082 14.4263 12.6262 14.5239 13.3724 13.9366C14.1185 13.3493 14.2102 12.2995 13.5771 11.5918L4.35414 1.28143C3.72107 0.573715 2.603 0.476092 1.85686 1.06338C1.11072 1.65067 1.01906 2.70048 1.65213 3.40819Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 638 B

View File

@ -0,0 +1,5 @@
<svg width="28" height="23" viewBox="0 0 28 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M26.25 19.0001H1.75002C0.783509 19.0001 0 19.7836 0 20.7501C0 21.7166 0.783508 22.5001 1.75002 22.5001H26.25C27.2165 22.5001 28 21.7166 28 20.7501C28 19.7836 27.2165 19.0001 26.25 19.0001Z" fill="white"/>
<path d="M26.25 9.5H1.75002C0.783509 9.5 0 10.2835 0 11.25C0 12.2165 0.783508 13 1.75002 13H26.25C27.2165 13 28 12.2165 28 11.25C28 10.2835 27.2165 9.5 26.25 9.5Z" fill="white"/>
<path d="M26.25 0H1.75002C0.783509 0 0 0.783509 0 1.75002C0 2.71652 0.783508 3.50003 1.75002 3.50003H26.25C27.2165 3.50003 28 2.71652 28 1.75002C28 0.783509 27.2165 0 26.25 0Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 688 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,10 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_5696_966)">
<path d="M13.2094 11.6186C14.0951 10.409 14.6249 8.92328 14.6249 7.31261C14.6249 3.28064 11.3444 0.00012207 7.31245 0.00012207C3.28048 0.00012207 0 3.28064 0 7.31261C0 11.3446 3.28052 14.6251 7.31248 14.6251C8.92315 14.6251 10.409 14.0952 11.6186 13.2094L16.4092 18L18 16.4092C18 16.4092 13.2094 11.6186 13.2094 11.6186ZM7.31248 12.3751C4.52086 12.3751 2.25001 10.1042 2.25001 7.31261C2.25001 4.52098 4.52086 2.25013 7.31248 2.25013C10.1041 2.25013 12.375 4.52098 12.375 7.31261C12.375 10.1042 10.1041 12.3751 7.31248 12.3751Z" fill="#303030"/>
</g>
<defs>
<clipPath id="clip0_5696_966">
<rect width="18" height="18" rx="5" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 799 B

View File

@ -0,0 +1,20 @@
import React from "react";
interface Icon {
src: string;
alt: string;
imgClassName?: string;
liClassName?: string;
}
const IconList = ( props: Icon ) => {
const { src, alt, imgClassName, liClassName } = props;
return (
<li className={liClassName}>
<img src={src} alt={alt} className={imgClassName}/>
</li>
);
};
export { IconList };

View File

@ -0,0 +1,14 @@
import React from "react";
interface Icon {
text: string;
textClassName?: string;
}
const ItemList = ( props: Icon) => {
const { text, textClassName } = props;
return <li className={textClassName}> { text } </li>;
};
export { ItemList };

View File

@ -0,0 +1,94 @@
@use '../../variables';
.institucional {
&__home-container {
display: flex;
align-items: center;
gap: 9px;
@media (min-width: 2500px) {
gap: 12px;
}
&__home-icon {
width: 16px;
@media (min-width: 2500px) {
width: 31px;
}
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
}
&__arrow-icon {
width: 8px;
height: 8px;
@media (min-width: 2500px) {
width: 15px;
height: 15px;
}
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
}
&__text {
font-size: 12px;
line-height: 14px;
color: variables.$gray-400;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
}
}
&__title-principal {
font-size: 24px;
line-height: 28px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: variables.$black-200;
margin: 81px 0 80px 0;
text-align: center;
@media (min-width: 2500px) {
font-size: 48px;
line-height: 56px;
margin: 82px 0 80px 0;
}
@media (max-width: 1024px) {
margin: 81px 0 40px 0;
}
}
&__principal-content {
display: flex;
@media (max-width: 1024px) {
flex-direction: column;
}
}
}

View File

@ -0,0 +1,48 @@
import React from "react";
import styles from "./Main.module.scss";
import imgHome from "./assets/home-icon.svg";
import imgArrowToRight from "./assets/arrow-point-to-right.svg";
import { IconList } from "../IconList/IconList";
import { ItemList } from "../ItemList/ItemList";
import { InstitucionalRoutes } from "./Routes/InstitucionalRoutes";
const Main = () => {
return (
<>
<ul className={styles["institucional__home-container"]}>
<a href="/">
<IconList
src={imgHome}
alt="Ícone Home"
imgClassName={styles["institucional__home-container__home-icon"]}
/>
</a>
<a href="/">
<IconList
src={imgArrowToRight}
alt="Ícone Seta para Esquerda"
imgClassName={styles["institucional__home-container__arrow-icon"]}
/>
</a>
<a href="/">
<ItemList text="Institucional" textClassName={styles["institucional__home-container__text"]} />
</a>
</ul>
<h1 className={styles["institucional__title-principal"]}>Institucional</h1>
<div className={styles["institucional__principal-content"]}>
<InstitucionalRoutes />
</div>
</>
);
}
export { Main };

View File

@ -0,0 +1,43 @@
@use '../../../variables';
.menu-sidebar {
border-right: 1px solid variables.$black;
width: 27.97%;
min-width: 302px;
height: 285px;
@media (min-width: 2500px) {
min-width: 590px;
height: 485px;
}
@media (max-width: 1024px) {
border: none;
height: 224px;
width: 100%;
min-width: 100%;
}
&__container {
display: flex;
flex-direction: column;
}
&__item {
a {
display: flex;
align-items: center;
font-size: 16px;
line-height: 19px;
color: variables.$gray-100;
padding-left: 16px;
height: 39px;
@media (min-width: 2500px) {
font-size: 32px;
line-height: 38px;
height: 58px;
}
}
}
}

View File

@ -0,0 +1,61 @@
import { useState } from "react";
import styles from "./MenuSideBar.module.scss";
import { NavLink } from "react-router-dom";
const MenuSideBar = () => {
return (
<nav className={styles["menu-sidebar"]}>
<ul className={styles["menu-sidebar__container"]}>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Sobre
</NavLink>
</li>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/formadepagamento"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Forma de Pagamento
</NavLink>
</li>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/entrega"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Entrega
</NavLink>
</li>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/segurancaeprivacidade"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Segurança e Privacidade
</NavLink>
</li>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/trocaedevolucao"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Troca e Devolução
</NavLink>
</li>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/contato"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Contato
</NavLink>
</li>
</ul>
</nav>
);
}
export { MenuSideBar };

View File

@ -0,0 +1,32 @@
import React from "react";
import { BrowserRouter ,Routes, Route } from "react-router-dom";
import { MenuSideBar } from "../MenuSideBar/MenuSideBar";
import { Contato } from "./RoutesPages/Contato";
import { Entrega } from "./RoutesPages/Entrega";
import { FormaDePagamento } from "./RoutesPages/FormaDePagamento";
import { SegurancaEPrivacidade } from "./RoutesPages/SegurancaEPrivacidade";
import { Sobre } from "./RoutesPages/Sobre";
import { TrocaEDevolucao } from "./RoutesPages/TrocaEDevolucao";
const InstitucionalRoutes = () => {
return (
<BrowserRouter>
<MenuSideBar />
<Routes>
<Route path="/" element={<Sobre/>} />
<Route path="/formadepagamento" element={<FormaDePagamento/>} />
<Route path="/entrega" element={<Entrega/>} />
<Route path="/trocaedevolucao" element={<TrocaEDevolucao/>} />
<Route path="/segurancaeprivacidade" element={<SegurancaEPrivacidade/>} />
<Route path="/contato" element={<Contato/>} />
</Routes>
</BrowserRouter>
);
}
export { InstitucionalRoutes };

View File

@ -0,0 +1,18 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
import { RegistrationForm } from "../../../Form/RegistrationForm";
const Contato = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Preencha o Formulário </h2>
<RegistrationForm />
</section>
);
}
export { Contato };

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
const Entrega = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Entrega</h2>
<p className={styles["institucional__content__paragraph"]}>
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["institucional__content__paragraph"]}>
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["institucional__content__paragraph"]}>
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</section>
);
}
export { Entrega };

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
const FormaDePagamento = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Forma de Pagamento</h2>
<p className={styles["institucional__content__paragraph"]}>
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["institucional__content__paragraph"]}>
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["institucional__content__paragraph"]}>
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</section>
);
}
export { FormaDePagamento };

View File

@ -0,0 +1,48 @@
@use '../../../../variables';
.institucional__content {
width: 100%;
margin-left: 30px;
@media (max-width: 1024px) {
margin-left: 0;
}
&__title {
font-weight: 700;
font-size: 24px;
line-height: 28px;
color: variables.$black-200;
margin: 10px 0 12px 0;
@media (min-width: 2500px) {
font-size: 48px;
line-height: 56px;
}
@media (max-width: 1024px) {
margin-top: 30px;
text-align: center;
}
}
&__paragraph {
font-size: 13px;
line-height: 15px;
color: variables.$gray-100;
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
@media (min-width: 2500px) {
font-size: 26px;
line-height: 30px;
}
@media (max-width: 1024px) {
text-align: justify;
}
}
}

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
const SegurancaEPrivacidade = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Segurança e Privacidade</h2>
<p className={styles["institucional__content__paragraph"]}>
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["institucional__content__paragraph"]}>
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["institucional__content__paragraph"]}>
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</section>
);
}
export { SegurancaEPrivacidade };

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
const Sobre = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Sobre</h2>
<p className={styles["institucional__content__paragraph"]}>
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["institucional__content__paragraph"]}>
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["institucional__content__paragraph"]}>
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</section>
);
}
export { Sobre };

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
const TrocaEDevolucao = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Troca e Devolução</h2>
<p className={styles["institucional__content__paragraph"]}>
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["institucional__content__paragraph"]}>
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["institucional__content__paragraph"]}>
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</section>
);
}
export { TrocaEDevolucao };

View File

@ -0,0 +1,10 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_3751_560)">
<path d="M11.9417 7.03685L5.22531 0.320703C4.79807 -0.106746 4.10537 -0.106746 3.67833 0.320703C3.25126 0.747771 3.25126 1.44043 3.67833 1.86747L9.62128 7.81023L3.67851 13.7528C3.25144 14.18 3.25144 14.8726 3.67851 15.2997C4.10558 15.7269 4.79824 15.7269 5.22548 15.2997L11.9418 8.58344C12.1554 8.3698 12.262 8.0901 12.262 7.81026C12.262 7.53029 12.1552 7.25038 11.9417 7.03685Z" fill="#C4C4C4"/>
</g>
<defs>
<clipPath id="clip0_3751_560">
<rect width="15.62" height="15.62" fill="white" transform="matrix(1 0 0 -1 0 15.6201)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 689 B

View File

@ -0,0 +1,3 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M30.9231 14.8352L28.692 12.6041L16.4147 0.326808C15.9789 -0.108936 15.2723 -0.108936 14.8365 0.326808L2.55915 12.6041L0.326936 14.8364C-0.101287 15.2798 -0.089058 15.9863 0.354338 16.4146C0.786878 16.8323 1.47257 16.8323 1.90511 16.4146L2.23099 16.0864V30.1339C2.23099 30.7503 2.73069 31.25 3.34713 31.25H27.9018C28.5182 31.25 29.0179 30.7503 29.0179 30.1339V16.0864L29.3449 16.4134C29.7883 16.8417 30.4949 16.8294 30.9231 16.386C31.3408 15.9535 31.3408 15.2677 30.9231 14.8352ZM18.9728 29.0178H12.2761V20.0888H18.9728V29.0178ZM26.7856 29.0178H21.2051V18.9727C21.2051 18.3563 20.7054 17.8566 20.0889 17.8566H11.16C10.5436 17.8566 10.0438 18.3563 10.0438 18.9727V29.0178H4.46327V13.8542L15.6244 2.69296L26.7856 13.8542V29.0178Z" fill="#C4C4C4"/>
</svg>

After

Width:  |  Height:  |  Size: 857 B

View File

@ -0,0 +1,201 @@
@use '../../variables';
.newsletter {
&__container {
display: flex;
justify-content: center;
align-items: center;
border-top: 1px solid variables.$black;
border-bottom: 1px solid variables.$black;
padding: 0 100px;
}
&__form {
display: flex;
flex-direction: column;
gap: 8px;
margin: 16px 0;
position: relative;
@media (min-width: 3600px) {
margin: 18px 0;
}
@media (max-width: 1024px) {
width: 100%;
padding: 0 16px;
gap: 16px;
}
&__title {
font-weight: 500;
font-size: 18px;
line-height: 21px;
letter-spacing: 0.05em;
font-variant: small-caps;
color: variables.$black-300;
text-align: left;
@media (min-width: 3600px) {
font-size: 40px;
line-height: 48px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
font-size: 36px;
line-height: 42px;
}
@media (max-width: 1024px) {
font-size: 14px;
line-height: 16px;
}
}
&__items {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 8px;
@media (max-width: 1024px) {
flex-direction: column;
align-items: stretch;
gap: 16px;
}
&__email {
input {
background: variables.$white;
border: 1px solid variables.$gray-600;
border-radius: 4px;
width: 100%;
min-width: 340px;
height: 42px;
font-size: 14px;
line-height: 16px;
color: variables.$gray-400;
padding: 13px 16px;
&::placeholder {
font-size: 14px;
line-height: 16px;
color: variables.$gray-400;
}
@media (min-width: 3600px) {
font-size: 32px;
line-height: 36px;
min-width: 720px;
height: 64px;
&::placeholder {
font-size: 32px;
line-height: 36px;
}
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
font-size: 28px;
line-height: 33px;
min-width: 668px;
height: 59px;
&::placeholder {
font-size: 28px;
line-height: 33px;
}
}
@media (max-width: 1024px) {
min-width: 100%;
padding: 17px 16px;
}
}
}
&__btn {
width: 126px;
height: 42px;
background: variables.$black;
border: none;
box-shadow: 0px 4px 4px variables.$shadow;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 12px;
line-height: 14px;
letter-spacing: 0.05em;
color: variables.$white;
padding: 20px 14px;
text-transform: uppercase;
&:hover {
filter: opacity(.85);
}
&:active {
filter: opacity(1);
}
@media (min-width: 3600px) {
width: 280px;
height: 64px;
font-size: 28px;
line-height: 32px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
width: 246px;
height: 59px;
font-size: 24px;
line-height: 28px;
}
@media (max-width: 1024px) {
width: 100%;
font-size: 14px;
line-height: 16px;
box-shadow: none;
}
}
}
}
&__invalid-feedback {
font-size: 12px;
line-height: 14px;
color: variables.$red;
position: absolute;
right: 0;
top: 14px;
@media (min-width: 3600px) {
font-size: 26px;
line-height: 30px;
top: 20px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
font-size: 24px;
line-height: 28px;
top: 20px;
}
@media (min-width: 350px) and (max-width: 1024px) {
right: 16px;
}
@media (max-width: 349px) {
font-size: 11px;
top: 18px;
right: 16px;
}
}
}

View File

@ -0,0 +1,57 @@
import React from "react";
import { Formik, Form, Field, ErrorMessage, FormikHelpers} from "formik";
import styles from "./Newsletter.module.scss";
import NewsletterSchema from "./Schema/NewsletterSchema";
interface NewsletterValue {
email: string;
}
const initialValue = {
email: "",
}
let listEmail: Array<NewsletterValue> = [];
const Newsletter = () => {
const handleSubmit = (values: NewsletterValue, actions: FormikHelpers<NewsletterValue>) => {
listEmail.push(values);
console.log(listEmail);
actions.resetForm();
};
return (
<div className={styles["newsletter__container"]}>
<Formik
onSubmit={handleSubmit}
initialValues={initialValue}
validationSchema={NewsletterSchema} >
{({errors, touched}) => (
<Form className={styles["newsletter__form"]}>
<h2 className={styles["newsletter__form__title"]}>ASSINE NOSSA NEWSLETTER</h2>
<div className={styles["newsletter__form__items"]}>
<div className={styles["newsletter__form__items__email"]}>
<Field id="email" name="email" placeholder="E-mail" className={errors.email && touched.email && "invalid"}
/>
<ErrorMessage component="span" name="email" className={styles["newsletter__invalid-feedback"]}/>
</div>
<button type="submit" className={styles["newsletter__form__items__btn"]}>
Enviar
</button>
</div>
</Form>
)}
</Formik>
</div>
);
};
export {Newsletter};

View File

@ -0,0 +1,5 @@
import * as Yup from "yup";
export default Yup.object().shape({
email: Yup.string().email("*E-mail Inválido").required("")
});

View File

@ -0,0 +1,46 @@
@use '../../variables';
.redes-sociais {
&__container {
display: flex;
flex-direction: column;
justify-content: flex-start;
gap: 12px;
}
&__icons {
display: flex;
gap: 10px;
&__icon {
width: 35px;
&:hover {
filter: contrast(60%);
}
&:active {
filter: contrast(100%);
}
@media (min-width: 2500px) {
width: 70px;
}
}
}
&__link {
font-size: 14px;
line-height: 16px;
color: variables.$black-300;
&:hover {
text-decoration-line: underline;
}
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
}

View File

@ -0,0 +1,64 @@
import React from "react";
import styles from "./RedesSociais.module.scss";
import imgFacebook from "./assets/facebook-icon.svg";
import imgInstagram from "./assets/instagram-icon.svg";
import imgTwitter from "./assets/twitter-icon.svg";
import imgYouTube from "./assets/youtube-icon.svg";
import imgLinkdin from "./assets/linkedin-icon.svg";
import { IconList } from "../IconList/IconList";
const RedesSociais = () => {
return (
<div className={styles["redes-sociais__container"]}>
<ul className={styles["redes-sociais__icons"]}>
<a href="/">
<IconList
src={imgFacebook}
alt="Logo Facebbok"
imgClassName={styles["redes-sociais__icons__icon"]}
/>
</a>
<a href="/">
<IconList
src={imgInstagram}
alt="Logo Instagram"
imgClassName={styles["redes-sociais__icons__icon"]}
/>
</a>
<a href="/">
<IconList
src={imgTwitter}
alt="Logo Twitter"
imgClassName={styles["redes-sociais__icons__icon"]}
/>
</a>
<a href="/">
<IconList
src={imgYouTube}
alt="Logo YouTube"
imgClassName={styles["redes-sociais__icons__icon"]}
/>
</a>
<a href="/">
<IconList
src={imgLinkdin}
alt="Logo Linkdin"
imgClassName={styles["redes-sociais__icons__icon"]}
/>
</a>
</ul>
<a href="/" className={styles["redes-sociais__link"]}>www.loremipsum.com</a>
</div>
);
}
export { RedesSociais };

View File

@ -0,0 +1,11 @@
<svg width="70" height="71" viewBox="0 0 70 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_6453_313)">
<path d="M38.3557 55.2232V37.329H44.3468L45.2457 30.3532H38.3557V25.9002C38.3557 23.8812 38.9129 22.5052 41.8052 22.5052L45.4882 22.5037V16.2643C44.8513 16.1814 42.665 15.9912 40.1204 15.9912C34.8068 15.9912 31.1691 19.2415 31.1691 25.2093V30.3532H25.1598V37.329H31.1691V55.2232H38.3557Z" fill="#303030"/>
</g>
<circle cx="35" cy="35.2412" r="34" stroke="#303030" stroke-width="2"/>
<defs>
<clipPath id="clip0_6453_313">
<rect width="39.148" height="39.232" fill="white" transform="translate(15.75 15.9912)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 670 B

View File

@ -0,0 +1,13 @@
<svg width="70" height="71" viewBox="0 0 70 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_6453_318)">
<path d="M44.1992 15.9912H26.5932C20.6143 15.9912 15.75 20.8481 15.75 26.8178V44.3965C15.75 50.3663 20.6143 55.223 26.5932 55.223H44.1992C50.1786 55.223 55.0429 50.3661 55.0429 44.3965V26.8178C55.0431 20.8481 50.1786 15.9912 44.1992 15.9912ZM51.5568 44.3965C51.5568 48.447 48.2563 51.7422 44.1994 51.7422H26.5932C22.5366 51.7424 19.2363 48.447 19.2363 44.3965V26.8178C19.2363 22.7675 22.5366 19.472 26.5932 19.472H44.1992C48.2561 19.472 51.5566 22.7675 51.5566 26.8178V44.3965H51.5568Z" fill="#303030"/>
<path d="M35.3965 25.4987C29.8136 25.4987 25.2717 30.0335 25.2717 35.6077C25.2717 41.1817 29.8136 45.7163 35.3965 45.7163C40.9794 45.7163 45.5213 41.1817 45.5213 35.6077C45.5213 30.0335 40.9794 25.4987 35.3965 25.4987ZM35.3965 42.2352C31.7362 42.2352 28.758 39.2621 28.758 35.6075C28.758 31.9526 31.7359 28.9793 35.3965 28.9793C39.0571 28.9793 42.035 31.9526 42.035 35.6075C42.035 39.2621 39.0568 42.2352 35.3965 42.2352Z" fill="#303030"/>
<path d="M45.9459 22.5472C45.2742 22.5472 44.6144 22.8187 44.14 23.2945C43.6633 23.7679 43.3893 24.4269 43.3893 25.0999C43.3893 25.7707 43.6635 26.4295 44.14 26.9052C44.6141 27.3786 45.2742 27.6525 45.9459 27.6525C46.6199 27.6525 47.2776 27.3786 47.7541 26.9052C48.2305 26.4295 48.5024 25.7705 48.5024 25.0999C48.5024 24.4269 48.2305 23.7679 47.7541 23.2945C47.2799 22.8187 46.6199 22.5472 45.9459 22.5472Z" fill="#303030"/>
</g>
<circle cx="35" cy="35.2412" r="34" stroke="#303030" stroke-width="2"/>
<defs>
<clipPath id="clip0_6453_318">
<rect width="39.2931" height="39.232" fill="white" transform="translate(15.75 15.9912)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,13 @@
<svg width="70" height="71" viewBox="0 0 70 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="35" cy="35.2412" r="34" stroke="#303030" stroke-width="2"/>
<g clip-path="url(#clip0_6453_333)">
<path d="M26.8893 27.9594H20.5962C20.3169 27.9594 20.0906 28.1858 20.0906 28.465V48.6821C20.0906 48.9614 20.3169 49.1877 20.5962 49.1877H26.8893C27.1686 49.1877 27.3949 48.9614 27.3949 48.6821V28.465C27.3949 28.1858 27.1686 27.9594 26.8893 27.9594Z" fill="#303030"/>
<path d="M23.7451 17.9089C21.4553 17.9089 19.5924 19.7698 19.5924 22.0571C19.5924 24.3454 21.4553 26.2069 23.7451 26.2069C26.0331 26.2069 27.8944 24.3453 27.8944 22.0571C27.8945 19.7698 26.0331 17.9089 23.7451 17.9089Z" fill="#303030"/>
<path d="M42.8963 27.4569C40.3688 27.4569 38.5004 28.5435 37.3671 29.7781V28.465C37.3671 28.1858 37.1408 27.9594 36.8615 27.9594H30.8347C30.5554 27.9594 30.3291 28.1858 30.3291 28.465V48.6821C30.3291 48.9614 30.5554 49.1877 30.8347 49.1877H37.1141C37.3934 49.1877 37.6197 48.9614 37.6197 48.6821V38.6793C37.6197 35.3086 38.5353 33.9955 40.8849 33.9955C43.4439 33.9955 43.6473 36.1006 43.6473 38.8528V48.6822C43.6473 48.9615 43.8736 49.1878 44.1529 49.1878H50.4346C50.7139 49.1878 50.9402 48.9615 50.9402 48.6822V37.5928C50.9402 32.5807 49.9845 27.4569 42.8963 27.4569Z" fill="#303030"/>
</g>
<defs>
<clipPath id="clip0_6453_333">
<rect width="31.3478" height="31.3478" fill="white" transform="translate(19.5924 17.8744)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,4 @@
<svg width="70" height="71" viewBox="0 0 70 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="35" cy="35.2412" r="34" stroke="#303030" stroke-width="2"/>
<path d="M59.9828 20.554C58.1893 21.3407 56.2783 21.8622 54.2859 22.1154C56.3356 20.8916 57.9 18.9686 58.6354 16.6506C56.7244 17.79 54.6145 18.5948 52.3659 19.0439C50.5513 17.1118 47.9651 15.9152 45.1438 15.9152C39.67 15.9152 35.2632 20.3581 35.2632 25.8048C35.2632 26.5885 35.3295 27.342 35.4923 28.0594C27.2725 27.6585 19.9992 23.719 15.1132 17.7177C14.2602 19.1976 13.7598 20.8916 13.7598 22.7152C13.7598 26.1394 15.5231 29.1747 18.1515 30.932C16.563 30.9018 15.0047 30.4407 13.6845 29.7142C13.6845 29.7444 13.6845 29.7836 13.6845 29.8227C13.6845 34.6274 17.1116 38.6182 21.6058 39.5376C20.801 39.7576 19.9239 39.8631 19.0136 39.8631C18.3806 39.8631 17.7416 39.8269 17.1418 39.6943C18.4228 43.6098 22.058 46.4883 26.3803 46.5818C23.0165 49.2132 18.7453 50.7987 14.1215 50.7987C13.3107 50.7987 12.533 50.7625 11.7554 50.663C16.135 53.4873 21.3255 55.0999 26.9229 55.0999C45.1167 55.0999 55.0636 40.0289 55.0636 26.9653C55.0636 26.5282 55.0485 26.1062 55.0274 25.6872C56.9897 24.2947 58.6385 22.5555 59.9828 20.554Z" fill="#303030"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,4 @@
<svg width="70" height="71" viewBox="0 0 70 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="35" cy="35.2412" r="34" stroke="#303030" stroke-width="2"/>
<path d="M55.6054 24.7388C55.0895 22.8207 53.5772 21.3087 51.6594 20.7922C48.1558 19.8336 34.1412 19.8336 34.1412 19.8336C34.1412 19.8336 20.1271 19.8336 16.6235 20.7559C14.7426 21.2718 13.1934 22.821 12.6775 24.7388C11.7555 28.2421 11.7555 35.5075 11.7555 35.5075C11.7555 35.5075 11.7555 42.8096 12.6775 46.2763C13.194 48.1941 14.7057 49.7061 16.6238 50.2225C20.164 51.1814 34.1417 51.1814 34.1417 51.1814C34.1417 51.1814 48.1558 51.1814 51.6594 50.2592C53.5775 49.743 55.0895 48.231 55.6059 46.3132C56.5277 42.8096 56.5277 35.5444 56.5277 35.5444C56.5277 35.5444 56.5646 28.2421 55.6054 24.7388ZM29.6792 42.2196V28.7955L41.3331 35.5075L29.6792 42.2196Z" fill="#303030"/>
</svg>

After

Width:  |  Height:  |  Size: 848 B

View File

@ -0,0 +1,70 @@
@use '../../variables';
.buttons {
display: flex;
flex-direction: column ;
position: fixed;
right: 16px;
bottom: 190px;
@media (min-width: 2500px) {
bottom: 229px;
}
@media (max-width: 1024px) {
bottom: 51px;
}
@media (max-width: 375px) {
bottom: 29px;
}
&__whatsaspp {
margin-bottom: 5px;
@media (min-width: 2500px) {
width: 66px;
}
&:hover {
filter: brightness(90%) ;
}
&:active {
filter: brightness(100%);
}
}
&__scrolltop {
&__circle {
width: 34px;
height: 34px;
background-color: variables.$gray-400;
border: none;
border-radius: 50%;
position: relative;
@media (min-width: 2500px) {
width: 66px;
height: 66px;
}
&:hover {
filter: brightness(90%) ;
}
}
&__arrow {
position: absolute;
top: 13px;
right: 11px;
@media (min-width: 2500px) {
width: 24px;
height: 13px;
top: 25px;
right: 21px;
}
}
}
}

View File

@ -0,0 +1,31 @@
import React from "react";
import imgWhatsApp from "./assets/whatsapp.svg";
import imgArrow from "./assets/arrow.svg";
import styles from "./WhatsAppAndScrollTop.module.scss";
const WhatsAppAndScrollTop = () => {
const scrollTop = () => {
window.scrollTo({
top: 0,
behavior: "smooth",
});
};
return (
<div className={styles["buttons"]}>
<a href="https://api.whatsapp.com/send?phone=5524000000000&text=Ol%C3%A1%2C%20gostaria%20de%20entrar%20em%20contato?"
target="_blank">
<img src={imgWhatsApp} alt="Logo WhatApp" className={styles["buttons__whatsaspp"]}/>
</a>
<button className={styles["buttons__scrolltop__circle"]} type="button" onClick={scrollTop}>
<img src={imgArrow} alt="Imagem Seta Para Cima" className={styles["buttons__scrolltop__arrow"]}/>
</button>
</div>
);
}
export{ WhatsAppAndScrollTop };

View File

@ -0,0 +1,3 @@
<svg width="13" height="7" viewBox="0 0 13 7" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.6 6.13647C12.5989 6.24898 12.5519 6.36118 12.4588 6.44888L12.4587 6.44902C12.2574 6.63896 11.9216 6.63894 11.7204 6.44903L11.7204 6.44902L6.7744 1.78259L6.4999 1.5236L6.2254 1.78259L1.27968 6.44882C1.27966 6.44884 1.27964 6.44886 1.27962 6.44888C1.07811 6.63886 0.742449 6.63877 0.541181 6.44888L0.541122 6.44882C0.448342 6.36133 0.401297 6.24944 0.400026 6.13719C0.401078 6.02468 0.448119 5.91242 0.541189 5.82462L0.541192 5.82461L6.13082 0.550956C6.13085 0.550933 6.13087 0.55091 6.13089 0.550887C6.22923 0.458193 6.36162 0.408533 6.49988 0.408533C6.63821 0.408533 6.77079 0.458327 6.86907 0.55102C6.86908 0.551029 6.86909 0.551037 6.8691 0.551047L12.4587 5.82475L12.4588 5.82482C12.5516 5.9124 12.5987 6.02428 12.6 6.13647Z" fill="white" stroke="white" stroke-width="0.8"/>
</svg>

After

Width:  |  Height:  |  Size: 891 B

View File

@ -0,0 +1,11 @@
<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_4095_717)">
<path d="M17.0042 0H16.9958C7.62238 0 0 7.6245 0 17C0 20.7188 1.1985 24.1655 3.23638 26.9641L1.11775 33.2796L7.65213 31.1908C10.3403 32.9715 13.5469 34 17.0042 34C26.3776 34 34 26.3734 34 17C34 7.62663 26.3776 0 17.0042 0Z" fill="#4CAF50"/>
<path d="M26.8961 24.0061C26.4859 25.1643 24.8582 26.1248 23.5598 26.4053C22.6716 26.5944 21.5113 26.7453 17.6055 25.126C12.6097 23.0563 9.39243 17.9796 9.14168 17.6503C8.90155 17.3209 7.12292 14.9621 7.12292 12.5226C7.12292 10.0831 8.3618 8.89527 8.86118 8.38527C9.2713 7.96664 9.94917 7.77539 10.5994 7.77539C10.8098 7.77539 10.9989 7.78602 11.1689 7.79452C11.6683 7.81577 11.9191 7.84552 12.2484 8.63389C12.6586 9.62202 13.6573 12.0615 13.7763 12.3123C13.8974 12.563 14.0186 12.903 13.8486 13.2324C13.6892 13.5724 13.5489 13.7233 13.2982 14.0123C13.0474 14.3013 12.8094 14.5223 12.5587 14.8325C12.3292 15.1024 12.0699 15.3914 12.3589 15.8908C12.6479 16.3795 13.6467 18.0094 15.1172 19.3184C17.0148 21.0078 18.5533 21.5475 19.1037 21.777C19.5138 21.947 20.0026 21.9066 20.3022 21.5879C20.6826 21.1778 21.1522 20.4978 21.6303 19.8284C21.9703 19.3481 22.3996 19.2886 22.8501 19.4586C23.3091 19.618 25.7379 20.8186 26.2373 21.0673C26.7367 21.318 27.0661 21.437 27.1872 21.6474C27.3062 21.8578 27.3062 22.8459 26.8961 24.0061Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_4095_717">
<rect width="34" height="34" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

37
src/global.scss Normal file
View File

@ -0,0 +1,37 @@
@use 'variables';
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: variables.$principal;
font-style: normal;
font-weight: 400;
}
html,
body,
#root {
height: 100%;
}
body {
position: relative;
}
*:focus {
outline: 0;
}
a {
text-decoration: none;
}
ul {
list-style: none;
}
button,
a {
cursor: pointer;
}

15
src/index.tsx Normal file
View File

@ -0,0 +1,15 @@
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>
);

View File

@ -0,0 +1,32 @@
@use '../variables';
.header {
background-color: variables.$black;
height: 120px;
@media (min-width: 3600px) {
height: 182px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
height: 162px;
}
@media (max-width: 1024px) {
height: 139px;
}
}
.institucional {
padding: 0 100px;
margin: 29px 0 70px;
@media (min-width: 2500px) {
margin-bottom: 84px;
}
@media (max-width: 1024px) {
padding: 0 16px;
margin-bottom: 81px ;
}
}

31
src/pages/Home.tsx Normal file
View File

@ -0,0 +1,31 @@
import React from "react";
import styles from "./Home.module.scss";
import { Header } from "../components/Header/Header";
import { Main } from "../components/Main/Main";
import { Footer } from "../components/Footer/Footer";
import { WhatsAppAndScrollTop } from "../components/WhatsAppAndScrollTop/WhatsAppAndScrollTop";
const Home = () => {
return (
<>
<header className={styles["header"]}>
<Header />
</header>
<main className={styles["institucional"]}>
<Main />
</main>
<footer>
<Footer />
</footer>
<WhatsAppAndScrollTop />
</>
);
}
export { Home };

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

@ -0,0 +1 @@
/// <reference types="react-scripts" />

36
src/variables.scss Normal file
View File

@ -0,0 +1,36 @@
//FONTS
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
$principal: 'Roboto', sans-serif;
//COLORS
$black: #000000;
$black-100: #100D0E;
$black-200: #292929;
$black-300: #303030;
$white: #FFFFFF;
$gray-100: #7D7D7D;
$gray-200: #B9B7B7;
$gray-300: #C6C6C6;
$gray-400: #C4C4C4;
$gray-500 : #F2F2F2;
$gray-600: #E5E5E5;
$red: #FF0000;
$green: #008000;
$shadow: rgba(0, 0, 0, 0.25);
$shadow2: rgba(69, 69, 69, 0.7);
//Z-INDEX
$z-index: (
level1: 5,
level2: 10,
level3: 15,
level4: 20,
level5: 25
) !default;

26
tsconfig.json Normal file
View File

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