Merge pull request 'develop' (#7) from develop into main
Reviewed-on: #7
93
README.md
@ -1,93 +1,8 @@
|
||||
# Desafio REACT e Typescript
|
||||
|
||||
Para rodar o projeto, use no terminal:
|
||||
|
||||
cd react-project
|
||||
npm start
|
||||
|
||||
## 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.
|
||||
|
||||
O projeto irá rodar localmente na porta 3000.
|
||||
|
23
react-project/.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*
|
31953
react-project/package-lock.json
generated
Normal file
51
react-project/package.json
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "react-project",
|
||||
"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",
|
||||
"node-sass": "^7.0.3",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-headless-accordion": "^1.0.2",
|
||||
"react-input-mask": "^2.0.4",
|
||||
"react-modal": "^3.16.1",
|
||||
"react-router-dom": "^6.6.1",
|
||||
"react-scripts": "5.0.1",
|
||||
"react-text-mask": "^5.5.0",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
BIN
react-project/public/favicon.ico
Normal file
After Width: | Height: | Size: 3.8 KiB |
19
react-project/public/index.html
Normal file
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pt-BR">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
|
||||
<title>Desafio React M3</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
BIN
react-project/public/logo192.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
15
react-project/src/App.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import React from "react";
|
||||
|
||||
import logo from "./logo.svg";
|
||||
import "../src/assets/styles/global.scss";
|
||||
import { Institucional } from "./pages/Institucional";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div>
|
||||
<Institucional />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
2
react-project/src/Declarations.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
declare module "react-text-mask";
|
||||
declare module "react-modal";
|
6
react-project/src/assets/styles/global.scss
Normal file
@ -0,0 +1,6 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: var(--font-roboto);
|
||||
}
|
23
react-project/src/assets/styles/variables.scss
Normal file
@ -0,0 +1,23 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
|
||||
|
||||
:root {
|
||||
--font-roboto: "Roboto", sans-serif;
|
||||
|
||||
--black: #000;
|
||||
--black-100: #292929;
|
||||
--black-200: #303030;
|
||||
--black-300: #100d0e;
|
||||
|
||||
--white: #fff;
|
||||
|
||||
--gray-100: #c4c4c4;
|
||||
--gray-200: #7d7d7d;
|
||||
--gray-300: #e5e5e5;
|
||||
--gray-400: #b9b7b7;
|
||||
--gray-500: #f2f2f2;
|
||||
--gray-600: #c6c6c6;
|
||||
|
||||
--red-100: #ff0000;
|
||||
|
||||
--green-100: #008000;
|
||||
}
|
43
react-project/src/components/FixedIcons/FixedIcons.tsx
Normal file
@ -0,0 +1,43 @@
|
||||
import { useState, useEffect } from "react";
|
||||
|
||||
import icons from "./assets/modules/FixedIcons.module.scss";
|
||||
|
||||
import whats from "./assets/svgs/whatsapp.svg";
|
||||
import arrow from "./assets/svgs/arrow.svg";
|
||||
|
||||
const FixedIcons = () => {
|
||||
const [scrollTop, setScrollTop] = useState(0);
|
||||
|
||||
useEffect(() => {
|
||||
const handleScroll = () => {
|
||||
setScrollTop(window.scrollY);
|
||||
};
|
||||
window.addEventListener("scroll", handleScroll);
|
||||
});
|
||||
|
||||
return (
|
||||
<div className={icons["icons"]}>
|
||||
<a
|
||||
href="https://wa.me/5521912345678"
|
||||
target="_blank"
|
||||
className={icons["icons__whats"]}
|
||||
>
|
||||
<figure>
|
||||
<img src={whats} alt="Ícone WhatsApp" />
|
||||
</figure>
|
||||
</a>
|
||||
{scrollTop > 0 ? (
|
||||
<div
|
||||
onClick={() => window.scrollTo({ top: 0, behavior: "smooth" })}
|
||||
className={icons["icons__arrow"]}
|
||||
>
|
||||
<figure>
|
||||
<img src={arrow} alt="Ícone subir ao topo" />
|
||||
</figure>
|
||||
</div>
|
||||
) : undefined}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { FixedIcons };
|
@ -0,0 +1,62 @@
|
||||
.icons {
|
||||
position: fixed;
|
||||
bottom: 200px;
|
||||
right: 16px;
|
||||
z-index: 9999;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
bottom: 215px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
bottom: 50px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 599px) {
|
||||
bottom: 29px;
|
||||
}
|
||||
|
||||
&__whats {
|
||||
display: contents;
|
||||
|
||||
figure {
|
||||
display: contents;
|
||||
|
||||
img {
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 66px;
|
||||
height: 66px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__arrow {
|
||||
margin-top: 5px;
|
||||
background-color: var(--gray-100);
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
|
||||
figure {
|
||||
display: contents;
|
||||
|
||||
img {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 66px;
|
||||
height: 66px;
|
||||
|
||||
img {
|
||||
width: 26px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 |
@ -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_3403_1267)">
|
||||
<path d="M17.0042 0H16.9958C7.62238 0 0 7.6245 0 17C0 20.7188 1.1985 24.1655 3.23638 26.9641L1.11775 33.2796L7.65213 31.1908C10.3403 32.9715 13.5469 34 17.0042 34C26.3776 34 34 26.3734 34 17C34 7.62663 26.3776 0 17.0042 0Z" fill="#4CAF50"/>
|
||||
<path d="M26.8961 24.0061C26.486 25.1642 24.8582 26.1247 23.5599 26.4052C22.6716 26.5944 21.5114 26.7452 17.6056 25.126C12.6097 23.0562 9.39249 17.9796 9.14174 17.6502C8.90161 17.3209 7.12299 14.9621 7.12299 12.5226C7.12299 10.0831 8.36186 8.89524 8.86124 8.38524C9.27136 7.96662 9.94924 7.77537 10.5995 7.77537C10.8099 7.77537 10.999 7.78599 11.169 7.79449C11.6684 7.81574 11.9191 7.84549 12.2485 8.63387C12.6586 9.62199 13.6574 12.0615 13.7764 12.3122C13.8975 12.563 14.0186 12.903 13.8486 13.2324C13.6892 13.5724 13.549 13.7232 13.2982 14.0122C13.0475 14.3012 12.8095 14.5222 12.5587 14.8325C12.3292 15.1024 12.07 15.3914 12.359 15.8907C12.648 16.3795 13.6467 18.0094 15.1172 19.3184C17.0149 21.0077 18.5534 21.5475 19.1037 21.777C19.5139 21.947 20.0026 21.9066 20.3022 21.5879C20.6826 21.1777 21.1522 20.4977 21.6304 19.8284C21.9704 19.3481 22.3996 19.2886 22.8501 19.4586C23.3091 19.618 25.738 20.8186 26.2374 21.0672C26.7367 21.318 27.0661 21.437 27.1872 21.6474C27.3062 21.8577 27.3062 22.8459 26.8961 24.0061Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_3403_1267">
|
||||
<rect width="34" height="34" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
26
react-project/src/components/Footer/Developed.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
import developed from "./assets/modules/Developed.module.scss";
|
||||
|
||||
import vtex from "./assets/svgs/vtex.svg";
|
||||
import m3 from "./assets/svgs/m3.svg";
|
||||
|
||||
const Developed = () => {
|
||||
return (
|
||||
<div className={developed["developed"]}>
|
||||
<span>Powered By</span>
|
||||
<a href="https://vtex.com/br-pt/" target="_blank">
|
||||
<figure>
|
||||
<img className={developed["vtex"]} src={vtex} alt="Logo VTEX" />
|
||||
</figure>
|
||||
</a>
|
||||
|
||||
<span>Developed By</span>
|
||||
<a href="https://agenciam3.com/" target="_blank">
|
||||
<figure>
|
||||
<img className={developed["m3"]} src={m3} alt="Logo M3" />
|
||||
</figure>
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Developed };
|
25
react-project/src/components/Footer/Footer.tsx
Normal file
@ -0,0 +1,25 @@
|
||||
import { Newsletter } from "./Newsletter";
|
||||
import { SitemapAccordion } from "./SitemapAccordion";
|
||||
import { Sitemap } from "./Sitemap";
|
||||
import { SocialMedias } from "./SocialMedias";
|
||||
import { FooterBottom } from "./FooterBottom";
|
||||
|
||||
import footer from "./assets/modules/Footer.module.scss";
|
||||
|
||||
const Footer = () => {
|
||||
return (
|
||||
<footer>
|
||||
<Newsletter />
|
||||
|
||||
<div className={footer["wrapper"]}>
|
||||
<Sitemap />
|
||||
<SitemapAccordion />
|
||||
<SocialMedias />
|
||||
</div>
|
||||
|
||||
<FooterBottom />
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
export { Footer };
|
46
react-project/src/components/Footer/FooterBottom.tsx
Normal file
@ -0,0 +1,46 @@
|
||||
import footer from "./assets/modules/FooterBottom.module.scss";
|
||||
|
||||
import { Payments } from "./Payments";
|
||||
import { Developed } from "./Developed";
|
||||
|
||||
import master from "./assets/svgs/master.png";
|
||||
import visa from "./assets/svgs/visa.png";
|
||||
import diners from "./assets/svgs/diners.png";
|
||||
import elo from "./assets/svgs/elo.png";
|
||||
import hiper from "./assets/svgs/hiper.png";
|
||||
import paypal from "./assets/svgs/paypal.png";
|
||||
import boleto from "./assets/svgs/boleto.png";
|
||||
import vtexPci from "./assets/svgs/vtex-pci.png";
|
||||
|
||||
const FooterBottom = () => {
|
||||
return (
|
||||
<div className={footer["footer"]}>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor
|
||||
</p>
|
||||
|
||||
<div className={footer["footer__icons"]}>
|
||||
<ul>
|
||||
<Payments icon={master} alt="Cartão MasterCard" />
|
||||
<Payments icon={visa} alt="Cartão Visa" />
|
||||
<Payments icon={diners} alt="Cartão Diners" />
|
||||
<Payments icon={elo} alt="Cartão Elo" />
|
||||
<Payments icon={hiper} alt="Cartão HiperCard" />
|
||||
<Payments icon={paypal} alt="Cartão Paypal" />
|
||||
<Payments icon={boleto} alt="Boleto" />
|
||||
</ul>
|
||||
|
||||
<div></div>
|
||||
|
||||
<figure>
|
||||
<img src={vtexPci} alt="Vtex PCI" />
|
||||
</figure>
|
||||
</div>
|
||||
|
||||
<Developed />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { FooterBottom };
|
16
react-project/src/components/Footer/Link.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
interface ILink {
|
||||
href: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
const Link = (props: ILink) => {
|
||||
const { href, text } = props;
|
||||
|
||||
return (
|
||||
<li>
|
||||
<a href={href}>{text}</a>
|
||||
</li>
|
||||
);
|
||||
};
|
||||
|
||||
export { Link };
|
57
react-project/src/components/Footer/Newsletter.tsx
Normal file
@ -0,0 +1,57 @@
|
||||
import { Formik, Form, Field, ErrorMessage } from "formik";
|
||||
import { useState } from "react";
|
||||
|
||||
import newsletter from "./assets/modules/Newsletter.module.scss";
|
||||
import NewsletterSchema from "./assets/schemas/NewsletterSchema";
|
||||
|
||||
interface IEmailType {
|
||||
email: string;
|
||||
}
|
||||
|
||||
const Newsletter = () => {
|
||||
const [feedback, setFeedback] = useState(false);
|
||||
const Feedback = () => {
|
||||
setFeedback(!feedback);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={newsletter["newsletter"]}>
|
||||
<div className={newsletter["newsletter__wrapper"]}>
|
||||
<h3>ASSINE NOSSA NEWSLETTER</h3>
|
||||
<Formik
|
||||
onSubmit={(values: IEmailType, actions) => {
|
||||
Feedback();
|
||||
actions.resetForm();
|
||||
}}
|
||||
initialValues={{ email: "" }}
|
||||
validationSchema={NewsletterSchema}
|
||||
>
|
||||
<Form>
|
||||
<Field
|
||||
placeholder="E-mail"
|
||||
id="email"
|
||||
name="email"
|
||||
onBlur={() => {
|
||||
setFeedback(false);
|
||||
}}
|
||||
/>
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="email"
|
||||
className={newsletter["invalid"]}
|
||||
/>
|
||||
<button type="submit">ENVIAR</button>
|
||||
|
||||
{feedback ? (
|
||||
<span className={newsletter["success"]}>
|
||||
Email cadastrado com sucesso!
|
||||
</span>
|
||||
) : undefined}
|
||||
</Form>
|
||||
</Formik>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Newsletter };
|
18
react-project/src/components/Footer/Payments.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
interface IPayments {
|
||||
icon: string;
|
||||
alt: string;
|
||||
}
|
||||
|
||||
const Payments = (props: IPayments) => {
|
||||
const { icon, alt } = props;
|
||||
|
||||
return (
|
||||
<li>
|
||||
<figure>
|
||||
<img src={icon} alt={alt} />
|
||||
</figure>
|
||||
</li>
|
||||
);
|
||||
};
|
||||
|
||||
export { Payments };
|
47
react-project/src/components/Footer/Sitemap.tsx
Normal file
@ -0,0 +1,47 @@
|
||||
import sitemap from "./assets/modules/Sitemap.module.scss";
|
||||
|
||||
import { Link } from "./Link";
|
||||
|
||||
const Sitemap = () => {
|
||||
return (
|
||||
<div className={sitemap["sitemap"]}>
|
||||
<div className={sitemap["sitemap__col"]}>
|
||||
<h4>Institucional</h4>
|
||||
|
||||
<ul>
|
||||
<Link text="Quem Somos" href="/" />
|
||||
<Link text="Política de Privacidade" href="/" />
|
||||
<Link text="Segurança" href="/" />
|
||||
<Link text="Seja um Revendedor" href="/" />
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div className={sitemap["sitemap__col"]}>
|
||||
<h4>Dúvidas</h4>
|
||||
|
||||
<ul>
|
||||
<Link text="Entrega" href="/" />
|
||||
<Link text="Pagamento" href="/" />
|
||||
<Link text="Trocas e Devoluções" href="/" />
|
||||
<Link text="Dúvidas Frequentes" href="/" />
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div className={sitemap["sitemap__col"]}>
|
||||
<h4>Fale Conosco</h4>
|
||||
<ul>
|
||||
<li>
|
||||
<span>Atendimento Ao Consumidor</span>
|
||||
</li>
|
||||
<Link text="(11) 4159 9504" href="tel:1141599504" />
|
||||
<li>
|
||||
<span>Atendimento Online</span>
|
||||
</li>
|
||||
<Link text="(11) 99433-8825" href="tel:11994338825" />
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Sitemap };
|
86
react-project/src/components/Footer/SitemapAccordion.tsx
Normal file
@ -0,0 +1,86 @@
|
||||
import {
|
||||
Accordion,
|
||||
AccordionBody,
|
||||
AccordionHeader,
|
||||
AccordionItem,
|
||||
} from "react-headless-accordion";
|
||||
import { useState } from "react";
|
||||
import { Link } from "./Link";
|
||||
|
||||
import links from "./assets/modules/SitemapAccordion.module.scss";
|
||||
|
||||
import more from "./assets/svgs/more.svg";
|
||||
|
||||
const SitemapAccordion = () => {
|
||||
const [institucional, setInstitucional] = useState(false);
|
||||
const [duvidas, setDuvidas] = useState(false);
|
||||
const [faleConosco, setFaleConosco] = useState(false);
|
||||
|
||||
const changeIcon1 = () => {
|
||||
setInstitucional(!institucional);
|
||||
};
|
||||
const changeIcon2 = () => {
|
||||
setDuvidas(!duvidas);
|
||||
};
|
||||
const changeIcon3 = () => {
|
||||
setFaleConosco(!faleConosco);
|
||||
};
|
||||
|
||||
return (
|
||||
<Accordion className={links["accordion"]} alwaysOpen={true}>
|
||||
<AccordionItem>
|
||||
<AccordionHeader onClick={changeIcon1}>
|
||||
<h4>Institucional</h4>
|
||||
{institucional ? <span>-</span> : <img src={more} alt="Icone de +" />}
|
||||
</AccordionHeader>
|
||||
|
||||
<AccordionBody>
|
||||
<ul>
|
||||
<Link text="Quem Somos" href="/" />
|
||||
<Link text="Política de Privacidade" href="/" />
|
||||
<Link text="Segurança" href="/" />
|
||||
<Link text="Seja um Revendedor" href="/" />
|
||||
</ul>
|
||||
</AccordionBody>
|
||||
</AccordionItem>
|
||||
|
||||
<AccordionItem>
|
||||
<AccordionHeader onClick={changeIcon2}>
|
||||
<h4>Dúvidas</h4>
|
||||
{duvidas ? <span>-</span> : <img src={more} alt="Icone de +" />}
|
||||
</AccordionHeader>
|
||||
|
||||
<AccordionBody>
|
||||
<ul>
|
||||
<Link text="Entrega" href="/" />
|
||||
<Link text="Pagamento" href="/" />
|
||||
<Link text="Trocas e Devoluções" href="/" />
|
||||
<Link text="Dúvidas Frequentes" href="/" />
|
||||
</ul>
|
||||
</AccordionBody>
|
||||
</AccordionItem>
|
||||
|
||||
<AccordionItem>
|
||||
<AccordionHeader onClick={changeIcon3}>
|
||||
<h4>Fale Conosco</h4>
|
||||
{faleConosco ? <span>-</span> : <img src={more} alt="Icone de +" />}
|
||||
</AccordionHeader>
|
||||
|
||||
<AccordionBody>
|
||||
<ul>
|
||||
<li>
|
||||
<span>Atendimento Ao Consumidor</span>
|
||||
</li>
|
||||
<Link text="(11) 4159 9504" href="tel:1141599504" />
|
||||
<li>
|
||||
<span>Atendimento Online</span>
|
||||
</li>
|
||||
<Link text="(11) 99433-8825" href="tel:11994338825" />
|
||||
</ul>
|
||||
</AccordionBody>
|
||||
</AccordionItem>
|
||||
</Accordion>
|
||||
);
|
||||
};
|
||||
|
||||
export { SitemapAccordion };
|
46
react-project/src/components/Footer/SocialMedias.tsx
Normal file
@ -0,0 +1,46 @@
|
||||
import social from "./assets/modules/SocialMedias.module.scss";
|
||||
|
||||
import facebook from "./assets/svgs/facebook.svg";
|
||||
import instagram from "./assets/svgs/instagram.svg";
|
||||
import twitter from "./assets/svgs/twitter.svg";
|
||||
import youtube from "./assets/svgs/youtube.svg";
|
||||
import linkedin from "./assets/svgs/linkedin.svg";
|
||||
|
||||
const SocialMedias = () => {
|
||||
return (
|
||||
<div className={social["social"]}>
|
||||
<div className={social["social__medias"]}>
|
||||
<figure>
|
||||
<a href="/">
|
||||
<img src={facebook} alt="Ícone do facebook" />
|
||||
</a>
|
||||
</figure>
|
||||
<figure>
|
||||
<a href="/">
|
||||
<img src={instagram} alt="Ícone do instagram" />
|
||||
</a>
|
||||
</figure>
|
||||
<figure>
|
||||
<a href="/">
|
||||
<img src={twitter} alt="Ícone do twitter" />
|
||||
</a>
|
||||
</figure>
|
||||
<figure>
|
||||
<a href="/">
|
||||
<img src={youtube} alt="Ícone do youtube" />
|
||||
</a>
|
||||
</figure>
|
||||
<figure>
|
||||
<a href="/">
|
||||
<img src={linkedin} alt="Ícone do linkedin" />
|
||||
</a>
|
||||
</figure>
|
||||
</div>
|
||||
<div className={social["social__website"]}>
|
||||
<a href="/">www.loremipsum.com</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { SocialMedias };
|
@ -0,0 +1,53 @@
|
||||
.developed {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 13px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
span {
|
||||
font-weight: 400;
|
||||
font-size: 10px;
|
||||
line-height: 12px;
|
||||
color: var(--white);
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 20px;
|
||||
line-height: 23px;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
display: contents;
|
||||
|
||||
figure {
|
||||
display: contents;
|
||||
|
||||
.vtex {
|
||||
width: 44.92px;
|
||||
height: 16px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 84.22px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.m3 {
|
||||
width: 28.66px;
|
||||
height: 15.65px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 54.95px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
.wrapper {
|
||||
padding: 50px 100px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
padding: 24px 16px;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
@ -0,0 +1,126 @@
|
||||
.footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: var(--black);
|
||||
padding: 15px 100px;
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
padding: 15px 16px;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
p {
|
||||
width: 234px;
|
||||
font-weight: 400;
|
||||
font-size: 10px;
|
||||
line-height: 12px;
|
||||
color: var(--white);
|
||||
text-transform: capitalize;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 467px;
|
||||
font-size: 20px;
|
||||
line-height: 23px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
order: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&__icons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
|
||||
@media screen and (min-width: 1025px) and (max-width: 1070px) {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 599px) {
|
||||
gap: 11px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 361px) {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
|
||||
@media screen and (min-width: 1025px) and (max-width: 1070px) {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 599px) {
|
||||
gap: 11px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 361px) {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
li {
|
||||
display: contents;
|
||||
|
||||
figure {
|
||||
display: contents;
|
||||
|
||||
img {
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 70px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 599px) {
|
||||
width: 30px;
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 361px) {
|
||||
width: 24px;
|
||||
height: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div {
|
||||
background-color: var(--gray-100);
|
||||
width: 1px;
|
||||
height: 24px;
|
||||
|
||||
@media screen and (max-width: 599px) {
|
||||
height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
figure {
|
||||
display: contents;
|
||||
|
||||
img {
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 106px;
|
||||
height: 66px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 599px) {
|
||||
width: 45px;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 361px) {
|
||||
width: 35px;
|
||||
height: 25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
.newsletter {
|
||||
margin-top: 70px;
|
||||
border-top: 1px solid var(--black);
|
||||
border-bottom: 1px solid var(--black);
|
||||
padding: 16px 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
margin-top: 80px;
|
||||
justify-content: left;
|
||||
padding: 16px 16px;
|
||||
}
|
||||
|
||||
&__wrapper {
|
||||
@media screen and (max-width: 1024px) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: var(--black-200);
|
||||
font-weight: 500;
|
||||
font-size: 18px;
|
||||
line-height: 21px;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: 8px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 36px;
|
||||
line-height: 42px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
form {
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
display: inherit;
|
||||
}
|
||||
|
||||
input {
|
||||
padding: 13px 16px;
|
||||
border: 1px solid var(--gray-300);
|
||||
border-radius: 4px;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--gray-100);
|
||||
width: 340px;
|
||||
height: 42px;
|
||||
margin-right: 8px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 668px;
|
||||
height: 59px;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
padding: 17px 16px;
|
||||
height: 50px;
|
||||
margin-right: 0;
|
||||
margin-bottom: 16px;
|
||||
width: 100%;
|
||||
border-radius: unset;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--gray-100);
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 668px;
|
||||
height: 59px;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
width: 126px;
|
||||
height: 42px;
|
||||
padding: 14px 20px;
|
||||
background: var(--black);
|
||||
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
||||
border-radius: 4px;
|
||||
border: none;
|
||||
color: var(--white);
|
||||
font-weight: 700;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
letter-spacing: 0.05em;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s linear;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--black-100);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 246px;
|
||||
height: 59px;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
border-radius: unset;
|
||||
box-shadow: none;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
padding: 17px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.invalid {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
top: 42px;
|
||||
font-weight: 400;
|
||||
font-size: 10px;
|
||||
line-height: 12px;
|
||||
color: var(--red-100);
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
top: 60px;
|
||||
font-size: 13px;
|
||||
line-height: 15px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
left: unset;
|
||||
right: 2px;
|
||||
top: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
.success {
|
||||
position: absolute;
|
||||
left: 100px;
|
||||
top: 42px;
|
||||
font-weight: 400;
|
||||
font-size: 10px;
|
||||
line-height: 12px;
|
||||
color: var(--green-100);
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
top: 60px;
|
||||
left: 250px;
|
||||
font-size: 13px;
|
||||
line-height: 15px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
left: 2px;
|
||||
top: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
.sitemap {
|
||||
display: flex;
|
||||
gap: 121px;
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&__col {
|
||||
width: 155px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 315px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin-bottom: 12px;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--black-200);
|
||||
text-transform: uppercase;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
margin-bottom: 12px;
|
||||
|
||||
a {
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
color: var(--black-200);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--gray-500);
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
color: var(--black-200);
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
text-decoration: underline;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
.accordion {
|
||||
width: 100%;
|
||||
@media screen and (min-width: 1025px) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border: none;
|
||||
background: none;
|
||||
margin-bottom: 12px;
|
||||
cursor: pointer;
|
||||
|
||||
h4 {
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--black-200);
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 21px;
|
||||
font-weight: bold;
|
||||
color: var(--black-200);
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
margin-bottom: 12px;
|
||||
|
||||
a {
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
color: var(--black-200);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
span {
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
color: var(--black-200);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
.social {
|
||||
&__medias {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
|
||||
figure {
|
||||
display: contents;
|
||||
|
||||
a {
|
||||
display: contents;
|
||||
|
||||
img {
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__website {
|
||||
a {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--black-200);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--gray-500);
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
import * as Yup from "yup";
|
||||
|
||||
export default Yup.object().shape({
|
||||
email: Yup.string().required("*Campo obrigatório").email("Email inválido"),
|
||||
});
|
BIN
react-project/src/components/Footer/assets/svgs/boleto.png
Normal file
After Width: | Height: | Size: 816 B |
BIN
react-project/src/components/Footer/assets/svgs/diners.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
react-project/src/components/Footer/assets/svgs/elo.png
Normal file
After Width: | Height: | Size: 888 B |
16
react-project/src/components/Footer/assets/svgs/facebook.svg
Normal file
@ -0,0 +1,16 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_6214_894)">
|
||||
<g clip-path="url(#clip1_6214_894)">
|
||||
<path d="M19.1778 27.4911V18.544H22.1734L22.6228 15.0561H19.1778V12.8296C19.1778 11.8201 19.4564 11.1321 20.9026 11.1321L22.7441 11.1314V8.01166C22.4256 7.97019 21.3325 7.87511 20.0602 7.87511C17.4034 7.87511 15.5845 9.50026 15.5845 12.4842V15.0561H12.5799V18.544H15.5845V27.4911H19.1778Z" fill="#303030"/>
|
||||
</g>
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_6214_894">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_6214_894">
|
||||
<rect width="19.574" height="19.616" fill="white" transform="translate(7.87497 7.87509)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 803 B |
BIN
react-project/src/components/Footer/assets/svgs/hiper.png
Normal file
After Width: | Height: | Size: 745 B |
@ -0,0 +1,18 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_6214_899)">
|
||||
<g clip-path="url(#clip1_6214_899)">
|
||||
<path d="M22.0996 7.87509H13.2966C10.3071 7.87509 7.87497 10.3036 7.87497 13.2884V22.0777C7.87497 25.0626 10.3071 27.491 13.2966 27.491H22.0996C25.0893 27.491 27.5214 25.0625 27.5214 22.0777V13.2884C27.5215 10.3036 25.0893 7.87509 22.0996 7.87509ZM25.7784 22.0777C25.7784 24.103 24.1281 25.7506 22.0997 25.7506H13.2966C11.2683 25.7507 9.6181 24.103 9.6181 22.0777V13.2884C9.6181 11.2632 11.2683 9.61551 13.2966 9.61551H22.0996C24.128 9.61551 25.7783 11.2632 25.7783 13.2884V22.0777H25.7784Z" fill="#303030"/>
|
||||
<path d="M17.6982 12.6288C14.9067 12.6288 12.6358 14.8962 12.6358 17.6833C12.6358 20.4703 14.9067 22.7376 17.6982 22.7376C20.4896 22.7376 22.7606 20.4703 22.7606 17.6833C22.7606 14.8962 20.4896 12.6288 17.6982 12.6288ZM17.6982 20.9971C15.868 20.9971 14.3789 19.5105 14.3789 17.6832C14.3789 15.8558 15.8679 14.3691 17.6982 14.3691C19.5285 14.3691 21.0175 15.8558 21.0175 17.6832C21.0175 19.5105 19.5284 20.9971 17.6982 20.9971Z" fill="#303030"/>
|
||||
<path d="M22.9729 11.1531C22.6371 11.1531 22.3072 11.2889 22.07 11.5267C21.8317 11.7634 21.6946 12.0929 21.6946 12.4294C21.6946 12.7648 21.8318 13.0942 22.07 13.3321C22.3071 13.5688 22.6371 13.7057 22.9729 13.7057C23.3099 13.7057 23.6388 13.5688 23.877 13.3321C24.1153 13.0942 24.2512 12.7647 24.2512 12.4294C24.2512 12.0929 24.1153 11.7634 23.877 11.5267C23.64 11.2889 23.3099 11.1531 22.9729 11.1531Z" fill="#303030"/>
|
||||
</g>
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_6214_899">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_6214_899">
|
||||
<rect width="19.6465" height="19.616" fill="white" transform="translate(7.87497 7.87509)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
18
react-project/src/components/Footer/assets/svgs/linkedin.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_6214_914)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<g clip-path="url(#clip1_6214_914)">
|
||||
<path d="M13.4447 13.8592H10.2981C10.1584 13.8592 10.0453 13.9724 10.0453 14.112V24.2205C10.0453 24.3602 10.1584 24.4733 10.2981 24.4733H13.4447C13.5843 24.4733 13.6975 24.3602 13.6975 24.2205V14.112C13.6975 13.9724 13.5843 13.8592 13.4447 13.8592Z" fill="#303030"/>
|
||||
<path d="M11.8725 8.83394C10.7276 8.83394 9.7962 9.76436 9.7962 10.908C9.7962 12.0521 10.7276 12.9829 11.8725 12.9829C13.0165 12.9829 13.9472 12.0521 13.9472 10.908C13.9473 9.76436 13.0165 8.83394 11.8725 8.83394Z" fill="#303030"/>
|
||||
<path d="M21.4482 13.6079C20.1844 13.6079 19.2502 14.1512 18.6835 14.7685V14.112C18.6835 13.9724 18.5704 13.8592 18.4307 13.8592H15.4174C15.2777 13.8592 15.1646 13.9724 15.1646 14.112V24.2205C15.1646 24.3602 15.2777 24.4733 15.4174 24.4733H18.557C18.6967 24.4733 18.8098 24.3602 18.8098 24.2205V19.2191C18.8098 17.5338 19.2676 16.8772 20.4425 16.8772C21.722 16.8772 21.8236 17.9298 21.8236 19.3058V24.2206C21.8236 24.3602 21.9368 24.4734 22.0764 24.4734H25.2173C25.3569 24.4734 25.4701 24.3602 25.4701 24.2206V18.6759C25.4701 16.1698 24.9922 13.6079 21.4482 13.6079Z" fill="#303030"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_6214_914">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_6214_914">
|
||||
<rect width="15.6739" height="15.6739" fill="white" transform="translate(9.7962 8.8167)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
4
react-project/src/components/Footer/assets/svgs/m3.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<svg width="29" height="16" viewBox="0 0 29 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17.0307 5.52928C16.5833 4.93587 16.0213 4.44237 15.3795 4.0793C14.7376 3.71622 14.0296 3.49127 13.2992 3.41835C12.5688 3.34544 11.8315 3.42611 11.1328 3.65537C10.4342 3.88464 9.78905 4.25763 9.23731 4.7513L8.76065 4.38176C5.48598 2.02835 0.900479 4.0268 0.471483 8.05773C0.34098 9.99969 0.307571 11.9472 0.371384 13.8926C0.360856 14.1423 0.400742 14.3914 0.488564 14.6247C0.576387 14.858 0.710272 15.0703 0.88191 15.2486C1.05355 15.4269 1.25928 15.5673 1.48632 15.6611C1.71337 15.7549 1.95689 15.8 2.20177 15.7938C2.44143 15.7927 2.6784 15.7423 2.89845 15.6454C3.11851 15.5486 3.31709 15.4073 3.48227 15.2302C3.64746 15.0531 3.77583 14.8437 3.85968 14.6147C3.94352 14.3856 3.98111 14.1417 3.97019 13.8975C3.97019 12.4971 3.97019 11.0967 3.97019 9.69149C3.96633 9.2749 3.99502 8.85866 4.05599 8.44672C4.13287 8.0251 4.3634 7.64881 4.70121 7.39352C5.03901 7.13823 5.45905 7.02288 5.87684 7.07066C6.28524 7.10207 6.66838 7.28435 6.95445 7.58333C7.24052 7.88231 7.40987 8.27746 7.43076 8.6947C7.45459 9.21012 7.43076 9.72553 7.43076 10.2409C7.43076 11.4954 7.43076 12.7499 7.43076 14.0044C7.42587 14.3683 7.53195 14.7247 7.73434 15.0244C7.93673 15.3241 8.22541 15.5521 8.56045 15.6771C9.77594 16.1925 11.0153 15.2881 11.0391 13.8634C11.0391 12.2054 11.0391 10.5473 11.0868 8.8892C11.1028 8.48838 11.2229 8.0991 11.4347 7.76112C11.6364 7.4631 11.9287 7.24114 12.2665 7.12952C12.6042 7.01791 12.9685 7.02285 13.3032 7.1436C13.6808 7.25154 14.0109 7.48776 14.2388 7.81317C14.4668 8.13857 14.579 8.53364 14.5569 8.93296C14.5569 10.6105 14.5569 12.288 14.5569 13.9655C14.5569 14.2063 14.6033 14.4446 14.6937 14.6671C14.784 14.8895 14.9163 15.0915 15.0832 15.2618C15.2501 15.432 15.4482 15.567 15.6662 15.6591C15.8842 15.7513 16.1179 15.7987 16.3539 15.7987C16.5899 15.7987 16.8236 15.7513 17.0416 15.6591C17.2596 15.567 17.4577 15.432 17.6246 15.2618C17.7914 15.0915 17.9238 14.8895 18.0141 14.6671C18.1044 14.4446 18.1509 14.2063 18.1509 13.9655C18.1509 12.2491 18.1509 10.5619 18.1509 8.82113C18.1542 7.62603 17.7592 6.46529 17.0307 5.52928Z" fill="white"/>
|
||||
<path d="M26.035 6.5015L25.4678 6.26325C26.0302 5.8159 26.5641 5.43177 27.0407 4.99416C27.4642 4.65403 27.8298 4.24496 28.1228 3.78342C28.9808 2.14966 27.77 0.248458 25.8491 0.204696C24.0759 0.180384 22.3075 0.180384 20.5343 0.180384C20.3171 0.165073 20.0992 0.19678 19.8949 0.273425C19.6905 0.350069 19.5044 0.46992 19.3486 0.625113C19.1929 0.780306 19.0711 0.967335 18.9912 1.17393C18.9113 1.38052 18.8751 1.60202 18.8851 1.82387C18.8638 2.04985 18.891 2.27783 18.9648 2.49201C19.0385 2.7062 19.157 2.90146 19.3121 3.06428C19.4671 3.22709 19.6551 3.35356 19.8628 3.43492C20.0706 3.51627 20.2932 3.55057 20.5152 3.53544C21.3828 3.53544 22.2503 3.53544 23.1178 3.53544C23.2656 3.58406 23.4181 3.58406 23.7041 3.58406C22.5268 4.55654 21.44 5.4804 20.3675 6.39453C19.6763 6.97802 19.4666 7.61499 19.7097 8.33949C19.8388 8.6971 20.0794 9.00161 20.3946 9.20627C20.7097 9.41093 21.082 9.50443 21.4543 9.47243C22.3742 9.47243 23.2989 9.47243 24.2189 9.47243C24.4252 9.43352 24.6374 9.44139 24.8404 9.4955C25.0434 9.54961 25.2322 9.64862 25.3935 9.78551C25.5548 9.92241 25.6846 10.0938 25.7736 10.2876C25.8627 10.4814 25.9089 10.6928 25.9089 10.9068C25.9089 11.1209 25.8627 11.3323 25.7736 11.5261C25.6846 11.7198 25.5548 11.8913 25.3935 12.0282C25.2322 12.1651 25.0434 12.2641 24.8404 12.3182C24.6374 12.3723 24.4252 12.3802 24.2189 12.3412C23.0273 12.3412 21.8356 12.3412 20.6439 12.3412C20.2262 12.3643 19.833 12.5498 19.5453 12.8596C19.2576 13.1694 19.0972 13.5799 19.0972 14.0066C19.0972 14.4334 19.2576 14.8439 19.5453 15.1537C19.833 15.4635 20.2262 15.649 20.6439 15.672C21.888 15.672 23.1369 15.672 24.381 15.672C25.4738 15.6437 26.5239 15.2331 27.3553 14.5089C28.1867 13.7848 28.7488 12.7912 28.9474 11.6945C29.1057 10.6209 28.9043 9.52417 28.3758 8.58176C27.8473 7.63936 27.0225 6.90642 26.035 6.5015Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 3.9 KiB |
BIN
react-project/src/components/Footer/assets/svgs/master.png
Normal file
After Width: | Height: | Size: 739 B |
3
react-project/src/components/Footer/assets/svgs/more.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="8" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.625 3.32031H7.79688V4.6875H4.625V8.28125H3.17188V4.6875H0V3.32031H3.17188V0H4.625V3.32031Z" fill="#303030"/>
|
||||
</svg>
|
After Width: | Height: | Size: 220 B |
BIN
react-project/src/components/Footer/assets/svgs/paypal.png
Normal file
After Width: | Height: | Size: 888 B |
11
react-project/src/components/Footer/assets/svgs/twitter.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_6214_906)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<path d="M29.9915 10.1563C29.0947 10.5497 28.1392 10.8104 27.143 10.937C28.1679 10.3251 28.95 9.36358 29.3178 8.20462C28.3623 8.7743 27.3073 9.1767 26.183 9.40126C25.2757 8.43521 23.9826 7.83688 22.572 7.83688C19.8351 7.83688 17.6317 10.0584 17.6317 12.7817C17.6317 13.1735 17.6648 13.5503 17.7462 13.909C13.6363 13.7086 9.99968 11.7388 7.55666 8.73813C7.13015 9.47812 6.87997 10.3251 6.87997 11.2369C6.87997 12.949 7.76163 14.4666 9.07583 15.3453C8.28158 15.3302 7.50241 15.0996 6.8423 14.7364C6.8423 14.7515 6.8423 14.7711 6.8423 14.7907C6.8423 17.193 8.55588 19.1884 10.803 19.6481C10.4006 19.7581 9.96201 19.8108 9.50686 19.8108C9.19037 19.8108 8.87086 19.7928 8.57095 19.7264C9.21147 21.6842 11.029 23.1235 13.1902 23.1702C11.5083 24.4859 9.37273 25.2786 7.06083 25.2786C6.65541 25.2786 6.26658 25.2605 5.87775 25.2108C8.06757 26.623 10.6628 27.4293 13.4615 27.4293C22.5584 27.4293 27.5319 19.8937 27.5319 13.3619C27.5319 13.1434 27.5243 12.9324 27.5138 12.7229C28.4949 12.0266 29.3193 11.157 29.9915 10.1563Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_6214_906">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
BIN
react-project/src/components/Footer/assets/svgs/visa.png
Normal file
After Width: | Height: | Size: 1000 B |
BIN
react-project/src/components/Footer/assets/svgs/vtex-pci.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
7
react-project/src/components/Footer/assets/svgs/vtex.svg
Normal file
@ -0,0 +1,7 @@
|
||||
<svg width="46" height="16" viewBox="0 0 46 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M32.8807 5.99083H31.2736V11.4557C31.2736 11.558 31.1851 11.6456 31.0819 11.6456H29.8433C29.7401 11.6456 29.6517 11.558 29.6517 11.4557V5.99083H28.0298C27.9855 5.99083 27.9265 5.97622 27.8971 5.94699C27.8676 5.91777 27.8381 5.87394 27.8381 5.81549V4.8511C27.8381 4.80727 27.8528 4.74882 27.8971 4.7196C27.9265 4.69037 27.9855 4.66115 28.0298 4.67576H32.8807C32.9839 4.67576 33.0724 4.74882 33.0724 4.8511V5.81549C33.0724 5.91777 32.9839 5.99083 32.8807 5.99083Z" fill="white"/>
|
||||
<path d="M38.0559 11.6017C37.4219 11.6894 36.7732 11.7332 36.1391 11.7186C34.9153 11.7186 33.839 11.4118 33.839 9.70216V6.58983C33.839 4.88024 34.9301 4.588 36.1539 4.588C36.7879 4.57339 37.4219 4.61723 38.0559 4.7049C38.1886 4.71951 38.2476 4.77796 38.2476 4.89485V5.77157C38.2476 5.87385 38.1592 5.96152 38.0559 5.96152H36.0654C35.6231 5.96152 35.4609 6.10764 35.4609 6.60444V7.45193H37.9822C38.0854 7.45193 38.1739 7.53961 38.1739 7.64189V8.53321C38.1739 8.6355 38.0854 8.72317 37.9822 8.72317H35.4609V9.71678C35.4609 10.199 35.6231 10.3597 36.0654 10.3597H38.0559C38.1592 10.3597 38.2476 10.4474 38.2476 10.5497V11.4264C38.2476 11.5286 38.1886 11.5871 38.0559 11.6017Z" fill="white"/>
|
||||
<path d="M45.1925 11.6455H43.6885C43.5853 11.6601 43.4821 11.6016 43.4379 11.4993L42.1256 9.45367L40.946 11.4555C40.8871 11.5724 40.8133 11.6455 40.7101 11.6455H39.3094C39.2799 11.6455 39.2357 11.6455 39.2062 11.6162C39.1767 11.587 39.1619 11.5578 39.1619 11.5139C39.1619 11.4847 39.1767 11.4701 39.1767 11.4555L41.2262 8.06555L39.1472 4.85094C39.1324 4.83632 39.1324 4.8071 39.1324 4.79249C39.1324 4.71943 39.2062 4.66098 39.2799 4.67559H40.8281C40.9313 4.67559 41.005 4.76327 41.064 4.85094L42.273 6.75048L43.4526 4.85094C43.4969 4.74865 43.5853 4.69021 43.6885 4.67559H45.0893C45.163 4.67559 45.2367 4.71943 45.2367 4.79249C45.2367 4.8071 45.222 4.83632 45.222 4.85094L43.1577 8.09477L45.3104 11.4555C45.3252 11.4847 45.3399 11.5139 45.3399 11.5432C45.3252 11.6016 45.2662 11.6455 45.1925 11.6455Z" fill="white"/>
|
||||
<path d="M25.5821 4.69058C25.5084 4.69058 25.4494 4.73442 25.4347 4.80748L24.0634 9.84857C24.0487 9.95085 24.0192 9.99469 23.9307 9.99469C23.8423 9.99469 23.8128 9.95085 23.798 9.84857L22.4268 4.80748C22.412 4.73442 22.353 4.69058 22.2793 4.69058H20.9228C20.8786 4.69058 20.8344 4.70519 20.8049 4.74903C20.7754 4.77825 20.7606 4.82209 20.7754 4.86592C20.7754 4.86592 22.4563 10.6522 22.471 10.7107C22.6922 11.3974 23.2377 11.7335 23.9307 11.7335C24.5942 11.7627 25.1988 11.339 25.3904 10.7107C25.4199 10.6376 27.0566 4.86592 27.0566 4.86592C27.0713 4.82209 27.0566 4.77825 27.0271 4.74903C26.9976 4.71981 26.9534 4.69058 26.9091 4.69058H25.5821Z" fill="white"/>
|
||||
<path d="M17.9149 0H3.80434C3.28828 0 2.81645 0.277625 2.56579 0.70137C2.30039 1.13973 2.28565 1.68037 2.52156 2.11872L3.93704 4.77808H1.37148C1.0471 4.77808 0.737464 4.93881 0.560528 5.21644C0.383593 5.49406 0.383593 5.84475 0.531039 6.13699L5.07237 14.6411C5.23457 14.9479 5.55895 15.1379 5.89807 15.1379C6.2372 15.1379 6.56158 14.9479 6.72377 14.6411L7.96232 12.3324L9.5105 15.2402C9.76116 15.7078 10.2625 16 10.7933 16C11.3241 16 11.8254 15.7078 12.0761 15.2402L19.1535 2.04566C19.3894 1.60731 19.3746 1.08128 19.1092 0.672146C18.8733 0.248402 18.4015 0 17.9149 0ZM11.6042 5.56712L8.50787 11.3242C8.40465 11.5288 8.19823 11.6457 7.96232 11.6457C7.7264 11.6457 7.51998 11.5142 7.41677 11.3242L4.36463 5.62557C4.27617 5.45023 4.27617 5.24566 4.37938 5.07032C4.48259 4.89498 4.67427 4.79269 4.86595 4.79269H11.1177C11.3093 4.79269 11.4863 4.88036 11.5747 5.0411C11.6927 5.20183 11.6927 5.40639 11.6042 5.56712Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 3.6 KiB |
11
react-project/src/components/Footer/assets/svgs/youtube.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_6214_911)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<path d="M27.8027 12.2486C27.5447 11.2896 26.7886 10.5336 25.8297 10.2754C24.0779 9.79604 17.0706 9.79604 17.0706 9.79604C17.0706 9.79604 10.0636 9.79604 8.31176 10.2572C7.3713 10.5152 6.59672 11.2897 6.33875 12.2486C5.87775 14.0003 5.87775 17.633 5.87775 17.633C5.87775 17.633 5.87775 21.284 6.33875 23.0174C6.59699 23.9763 7.35285 24.7323 8.31189 24.9905C10.082 25.47 17.0709 25.47 17.0709 25.47C17.0709 25.47 24.0779 25.47 25.8297 25.0088C26.7887 24.7507 27.5447 23.9947 27.803 23.0358C28.2638 21.284 28.2638 17.6514 28.2638 17.6514C28.2638 17.6514 28.2823 14.0003 27.8027 12.2486ZM14.8396 20.989V14.277L20.6665 17.633L14.8396 20.989Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_6214_911">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 976 B |
15
react-project/src/components/Header/Cart.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import cart from "./assets/svgs/cart.svg";
|
||||
|
||||
import cartStyle from "./assets/modules/Cart.module.scss";
|
||||
|
||||
const Cart = () => {
|
||||
return (
|
||||
<a className={cartStyle["cart"]} href="/">
|
||||
<figure>
|
||||
<img src={cart} alt="Carrinho de compras" />
|
||||
</figure>
|
||||
</a>
|
||||
);
|
||||
};
|
||||
|
||||
export { Cart };
|
44
react-project/src/components/Header/Hamburguer.tsx
Normal file
@ -0,0 +1,44 @@
|
||||
import { useState } from "react";
|
||||
import Modal from "react-modal";
|
||||
|
||||
import hamburguer from "./assets/modules/Hamburguer.module.scss";
|
||||
import { LinksMenu } from "./LinksMenu";
|
||||
|
||||
import hamb from "./assets/svgs/hamburguer.svg";
|
||||
import close from "./assets/svgs/close.svg";
|
||||
|
||||
const Hamburguer = () => {
|
||||
const [hambActive, setHamb] = useState(false);
|
||||
const HambMode = () => {
|
||||
setHamb(!hambActive);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<button className={hamburguer["hamburguer"]} onClick={HambMode}>
|
||||
<img src={hamb} alt="Menu Hamburguer" />
|
||||
</button>
|
||||
<Modal
|
||||
isOpen={hambActive}
|
||||
onRequestClose={HambMode}
|
||||
overlayClassName={hamburguer["overlay"]}
|
||||
className={hamburguer["content"]}
|
||||
>
|
||||
<div className={hamburguer["content__top"]}>
|
||||
<a href="/">ENTRAR</a>
|
||||
<button onClick={HambMode}>
|
||||
<img src={close} alt="Botão de fechar menu" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<LinksMenu text="CURSOS" href="/" />
|
||||
<LinksMenu text="SAIBA MAIS" href="/" />
|
||||
<LinksMenu text="INSTITUCIONAIS" href="/" />
|
||||
</ul>
|
||||
</Modal>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hamburguer };
|
31
react-project/src/components/Header/Header.tsx
Normal file
@ -0,0 +1,31 @@
|
||||
import header from "./assets/modules/Header.module.scss";
|
||||
|
||||
import { Logo } from "./Logo";
|
||||
import { SearchInput } from "./SearchInput";
|
||||
import { Cart } from "./Cart";
|
||||
import { Menu } from "./Menu";
|
||||
|
||||
const Header = () => {
|
||||
return (
|
||||
<div className={header["header-desktop"]}>
|
||||
<div className={header["spread"]}>
|
||||
<div className={header["header"]}>
|
||||
<Logo />
|
||||
|
||||
<SearchInput />
|
||||
|
||||
<div className={header["header__account"]}>
|
||||
<a className={header["header__account__login"]} href="/">
|
||||
ENTRAR
|
||||
</a>
|
||||
<Cart />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Menu />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Header };
|
23
react-project/src/components/Header/HeaderMobile.tsx
Normal file
@ -0,0 +1,23 @@
|
||||
import headerMobile from "./assets/modules/HeaderMobile.module.scss";
|
||||
|
||||
import { Hamburguer } from "./Hamburguer";
|
||||
import { Logo } from "./Logo";
|
||||
import { Cart } from "./Cart";
|
||||
import { SearchInput } from "./SearchInput";
|
||||
|
||||
const HeaderMobile = () => {
|
||||
return (
|
||||
<div className={headerMobile["header-mobile"]}>
|
||||
<div className={headerMobile["header-mobile__header"]}>
|
||||
<Hamburguer />
|
||||
<Logo />
|
||||
<Cart />
|
||||
</div>
|
||||
<div className={headerMobile["header-mobile__input"]}>
|
||||
<SearchInput />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { HeaderMobile };
|
15
react-project/src/components/Header/LinksMenu.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
interface ILinkMenu {
|
||||
href: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
const LinksMenu = (props: ILinkMenu) => {
|
||||
const { href, text } = props;
|
||||
return (
|
||||
<li>
|
||||
<a href={href}>{text}</a>
|
||||
</li>
|
||||
);
|
||||
};
|
||||
|
||||
export { LinksMenu };
|
15
react-project/src/components/Header/Logo.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import logo from "./assets/svgs/logo.svg";
|
||||
|
||||
import logoStyle from "./assets/modules/Logo.module.scss";
|
||||
|
||||
const Logo = () => {
|
||||
return (
|
||||
<a className={logoStyle["logo"]} href="/">
|
||||
<figure>
|
||||
<img src={logo} alt="Logo M3 Academy" />
|
||||
</figure>
|
||||
</a>
|
||||
);
|
||||
};
|
||||
|
||||
export { Logo };
|
16
react-project/src/components/Header/Menu.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import menu from "./assets/modules/Menu.module.scss";
|
||||
import { LinksMenu } from "./LinksMenu";
|
||||
|
||||
const Menu = () => {
|
||||
return (
|
||||
<nav className={menu["menu"]}>
|
||||
<ul>
|
||||
<LinksMenu text="CURSOS" href="/" />
|
||||
<LinksMenu text="SAIBA MAIS" href="/" />
|
||||
<LinksMenu text="INSTITUCIONAIS" href="/" />
|
||||
</ul>
|
||||
</nav>
|
||||
);
|
||||
};
|
||||
|
||||
export { Menu };
|
30
react-project/src/components/Header/SearchInput.tsx
Normal file
@ -0,0 +1,30 @@
|
||||
import search from "./assets/svgs/search.svg";
|
||||
import searchStyle from "./assets/modules/SearchInput.module.scss";
|
||||
|
||||
import { Formik, Form, Field, ErrorMessage } from "formik";
|
||||
|
||||
interface ISearchType {
|
||||
search: string;
|
||||
}
|
||||
|
||||
const SearchInput = () => {
|
||||
return (
|
||||
<div className={searchStyle["search"]}>
|
||||
<Formik
|
||||
onSubmit={(values: ISearchType, actions) => {
|
||||
actions.resetForm();
|
||||
}}
|
||||
initialValues={{ search: "" }}
|
||||
>
|
||||
<Form>
|
||||
<Field placeholder="Buscar..." id="search" name="search" />
|
||||
<button type="submit">
|
||||
<img src={search} alt="Icone de pesquisa" />
|
||||
</button>
|
||||
</Form>
|
||||
</Formik>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { SearchInput };
|
@ -0,0 +1,14 @@
|
||||
.cart {
|
||||
display: contents;
|
||||
|
||||
figure {
|
||||
display: contents;
|
||||
|
||||
img {
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 54.68px;
|
||||
height: 54.68px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
.hamburguer {
|
||||
display: contents;
|
||||
cursor: pointer;
|
||||
|
||||
img {
|
||||
width: 28px;
|
||||
height: 22.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
position: absolute;
|
||||
background-color: var(--white);
|
||||
width: 96.4845%;
|
||||
height: 585px;
|
||||
|
||||
@media screen and (max-width: 599px) {
|
||||
width: 90.4%;
|
||||
}
|
||||
|
||||
&__top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 31px 16px;
|
||||
background-color: var(--black);
|
||||
a {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--white);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
button {
|
||||
background: none;
|
||||
border: 0;
|
||||
display: contents;
|
||||
cursor: pointer;
|
||||
|
||||
img {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 31px 16px;
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
margin-bottom: 12px;
|
||||
|
||||
a {
|
||||
color: var(--gray-100);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: rgba(69, 69, 69, 0.7);
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
.header-desktop {
|
||||
background-color: var(--black);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: var(--white);
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.spread {
|
||||
border-bottom: 1px solid var(--gray-100);
|
||||
}
|
||||
|
||||
.header {
|
||||
margin-left: 100px;
|
||||
margin-right: 100px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 22px 0;
|
||||
align-items: center;
|
||||
|
||||
&__account {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 55px;
|
||||
|
||||
&__login {
|
||||
color: var(--white);
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
color: var(--gray-100);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
.header-mobile {
|
||||
background-color: var(--black);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: var(--white);
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 25px 16px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&__input {
|
||||
padding: 0 16px 25px;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
.logo {
|
||||
display: contents;
|
||||
|
||||
figure {
|
||||
display: contents;
|
||||
|
||||
img {
|
||||
width: 136px;
|
||||
height: 25.86px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 265.62px;
|
||||
height: 50.5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
.menu {
|
||||
margin-left: 100px;
|
||||
margin-right: 100px;
|
||||
display: flex;
|
||||
padding: 14px 0;
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
gap: 55px;
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
a {
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--white);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
color: var(--gray-100);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
.search {
|
||||
form {
|
||||
position: relative;
|
||||
|
||||
input {
|
||||
padding: 8px 44px 8px 16px;
|
||||
background-color: var(--white);
|
||||
border: 2px solid var(--gray-500);
|
||||
border-radius: 5px;
|
||||
color: var(--gray-600);
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
width: 264px;
|
||||
height: 32px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 515.62px;
|
||||
height: 57px;
|
||||
padding: 12px 60px 12px 16px;
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: var(--gray-600);
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 16px;
|
||||
border: 0;
|
||||
padding-top: 1px;
|
||||
background-color: var(--white);
|
||||
cursor: pointer;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
top: 11px;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
top: 8px;
|
||||
}
|
||||
|
||||
img {
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 35.15px;
|
||||
height: 35.15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
react-project/src/components/Header/assets/svgs/cart.svg
Normal file
@ -0,0 +1,12 @@
|
||||
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_3715_4730)">
|
||||
<path d="M27.823 4.07236C27.6697 3.88079 27.4377 3.76928 27.1923 3.76928H5.69581L5.09469 1.16451C5.01009 0.798054 4.68377 0.538452 4.30768 0.538452H0.80768C0.361648 0.538452 0 0.9001 0 1.34619C0 1.79227 0.361648 2.15387 0.80768 2.15387H3.66516L7.7455 19.8355C7.83005 20.2019 8.15642 20.4615 8.53251 20.4615H24.7154C25.1614 20.4615 25.523 20.0999 25.523 19.6539C25.523 19.2078 25.1614 18.8462 24.7154 18.8462H9.17509L8.55384 16.1539H24.7693C25.1471 16.1539 25.4744 15.892 25.5573 15.5235L27.9803 4.75426C28.0342 4.51483 27.9763 4.26398 27.823 4.07236Z" fill="white"/>
|
||||
<path d="M11.8461 21.5385C10.2132 21.5385 8.88458 22.867 8.88458 24.5C8.88458 26.133 10.2131 27.4615 11.8461 27.4615C13.4791 27.4615 14.8077 26.133 14.8077 24.5C14.8077 22.867 13.4792 21.5385 11.8461 21.5385Z" fill="white"/>
|
||||
<path d="M21.5385 21.5385C19.9055 21.5385 18.5769 22.867 18.5769 24.5C18.5769 26.133 19.9054 27.4615 21.5385 27.4615C23.1714 27.4615 24.5 26.133 24.5 24.5C24.5 22.867 23.1715 21.5385 21.5385 21.5385Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_3715_4730">
|
||||
<rect width="28" height="28" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
@ -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 |
@ -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 |
9
react-project/src/components/Header/assets/svgs/logo.svg
Normal file
After Width: | Height: | Size: 19 KiB |
10
react-project/src/components/Header/assets/svgs/search.svg
Normal 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_5332_39)">
|
||||
<path d="M13.2094 11.6187C14.0951 10.4091 14.6249 8.92334 14.6249 7.31267C14.6249 3.2807 11.3444 0.000183105 7.31245 0.000183105C3.28048 0.000183105 0 3.2807 0 7.31267C0 11.3446 3.28052 14.6252 7.31248 14.6252C8.92315 14.6252 10.409 14.0953 11.6186 13.2095L16.4092 18.0001L18 16.4093C18 16.4092 13.2094 11.6187 13.2094 11.6187ZM7.31248 12.3751C4.52086 12.3751 2.25001 10.1043 2.25001 7.31267C2.25001 4.52104 4.52086 2.25019 7.31248 2.25019C10.1041 2.25019 12.375 4.52104 12.375 7.31267C12.375 10.1043 10.1041 12.3751 7.31248 12.3751Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_5332_39">
|
||||
<rect width="18" height="18" rx="5" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 804 B |
@ -0,0 +1,27 @@
|
||||
import breadcrumb from "./assets/modules/Breadcrumb.module.scss";
|
||||
|
||||
import iconHome from "./assets/svgs/home.svg";
|
||||
import iconArrow from "./assets/svgs/arrow-right.svg";
|
||||
|
||||
const Breadcrumb = () => {
|
||||
return (
|
||||
<div className={breadcrumb["breadcrumb"]}>
|
||||
<a href="/">
|
||||
<figure>
|
||||
<img className={breadcrumb["home"]} src={iconHome} alt="Icone Home" />
|
||||
</figure>
|
||||
</a>
|
||||
|
||||
<figure>
|
||||
<img
|
||||
className={breadcrumb["arrow"]}
|
||||
src={iconArrow}
|
||||
alt="Icone Flecha para direita"
|
||||
/>
|
||||
</figure>
|
||||
<span>INSTITUCIONAL</span>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Breadcrumb };
|
220
react-project/src/components/MainInstitucional/Contato.tsx
Normal file
@ -0,0 +1,220 @@
|
||||
import { Formik, Form, Field, ErrorMessage } from "formik";
|
||||
import MaskedInput from "react-text-mask";
|
||||
import { useState } from "react";
|
||||
|
||||
import FormSchema from "./assets/schemas/FormSchema";
|
||||
|
||||
import contato from "./assets/modules/Contato.module.scss";
|
||||
|
||||
interface IFormikValues {
|
||||
name: string;
|
||||
email: string;
|
||||
cpf: string;
|
||||
date: string;
|
||||
telefone: string;
|
||||
instagram: string;
|
||||
terms: boolean;
|
||||
}
|
||||
|
||||
const initialValues = {
|
||||
name: "",
|
||||
email: "",
|
||||
cpf: "",
|
||||
date: "",
|
||||
telefone: "",
|
||||
instagram: "",
|
||||
terms: false,
|
||||
};
|
||||
|
||||
const dateMask = [
|
||||
/[0-3]/,
|
||||
/\d/,
|
||||
".",
|
||||
/[0-1]/,
|
||||
/\d/,
|
||||
".",
|
||||
/[1-2]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
];
|
||||
const cpfMask = [
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
".",
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
".",
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
"-",
|
||||
/\d/,
|
||||
/\d/,
|
||||
];
|
||||
const phoneNumberMask = [
|
||||
"(",
|
||||
/\d/,
|
||||
/\d/,
|
||||
")",
|
||||
" ",
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
"-",
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
];
|
||||
|
||||
const Contato = () => {
|
||||
const [feedback, setFeedback] = useState(false);
|
||||
const Feedback = () => {
|
||||
setFeedback(true);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={contato["forms"]}>
|
||||
<h2>Preencha o formulário</h2>
|
||||
|
||||
<Formik
|
||||
onSubmit={(values: IFormikValues, actions) => {
|
||||
Feedback();
|
||||
actions.resetForm();
|
||||
}}
|
||||
initialValues={initialValues}
|
||||
validationSchema={FormSchema}
|
||||
>
|
||||
{({ handleBlur }) => (
|
||||
<Form>
|
||||
<div className={contato["forms__form-col"]}>
|
||||
<label htmlFor="name">Nome</label>
|
||||
<Field
|
||||
onBlur={() => {
|
||||
setFeedback(false);
|
||||
}}
|
||||
placeholder="Seu nome completo"
|
||||
id="name"
|
||||
name="name"
|
||||
/>
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="name"
|
||||
className={contato["form-invalid-feedback"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={contato["forms__form-col"]}>
|
||||
<label htmlFor="email">E-mail</label>
|
||||
<Field placeholder="Seu e-mail" id="email" name="email" />
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="email"
|
||||
className={contato["form-invalid-feedback"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={contato["forms__form-col"]}>
|
||||
<label htmlFor="cpf">CPF</label>
|
||||
<Field
|
||||
name="cpf"
|
||||
render={({ field }: any) => (
|
||||
<MaskedInput
|
||||
{...field}
|
||||
id="cpf"
|
||||
mask={cpfMask}
|
||||
type="text"
|
||||
placeholder="000.000.000-00"
|
||||
onBlur={handleBlur}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="cpf"
|
||||
className={contato["form-invalid-feedback"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={contato["forms__form-col"]}>
|
||||
<label htmlFor="date">Data de Nascimento:</label>
|
||||
<Field
|
||||
name="date"
|
||||
render={({ field }: any) => (
|
||||
<MaskedInput
|
||||
{...field}
|
||||
id="date"
|
||||
mask={dateMask}
|
||||
type="text"
|
||||
placeholder="00.00.0000"
|
||||
onBlur={handleBlur}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="date"
|
||||
className={contato["form-invalid-feedback"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={contato["forms__form-col"]}>
|
||||
<label htmlFor="telefone">Telefone:</label>
|
||||
<Field
|
||||
name="telefone"
|
||||
render={({ field }: any) => (
|
||||
<MaskedInput
|
||||
{...field}
|
||||
id="telefone"
|
||||
mask={phoneNumberMask}
|
||||
type="text"
|
||||
placeholder="(00) 00000-0000"
|
||||
onBlur={handleBlur}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="telefone"
|
||||
className={contato["form-invalid-feedback"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={contato["forms__form-col"]}>
|
||||
<label htmlFor="instagram">Instagram</label>
|
||||
<Field
|
||||
placeholder="@seuuser"
|
||||
type="instagram"
|
||||
id="instagram"
|
||||
name="instagram"
|
||||
/>
|
||||
<ErrorMessage
|
||||
component="span"
|
||||
name="instagram"
|
||||
className={contato["form-invalid-feedback"]}
|
||||
/>
|
||||
</div>
|
||||
<div className={contato["forms__terms"]}>
|
||||
<span>*</span>
|
||||
<label>
|
||||
Declaro que li e aceito
|
||||
<label htmlFor="terms"></label>
|
||||
</label>
|
||||
<Field type="checkbox" id="terms" name="terms" />
|
||||
</div>
|
||||
|
||||
<button type="submit">CADASTRE-SE</button>
|
||||
|
||||
{feedback ? (
|
||||
<span className={contato["forms__success"]}>
|
||||
*Formulário enviado com sucesso!
|
||||
</span>
|
||||
) : undefined}
|
||||
</Form>
|
||||
)}
|
||||
</Formik>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Contato };
|
38
react-project/src/components/MainInstitucional/Entrega.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import main from "./assets/modules/Main.module.scss";
|
||||
|
||||
const Entrega = () => {
|
||||
return (
|
||||
<div className={main["content"]}>
|
||||
<h2>Entrega</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
</p>
|
||||
<p>
|
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
|
||||
accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab
|
||||
illo inventore veritatis et quasi architecto beatae vitae dicta sunt
|
||||
explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut
|
||||
odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
|
||||
voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum
|
||||
quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam
|
||||
eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat
|
||||
voluptatem.
|
||||
</p>
|
||||
<p>
|
||||
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis
|
||||
suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis
|
||||
autem vel eum iure reprehenderit qui in ea voluptate velit esse quam
|
||||
nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo
|
||||
voluptas nulla pariatur?
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Entrega };
|
40
react-project/src/components/MainInstitucional/Main.tsx
Normal file
@ -0,0 +1,40 @@
|
||||
import { Routes, Route } from "react-router-dom";
|
||||
|
||||
import main from "./assets/modules/Main.module.scss";
|
||||
|
||||
import { Breadcrumb } from "./Breadcrumb";
|
||||
import { Navigation } from "./Navigation";
|
||||
|
||||
import { Sobre } from "./Sobre";
|
||||
import { Pagamento } from "./Pagamento";
|
||||
import { Entrega } from "./Entrega";
|
||||
import { Troca } from "./Troca";
|
||||
import { Seguranca } from "./Seguranca";
|
||||
import { Contato } from "./Contato";
|
||||
|
||||
const Main = () => {
|
||||
return (
|
||||
<main className={main["main"]}>
|
||||
<Breadcrumb />
|
||||
|
||||
<section>
|
||||
<h1 className={main["main__title"]}>INSTITUCIONAL</h1>
|
||||
|
||||
<div className={main["main__wrapperNav"]}>
|
||||
<Navigation />
|
||||
|
||||
<Routes>
|
||||
<Route path="/" element={<Sobre />} />
|
||||
<Route path="/pagamento" element={<Pagamento />} />
|
||||
<Route path="/entrega" element={<Entrega />} />
|
||||
<Route path="/troca" element={<Troca />} />
|
||||
<Route path="/seguranca" element={<Seguranca />} />
|
||||
<Route path="/contato" element={<Contato />} />
|
||||
</Routes>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
};
|
||||
|
||||
export { Main };
|
@ -0,0 +1,72 @@
|
||||
import { NavLink } from "react-router-dom";
|
||||
|
||||
import navigation from "./assets/modules/Navigation.module.scss";
|
||||
|
||||
const Navigation = () => {
|
||||
return (
|
||||
<ul className={navigation["items"]}>
|
||||
<li>
|
||||
<NavLink
|
||||
to="/"
|
||||
className={({ isActive }) =>
|
||||
isActive ? navigation.ativo : undefined
|
||||
}
|
||||
>
|
||||
Sobre
|
||||
</NavLink>
|
||||
</li>
|
||||
<li>
|
||||
<NavLink
|
||||
to="/pagamento"
|
||||
className={({ isActive }) =>
|
||||
isActive ? navigation.ativo : undefined
|
||||
}
|
||||
>
|
||||
Forma de Pagamento
|
||||
</NavLink>
|
||||
</li>
|
||||
<li>
|
||||
<NavLink
|
||||
to="/entrega"
|
||||
className={({ isActive }) =>
|
||||
isActive ? navigation.ativo : undefined
|
||||
}
|
||||
>
|
||||
Entrega
|
||||
</NavLink>
|
||||
</li>
|
||||
<li>
|
||||
<NavLink
|
||||
to="/troca"
|
||||
className={({ isActive }) =>
|
||||
isActive ? navigation.ativo : undefined
|
||||
}
|
||||
>
|
||||
Troca e Devolução
|
||||
</NavLink>
|
||||
</li>
|
||||
<li>
|
||||
<NavLink
|
||||
to="/seguranca"
|
||||
className={({ isActive }) =>
|
||||
isActive ? navigation.ativo : undefined
|
||||
}
|
||||
>
|
||||
Segurança e Privacidade
|
||||
</NavLink>
|
||||
</li>
|
||||
<li>
|
||||
<NavLink
|
||||
to="/contato"
|
||||
className={({ isActive }) =>
|
||||
isActive ? navigation.ativo : undefined
|
||||
}
|
||||
>
|
||||
Contato
|
||||
</NavLink>
|
||||
</li>
|
||||
</ul>
|
||||
);
|
||||
};
|
||||
|
||||
export { Navigation };
|
38
react-project/src/components/MainInstitucional/Pagamento.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import main from "./assets/modules/Main.module.scss";
|
||||
|
||||
const Pagamento = () => {
|
||||
return (
|
||||
<div className={main["content"]}>
|
||||
<h2>Forma de Pagamento</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
</p>
|
||||
<p>
|
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
|
||||
accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab
|
||||
illo inventore veritatis et quasi architecto beatae vitae dicta sunt
|
||||
explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut
|
||||
odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
|
||||
voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum
|
||||
quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam
|
||||
eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat
|
||||
voluptatem.
|
||||
</p>
|
||||
<p>
|
||||
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis
|
||||
suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis
|
||||
autem vel eum iure reprehenderit qui in ea voluptate velit esse quam
|
||||
nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo
|
||||
voluptas nulla pariatur?
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Pagamento };
|
38
react-project/src/components/MainInstitucional/Seguranca.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import main from "./assets/modules/Main.module.scss";
|
||||
|
||||
const Seguranca = () => {
|
||||
return (
|
||||
<div className={main["content"]}>
|
||||
<h2>Segurança e Privacidade</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
</p>
|
||||
<p>
|
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
|
||||
accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab
|
||||
illo inventore veritatis et quasi architecto beatae vitae dicta sunt
|
||||
explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut
|
||||
odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
|
||||
voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum
|
||||
quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam
|
||||
eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat
|
||||
voluptatem.
|
||||
</p>
|
||||
<p>
|
||||
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis
|
||||
suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis
|
||||
autem vel eum iure reprehenderit qui in ea voluptate velit esse quam
|
||||
nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo
|
||||
voluptas nulla pariatur?
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Seguranca };
|
38
react-project/src/components/MainInstitucional/Sobre.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import main from "./assets/modules/Main.module.scss";
|
||||
|
||||
const Sobre = () => {
|
||||
return (
|
||||
<div className={main["content"]}>
|
||||
<h2>Sobre</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
</p>
|
||||
<p>
|
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
|
||||
accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab
|
||||
illo inventore veritatis et quasi architecto beatae vitae dicta sunt
|
||||
explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut
|
||||
odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
|
||||
voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum
|
||||
quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam
|
||||
eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat
|
||||
voluptatem.
|
||||
</p>
|
||||
<p>
|
||||
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis
|
||||
suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis
|
||||
autem vel eum iure reprehenderit qui in ea voluptate velit esse quam
|
||||
nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo
|
||||
voluptas nulla pariatur?
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Sobre };
|
38
react-project/src/components/MainInstitucional/Troca.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import main from "./assets/modules/Main.module.scss";
|
||||
|
||||
const Troca = () => {
|
||||
return (
|
||||
<div className={main["content"]}>
|
||||
<h2>Troca e Devolução</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
</p>
|
||||
<p>
|
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
|
||||
accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab
|
||||
illo inventore veritatis et quasi architecto beatae vitae dicta sunt
|
||||
explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut
|
||||
odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
|
||||
voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum
|
||||
quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam
|
||||
eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat
|
||||
voluptatem.
|
||||
</p>
|
||||
<p>
|
||||
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis
|
||||
suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis
|
||||
autem vel eum iure reprehenderit qui in ea voluptate velit esse quam
|
||||
nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo
|
||||
voluptas nulla pariatur?
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Troca };
|
@ -0,0 +1,44 @@
|
||||
.breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9.72px;
|
||||
margin-bottom: 80px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
a {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
figure {
|
||||
display: contents;
|
||||
|
||||
.home {
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 31.22px;
|
||||
height: 31.25px;
|
||||
}
|
||||
}
|
||||
|
||||
.arrow {
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 8.9px;
|
||||
height: 15.62px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
color: var(--gray-100);
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,198 @@
|
||||
.forms {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
|
||||
h2 {
|
||||
font-weight: 700;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
color: var(--black);
|
||||
margin-bottom: 12px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 48px;
|
||||
line-height: 56px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&__form-col {
|
||||
margin-bottom: 12px;
|
||||
position: relative;
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 12px;
|
||||
margin-left: 15px;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--black-300);
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
border: 1px solid var(--black-300);
|
||||
border-radius: 25px;
|
||||
height: 46px;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--gray-400);
|
||||
padding: 15px 20px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: var(--gray-400);
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__terms {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: end;
|
||||
margin-bottom: 12px;
|
||||
|
||||
span {
|
||||
color: var(--red-100);
|
||||
margin-right: 2px;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
margin-right: 4.28px;
|
||||
position: relative;
|
||||
text-decoration: underline;
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
|
||||
label {
|
||||
position: absolute;
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
border: 1px solid #000000;
|
||||
border-radius: 3px;
|
||||
right: -26px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 36.4px;
|
||||
height: 35.15px;
|
||||
right: -50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
input {
|
||||
opacity: 0;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-left: 1.3px;
|
||||
margin-top: 1.5px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 30px;
|
||||
height: 28.5px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 599px) {
|
||||
margin-left: 1.6px;
|
||||
}
|
||||
|
||||
&:checked {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form-invalid-feedback {
|
||||
top: 14px;
|
||||
right: 19px;
|
||||
position: absolute;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
color: var(--red-100);
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
height: 52.44px;
|
||||
border: none;
|
||||
border-radius: 25px;
|
||||
background-color: var(--black);
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 19px;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--white);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s linear;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--black-100);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: var(--black);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 32px;
|
||||
line-height: 38px;
|
||||
height: 71px;
|
||||
}
|
||||
}
|
||||
|
||||
&__success {
|
||||
position: absolute;
|
||||
transform: translateY(100%);
|
||||
bottom: -12.56px;
|
||||
left: 0;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
color: var(--green-100);
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
.main {
|
||||
margin-left: 100px;
|
||||
margin-right: 100px;
|
||||
margin-top: 29px;
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
margin-left: 16px;
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
&__title {
|
||||
color: var(--black-100);
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
letter-spacing: 0.1em;
|
||||
text-align: center;
|
||||
margin-bottom: 80px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 48px;
|
||||
line-height: 56px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
&__wrapperNav {
|
||||
display: flex;
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
display: inherit;
|
||||
}
|
||||
|
||||
.content {
|
||||
align-self: center;
|
||||
|
||||
h2 {
|
||||
color: var(--black-100);
|
||||
font-weight: 700;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 48px;
|
||||
line-height: 56px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--gray-200);
|
||||
font-weight: 400;
|
||||
font-size: 13px;
|
||||
line-height: 15px;
|
||||
margin-top: 12px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 26px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
text-align: justify;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
.items {
|
||||
list-style: none;
|
||||
border-right: 1px solid var(--black);
|
||||
width: 302px;
|
||||
height: 285px;
|
||||
margin-right: 30px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 590px;
|
||||
height: 465px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
width: 100%;
|
||||
height: unset;
|
||||
margin-right: 0;
|
||||
border: none;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
li {
|
||||
width: inherit;
|
||||
|
||||
a {
|
||||
color: var(--gray-200);
|
||||
padding: 10px 16px;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 19px;
|
||||
transition: all 0.2s linear;
|
||||
|
||||
&:hover {
|
||||
color: var(--black);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
font-size: 32px;
|
||||
line-height: 38px;
|
||||
}
|
||||
|
||||
&.ativo {
|
||||
font-weight: 700;
|
||||
color: var(--white);
|
||||
background-color: var(--black);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
import * as Yup from "yup";
|
||||
|
||||
export default Yup.object().shape({
|
||||
name: Yup.string()
|
||||
.min(3, "Digite no mínimo 3 letras")
|
||||
.required("*Campo obrigatorio"),
|
||||
email: Yup.string().required("*Campo obrigatorio").email("E-mail inválido"),
|
||||
cpf: Yup.string()
|
||||
.matches(/^\d{3}\.\d{3}\.\d{3}\-\d{2}$/, "CPF inválido")
|
||||
.required("*Campo obrigatorio"),
|
||||
date: Yup.string()
|
||||
.matches(/^\d{2}\.\d{2}\.\d{4}$/, "Data inválida")
|
||||
.required("*Campo obrigatorio"),
|
||||
telefone: Yup.string()
|
||||
.matches(/^\([1-9]{2}\) [0-9]{5}\-[0-9]{4}$/, "Número inválido")
|
||||
.required("*Campo obrigatorio"),
|
||||
instagram: Yup.string()
|
||||
.min(3, "Digite no mínimo 3 caracteres")
|
||||
.matches(
|
||||
/^@(?!.*\.\.)(?!.*\.$)[^\W][\w.]{0,29}$/,
|
||||
"Insira @ no começo do seu user ou certifique-se que seja um user válido"
|
||||
),
|
||||
terms: Yup.boolean().oneOf([true], ""),
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
<svg width="6" height="8" viewBox="0 0 6 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M5.11608 3.60396L1.6762 0.164193C1.45738 -0.0547311 1.10261 -0.0547311 0.883896 0.164193C0.665166 0.382921 0.665166 0.737678 0.883896 0.95639L3.92766 4.00006L0.883984 7.04362C0.665255 7.26244 0.665255 7.61716 0.883984 7.83589C1.10271 8.0547 1.45747 8.0547 1.67629 7.83589L5.11617 4.39607C5.22553 4.28665 5.28015 4.1434 5.28015 4.00008C5.28015 3.85668 5.22543 3.71332 5.11608 3.60396Z" fill="#C4C4C4"/>
|
||||
</svg>
|
After Width: | Height: | Size: 510 B |
@ -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_1_306)">
|
||||
<path d="M15.8326 7.59562L14.6903 6.4533L8.40431 0.167326C8.18118 -0.0557753 7.81942 -0.0557753 7.59628 0.167326L1.31028 6.4533L0.167381 7.59623C-0.0518699 7.82324 -0.0456085 8.185 0.18141 8.40425C0.402871 8.61814 0.753946 8.61814 0.975407 8.40425L1.14226 8.23623V15.4285C1.14226 15.7442 1.3981 16 1.71372 16H14.2857C14.6013 16 14.8572 15.7442 14.8572 15.4285V8.23623L15.0246 8.40368C15.2516 8.62293 15.6134 8.61664 15.8326 8.38965C16.0465 8.16819 16.0465 7.81708 15.8326 7.59562ZM9.71409 14.8571H6.28537V10.2855H9.71409V14.8571ZM13.7142 14.8571H10.857V9.71403C10.857 9.39841 10.6011 9.14256 10.2855 9.14256H5.7139C5.39829 9.14256 5.14244 9.39841 5.14244 9.71403V14.8571H2.28518V7.09334L7.99969 1.3788L13.7142 7.09334V14.8571Z" fill="#C4C4C4"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_1_306">
|
||||
<rect width="16" height="16" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 986 B |
16
react-project/src/index.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
|
||||
import App from "./App";
|
||||
import { BrowserRouter } from "react-router-dom";
|
||||
|
||||
const root = ReactDOM.createRoot(
|
||||
document.getElementById("root") as HTMLElement
|
||||
);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
</React.StrictMode>
|
||||
);
|
23
react-project/src/pages/Institucional.tsx
Normal file
@ -0,0 +1,23 @@
|
||||
import "../assets/styles/variables.scss";
|
||||
|
||||
import { Header } from "../components/Header/Header";
|
||||
import { HeaderMobile } from "../components/Header/HeaderMobile";
|
||||
import { Main } from "../components/MainInstitucional/Main";
|
||||
import { FixedIcons } from "../components/FixedIcons/FixedIcons";
|
||||
import { Footer } from "../components/Footer/Footer";
|
||||
|
||||
const Institucional = () => {
|
||||
return (
|
||||
<>
|
||||
<header>
|
||||
<Header />
|
||||
<HeaderMobile />
|
||||
</header>
|
||||
<Main />
|
||||
<FixedIcons />
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export { Institucional };
|
1
react-project/src/react-app-env.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
/// <reference types="react-scripts" />
|
26
react-project/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"
|
||||
]
|
||||
}
|