Merge pull request 'development' (#23) from development into main

Reviewed-on: #23
This commit is contained in:
Savio Carvalho Moraes 2023-01-20 16:46:28 +00:00
commit 01c85b5223
116 changed files with 45466 additions and 73 deletions

23
.gitignore vendored Normal file
View File

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

11
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,11 @@
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"explorerExclude.backup": {}
}

View File

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

32338
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

54
package.json Normal file
View File

@ -0,0 +1,54 @@
{
"name": "my-app",
"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",
"bootstrap": "^5.2.3",
"formik": "^2.2.9",
"node-sass": "^7.0.3",
"react": "^18.2.0",
"react-bootstrap": "^2.7.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.7.0",
"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"
]
},
"main": "index.js",
"repository": "ssh://git@gitea.ecommercetools.com.br:22022/SavioCarvalhoMoraes/desafio-react-e-typescript-savio-carvalho-moraes.git",
"author": "Savio <savio.96@hotmail.com>",
"license": "MIT"
}

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

51
public/index.html Normal file
View File

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
crossorigin="anonymous"></script>
</body>
</html>

BIN
public/logo192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
public/logo512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

25
public/manifest.json Normal file
View File

@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

3
public/robots.txt Normal file
View File

@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

View File

@ -0,0 +1,139 @@
import Col from "react-bootstrap/Col";
import ListGroup from "react-bootstrap/ListGroup";
import Row from "react-bootstrap/Row";
import Tab from "react-bootstrap/Tab";
import { FormInput } from "../FormInput/FormInput";
import styles from "./accordionBody.module.scss";
const AccordionBody = () => {
return (
<Tab.Container id="list-group-tabs" defaultActiveKey="#link1">
<Row className="fileiraItens">
<Col sm={4} className="indexLista">
<ListGroup className="accList">
<ListGroup.Item variant="dark" action href="#link1">
Sobre
</ListGroup.Item>
<ListGroup.Item variant="dark" action href="#link2">
Forma de Pagamento
</ListGroup.Item>
<ListGroup.Item variant="dark" action href="#link3">
Entrega
</ListGroup.Item>
<ListGroup.Item variant="dark" action href="#link4">
Troca e Devolução
</ListGroup.Item>
<ListGroup.Item variant="dark" action href="#link5">
Segurança e Privacidade
</ListGroup.Item>
<ListGroup.Item variant="dark" action href="#link6">
Contato
</ListGroup.Item>
</ListGroup>
</Col>
<Col sm={8} className="conteudoLista">
<Tab.Content>
<Tab.Pane eventKey="#link1">
<div className="conteudo">
<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>
</Tab.Pane>
<Tab.Pane className="contato-item" eventKey="#link2">
<div className="conteudo">
<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>
</div>
</Tab.Pane>
<Tab.Pane className="contato-item" eventKey="#link3">
<div className="conteudo">
<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>
</div>
</Tab.Pane>
<Tab.Pane className="contato-item" eventKey="#link4">
<div className="conteudo">
<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>
</div>
</Tab.Pane>
<Tab.Pane className="contato-item" eventKey="#link5">
<div className="conteudo">
<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>
</div>
</Tab.Pane>
<Tab.Pane className="contato-item" eventKey="#link6">
<FormInput></FormInput>
</Tab.Pane>
</Tab.Content>
</Col>
</Row>
</Tab.Container>
);
};
export { AccordionBody };

View File

@ -0,0 +1,9 @@
.accordion-wrapper {
width: 100%;
display: flex;
flex-direction: column;
}
.accordion-item {
display: flex;
flex-direction: row;
}

View File

@ -0,0 +1,87 @@
import mais from "./assets/image/mais.png";
import { Institutional } from "../Institutional/Institutional";
import { Doubts } from "../Doubts/Doubts";
import { Contact } from "../Contact/Contact";
const AccordionFooter = () => {
return (
<div
className="accordion accordion-flush acc_footer"
id="accordionFlushExample"
>
<div className="accordion-item">
<h2 className="accordion-header" id="flush-headingOne">
<button
className="accordion-button collapsed acc_btn"
type="button"
data-bs-toggle="collapse"
data-bs-target="#flush-collapseOne"
aria-expanded="false"
aria-controls="flush-collapseOne"
>
Institucional
</button>
</h2>
<div
id="flush-collapseOne"
className="accordion-collapse collapse"
aria-labelledby="flush-headingOne"
data-bs-parent="#accordionFlushExample"
>
<div className="accordion-body">
<Institutional></Institutional>
</div>
</div>
</div>
<div className="accordion-item">
<h2 className="accordion-header" id="flush-headingTwo">
<button
className="accordion-button collapsed acc_btn"
type="button"
data-bs-toggle="collapse"
data-bs-target="#flush-collapseTwo"
aria-expanded="false"
aria-controls="flush-collapseTwo"
>
Dúvidas
</button>
</h2>
<div
id="flush-collapseTwo"
className="accordion-collapse collapse"
aria-labelledby="flush-headingTwo"
data-bs-parent="#accordionFlushExample"
>
<div className="accordion-body">
<Doubts></Doubts>
</div>
</div>
</div>
<div className="accordion-item">
<h2 className="accordion-header" id="flush-headingThree">
<button
className="accordion-button collapsed acc_btn"
type="button"
data-bs-toggle="collapse"
data-bs-target="#flush-collapseThree"
aria-expanded="false"
aria-controls="flush-collapseThree"
>
Fale Conosco
</button>
</h2>
<div
id="flush-collapseThree"
className="accordion-collapse collapse"
aria-labelledby="flush-headingThree"
data-bs-parent="#accordionFlushExample"
>
<div className="accordion-body">
<Contact></Contact>
</div>
</div>
</div>
</div>
);
};
export { AccordionFooter };

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

View File

@ -0,0 +1,12 @@
import React from "react";
import styles from "./address.module.scss";
const Address = () => {
return (
<p className={styles["endereco"]}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor
</p>
);
};
export { Address };

View File

@ -0,0 +1,22 @@
.endereco {
display: flex;
width: 234px;
height: 24px;
font-family: "Roboto";
font-style: normal;
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: capitalize;
color: white;
margin: 0 0 0 0;
align-items: center;
@media screen and (min-width: 2500px) {
display: flex;
width: 467px;
height: 47px;
font-size: 20px;
line-height: 23px;
align-items: center;
}
}

View File

@ -0,0 +1,30 @@
import homeImg from "./assets/image/home.png";
import styles from "./caminhos.module.scss";
import { Link, Outlet } from "react-router-dom";
import { Home } from "../../pages/Home";
import React, { useState } from "react";
const Caminhos = (prop: { titulo: string }) => {
return (
<>
<ul className={styles["caminhos-itens"]}>
<li className={styles["caminhos-item"]}>
<Link to="/">
<img
className={styles["home_img"]}
src={homeImg}
alt="Home image"
/>
</Link>
</li>
<li className={styles["caminhos-item"]}>
<p>&gt;</p>
</li>
<li className={styles["caminhos-item"]}>
<p>{prop.titulo}</p>
</li>
</ul>
</>
);
};
export { Caminhos };

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

View File

@ -0,0 +1,29 @@
.caminhos-itens {
display: flex;
flex-direction: row;
gap: 5px;
align-items: baseline;
margin: 30px 0 0 100px;
p {
display: flex;
font-family: "Roboto";
font-style: normal;
font-weight: 400;
font-size: 12px;
text-transform: uppercase;
color: #c4c4c4;
align-items: center;
}
@media screen and (min-width: 2500px) {
align-items: flex-start;
p {
font-size: 24px;
}
}
}
.home_img {
width: 16px;
@media screen and (min-width: 2500px) {
width: 31.25px;
}
}

View File

@ -0,0 +1,16 @@
import styles from "./cart.module.scss";
import cartImg from "./assets/image/cart.png";
const Cart = () => {
return (
<a className={styles["cartLink"]} href="/">
<img
className={styles["cartImg"]}
src={cartImg}
alt="Carrinho de compras"
/>
</a>
);
};
export { Cart };

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 B

View File

@ -0,0 +1,17 @@
.cartLink {
display: flex;
width: 28px;
height: 28px;
@media screen and (min-width: 2500px) {
width: 54.68px;
height: 38.91px;
}
}
.cartImg {
width: 28px;
height: 28px;
@media screen and (min-width: 2500px) {
width: 54.68px;
height: 54.68px;
}
}

View File

@ -0,0 +1,30 @@
import React from "react";
import styles from "./contact.module.scss";
const Contact = () => {
return (
<ul className={styles["contatosInfo"]}>
<li>
<h2>FALE CONOSCO</h2>
</li>
<li>
<p>Atendimento Ao Consumidor</p>
</li>
<li>
<a className={styles["contatoTel"]} href="tel:+551141599504">
(11) 4159 9504
</a>
</li>
<li>
<p>Atendimento Online</p>
</li>
<li>
<a className={styles["contatoCel"]} href="tel:+551199433">
(11) 99433 8825
</a>
</li>
</ul>
);
};
export { Contact };

View File

@ -0,0 +1,37 @@
.contatosInfo {
li {
margin-bottom: 12px;
}
h2 {
font-weight: 500;
font-size: 14px;
line-height: 16px;
@media screen and (min-width: 2500px) {
font-size: 38px;
line-height: 32.81px;
}
}
p {
font-size: 12px;
line-height: 14px;
font-weight: 500;
@media screen and (min-width: 2500px) {
font-size: 24px;
line-height: 28.13px;
}
}
a {
text-decoration: none;
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: #030303;
@media screen and (min-width: 2500px) {
font-size: 24px;
line-height: 28.13px;
}
}
.contatoCel {
text-decoration: underline;
}
}

View File

@ -0,0 +1,13 @@
import React from "react";
import m3Logo from "./assets/image/m3Logo.png";
import styles from "./developedBy.module.scss";
const DevelopedBy = () => {
return (
<div className={styles["developed-wrapper"]}>
<p>Developed by</p>
<img src={m3Logo} alt="m3Logo" />
</div>
);
};
export { DevelopedBy };

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,29 @@
.developed-wrapper {
display: flex;
flex-direction: row;
align-items: center;
p {
display: flex;
font-family: "Roboto";
font-style: normal;
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: capitalize;
margin-right: 13px;
color: white;
margin: 0 13px 0 0;
@media screen and (min-width: 2500px) {
font-size: 20px;
}
}
img {
width: 28.66px;
height: 15.65px;
@media screen and (min-width: 2500px) {
width: 34.15px;
height: 23.87px;
}
}
}

View File

@ -0,0 +1,30 @@
import React from "react";
import styles from "./doubts.module.scss";
const Doubts = () => {
return (
<ul className={styles["doubtsList"]}>
<li>
<a href="/">
<h2>DÚVIDAS</h2>
</a>
</li>
<li>
<a href="/">Entrega</a>
</li>
<li>
<a href="/">Pagamento</a>
</li>
<li>
<a href="/">Trocas e Devoluções</a>
</li>
<li>
<a className={styles["duvidasFreq"]} href="/">
Dúvidas Frequentes
</a>
</li>
</ul>
);
};
export { Doubts };

View File

@ -0,0 +1,32 @@
.doubtsList {
li {
color: #303030;
margin-bottom: 12px;
@media screen and (min-width: 2500px) {
}
}
a {
font-size: 12px;
line-height: 14.06px;
font-weight: 400;
text-decoration: none;
color: #303030;
@media screen and (min-width: 2500px) {
font-size: 24px;
line-height: 29px;
}
h2 {
font-size: 14px;
font-weight: 500;
line-height: 16.41px;
color: #303030;
@media screen and (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
}
.duvidasFreq {
text-decoration: underline;
}
}

View File

@ -0,0 +1,12 @@
import React from "react";
import styles from "./enter.module.scss";
const Enter = () => {
return (
<a className={styles["enterLink"]} href="/">
ENTRAR
</a>
);
};
export { Enter };

View File

@ -0,0 +1,15 @@
.enterLink {
display: flex;
width: 53px;
height: 16px;
font-weight: 400;
font-size: 14px;
color: #ffffff;
text-decoration: none;
@media screen and (min-width: 2500px) {
width: 105px;
height: 33px;
font-size: 28px;
}
}

View File

@ -0,0 +1,269 @@
import React from "react";
import {
useFormik,
Formik,
Form,
Field,
ErrorMessage,
FormikHelpers,
} from "formik";
import * as Yup from "yup";
import styles from "./formInput.module.scss";
interface IFormikValues {
nome: string;
email: string;
cpf: string;
nascimento: string;
tel: string;
instagram: string;
termos: boolean;
}
const FormInput = () => {
const initialValues = {
nome: "",
email: "",
cpf: "",
nascimento: "",
tel: "",
instagram: "",
termos: false,
};
validationSchema: Yup.object({
nome: Yup.string()
.required("*Campo Obrigatório")
.test(
"is-full-name",
"Please enter both your first and last name",
function (value: any) {
const nameArr = value.split(" ");
return nameArr.length >= 2;
}
),
email: Yup.string().required("*Campo Obrigatório"),
cpf: Yup.string().required("*Campo Obrigatório"),
nascimento: Yup.string().required("*Campo Obrigatório"),
tel: Yup.string().required("*Campo Obrigatório"),
instagram: Yup.string().required("*Campo Obrigatório"),
termos: Yup.boolean().required("*").isTrue(),
});
const validacao = Yup.object().shape({
nome: Yup.string()
.required("*Campo Obrigatório")
.test(
"Nome Completo",
"Preencha com um nome e sobrenome válido.",
function (value: any) {
if (value === "" || value === undefined) {
return false;
} else {
const nameArr = value.split(" ");
return nameArr.length >= 2;
}
}
),
email: Yup.string().required("*Campo Obrigatório").email("E-mail inválido"),
cpf: Yup.string()
.required("*Campo Obrigatório")
.test("cpf", "Preencha com um cpf válido.", function (value: any) {
if (value === "" || value === undefined) {
return false;
} else {
const cpfRegex = /^\d{3}\.\d{3}\.\d{3}\-\d{2}$/;
const regex = new RegExp(cpfRegex);
return regex.test(value);
}
}),
nascimento: Yup.string()
.required("*Campo Obrigatório")
.test(
"nascimento",
"Preencha com uma data válida.",
function (value: any) {
if (value === "" || value === undefined) {
return false;
} else {
const nascimentoRegex =
"^(0[1-9]|[12][0-9]|3[01]).(0[1-9]|1[012]).[12][0-9]{3}$";
const regex = new RegExp(nascimentoRegex);
return regex.test(value);
}
}
),
tel: Yup.string()
.required("*Campo Obrigatório")
.test(
"telefone",
"Preencha com um telefone válido.",
function (value: any) {
if (value === "" || value === undefined) {
return false;
} else {
const telefoneRegex =
"^((\\+\\d{2}\\s)?\\(\\d{2}\\)\\s?\\d{4}\\d?\\-\\d{4})?$";
const regex = new RegExp(telefoneRegex);
return regex.test(value);
}
}
),
instagram: Yup.string(),
termos: Yup.boolean().oneOf([true], "*"),
});
const handleFormikSubmit = (values: IFormikValues) => {
console.log(values);
};
return (
<div className={styles["form-wrapper"]}>
<h2>Preencha o formulário</h2>
<Formik
onSubmit={handleFormikSubmit}
initialValues={initialValues}
validationSchema={validacao}
>
{({ errors, touched }) => (
<Form>
<div className={styles["form-col"]}>
<div className={styles["form-text"]}>
<label htmlFor="nome">Nome</label>
<ErrorMessage
component="span"
name="nome"
className={styles["form-error"]}
/>
</div>
<Field
type="text"
id="nome"
name="nome"
placeholder="Seu nome completo"
className={errors.nome && touched.nome && "invalid"}
/>
</div>
<div className={styles["form-col"]}>
<div className={styles["form-text"]}>
<label htmlFor="email">E-mail</label>
<ErrorMessage
component="span"
name="email"
className={styles["form-error"]}
/>
</div>
<Field
type="text"
id="email"
name="email"
placeholder="Seu e-mail"
className={errors.email && touched.email && "invalid"}
/>
</div>
<div className={styles["form-col"]}>
<div className={styles["form-text"]}>
<label htmlFor="cpf">CPF</label>
<ErrorMessage
component="span"
name="cpf"
className={styles["form-error"]}
/>
</div>
<Field
type="text"
id="cpf"
name="cpf"
placeholder="000.000.000-00"
className={errors.cpf && touched.cpf && "invalid"}
/>
</div>
<div className={styles["form-col"]}>
<div className={styles["form-text"]}>
<label htmlFor="nascimento">Data de Nascimento:</label>
<ErrorMessage
component="span"
name="nascimento"
className={styles["form-error"]}
/>
</div>
<Field
type="text"
id="nascimento"
name="nascimento"
placeholder="00.00.0000"
className={errors.nascimento && touched.nascimento && "invalid"}
/>
</div>
<div className={styles["form-col"]}>
<div className={styles["form-text"]}>
<label htmlFor="tel">Telefone</label>
<ErrorMessage
component="span"
name="tel"
className={styles["form-error"]}
/>
</div>
<Field
type="text"
id="tel"
name="tel"
placeholder="(00) 00000-0000"
className={errors.tel && touched.tel && "invalid"}
/>
</div>
<div className={styles["form-col"]}>
<div className={styles["form-text"]}>
<label htmlFor="instagram">Instagram</label>
<ErrorMessage
component="span"
name="instagram"
className={styles["form-error"]}
/>
</div>
<Field
type="text"
id="instagram"
name="instagram"
placeholder="@seuuser"
className={errors.instagram && touched.instagram && "invalid"}
/>
</div>
<div className={styles["form-col"] && styles["form-check"]}>
<div className={styles["form-text-check"]}>
<ErrorMessage
component="span"
name="termos"
className={styles["form-error"]}
/>
<label htmlFor="check">
<a href="/">Declaro que li e aceito</a>
</label>
</div>
<Field
type="checkbox"
id="check"
name="termos"
className={
errors.termos &&
touched.termos &&
"invalid" &&
styles["form-checkbox"]
}
/>
</div>
<button className={styles["form-btn"]} type="submit">
Cadastre-se
</button>
</Form>
)}
</Formik>
</div>
);
};
export { FormInput };

View File

@ -0,0 +1,109 @@
.form-wrapper {
width: 100%;
//max-width: 748px;
//min-height: 100vh;
margin: 0 auto;
//padding: 0 12px;
display: flex;
justify-content: center;
flex-direction: column;
}
.form-wrapper h2 {
font-weight: 700;
font-size: 27px;
margin: 0 0 12px 0;
@media screen and (min-width: 2500px) {
font-size: 48px;
}
@media screen and (max-width: 1024px) {
display: flex;
align-items: center;
justify-content: center;
}
}
.form-wrapper form {
width: 100%;
}
.form-col {
display: flex;
flex-direction: column;
margin-bottom: 12px;
}
.form-col label {
font-weight: 400;
font-size: 14px;
color: #100d0e;
margin: 0 0 4px 0;
@media screen and (min-width: 2500px) {
font-size: 28px;
}
}
.form-col input {
background: #ffffff;
border: 1px solid #100d0e;
border-radius: 25px;
height: 46px;
padding: 10px 0 15px 20px;
&::placeholder {
font-family: "Roboto";
font-size: 14px;
color: #b9b7b7;
}
@media screen and (min-width: 2500px) {
height: 63px;
&::placeholder {
font-size: 28px;
}
}
}
.form-wrapper button {
width: 100%;
height: 52.44px;
background: #000000;
border-radius: 25px;
color: #ffffff;
font-family: "Roboto";
font-size: 16px;
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 400;
@media screen and (min-width: 2500px) {
height: 71px;
font-size: 32px;
}
}
.form-text {
display: flex;
justify-content: space-between;
}
.form-error {
color: red;
}
.form-check {
display: flex;
flex-direction: rows;
justify-content: center;
align-items: center;
}
.form-check label {
a {
color: #000;
}
margin-right: 5px;
}
.form-checkbox {
}
#check {
display: flex;
align-items: center;
font-size: 15px;
border: 1px solid #000000;
border-radius: 3px;
}
.form-btn {
margin-top: 12px;
}

View File

@ -0,0 +1,30 @@
import React from "react";
import styles from "./institutional.module.scss";
const Institutional = () => {
return (
<ul className={styles["institutionalList"]}>
<li>
<a href="/">
<h2>INSTITUCIONAL</h2>
</a>
</li>
<li>
<a href="/">Quem somos</a>
</li>
<li>
<a href="/">Política de Privacidade</a>
</li>
<li>
<a href="/">Segurança</a>
</li>
<li>
<a className={styles["revendedor"]} href="/">
Seja um Revendedor
</a>
</li>
</ul>
);
};
export { Institutional };

View File

@ -0,0 +1,32 @@
.institutionalList {
li {
color: #303030;
margin-bottom: 12px;
@media screen and (min-width: 2500px) {
}
}
a {
font-size: 12px;
line-height: 14.06px;
font-weight: 400;
text-decoration: none;
color: #303030;
@media screen and (min-width: 2500px) {
font-size: 24px;
line-height: 29px;
}
h2 {
font-size: 14px;
font-weight: 500;
line-height: 16.41px;
color: #303030;
@media screen and (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
}
.revendedor {
text-decoration: underline;
}
}

View File

@ -0,0 +1,14 @@
import React from "react";
import m3LogoImg from "./assets/image/Logo-M3Academy.svg";
import styles from "./m3logo.module.scss";
const M3Logo = () => {
return (
<img
className={styles["M3LogoImg"]}
src={m3LogoImg}
alt="M3 Academy logo"
/>
);
};
export { M3Logo };

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,6 @@
.M3LogoImg {
width: 136px;
@media screen and (min-width: 2500px) {
width: 265px;
}
}

View File

@ -0,0 +1,80 @@
import { M3Logo } from "../M3Logo/M3Logo";
import styles from "./navigationBar.module.scss";
import m3LogoImg from "./assets/image/Logo-M3Academy.svg";
import { Cart } from "../Cart/Cart";
import React, { useState } from "react";
import { Link, Outlet } from "react-router-dom";
import { Enter } from "../Enter/Enter";
const NavigationBar = () => {
return (
<>
<nav
className="navbar navbar-expand-xpp bg-body-tertiary "
id="navegador"
>
<div className="container-fluid">
<button
className="navbar-toggler"
type="button"
data-bs-toggle="offcanvas"
data-bs-target="#navbarOffcanvasLg"
aria-controls="navbarOffcanvasLg"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span className="navbar-toggler-icon"></span>
</button>
<a className="navbar-brand" href="#">
<img
className="logoM3Img"
src={m3LogoImg}
alt="M3 Academy mobile"
/>
</a>
<div className="carrinho-wrapper">
<Cart />
</div>
<div
className="offcanvas offcanvas-end"
id="navbarOffcanvasLg"
aria-labelledby="navbarOffcanvasLgLabel"
>
<div className="offcanvas-header">
<div className="entrar_wrapper">
<Enter></Enter>
</div>
<button
type="button"
className="btn-close text-reset"
data-bs-dismiss="offcanvas"
aria-label="Close"
></button>
</div>
<ul className="navbar-nav">
<li className="nav-item">
<Link className="nav-link" to="/cursos">
CURSOS
</Link>
</li>
<li className="nav-item">
<Link className="nav-link" to="/saiba">
SAIBA MAIS
</Link>
</li>
<li className="nav-item">
<Link className="nav-link" to="/institucionais">
INSTITUCIONAIS
</Link>
</li>
</ul>
</div>
</div>
</nav>
<Outlet />
</>
);
};
export { NavigationBar };

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1 @@

View File

@ -0,0 +1,19 @@
import React from "react";
import styles from "./newsletter.module.scss";
const Newsletter = () => {
return (
<label className={styles["newsForm"]}>
ASSINE NOSSA NEWSLETTER
<div className={styles["newsForm-wrapper"]}>
<input
className={styles["newsForm-input"]}
type="text"
placeholder="E-mail"
/>
<button className={styles["newsForm-btn"]}>ENVIAR</button>
</div>
</label>
);
};
export { Newsletter };

View File

@ -0,0 +1,96 @@
.newsForm {
width: 474px;
height: 72px;
display: flex;
flex-direction: column;
font-weight: 500;
font-size: 18px;
font-family: "Roboto";
font-variant: small-caps;
line-height: 21px;
letter-spacing: 0.05em;
font-style: normal;
color: #303030;
margin: 16px 0 16px 0;
@media screen and (min-width: 2500px) {
font-size: 36px;
width: 922px;
height: 109.24px;
}
}
.newsForm-wrapper {
display: flex;
flex-direction: row;
margin-top: 8px;
}
.newsForm-input {
margin-right: 8px;
padding: 13px 16px;
background: #ffffff;
border: 1px solid #e5e5e5;
border-radius: 4px;
width: 474px;
height: 42px;
&::placeholder {
font-weight: 400;
font-size: 14px;
color: #c4c4c4;
font-family: "Roboto";
@media screen and (min-width: 2500px) {
font-size: 28px;
}
}
@media screen and (min-width: 2500px) {
width: 636px;
height: 59px;
margin-top: 8px;
}
}
.newsForm-btn {
display: flex;
width: 126px;
height: 42px;
background: #000000;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
border-radius: 4px;
padding: 14px 20px;
color: white;
font-weight: 700;
font-size: 12px;
align-items: center;
justify-content: center;
@media screen and (min-width: 2500px) {
width: 246px;
height: 59px;
font-size: 24px;
}
}
@media screen and (max-width: 1024px) {
.newsForm {
width: 100%;
margin: 16px;
padding: 0 16px 0 16px;
font-family: "Roboto";
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 16px;
letter-spacing: 0.05em;
font-variant: small-caps;
color: #303030;
}
.newsForm-wrapper {
display: flex;
flex-direction: column;
}
.newsForm-btn {
width: 100%;
margin-top: 16px;
}
.newsForm-input {
width: 100%;
}
}

View File

@ -0,0 +1,44 @@
import React from "react";
import masterImg from "./assets/image/Master.png";
import visaImg from "./assets/image/Visa.png";
import dinersImg from "./assets/image/Diners.png";
import eloImg from "./assets/image/Elo.png";
import hiperImg from "./assets/image/Hiper.png";
import paypalImg from "./assets/image/Paypal.png";
import boletoImg from "./assets/image/Boleto.png";
import vtexImg from "./assets/image/vtex-pci-200.png";
import styles from "./payments.module.scss";
const Payments = () => {
return (
<ul className={styles["paymentsList"]}>
<li className={styles["paymentsItem"]}>
<img src={masterImg} alt="masterCard" />
</li>
<li className={styles["paymentsItem"]}>
<img src={visaImg} alt="visaCard" />
</li>
<li className={styles["paymentsItem"]}>
<img src={dinersImg} alt="dinersCard" />
</li>
<li className={styles["paymentsItem"]}>
<img src={eloImg} alt="eloCard" />
</li>
<li className={styles["paymentsItem"]}>
<img src={hiperImg} alt="hiperCard" />
</li>
<li className={styles["paymentsItem"]}>
<img src={paypalImg} alt="paypalCard" />
</li>
<li className={styles["paymentsItem"]}>
<img src={boletoImg} alt="boletoCard" />
</li>
</ul>
);
};
const VtexPci = () => {
return <img className={styles["paymentsPci"]} src={vtexImg} alt="vtx Pci" />;
};
export { Payments, VtexPci };

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@ -0,0 +1,29 @@
.paymentsList {
display: flex;
flex-direction: row;
gap: 12px;
padding: 0 0 0 0;
}
.paymentsItem {
img {
width: 35px;
height: 20.2px;
@media screen and (min-width: 2500px) {
width: 70px;
height: 40.25px;
}
@media screen and (max-width: 1024px) {
width: 30px;
height: 17px;
}
}
}
.paymentsPci {
width: 54.61px;
height: 34px;
@media screen and (min-width: 2500px) {
width: 106px;
height: 66px;
}
}

View File

@ -0,0 +1,13 @@
import React from "react";
import vtexLogo from "./assets/image/vtexLogo.png";
import styles from "./poweredBy.module.scss";
const PoweredBy = () => {
return (
<div className={styles["powered-wrapper"]}>
<p>Powered by</p>
<img src={vtexLogo} alt="vtexLogo" />
</div>
);
};
export { PoweredBy };

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1,29 @@
.powered-wrapper {
display: flex;
flex-direction: row;
align-items: center;
p {
display: flex;
font-family: "Roboto";
font-style: normal;
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: capitalize;
margin-right: 13px;
color: white;
margin: 0 13px 0 0;
@media screen and (min-width: 2500px) {
font-size: 20px;
}
}
img {
width: 44.92px;
height: 16px;
@media screen and (min-width: 2500px) {
width: 84.22px;
height: 30px;
}
}
}

View File

@ -0,0 +1,23 @@
import React from "react";
import { Routes, Route, BrowserRouter } from "react-router-dom";
import { Home } from "../../pages/Home";
import { Teste } from "../../pages/Teste";
import { Cursos } from "../../pages/Cursos";
import { Institucionais } from "../../pages/Institucionais";
import { Saiba } from "../../pages/Saiba";
const RoutesUrl = () => {
return (
<Routes>
<Route path="/" element={<Home titulo="Home" />}></Route>
<Route path="/cursos" element={<Cursos titulo="Cursos" />} />
<Route
path="/institucionais"
element={<Institucionais titulo="Institucional" />}
/>
<Route path="/saiba" element={<Saiba titulo="Saiba mais" />} />
</Routes>
);
};
export { RoutesUrl };

View File

@ -0,0 +1,32 @@
import React from "react";
import setaImg from "../Whatsapp/assets/image/seta.png";
function topFunction() {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}
const ScrollPage = () => {
let mybutton = document.getElementById("myBtn") as HTMLElement;
function scrollFunction() {
if (
document.body.scrollTop > 80 ||
document.documentElement.scrollTop > 80
) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
window.onscroll = function () {
scrollFunction();
};
return (
<button onClick={() => topFunction()} id="myBtn" title="Ir para topo">
<img src={setaImg} alt="seta" />
</button>
);
};
export { ScrollPage };

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./searchBox.module.scss";
import searchImg from "./assets/image/search_2.png";
const SearchBox = () => {
return (
<div className={styles["search-wrapper"]}>
<input
className={styles["search-input"]}
id="title-name"
name="title-name"
type="text"
placeholder="Buscar..."
required
/>
<button className={styles["buscaBtn"]}>
<img
className={styles["searchImg"]}
alt="Icone de busca"
src={searchImg}
/>
</button>
</div>
);
};
export { SearchBox };

Binary file not shown.

After

Width:  |  Height:  |  Size: 943 B

View File

@ -0,0 +1,67 @@
.search-wrapper {
display: flex;
flex-direction: row;
}
.search-input {
display: flex;
flex-direction: row;
align-items: center;
padding: 7px 16px;
gap: 10px;
width: 264px;
height: 32px;
font-size: 28px;
background: #ffffff;
font-size: 14px;
border: 2px solid #f2f2f2;
border-radius: 5px;
@media screen and (min-width: 2500px) {
width: 515.62px;
height: 57px;
font-size: 28px;
}
@media screen and (max-width: 1024px) {
width: 992px;
height: 36px;
margin: 20px 0 20px 0;
}
}
.buscaBtn {
position: relative;
width: 18px;
height: 18px;
border-color: transparent;
border-radius: 5px;
background-color: white;
right: 30px;
top: 0px;
&::placeholder {
color: #c4c4c4;
font-weight: 400;
font-size: 14px;
}
@media screen and (min-width: 2500px) {
width: 35.15px;
height: 35.15px;
&::placeholder {
font-size: 28px;
}
right: 54px;
top: 10px;
}
@media screen and (max-width: 1024px) {
right: 30px;
top: 23px;
}
}
.searchImg {
width: 18px;
height: 18px;
border-radius: 5px;
@media screen and (min-width: 2500px) {
width: 35.15px;
height: 35.15px;
}
}

View File

@ -0,0 +1,46 @@
import React from "react";
import styles from "./socials.module.scss";
import facebookImg from "./assets/images/Facebook.png";
import instagramImg from "./assets/images/Instagram.png";
import twitterImg from "./assets/images/Twitter.png";
import youtubeImg from "./assets/images/Youtube.png";
import linkedinImg from "./assets/images/Linkedin.png";
const Socials = () => {
return (
<div className={styles["socials-wrapper"]}>
<ul className={styles["socialsList"]}>
<li className={styles["socials-item"]}>
<a href="">
<img src={facebookImg} alt="Facebook" />
</a>
</li>
<li className={styles["socials-item"]}>
<a href="">
<img src={instagramImg} alt="Instagram" />
</a>
</li>
<li className={styles["socials-item"]}>
<a href="">
<img src={twitterImg} alt="Twitter" />
</a>
</li>
<li className={styles["socials-item"]}>
<a href="">
<img src={youtubeImg} alt="Youtube" />
</a>
</li>
<li className={styles["socials-item"]}>
<a href="">
<img src={linkedinImg} alt="Linkedin" />
</a>
</li>
</ul>
<a className={styles["siteLink"]} href="/">
www.loremipsum.com
</a>
</div>
);
};
export { Socials };

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -0,0 +1,36 @@
.socials-wrapper {
.socialsList {
display: flex;
flex-direction: row;
margin-bottom: 12px;
li {
margin-right: 10px;
}
padding: 0 0 0 0;
}
a {
text-decoration: none;
font-weight: 400;
font-size: 14px;
line-height: 16.41px;
color: #030303;
@media screen and (min-width: 2500px) {
font-size: 28px;
line-height: 32.81px;
}
}
img {
width: 35px;
height: 35px;
@media screen and (min-width: 2500px) {
width: 70px;
height: 70px;
}
}
}
@media screen and (max-width: 1024px) {
.siteLink {
display: none;
}
}

View File

@ -0,0 +1,15 @@
import React from "react";
import whatsappImg from "./assets/image/whatsapp.png";
import styles from "./whatsapp.module.scss";
const Whatsapp = () => {
return (
<div className={styles["whatsapp-wrapper"]}>
<a href="https://wa.me/11994338825" target="_blank">
<img src={whatsappImg} alt="Whatsapp" />
</a>
</div>
);
};
export { Whatsapp };

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -0,0 +1,10 @@
.whatsapp-wrapper {
img {
width: 34px;
height: 34px;
@media screen and (min-width: 2500px) {
width: 66px;
height: 66px;
}
}
}

30
src/index.tsx Normal file
View File

@ -0,0 +1,30 @@
import React from "react";
import ReactDOM from "react-dom/client";
import "./styles/main.scss";
import { BrowserRouter, Route } from "react-router-dom";
import { Home } from "./pages/Home";
import { Teste } from "./pages/Teste";
import { Cursos } from "./pages/Cursos";
import { RoutesUrl } from "./components/Router/Router";
import { Header } from "./sectors/Header/Header";
import { Footer } from "./sectors/Footer/Footer";
import { Newsletter } from "./components/Newsletter/Newsletter";
import { ContactWhat } from "./sectors/ContactWhat/ContactWhat";
const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement
);
root.render(
<React.StrictMode>
<BrowserRouter>
<ContactWhat></ContactWhat>
<Header></Header>
<RoutesUrl></RoutesUrl>
<Footer></Footer>
</BrowserRouter>
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals

1
src/logo.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

14
src/pages/Cursos.tsx Normal file
View File

@ -0,0 +1,14 @@
import React from "react";
import { CursosBody } from "../sectors/Body/CursosBody";
import { Caminhos } from "../components/Caminhos/Caminhos";
import { Header } from "../sectors/Header/Header";
const Cursos = (prop: { titulo: string }) => {
return (
<div>
<Caminhos titulo={prop.titulo}></Caminhos>
<CursosBody></CursosBody>
</div>
);
};
export { Cursos };

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

@ -0,0 +1,12 @@
import React from "react";
import { HomeBody } from "../sectors/Body/HomeBody";
const Home = (prop: { titulo: string }) => {
return (
<div>
<HomeBody></HomeBody>
</div>
);
};
export { Home };

View File

@ -0,0 +1,12 @@
import { Caminhos } from "../components/Caminhos/Caminhos";
import { InstitucionaisBody } from "../sectors/Body/InstitucionaisBody";
const Institucionais = (prop: { titulo: string }) => {
return (
<div>
<Caminhos titulo={prop.titulo}></Caminhos>
<InstitucionaisBody></InstitucionaisBody>
</div>
);
};
export { Institucionais };

13
src/pages/Saiba.tsx Normal file
View File

@ -0,0 +1,13 @@
import React from "react";
import { SaibaBody } from "../sectors/Body/SaibaBody";
import { Caminhos } from "../components/Caminhos/Caminhos";
const Saiba = (prop: { titulo: string }) => {
return (
<div>
<Caminhos titulo={prop.titulo}></Caminhos>
<SaibaBody></SaibaBody>
</div>
);
};
export { Saiba };

13
src/pages/Teste.tsx Normal file
View File

@ -0,0 +1,13 @@
import React from "react";
import { Header } from "../sectors/Header/Header";
import { Caminhos } from "../components/Caminhos/Caminhos";
const Teste = (prop: { titulo: string }) => {
return (
<div>
<Caminhos titulo={prop.titulo}></Caminhos>
</div>
);
};
export { Teste };

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

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

View File

@ -0,0 +1,11 @@
import React from "react";
const CursosBody = () => {
return (
<div className="body-wrapper">
<h2 className="body-title">CURSOS</h2>;
</div>
);
};
export { CursosBody };

View File

@ -0,0 +1,11 @@
import React from "react";
const HomeBody = () => {
return (
<div className="body-wrapper">
<h2 className="body-title">BEM-VINDO</h2>
</div>
);
};
export { HomeBody };

View File

@ -0,0 +1,12 @@
import React from "react";
import { AccordionBody } from "../../components/AccordionBody/AccordionBody";
const InstitucionaisBody = () => {
return (
<div className="body-wrapper">
<h2 className="body-title">INSTITUCIONAL</h2>
<AccordionBody></AccordionBody>
</div>
);
};
export { InstitucionaisBody };

View File

@ -0,0 +1,11 @@
import React from "react";
const SaibaBody = () => {
return (
<div className="body-wrapper">
<h2 className="body-title">SAIBA MAIS</h2>
</div>
);
};
export { SaibaBody };

View File

@ -0,0 +1,13 @@
import React from "react";
import { Whatsapp } from "../../components/Whatsapp/Whatsapp";
import { ScrollPage } from "../../components/ScrollPage/ScrollPage";
const ContactWhat = () => {
return (
<div className="scroll-wrapper">
<Whatsapp></Whatsapp>
<ScrollPage></ScrollPage>
</div>
);
};
export { ContactWhat };

View File

@ -0,0 +1,23 @@
import { Address } from "../../../components/Address/Address";
import { Payments } from "../../../components/Payments/Payments";
import { VtexPci } from "../../../components/Payments/Payments";
import { PoweredBy } from "../../../components/PoweredBy/PoweredBy";
import { DevelopedBy } from "../../../components/DevelopedBy/DevelopedBy";
const BottomFooter = () => {
return (
<div className="bottom_footer">
<Address></Address>
<div className="bottom_footer_item pagamentos">
<Payments></Payments>
<p>|</p>
<VtexPci></VtexPci>
</div>
<div className="bottom_footer_item creation">
<PoweredBy></PoweredBy>
<DevelopedBy></DevelopedBy>
</div>
</div>
);
};
export { BottomFooter };

View File

@ -0,0 +1,14 @@
import { TopFooter } from "./TopFooter/TopFooter";
import { BottomFooter } from "./BottomFooter/BottomFooter";
import { Newsletter } from "../../components/Newsletter/Newsletter";
const Footer = () => {
return (
<div className="footer-wrapper">
<Newsletter></Newsletter>
<TopFooter></TopFooter>
<BottomFooter></BottomFooter>
</div>
);
};
export { Footer };

View File

@ -0,0 +1,32 @@
import { Institutional } from "../../../components/Institutional/Institutional";
import { Doubts } from "../../../components/Doubts/Doubts";
import { Contact } from "../../../components/Contact/Contact";
import { Socials } from "../../../components/Socials/Socials";
import { Whatsapp } from "../../../components/Whatsapp/Whatsapp";
import { AccordionFooter } from "../../../components/AccordionFooter/AccordionFooter";
const TopFooter = () => {
return (
<>
<div className="top_footer_wrapper">
<Institutional></Institutional>
<Doubts></Doubts>
<Contact></Contact>
<div className="top_footer_socials">
<Socials></Socials>
</div>
</div>
<div className="top_footerMob_wrapper">
<AccordionFooter></AccordionFooter>
<div className="top_footer_socials">
<Socials></Socials>
</div>
</div>
</>
);
};
export { TopFooter };

View File

@ -0,0 +1,14 @@
import { NavigationBar } from "../../../components/NavigationBar/NavigationBar";
import { SearchBox } from "../../../components/SearchBox/SearchBox";
const BottomHeader = () => {
return (
<div className="bottom_header">
<NavigationBar></NavigationBar>
<div className="search-wrapper">
<SearchBox></SearchBox>
</div>
</div>
);
};
export { BottomHeader };

View File

@ -0,0 +1,13 @@
import React from "react";
import { TopHeader } from "./TopHeader/TopHeader";
import { BottomHeader } from "./BottomHeader/BottomHeader";
const Header = () => {
return (
<header className="header">
<TopHeader />
<BottomHeader></BottomHeader>
</header>
);
};
export { Header };

View File

@ -0,0 +1,23 @@
import React from "react";
import styles from "./styles.module.scss";
import { M3Logo } from "../../../components/M3Logo/M3Logo";
import { SearchBox } from "../../../components/SearchBox/SearchBox";
import { Enter } from "../../../components/Enter/Enter";
import { Cart } from "../../../components/Cart/Cart";
const TopHeader = () => {
return (
<div className="top_header">
<M3Logo></M3Logo>
<div className="search_box">
<SearchBox></SearchBox>
</div>
<div className="sign_up">
<Enter></Enter>
<Cart></Cart>
</div>
</div>
);
};
export { TopHeader };

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 943 B

View File

@ -0,0 +1,62 @@
/*.TopHeader {
width: 100%;
display: flex;
flex-direction: row;
height: 101px;
.logoAcademyImg {
width: 262px;
height: 50.5px;
margin-left: 100px;
margin-right: 626.38px;
}
.search-wrapper {
//background: #fff;
display: flex;
flex-direction: row;
width: 515.62px;
//width: 20.62%;
height: 57px;
margin-right: 677.38px;
.search-input {
width: 515.62px;
height: 57px;
border: 2px solid #f0f0f0;
border-radius: 5px;
&::placeholder {
padding: 3px;
color: black;
}
}
.buscaBtn {
width: 100px;
height: 50px;
position: relative;
background-color: white;
right: 160px;
top: 7px;
border: white;
.searchImg {
width: 35.15px;
height: 35.15px;
img {
margin: 0 0 0 0;
}
}
}
}
.loginLink {
height: 300px;
color: white;
}
.cartLink {
width: 54px;
height: 54px;
.cartImg {
width: 54px;
height: 54px;
}
}
}
/*

5
src/setupTests.ts Normal file
View File

@ -0,0 +1,5 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';

View File

@ -0,0 +1,20 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body,
input,
button {
font-family: "Roboto";
font-size: 16px;
color: #333;
}
button {
cursor: pointer;
}
li {
list-style-type: none;
}

View File

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

Some files were not shown because too many files have changed in this diff Show More