release/header #19

Merged
luizfelipe9627 merged 37 commits from release/header into main 2023-01-19 02:56:32 +00:00
81 changed files with 31541 additions and 0 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*

29074
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

47
package.json Normal file
View File

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

19
public/index.html Normal file
View 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="Desafio 5 - M3 Academy" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<title>M3 Academy - Desafio 5</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>

BIN
src/assets/img/boleto.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

BIN
src/assets/img/diners.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
src/assets/img/elo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 B

BIN
src/assets/img/hiper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 748 B

BIN
src/assets/img/master.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 735 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 886 B

BIN
src/assets/img/visa.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

BIN
src/assets/img/vtex.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -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.0547314 1.10261 -0.0547314 0.883896 0.164193C0.665166 0.382921 0.665166 0.737679 0.883896 0.95639L3.92766 4.00006L0.883984 7.04362C0.665255 7.26244 0.665255 7.61716 0.883984 7.83589C1.10271 8.0547 1.45747 8.0547 1.67629 7.83589L5.11617 4.39607C5.22553 4.28665 5.28015 4.1434 5.28015 4.00008C5.28015 3.85668 5.22543 3.71332 5.11608 3.60396Z" fill="#C4C4C4"/>
</svg>

After

Width:  |  Height:  |  Size: 510 B

View File

@ -0,0 +1,3 @@
<svg width="13" height="24.14" viewBox="0 0 25 13" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M23.7428 11.3959C23.741 11.6959 23.6177 11.9953 23.373 12.226L23.3728 12.2261C22.8668 12.7035 22.037 12.7035 21.5311 12.2261L21.5232 12.2345L21.5311 12.2261L12.3457 3.5599L12.0712 3.30091L11.7967 3.5599L2.61178 12.2258C2.10549 12.7033 1.27571 12.7032 0.769767 12.2259L0.769708 12.2258C0.525704 11.9957 0.402467 11.6972 0.400037 11.398C0.401876 11.0981 0.525111 10.7986 0.769782 10.5678L0.769785 10.5678L11.1506 0.773762C11.4013 0.537307 11.7333 0.415846 12.0712 0.415846C12.4093 0.415846 12.7415 0.537566 12.9922 0.773969L23.3728 10.568L23.3729 10.5681C23.6171 10.7983 23.7403 11.0968 23.7428 11.3959Z" fill="white" stroke="white" stroke-width="0.8"/>
</svg>

After

Width:  |  Height:  |  Size: 767 B

12
src/assets/svg/cart.svg Normal file
View File

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

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

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

After

Width:  |  Height:  |  Size: 638 B

View File

@ -0,0 +1,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_7126_910)">
<g clip-path="url(#clip1_7126_910)">
<path d="M19.1778 27.4911V18.544H22.1734L22.6228 15.0561H19.1778V12.8296C19.1778 11.8201 19.4564 11.1321 20.9026 11.1321L22.7441 11.1314V8.01166C22.4256 7.97019 21.3325 7.87511 20.0602 7.87511C17.4034 7.87511 15.5845 9.50026 15.5845 12.4842V15.0561H12.5799V18.544H15.5845V27.4911H19.1778Z" fill="#303030"/>
</g>
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
</g>
<defs>
<clipPath id="clip0_7126_910">
<rect width="35" height="35" fill="white"/>
</clipPath>
<clipPath id="clip1_7126_910">
<rect width="19.574" height="19.616" fill="white" transform="translate(7.87497 7.87509)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 803 B

3
src/assets/svg/home.svg Normal file
View File

@ -0,0 +1,3 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15.8326 7.59562L14.6903 6.4533L8.40431 0.167326C8.18118 -0.0557753 7.81942 -0.0557753 7.59628 0.167326L1.31028 6.4533L0.167381 7.59623C-0.0518699 7.82324 -0.0456085 8.185 0.18141 8.40425C0.402871 8.61814 0.753946 8.61814 0.975407 8.40425L1.14226 8.23623V15.4285C1.14226 15.7442 1.3981 16 1.71372 16H14.2857C14.6013 16 14.8572 15.7442 14.8572 15.4285V8.23623L15.0246 8.40368C15.2516 8.62293 15.6134 8.61664 15.8326 8.38965C16.0465 8.16819 16.0465 7.81708 15.8326 7.59562ZM9.71409 14.8571H6.28537V10.2855H9.71409V14.8571ZM13.7142 14.8571H10.857V9.71403C10.857 9.39841 10.6011 9.14256 10.2855 9.14256H5.7139C5.39829 9.14256 5.14244 9.39841 5.14244 9.71403V14.8571H2.28518V7.09334L7.99969 1.3788L13.7142 7.09334V14.8571Z" fill="#C4C4C4"/>
</svg>

After

Width:  |  Height:  |  Size: 848 B

View 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_7126_915)">
<g clip-path="url(#clip1_7126_915)">
<path d="M22.0996 7.87509H13.2966C10.3071 7.87509 7.87497 10.3036 7.87497 13.2884V22.0777C7.87497 25.0626 10.3071 27.491 13.2966 27.491H22.0996C25.0893 27.491 27.5214 25.0625 27.5214 22.0777V13.2884C27.5215 10.3036 25.0893 7.87509 22.0996 7.87509ZM25.7784 22.0777C25.7784 24.103 24.1281 25.7506 22.0997 25.7506H13.2966C11.2683 25.7507 9.6181 24.103 9.6181 22.0777V13.2884C9.6181 11.2632 11.2683 9.61551 13.2966 9.61551H22.0996C24.128 9.61551 25.7783 11.2632 25.7783 13.2884V22.0777H25.7784Z" fill="#303030"/>
<path d="M17.6982 12.6288C14.9067 12.6288 12.6358 14.8962 12.6358 17.6833C12.6358 20.4703 14.9067 22.7376 17.6982 22.7376C20.4896 22.7376 22.7606 20.4703 22.7606 17.6833C22.7606 14.8962 20.4896 12.6288 17.6982 12.6288ZM17.6982 20.9971C15.868 20.9971 14.3789 19.5105 14.3789 17.6832C14.3789 15.8558 15.8679 14.3691 17.6982 14.3691C19.5285 14.3691 21.0175 15.8558 21.0175 17.6832C21.0175 19.5105 19.5284 20.9971 17.6982 20.9971Z" fill="#303030"/>
<path d="M22.9729 11.1531C22.6371 11.1531 22.3072 11.2889 22.07 11.5267C21.8317 11.7634 21.6946 12.0929 21.6946 12.4294C21.6946 12.7648 21.8318 13.0942 22.07 13.3321C22.3071 13.5688 22.6371 13.7057 22.9729 13.7057C23.3099 13.7057 23.6388 13.5688 23.877 13.3321C24.1153 13.0942 24.2512 12.7647 24.2512 12.4294C24.2512 12.0929 24.1153 11.7634 23.877 11.5267C23.64 11.2889 23.3099 11.1531 22.9729 11.1531Z" fill="#303030"/>
</g>
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
</g>
<defs>
<clipPath id="clip0_7126_915">
<rect width="35" height="35" fill="white"/>
</clipPath>
<clipPath id="clip1_7126_915">
<rect width="19.6465" height="19.616" fill="white" transform="translate(7.87497 7.87509)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View 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_7126_930)">
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
<g clip-path="url(#clip1_7126_930)">
<path d="M13.4447 13.8592H10.2981C10.1584 13.8592 10.0453 13.9724 10.0453 14.112V24.2205C10.0453 24.3602 10.1584 24.4733 10.2981 24.4733H13.4447C13.5843 24.4733 13.6975 24.3602 13.6975 24.2205V14.112C13.6975 13.9724 13.5843 13.8592 13.4447 13.8592Z" fill="#303030"/>
<path d="M11.8725 8.83394C10.7276 8.83394 9.7962 9.76436 9.7962 10.908C9.7962 12.0521 10.7276 12.9829 11.8725 12.9829C13.0165 12.9829 13.9472 12.0521 13.9472 10.908C13.9473 9.76436 13.0165 8.83394 11.8725 8.83394Z" fill="#303030"/>
<path d="M21.4482 13.6079C20.1844 13.6079 19.2502 14.1512 18.6835 14.7685V14.112C18.6835 13.9724 18.5704 13.8592 18.4307 13.8592H15.4174C15.2777 13.8592 15.1646 13.9724 15.1646 14.112V24.2205C15.1646 24.3602 15.2777 24.4733 15.4174 24.4733H18.557C18.6967 24.4733 18.8098 24.3602 18.8098 24.2205V19.2191C18.8098 17.5338 19.2676 16.8772 20.4425 16.8772C21.722 16.8772 21.8236 17.9298 21.8236 19.3058V24.2206C21.8236 24.3602 21.9368 24.4734 22.0764 24.4734H25.2173C25.3569 24.4734 25.4701 24.3602 25.4701 24.2206V18.6759C25.4701 16.1698 24.9922 13.6079 21.4482 13.6079Z" fill="#303030"/>
</g>
</g>
<defs>
<clipPath id="clip0_7126_930">
<rect width="35" height="35" fill="white"/>
</clipPath>
<clipPath id="clip1_7126_930">
<rect width="15.6739" height="15.6739" fill="white" transform="translate(9.7962 8.8167)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

9
src/assets/svg/logo.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

4
src/assets/svg/m3.svg Normal file
View 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

View File

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

After

Width:  |  Height:  |  Size: 688 B

View File

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

After

Width:  |  Height:  |  Size: 648 B

View 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_7126_922)">
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
<path d="M29.9915 10.1563C29.0947 10.5497 28.1392 10.8104 27.143 10.937C28.1679 10.3251 28.95 9.36358 29.3178 8.20462C28.3623 8.7743 27.3073 9.1767 26.183 9.40126C25.2757 8.43521 23.9826 7.83688 22.572 7.83688C19.8351 7.83688 17.6317 10.0584 17.6317 12.7817C17.6317 13.1735 17.6648 13.5503 17.7462 13.909C13.6363 13.7086 9.99968 11.7388 7.55666 8.73813C7.13015 9.47812 6.87997 10.3251 6.87997 11.2369C6.87997 12.949 7.76163 14.4666 9.07583 15.3453C8.28158 15.3302 7.50241 15.0996 6.8423 14.7364C6.8423 14.7515 6.8423 14.7711 6.8423 14.7907C6.8423 17.193 8.55588 19.1884 10.803 19.6481C10.4006 19.7581 9.96201 19.8108 9.50686 19.8108C9.19037 19.8108 8.87086 19.7928 8.57095 19.7264C9.21147 21.6842 11.029 23.1235 13.1902 23.1702C11.5083 24.4859 9.37273 25.2786 7.06083 25.2786C6.65541 25.2786 6.26658 25.2605 5.87775 25.2108C8.06757 26.623 10.6628 27.4293 13.4615 27.4293C22.5584 27.4293 27.5319 19.8937 27.5319 13.3619C27.5319 13.1434 27.5243 12.9324 27.5138 12.7229C28.4949 12.0266 29.3193 11.157 29.9915 10.1563Z" fill="#303030"/>
</g>
<defs>
<clipPath id="clip0_7126_922">
<rect width="35" height="35" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

7
src/assets/svg/vtex.svg Normal file
View 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

View File

@ -0,0 +1,11 @@
<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_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

View 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_7126_927)">
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
<path d="M27.8027 12.2486C27.5447 11.2896 26.7886 10.5336 25.8297 10.2754C24.0779 9.79604 17.0706 9.79604 17.0706 9.79604C17.0706 9.79604 10.0636 9.79604 8.31176 10.2572C7.3713 10.5152 6.59672 11.2897 6.33875 12.2486C5.87775 14.0003 5.87775 17.633 5.87775 17.633C5.87775 17.633 5.87775 21.284 6.33875 23.0174C6.59699 23.9763 7.35285 24.7323 8.31189 24.9905C10.082 25.47 17.0709 25.47 17.0709 25.47C17.0709 25.47 24.0779 25.47 25.8297 25.0088C26.7887 24.7507 27.5447 23.9947 27.803 23.0358C28.2638 21.284 28.2638 17.6514 28.2638 17.6514C28.2638 17.6514 28.2823 14.0003 27.8027 12.2486ZM14.8396 20.989V14.277L20.6665 17.633L14.8396 20.989Z" fill="#303030"/>
</g>
<defs>
<clipPath id="clip0_7126_927">
<rect width="35" height="35" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 976 B

View File

@ -0,0 +1,141 @@
@import "../../styles/utils/variables.scss";
.footerBottom {
padding: 15px 100px;
background-color: $black-100;
color: $white;
display: flex;
align-items: center;
justify-content: space-between;
@media (min-width: 2500px) {
padding: 24.5px 100px;
}
@media (max-width: 1024px) {
display: grid;
padding: 20px 16px;
grid-template-rows: repeat(3, max-content);
}
.footerBottom-text {
grid-row: 2;
p {
max-width: 42ch;
text-transform: capitalize;
font-size: 10px;
font-weight: 400;
line-height: 12px;
@media (min-width: 2500px) {
font-size: 20px;
line-height: 23px;
}
@media (max-width: 1024px) {
margin: 20px 0 15px 0;
}
}
}
.footerBottom-icons {
display: flex;
align-items: center;
div {
margin-right: 12px;
@media (max-width: 375px) {
margin-right: 11px;
}
img {
@media (max-width: 375px) {
width: 30px;
}
@media (min-width: 280px) and (max-width: 300px) {
width: 24.5px;
}
@media (min-width: 2500px) {
width: 70px;
}
}
@media (max-width: 374px) {
margin-right: 4px;
}
&:last-child {
img {
@media (min-width: 2500px) {
width: 106px;
}
@media (max-width: 375px) {
margin-left: 11px;
width: 45px;
}
@media (max-width: 374px) {
margin-left: 4px;
}
margin-left: 12px;
}
}
@media (min-width: 376px) and (max-width: 1024px) {
margin-right: 10px;
}
}
span {
border-left: 1px solid $primary-500;
height: 25px;
margin-bottom: 5px;
}
}
.footerBottom-credits {
display: flex;
align-items: center;
p {
font-size: 10px;
font-weight: 400;
line-height: 12px;
margin-right: 12px;
@media (min-width: 2500px) {
font-size: 20px;
line-height: 23px;
}
}
.footerBottom-credits-powered {
display: flex;
align-items: center;
margin-right: 13px;
img {
@media (min-width: 2500px) {
width: 84px;
}
}
}
.footerBottom-credits-developed {
display: flex;
align-items: center;
img {
@media (min-width: 2500px) {
width: 56px;
}
}
}
}
}

View File

@ -0,0 +1,81 @@
// Bibliotecas
import React from "react";
// Imagens
import mastercard from "../../assets/img/master.png";
import visa from "../../assets/img/visa.png";
import diners from "../../assets/img/diners.png";
import elo from "../../assets/img/elo.png";
import hiper from "../../assets/img/hiper.png";
import pagseguro from "../../assets/img/pagseguro.png";
import boleto from "../../assets/img/boleto.png";
import vtexcertified from "../../assets/img/vtex.png";
import m3 from "../../assets/svg/m3.svg";
import vtex from "../../assets/svg/vtex.svg";
// Estilos
import styleFooterBottom from "./FooterBottom.module.scss";
const FooterBottom = () => {
return (
<div className={styleFooterBottom["footerBottom"]}>
<div className={styleFooterBottom["footerBottom-text"]}>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor
</p>
</div>
<div className={styleFooterBottom["footerBottom-icons"]}>
<div>
<img src={mastercard} alt="MasterCard" />
</div>
<div>
<img src={visa} alt="Visa" />
</div>
<div>
<img src={diners} alt="Diners" />
</div>
<div>
<img src={elo} alt="Elo" />
</div>
<div>
<img src={hiper} alt="HiperCard" />
</div>
<div>
<img src={pagseguro} alt="PagSeguro" />
</div>
<div>
<img src={boleto} alt="Boleto" />
</div>
<span></span>
<div>
<img src={vtexcertified} alt="VTEX" />
</div>
</div>
<div className={styleFooterBottom["footerBottom-credits"]}>
<div className={styleFooterBottom["footerBottom-credits-powered"]}>
<p>Powered by</p>
<img src={vtex} alt="VTEX" />
</div>
<div className={styleFooterBottom["footerBottom-credits-developed"]}>
<p>Developed by</p>
<img src={m3} alt="M3" />
</div>
</div>
</div>
);
};
export { FooterBottom };

View File

@ -0,0 +1,127 @@
@import "../../styles/utils/variables.scss";
.footerTop {
padding: 50px 100px;
display: flex;
justify-content: space-between;
@media (max-width: 1024px) {
display: block;
padding: 24px 16px;
}
h3 {
margin-bottom: 12px;
font-size: 14px;
font-weight: 500;
line-height: 16px;
text-transform: uppercase;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
@media (max-width: 1024px) {
text-transform: capitalize;
position: relative;
&::after {
content: "+";
position: absolute;
right: 0;
}
}
}
ul {
@media (max-width: 1024px) {
display: none;
}
li {
list-style: none;
margin-bottom: 12px;
a {
font-size: 12px;
font-weight: 400;
line-height: 14px;
text-decoration: none;
color: $primary-100;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
&:last-child {
text-decoration: underline;
}
}
}
.footerTop-fale-conosco {
p {
font-size: 12px;
line-height: 14px;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
@media (max-width: 1024px) {
display: none;
}
&:nth-child(2),
&:nth-child(4) {
font-weight: 500;
line-height: 14px;
max-width: 20ch;
@media (min-width: 2500px) {
max-width: 100%;
}
}
&:nth-child(3),
&:nth-child(5) {
font-weight: 400;
margin: 12px 0;
&:last-child {
text-decoration: underline;
}
}
}
}
.footerTop-icons {
.footerTop-icons-wrapper {
a {
margin-left: 10px;
&:first-child {
margin-left: 0px;
}
}
}
img {
@media (min-width: 2500px) {
width: 70px;
}
}
p {
margin-top: 12px;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
}
}

View File

@ -0,0 +1,86 @@
// Bibliotecas
import React from "react";
// Imagens
import facebook from "../../assets/svg/facebook.svg";
import instragrm from "../../assets/svg/instagram.svg";
import twitter from "../../assets/svg/twitter.svg";
import youtube from "../../assets/svg/youtube.svg";
import linkedin from "../../assets/svg/linkedin.svg";
// Estilos
import styleFooterTop from "./FooterTop.module.scss";
const FooterTop = () => {
return (
<div className={styleFooterTop["footerTop"]}>
<div className={styleFooterTop["footerTop-institucional"]}>
<h3>Institucional</h3>
<ul>
<li>
<a href="#quem-somos">Quem somos</a>
</li>
<li>
<a href="#politica-de-privacidade">Politica de Privacidade</a>
</li>
<li>
<a href="#seguranca">Segurança</a>
</li>
<li>
<a href="#seja-revendedor">Seja um Revendedor</a>
</li>
</ul>
</div>
<div className={styleFooterTop["footerTop-duvidas"]}>
<h3>Dúvidas</h3>
<ul>
<li>
<a href="#entrega">Entrega</a>
</li>
<li>
<a href="#pagamento">Pagamento</a>
</li>
<li>
<a href="#seguranca">Troca e Devoluções</a>
</li>
<li>
<a href="#duvidas-frequentes">Dúvidas Frequentes</a>
</li>
</ul>
</div>
<div className={styleFooterTop["footerTop-fale-conosco"]}>
<h3>Fale Conosco</h3>
<p>Atendimento Ao Consumidor</p>
<p>(11) 4159-9504</p>
<p>Atendimento Online</p>
<p>(11) 99433-8825</p>
</div>
<div className={styleFooterTop["footerTop-icons"]}>
<div className={styleFooterTop["footerTop-icons-wrapper"]}>
<a href="#facebook">
<img src={facebook} alt="Facebook" />
</a>
<a href="#instagram">
<img src={instragrm} alt="Instagram" />
</a>
<a href="#twiiter">
<img src={twitter} alt="Twitter" />
</a>
<a href="#youtube">
<img src={youtube} alt="YouTube" />
</a>
<a href="#linkedin">
<img src={linkedin} alt="LinkedIn" />
</a>
</div>
<p>www.loremipsum.com</p>
</div>
</div>
);
};
export { FooterTop };

View File

@ -0,0 +1,100 @@
@import "../../styles/utils/variables.scss";
.newsletter {
margin-top: 70px;
border: 1px solid $black-100;
border-left: none;
border-right: none;
display: flex;
justify-content: center;
@media (max-width: 1024px) {
display: block;
}
.newsletter-wrapper {
padding: 16px 0;
@media (max-width: 1024px) {
padding: 16px;
}
h2 {
font-size: 18px;
font-weight: 500;
line-height: 21px;
letter-spacing: 0.05em;
text-transform: uppercase;
margin-bottom: 7px;
@media (min-width: 2500px) {
font-size: 36px;
line-height: 42px;
}
@media (max-width: 1024px) {
font-size: 14px;
line-height: 16px;
}
}
.newsletter-form {
input {
width: 340px;
height: 42px;
border-radius: 4px;
padding: 13px 16px 13px 16px;
outline: none;
border: 1px solid #e5e5e5;
margin-right: 8px;
@media (min-width: 2500px) {
width: 668px;
height: 59px;
font-size: 28px;
font-weight: 400;
line-height: 33px;
}
@media (max-width: 1024px) {
margin: 0 0 16px 0;
border-radius: 0;
border: 1px solid $primary-500;
width: 100%;
}
&::placeholder {
color: $primary-500;
}
}
button {
height: 42px;
width: 126px;
border-radius: 4px;
background: $black-100;
color: $white;
font-size: 12px;
font-weight: 700;
line-height: 14px;
letter-spacing: 0.05em;
text-transform: uppercase;
outline: none;
border: none;
@media (min-width: 2500px) {
width: 246px;
height: 59px;
font-size: 24px;
line-height: 28px;
}
@media (max-width: 1024px) {
width: 100%;
height: 50px;
border-radius: 0;
}
}
}
}
}

View File

@ -0,0 +1,22 @@
// Bibliotecas
import React from "react";
// Estilos
import styleNewsletter from "./Newsletter.module.scss";
const Newsletter = () => {
return (
<div className={styleNewsletter["newsletter"]}>
<div className={styleNewsletter["newsletter-wrapper"]}>
<h2>Assine nossa newsletter</h2>
<form className={styleNewsletter["newsletter-form"]}>
<input type="email" id="email" placeholder="E-mail" required />
<button type="submit">Enviar</button>
</form>
</div>
</div>
);
};
export { Newsletter };

View File

@ -0,0 +1,41 @@
@import "../../styles/utils/variables.scss";
.buttonsGlobal {
display: flex;
flex-direction: column;
position: fixed;
right: 16px;
bottom: 16px;
a {
img {
@media (min-width: 2500px) {
width: 66px;
height: 66px;
}
}
}
div {
display: flex;
justify-content: center;
margin-top: 5px;
width: 34px;
height: 34px;
border-radius: 50%;
background-color: $primary-500;
cursor: pointer;
@media (min-width: 2500px) {
width: 66px;
height: 66px;
}
img {
@media (min-width: 2500px) {
width: 25px;
height: 60px;
}
}
}
}

View File

@ -0,0 +1,33 @@
// Bibliotecas
import React from "react";
// Estilos
import styleButtons from "./ButtonsGlobal.module.scss";
// Imagens
import whatsapp from "../../assets/svg/whatsapp.svg";
import arrow from "../../assets/svg/arrowTop.svg";
const ButtonsGlobal = () => {
function scrollTop() {
window.scrollTo(0, 0);
}
return (
<div className={styleButtons["buttonsGlobal"]}>
<a
href="https://api.whatsapp.com/send?phone=5511952353969"
target="_blank"
rel="noopener noreferrer"
>
<img src={whatsapp} alt="WhatsApp" />
</a>
<div>
<img src={arrow} onClick={scrollTop} alt="Voltar para cima" />
</div>
</div>
);
};
export { ButtonsGlobal };

View File

@ -0,0 +1,39 @@
@import "../../styles/utils/variables.scss";
.breadcrumb {
padding: 30px 100px 0 100px;
display: flex;
align-items: center;
@media (max-width: 1024px) {
padding: 30px 16px 0 16px;
}
img {
&:nth-child(1) {
@media (min-width: 2500px) {
width: 31px;
}
}
&:nth-child(2) {
margin: 0 10px;
@media (min-width: 2500px) {
width: 15px;
}
}
}
p {
font-size: 12px;
font-weight: 400;
line-height: 14px;
text-transform: uppercase;
color: $primary-500;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
}

View File

@ -0,0 +1,21 @@
// Bibliotecas
import React from "react";
// Estilos
import styleBreadcrumb from "./Breadcrumb.module.scss";
// Imagens
import home from "../../assets/svg/home.svg";
import arrow from "../../assets/svg/arrowRight.svg";
const Breadcrumb = () => {
return (
<div className={styleBreadcrumb["breadcrumb"]}>
<img src={home} alt="Home" />
<img src={arrow} alt="Flecha" />
<p>Institucional</p>
</div>
);
};
export { Breadcrumb };

View File

@ -0,0 +1,83 @@
@import "../../styles/utils/variables.scss";
.contentContato {
width: 100%;
h2 {
font-size: 24px;
font-weight: 700;
line-height: 28px;
}
form {
.infosForm {
flex-direction: column;
label {
font-size: 14px;
font-weight: 400;
line-height: 16px;
color: $black-100;
}
input {
min-width: 100%;
height: 46px;
border-radius: 25px;
padding: 15px 20px;
margin: 12px 0;
outline: none;
border: 1px solid $black-300;
&::placeholder {
font-size: 14px;
font-weight: 400;
line-height: 16px;
color: $primary-500;
}
}
}
.checkboxForm {
display: flex;
justify-content: center;
margin-bottom: 12px;
label {
display: flex;
align-items: flex-end;
margin-right: 5px;
p {
text-decoration: underline;
color: $black-300;
font-size: 14px;
font-weight: 400;
line-height: 16px;
}
span {
color: $primary-900;
margin-right: 3px;
}
}
input {
width: 18px;
}
}
button {
width: 100%;
height: 52px;
border-radius: 25px;
background-color: $black-100;
color: $white;
font-size: 16px;
font-weight: 400;
line-height: 19px;
letter-spacing: 0.05em;
text-transform: uppercase;
}
}
}

View File

@ -0,0 +1,47 @@
// Bibliotecas
import React from "react";
// Estilos
import styleContentContato from "./ContentContato.module.scss";
const ContentContato = () => {
return (
<div className={styleContentContato["contentContato"]}>
<h2>Preencha o formulário</h2>
<form>
<div className={styleContentContato["infosForm"]}>
<label htmlFor="nome">Nome</label>
<input type="text" id="nome" placeholder="Seu nome completo"/>
<label htmlFor="email">E-mail</label>
<input type="email" id="email" placeholder="Seu e-mail"/>
<label htmlFor="cpf">CPF</label>
<input type="text" id="cpf" placeholder="000.000.000-00"/>
<label htmlFor="nascimento">Data de Nascimento</label>
<input type="text" id="nascimento" placeholder="00.00.0000"/>
<label htmlFor="telefone">Telefone</label>
<input type="text" id="telefone" placeholder="(00) 00000-0000"/>
<label htmlFor="instagram">Instagram</label>
<input type="text" id="instagram" placeholder="@seuuser"/>
</div>
<div className={styleContentContato["checkboxForm"]}>
<label htmlFor="termos">
<span>*</span>
<p>Declaro que li e aceito</p>
</label>
<input type="checkbox" id="termos" />
</div>
<button>Cadastre-se</button>
</form>
</div>
);
};
export { ContentContato };

View File

@ -0,0 +1,29 @@
// Bibliotecas
import React from "react";
// Estilos
import styleContentInstitucional from "./ContentInstitucional.module.scss";
const ContentEntrega = () => {
return (
<div className={styleContentInstitucional["contentInstitucional"]}>
<h2>Entrega e Devolução</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Saepe, alias,
hic consequuntur tenetur optio dicta explicabo quos voluptate laudantium
dolorum sed blanditiis aspernatur itaque aut adipisci rem. Dolores,
laborum rerum.
</p>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consectetur
accusamus magnam a aliquid nam. Nemo magnam corporis soluta repellat
eveniet illo laboriosam tempore mollitia, adipisci, dolores repellendus
accusamus maxime perspiciatis. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore provident facere dolore consequuntur eum neque reiciendis voluptatem commodi porro, voluptatibus dolorem praesentium qui enim sapiente labore. Repellat sunt pariatur neque.
</p>
</div>
);
};
export { ContentEntrega };

View File

@ -0,0 +1,41 @@
@import "../../styles/utils/variables.scss";
.contentInstitucional {
h2 {
margin: 12px 0;
font-size: 24px;
font-weight: 700;
line-height: 28px;
@media (min-width: 2500px) {
font-size: 48px;
line-height: 56px;
}
@media (max-width: 1024px) {
margin: 30px 0 12px 0;
text-align: center;
}
}
p {
font-size: 14.2px;
font-weight: 400;
line-height: 15px;
color: $primary-300;
&:nth-child(3) {
margin: 20px 0;
}
@media (min-width: 2500px) {
font-size: 26px;
line-height: 30px;
}
@media (max-width: 1024px) {
font-size: 12px;
line-height: 18px;
}
}
}

View File

@ -0,0 +1,31 @@
// Bibliotecas
import React from "react";
import { Routes, Route } from "react-router-dom";
// Estilos
import styleContentInstitucional from "./ContentInstitucional.module.scss";
import { ContentPagamento } from "./ContentPagamento";
import { ContentEntrega } from "./ContentEntrega";
import { ContentTroca } from "./ContentTroca";
import { ContentSeguranca } from "./ContentSeguranca";
import { ContentContato } from "./ContentContato";
import { ContentSobre } from "./ContentSobre";
const ContentInstitucional = () => {
return (
<div className={styleContentInstitucional["contentInstitucional"]}>
<Routes>
<Route path="/" element={<ContentSobre />} />
<Route path="/sobre" element={<ContentSobre />} />
<Route path="/forma-de-pagamento" element={<ContentPagamento />} />
<Route path="/entrega" element={<ContentEntrega />} />
<Route path="/troca-e-devolucao" element={<ContentTroca />} />
<Route path="/seguranca-e-privacidade" element={<ContentSeguranca />} />
<Route path="/contato" element={<ContentContato />} />
</Routes>
</div>
);
};
export { ContentInstitucional };

View File

@ -0,0 +1,28 @@
// Bibliotecas
import React from "react";
// Estilos
import styleContentInstitucional from "./ContentInstitucional.module.scss";
const ContentPagamento = () => {
return (
<div className={styleContentInstitucional["contentInstitucional"]}>
<h2>Forma de Pagamento</h2>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text ever
since the 1500s, when an unknown printer took a galley of type and
scrambled it to make a type specimen book.
</p>
<p>
Contrary to popular belief, Lorem Ipsum is not simply random text. It
has roots in a piece of classical Latin literature from 45 BC, making it
over 2000 years old.
</p>
</div>
);
};
export { ContentPagamento };

View File

@ -0,0 +1,25 @@
// Bibliotecas
import React from "react";
// Estilos
import styleContentInstitucional from "./ContentInstitucional.module.scss";
const ContentSeguranca = () => {
return (
<div className={styleContentInstitucional["contentInstitucional"]}>
<h2>Segurança e Privacidade</h2>
<p>
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Suscipit voluptatibus perferendis nihil necessitatibus iusto! Deserunt vero eaque reiciendis dolores ducimus? Aliquid totam repellendus impedit cumque velit quasi temporibus perspiciatis tenetur? Lorem ipsum dolor, sit amet consectetur adipisicing elit. Voluptate nisi officiis porro! Ipsum voluptatem deserunt repudiandae minima sunt reiciendis veniam minus animi repellat provident soluta error, voluptate tempora harum consequatur.
</p>
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Vitae natus, nemo a ipsa eveniet assumenda iure ducimus suscipit libero, distinctio neque, consequatur quasi incidunt accusamus ad ipsam necessitatibus dignissimos vero.
</p>
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nesciunt non eum minus officiis qui earum aperiam reprehenderit odit officia architecto blanditiis, ad corporis a natus voluptatem harum laudantium hic illum. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Rerum quo cupiditate beatae expedita sapiente totam illo repellendus tempora delectus, aspernatur, earum aut natus dolor ducimus eaque excepturi ab debitis dolore!</p>
</div>
);
};
export { ContentSeguranca };

View File

@ -0,0 +1,45 @@
// Bibliotecas
import React from "react";
// Estilos
import styleContentInstitucional from "./ContentInstitucional.module.scss";
const ContentSobre = () => {
return (
<div className={styleContentInstitucional["contentInstitucional"]}>
<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 { ContentSobre };

View File

@ -0,0 +1,36 @@
// Bibliotecas
import React from "react";
// Estilos
import styleContentInstitucional from "./ContentInstitucional.module.scss";
const ContentTroca = () => {
return (
<div className={styleContentInstitucional["contentInstitucional"]}>
<h2>Troca e Devolução</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nulla excepturi
quisquam eos non, ipsum nobis est cum minus beatae illo molestias
similique corporis dignissimos maiores, accusantium mollitia temporibus
libero sint?
</p>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque dolorem
assumenda molestias beatae ducimus nobis ipsum, distinctio cumque, harum
nisi odio earum voluptate deleniti sapiente quod ullam ab repellendus
temporibus.
</p>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure
recusandae, accusantium voluptates expedita ullam nostrum exercitationem
incidunt! Voluptates ducimus maiores soluta consectetur ipsa rem
consequatur quasi fugit odio. Labore, quos. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Praesentium, optio? Odit ratione rerum veniam temporibus quis necessitatibus, provident soluta deleniti repudiandae? Delectus tempora nostrum impedit officia perferendis odio vero rem.
</p>
</div>
);
};
export { ContentTroca };

View File

@ -0,0 +1,150 @@
@import "../../styles/utils/variables.scss";
.contentContato {
width: 100%;
h2 {
font-size: 24px;
font-weight: 700;
line-height: 28px;
margin: 12px 0;
@media (min-width: 2500px) {
font-size: 48px;
line-height: 56px;
}
@media (max-width: 1024px) {
text-align: center;
margin-top: 30px;
}
}
form {
.infosForm {
flex-direction: column;
position: relative;
label {
font-size: 14px;
font-weight: 400;
line-height: 16px;
color: $black-100;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
.formInvalid {
font-size: 12px;
position: absolute;
right: 15px;
color: $primary-900;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
top: 15px;
}
}
input {
min-width: 100%;
height: 46px;
border-radius: 25px;
padding: 15px 20px;
margin: 12px 0;
outline: none;
border: 1px solid $black-300;
@media (min-width: 2500px) {
height: 63px;
font-size: 28px;
line-height: 33px;
}
&::placeholder {
font-size: 14px;
font-weight: 400;
line-height: 16px;
color: $primary-500;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
}
}
.checkboxForm {
display: grid;
grid-template-columns: repeat(3, min-content);
justify-content: center;
margin-bottom: 12px;
.formInvalid-checkbox {
font-size: 16px;
color: $primary-900;
grid-row: 1;
@media (min-width: 2500px) {
font-size: 28px;
}
@media (max-width: 620px) {
bottom: 25px;
}
}
label {
margin: 0 4px;
text-decoration: underline;
color: $black-300;
font-size: 14px;
font-weight: 400;
line-height: 16px;
width: max-content;
@media (min-width: 2500px) {
font-size: 28px;
font-weight: 400;
line-height: 33px;
}
}
input {
width: 18px;
height: 16px;
@media (min-width: 2500px) {
width: 36px;
height: 35px;
}
}
}
button {
width: 100%;
height: 52px;
border-radius: 25px;
background-color: $black-100;
color: $white;
font-size: 16px;
font-weight: 400;
line-height: 19px;
letter-spacing: 0.05em;
text-transform: uppercase;
outline: none;
border: none;
@media (min-width: 2500px) {
height: 71px;
font-size: 32px;
line-height: 38px;
}
}
}
}

View File

@ -0,0 +1,159 @@
// Bibliotecas
import React from "react";
import { Formik, Form, Field, ErrorMessage } from "formik";
// Componentes
import FormSchema from "./FormSchema";
// Estilos
import styleFormContato from "./FormContato.module.scss";
const FormContato = () => {
interface FormikValues {
nome: string;
email: string;
cpf: string;
nascimento: string;
telefone: string;
instagram: string;
termos: boolean;
}
const initialValues = {
nome: "",
email: "",
cpf: "",
nascimento: "",
telefone: "",
instagram: "",
termos: false,
};
return (
<div className={styleFormContato["contentContato"]}>
<Formik
onSubmit={(values: FormikValues, actions) => {
actions.resetForm();
console.log(values);
}}
initialValues={initialValues}
validationSchema={FormSchema}
>
{({ errors, touched }) => (
<Form>
<h2>Preencha o formulário</h2>
<div className={styleFormContato["infosForm"]}>
<label htmlFor="nome">Nome</label>
<Field
name="nome"
id="nome"
className={errors.nome && touched.nome && "Invalid"}
placeholder="Seu nome completo"
/>
<ErrorMessage
component="span"
name="nome"
className={styleFormContato["formInvalid"]}
/>
</div>
<div className={styleFormContato["infosForm"]}>
<label htmlFor="email">E-mail</label>
<Field
name="email"
id="email"
className={errors.email && touched.email && "Invalid"}
placeholder="Seu e-mail"
/>
<ErrorMessage
component="span"
name="email"
className={styleFormContato["formInvalid"]}
/>
</div>
<div className={styleFormContato["infosForm"]}>
<label htmlFor="cpf">CPF</label>
<Field
name="cpf"
id="cpf"
className={errors.cpf && touched.cpf && "Invalid"}
placeholder="000.000.000-00"
/>
<ErrorMessage
component="span"
name="cpf"
className={styleFormContato["formInvalid"]}
/>
</div>
<div className={styleFormContato["infosForm"]}>
<label htmlFor="nascimento">Data de Nascimento</label>
<Field
name="nascimento"
id="nascimento"
className={errors.nascimento && touched.nascimento && "Invalid"}
placeholder="00.00.0000"
/>
<ErrorMessage
component="span"
name="nascimento"
className={styleFormContato["formInvalid"]}
/>
</div>
<div className={styleFormContato["infosForm"]}>
<label htmlFor="telefone">Telefone</label>
<Field
name="telefone"
id="telefone"
className={errors.nascimento && touched.nascimento && "Invalid"}
placeholder="(00) 00000-0000"
/>
<ErrorMessage
component="span"
name="telefone"
className={styleFormContato["formInvalid"]}
/>
</div>
<div className={styleFormContato["infosForm"]}>
<label htmlFor="instagram">Instagram</label>
<Field
name="instagram"
id="instagram"
className={errors.instagram && touched.instagram && "Invalid"}
placeholder="@seuuser"
/>
<ErrorMessage
component="span"
name="instagram"
className={styleFormContato["formInvalid"]}
/>
</div>
<div className={styleFormContato["checkboxForm"]}>
<label htmlFor="termos">Declaro que li e aceito</label>
<Field
type="checkbox"
id="termos"
name="termos"
className={errors.termos && touched.termos && "Invalid"}
/>
<ErrorMessage
component="span"
name="termos"
className={styleFormContato["formInvalid-checkbox"]}
/>
</div>
<button type="submit">Cadastre-se</button>
</Form>
)}
</Formik>
</div>
);
};
export { FormContato };

View File

@ -0,0 +1,22 @@
// Bibliotecas
import * as Yup from "yup";
export default Yup.object().shape({
nome: Yup.string()
.required("*Campo Obrigatório.")
.min(3, "Insira seu nome completo."),
email: Yup.string().required("*Campo Obrigatório.").email("Email inválido."),
cpf: Yup.string()
.required("*Campo Obrigatório.")
.min(11, "CPF inválido.")
.max(11, "CPF inválido."),
nascimento: Yup.string()
.required("*Campo Obrigatório.")
.min(8, "Data de nascimento inválido.")
.max(8, "Data de nascimento inválido."),
telefone: Yup.string()
.required("*Campo Obrigatório.")
.min(11, "Telefone inválido.")
.max(11, "Telefone inválido."),
termos: Yup.boolean().oneOf([true], "*"),
});

View File

@ -0,0 +1,68 @@
@import "../../styles/utils/variables.scss";
.navInstitucional {
margin-right: 30px;
@media (max-width: 1024px) {
border: none;
margin-right: 0;
}
ul {
list-style: none;
border-right: 1px solid $black-100;
height: 285px;
@media (min-width: 2500px) {
height: 465px;
}
@media (max-width: 1024px) {
height: auto;
border-right: none;
}
li {
display: flex;
align-items: center;
width: 302px;
height: 39px;
@media (min-width: 2500px) {
width: 590px;
height: 58px;
}
@media (max-width: 1024px) {
width: 100%;
}
a {
font-size: 16px;
font-weight: 400;
line-height: 19px;
color: $primary-300;
text-decoration: none;
@media (min-width: 2500px) {
font-size: 32px;
line-height: 38px;
}
}
}
.active {
display: flex;
background-color: $black-100;
width: 100%;
padding: 10px 16px;
color: $white;
font-weight: 700;
@media (min-width: 2500px) {
font-size: 32px;
line-height: 38px;
}
}
}
}

View File

@ -0,0 +1,46 @@
// Bibliotecas
import React from "react";
// Estilos
import styleNavInstitucional from "./NavInstitucional.module.scss";
import { ContentPagamento } from "./ContentPagamento";
import { ContentEntrega } from "./ContentEntrega";
import { ContentTroca } from "./ContentTroca";
import { ContentSeguranca } from "./ContentSeguranca";
import { ContentContato } from "./ContentContato";
import { ContentSobre } from "./ContentSobre";
const NavInstitucional = () => {
return (
<nav className={styleNavInstitucional["navInstitucional"]}>
<ul>
<li className={styleNavInstitucional["active"]} >
<a href="sobre">Sobre</a>
</li>
<li>
<a href="forma-de-pagamento">Forma de Pagamento</a>
</li>
<li>
<a href="entrega">Entrega</a>
</li>
<li>
<a href="troca-e-devolucao">Troca e Evolução</a>
</li>
<li>
<a href="seguranca-e-privacidade">Segurança e Privacidade</a>
</li>
<li>
<a href="contato">Contato</a>
</li>
</ul>
</nav>
);
};
export { NavInstitucional };

View File

@ -0,0 +1,103 @@
// Bibliotecas
import React from "react";
import { Routes, Route, NavLink } from "react-router-dom";
// Componentes
import { ContentPagamento } from "./ContentPagamento";
import { ContentEntrega } from "./ContentEntrega";
import { ContentTroca } from "./ContentTroca";
import { ContentSeguranca } from "./ContentSeguranca";
import { FormContato } from "./FormContato";
import { ContentSobre } from "./ContentSobre";
// Estilos
import styleNavInstitucional from "./NavInstitucional.module.scss";
import styleSection from "./Section.module.scss";
const Institucional = () => {
return (
<section className={styleSection["section"]}>
<nav className={styleNavInstitucional["navInstitucional"]}>
<ul>
<li>
<NavLink
className={({ isActive }) =>
isActive ? styleNavInstitucional.active : undefined
}
to="/"
>
Sobre
</NavLink>
</li>
<li>
<NavLink
className={({ isActive }) =>
isActive ? styleNavInstitucional.active : undefined
}
to="/forma-de-pagamento"
>
Forma de Pagamento
</NavLink>
</li>
<li>
<NavLink
className={({ isActive }) =>
isActive ? styleNavInstitucional.active : undefined
}
to="/entrega"
>
Entrega
</NavLink>
</li>
<li>
<NavLink
className={({ isActive }) =>
isActive ? styleNavInstitucional.active : undefined
}
to="/troca-e-devolucao"
>
Troca e Evolução
</NavLink>
</li>
<li>
<NavLink
className={({ isActive }) =>
isActive ? styleNavInstitucional.active : undefined
}
to="/seguranca-e-privacidade"
>
Segurança e Privacidade
</NavLink>
</li>
<li>
<NavLink
className={({ isActive }) =>
isActive ? styleNavInstitucional.active : undefined
}
to="/contato"
>
Contato
</NavLink>
</li>
</ul>
</nav>
<Routes>
<Route path="/" element={<ContentSobre />} />
<Route path="/sobre" element={<ContentSobre />} />
<Route path="/forma-de-pagamento" element={<ContentPagamento />} />
<Route path="/entrega" element={<ContentEntrega />} />
<Route path="/troca-e-devolucao" element={<ContentTroca />} />
<Route path="/seguranca-e-privacidade" element={<ContentSeguranca />} />
<Route path="/contato" element={<FormContato />} />
</Routes>
</section>
);
};
export { Institucional };

View File

@ -0,0 +1,9 @@
.section {
display: flex;
padding: 0 100px;
@media (max-width: 1024px) {
padding: 0 16px;
flex-direction: column;
}
}

View File

@ -0,0 +1,18 @@
.titleInstitucional {
font-size: 24px;
font-weight: 400;
line-height: 28px;
text-transform: uppercase;
text-align: center;
margin: 80px 0;
@media (min-width: 2500px) {
font-size: 48px;
line-height: 56px;
letter-spacing: 0.1em;
}
@media (max-width: 1024px) {
margin: 80px 0 40px 0;
}
}

View File

@ -0,0 +1,13 @@
// Bibliotecas
import React from "react";
// Estilos
import styleTitleInstitucional from "./TitleInstitucional.module.scss";
const TitleInstitucional = () => {
return (
<h1 className={styleTitleInstitucional["titleInstitucional"]}>Institucional</h1>
);
};
export { TitleInstitucional };

View File

@ -0,0 +1,55 @@
@import "../../styles/utils/variables.scss";
.form {
position: relative;
@media (max-width: 1024px) {
display: grid;
grid-column: 1 / -1;
grid-row: 2;
}
.form-search {
height: 32px;
width: 264px;
border-radius: 5px;
padding: 7px 16px 7px 16px;
outline: 0;
border: 2px solid $primary-700;
@media (min-width: 2500px) {
height: 57px;
width: 515px;
font-size: 28px;
font-weight: 400;
line-height: 33px;
}
@media (max-width: 1024px) {
width: 100%;
}
&::placeholder {
font-weight: 400;
color: $primary-500;
}
}
.form-search-icon {
position: absolute;
background-color: transparent;
right: 17px;
bottom: 4px;
border: 0;
cursor: pointer;
@media (min-width: 2500px) {
bottom: 8px;
img {
height: 35px;
width: 35px;
}
}
}
}

View File

@ -0,0 +1,28 @@
// Bibliotecas
import React from "react";
// Estilos
import styleForm from "./Form.module.scss";
// Imagem
import search from "../../assets/svg/search.svg";
const Form = () => {
return (
<form action="./" className={styleForm["form"]}>
<input
type="text"
id="search"
className={styleForm["form-search"]}
placeholder="Buscar..."
required
/>
<button type="submit" className={styleForm["form-search-icon"]}>
<img src={search} alt="Lupa de pesquisa" />
</button>
</form>
);
};
export { Form };

View File

@ -0,0 +1,25 @@
@import "../../styles/utils/variables.scss";
.headerWrapper {
display: flex;
justify-content: space-between;
height: 76px;
align-items: center;
border-bottom: 1px solid $primary-500;
padding: 0 100px;
background-color: $black-100;
@media (min-width: 2500px) {
padding: 22px 100px;
height: auto;
}
@media (max-width: 1024px) {
display: grid;
grid-template-columns: repeat(3, max-content);
grid-template-rows: repeat(2, 1fr);
gap: 21px;
height: auto;
padding: 25px 16px;
}
}

View File

@ -0,0 +1,6 @@
.logo {
@media (min-width: 2500px) {
height: 50px;
width: 265px;
}
}

View File

@ -0,0 +1,15 @@
// Imagem
import logoM3 from "../../assets/svg/logo.svg";
// Estilo
import styleLogo from "./Logo.module.scss";
const Logo = () => {
return (
<a href="#logo">
<img src={logoM3} alt="M3 Academy" className={styleLogo["logo"]} />
</a>
);
};
export { Logo };

View File

@ -0,0 +1,74 @@
@import "../../styles/utils/variables.scss";
.menuWrapper {
position: absolute;
/* O inset é uma abreviação do top, bottom, left e right juntos. */
inset: 0;
display: flex;
pointer-events: none;
opacity: 0;
.menuContent {
z-index: 2;
width: 90.5%;
}
.menuContent-header {
padding: 31px 16px;
display: flex;
justify-content: space-between;
align-items: center;
background-color: $black-100;
a {
font-size: 14px;
font-weight: 400;
line-height: 16px;
text-transform: uppercase;
color: $white;
text-decoration: none;
}
}
.menuContent-nav {
background-color: $white;
height: 585px;
padding: 31px 16px;
li {
list-style: none;
cursor: pointer;
font-size: 14px;
font-weight: 500;
line-height: 16px;
text-transform: uppercase;
color: $primary-400;
&:nth-child(2) {
margin: 12px 0;
}
}
}
.menuOverlay {
position: fixed;
inset: 0;
background-color: #454545b2;
z-index: 1;
}
}
.menuOpened {
opacity: 1;
pointer-events: all;
@media (min-width: 280px) and (max-width: 1024px) {
width: 95.3%;
}
}
@media (min-width: 1025px) {
div:has(> .menuWrapper) {
display: none;
}
}

View File

@ -0,0 +1,20 @@
import React, { useContext } from "react";
import { MenuContext } from "./MenuContext";
import { MenuOpened } from "./MenuOpened";
import openMenu from "../../assets/svg/openMenu.svg";
const Menu = () => {
const { isOpened, setIsOpened } = useContext(MenuContext);
return (
<div>
<MenuOpened isOpened={isOpened} setIsOpened={setIsOpened} />
<img src={openMenu} alt="Abrir menu" onClick={() => setIsOpened(true)} className="menu-icon"/>
</div>
);
};
export { Menu };

View File

@ -0,0 +1,24 @@
import { createContext, useState } from "react";
interface MenuContextData {
isOpened: boolean;
setIsOpened: React.Dispatch<React.SetStateAction<boolean>>;
}
interface MenuContextChildren {
children: React.ReactNode;
}
export const MenuContext = createContext({} as MenuContextData);
export const MenuProvider: React.FC<MenuContextChildren> = ({ children }) => {
const [isOpened, setIsOpened] = useState(false);
return (
<MenuContext.Provider
value={{ isOpened: isOpened, setIsOpened: setIsOpened }}
>
{children}
</MenuContext.Provider>
);
};

View File

@ -0,0 +1,56 @@
// Bibliotecas
import React from "react";
// Componentes
import menuOpened from "./Menu.module.scss";
// Imagens
import menuClose from "../../assets/svg/closeMenu.svg";
interface MenuProps {
isOpened: boolean;
setIsOpened: React.Dispatch<React.SetStateAction<boolean>>;
}
const MenuOpened = ({ isOpened, setIsOpened }: MenuProps) => {
return (
<div
className={
isOpened
? `${menuOpened['menuWrapper']} ${menuOpened["menuOpened"]}`
: `${menuOpened["menuWrapper"]}`
}
>
<div className={menuOpened["menuContent"]}>
<div className={menuOpened["menuContent-header"]}>
<div>
<a href="#entrar">Entrar</a>
</div>
<div>
<img
src={menuClose}
alt="Fechar menu"
onClick={() => setIsOpened(false)}
/>
</div>
</div>
<nav className={menuOpened["menuContent-nav"]}>
<ul>
<li>Cursos</li>
<li>Saiba mais</li>
<li>Institucionais</li>
</ul>
</nav>
</div>
<div
className={menuOpened["menuOverlay"]}
onClick={() => setIsOpened(false)}
/>
</div>
);
};
export { MenuOpened };

View File

@ -0,0 +1,40 @@
@import "../../styles/utils/variables.scss";
.nav {
padding: 14px 100px;
background-color: $black-100;
text-decoration: none;
@media (max-width: 1024px) {
display: none;
}
ul {
display: flex;
list-style: none;
}
li {
margin-right: 25px;
}
a {
font-size: 14px;
font-weight: 400;
line-height: 16px;
text-transform: uppercase;
color: $white;
text-decoration: none;
transition: all 0.3s linear;
@media (min-width: 2500px) {
font-size: 28px;
font-weight: 500;
line-height: 33px;
}
&:hover {
font-weight: 500;
}
}
}

View File

@ -0,0 +1,27 @@
// Bibliotecas
import React from "react";
// Estilos
import styleNav from "./Nav.module.scss";
const Nav = () => {
return (
<nav className={styleNav["nav"]}>
<ul>
<li>
<a href="#cursos">Cursos</a>
</li>
<li>
<a href="#saiba-mais">Saiba mais</a>
</li>
<li>
<a href="#institucionais">Institucionais</a>
</li>
</ul>
</nav>
);
};
export { Nav };

View File

@ -0,0 +1,43 @@
@import "../../styles/utils/variables.scss";
.user {
display: flex;
align-items: center;
a {
color: $white;
font-size: 14px;
font-weight: 400;
line-height: 16px;
text-transform: uppercase;
text-decoration: none;
transition: all 0.3s linear;
@media (min-width: 2500px) {
font-size: 28px;
font-weight: 400;
line-height: 33px;
img {
height: 54px;
width: 54px;
}
}
&:first-child {
margin-right: 55px;
}
&:hover {
font-weight: 500;
}
@media (max-width: 1024px) {
margin-right: 0;
&:first-child {
display: none;
}
}
}
}

View File

@ -0,0 +1,22 @@
// Bibliotecas
import React from "react";
// Estilos
import styleUser from "./User.module.scss";
// Imagem
import cart from "../../assets/svg/cart.svg";
const User = () => {
return (
<div className={styleUser["user"]}>
<a href="#entrar">Entrar</a>
<a href="#carrinho">
<img src={cart} alt="Carrinho" />
</a>
</div>
);
};
export { User };

18
src/index.tsx Normal file
View File

@ -0,0 +1,18 @@
import React from "react";
import ReactDOM from "react-dom/client";
import "./styles/utils/all.scss";
import { Home } from "./pages/Home";
import { BrowserRouter } from "react-router-dom";
const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement
);
root.render(
<BrowserRouter>
<Home />
</BrowserRouter>
);

19
src/pages/Footer.tsx Normal file
View File

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

36
src/pages/Header.tsx Normal file
View File

@ -0,0 +1,36 @@
// Bibliotecas
import React from "react";
// Componentes
// import { Menu } from "../components/header/Menu";
import { Logo } from "../components/teste/Logo";
import { Form } from "../components/teste/Form";
import { User } from "../components/teste/User";
import { Nav } from "../components/teste/Nav";
import { Menu } from "../components/teste/Menu";
import { MenuProvider } from "../components/teste/MenuContext";
// Estilos
import styleHeaderWrapper from "../components/header/HeaderWrapper.module.scss";
const Header = () => {
return (
<header>
<div className={styleHeaderWrapper["headerWrapper"]}>
<MenuProvider>
<Menu />
</MenuProvider>
<Logo />
<Form />
<User />
</div>
<Nav />
</header>
);
};
export { Header };

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

@ -0,0 +1,19 @@
import React from "react";
import { ButtonsGlobal } from "../components/global/ButtonsGlobal";
import { Header } from "./Header";
import { Section } from "./Section";
import { Footer } from "./Footer";
function Home() {
return (
<React.Fragment>
<Header />
<Section />
<Footer />
<ButtonsGlobal />
</React.Fragment>
);
}
export { Home };

19
src/pages/Section.tsx Normal file
View File

@ -0,0 +1,19 @@
// Bibliotecas
import React from "react";
// Componentes
import { Breadcrumb } from "../components/section/Breadcrumb";
import { TitleInstitucional } from "../components/section/TitleInstitucional";
import { Institucional } from "../components/section/Router";
const Section = () => {
return (
<main>
<Breadcrumb />
<TitleInstitucional />
<Institucional />
</main>
);
};
export { Section };

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

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

View File

@ -0,0 +1,4 @@
body {
font-family: "Roboto";
height: 1000px;
}

View File

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

View File

@ -0,0 +1 @@
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

View File

@ -0,0 +1,4 @@
@import "../common/reset.scss";
@import "../common/global.scss";
@import "../font/font.scss";
@import "./variables.scss";

View File

@ -0,0 +1,9 @@
$black-100: #000000;
$black-300: #100d0e;
$white: #ffffff;
$primary-900: #ff0000;
$primary-700: #f2f2f2;
$primary-500: #b9b7b7;
$primary-400: #c4c4c4;
$primary-300: #7d7d7d;
$primary-100: #303030;

26
tsconfig.json Normal file
View File

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