Merge pull request 'develop' (#16) from develop into main
Reviewed-on: #16
12
.prettierrc
@ -1,8 +1,8 @@
|
||||
{
|
||||
"semi": false,
|
||||
"tabWidth": 2,
|
||||
"singleQuote": true,
|
||||
"endOfLine": "lf",
|
||||
"singleAttributePerLine": true,
|
||||
"useTabs": true
|
||||
"semi": false,
|
||||
"tabWidth": 2,
|
||||
"singleQuote": true,
|
||||
"endOfLine": "lf",
|
||||
"singleAttributePerLine": false,
|
||||
"useTabs": true
|
||||
}
|
||||
|
366
package-lock.json
generated
@ -1,18 +1,24 @@
|
||||
{
|
||||
"name": "teste",
|
||||
"name": "challenge_5_institutional",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "teste",
|
||||
"name": "challenge_5_institutional",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@types/react-text-mask": "^5.4.11",
|
||||
"formik": "^2.2.9",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.6.1",
|
||||
"react-scripts": "5.0.1",
|
||||
"react-text-mask": "^5.5.0",
|
||||
"sass": "^1.57.1",
|
||||
"web-vitals": "^2.1.4"
|
||||
"web-vitals": "^2.1.4",
|
||||
"yup": "^0.32.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
@ -3078,6 +3084,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@remix-run/router": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.2.1.tgz",
|
||||
"integrity": "sha512-XiY0IsyHR+DXYS5vBxpoBe/8veTeoRpMHP+vDosLZxL5bnpetzI0igkxkLZS235ldLzyfkxF+2divEwWHP3vMQ==",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
}
|
||||
},
|
||||
"node_modules/@rollup/plugin-babel": {
|
||||
"version": "5.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz",
|
||||
@ -3771,6 +3785,11 @@
|
||||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/history": {
|
||||
"version": "4.7.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz",
|
||||
"integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA=="
|
||||
},
|
||||
"node_modules/@types/html-minifier-terser": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz",
|
||||
@ -3825,6 +3844,11 @@
|
||||
"resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
|
||||
"integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ=="
|
||||
},
|
||||
"node_modules/@types/lodash": {
|
||||
"version": "4.14.191",
|
||||
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.191.tgz",
|
||||
"integrity": "sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ=="
|
||||
},
|
||||
"node_modules/@types/mime": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz",
|
||||
@ -3848,8 +3872,7 @@
|
||||
"node_modules/@types/prop-types": {
|
||||
"version": "15.7.5",
|
||||
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
|
||||
"integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==",
|
||||
"dev": true
|
||||
"integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="
|
||||
},
|
||||
"node_modules/@types/q": {
|
||||
"version": "1.5.5",
|
||||
@ -3870,7 +3893,6 @@
|
||||
"version": "18.0.26",
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.26.tgz",
|
||||
"integrity": "sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@types/prop-types": "*",
|
||||
"@types/scheduler": "*",
|
||||
@ -3886,6 +3908,33 @@
|
||||
"@types/react": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/react-router": {
|
||||
"version": "5.1.20",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz",
|
||||
"integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==",
|
||||
"dependencies": {
|
||||
"@types/history": "^4.7.11",
|
||||
"@types/react": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/react-router-dom": {
|
||||
"version": "5.3.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz",
|
||||
"integrity": "sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==",
|
||||
"dependencies": {
|
||||
"@types/history": "^4.7.11",
|
||||
"@types/react": "*",
|
||||
"@types/react-router": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/react-text-mask": {
|
||||
"version": "5.4.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-text-mask/-/react-text-mask-5.4.11.tgz",
|
||||
"integrity": "sha512-DIJ3/dS4jd7NK3lEgsOwcgpp+ZlVrNJEiUDRayZRE/PNMbV/nLWmOKGdL0BUS29hnx0CDgITgPudKx0BgbF5fA==",
|
||||
"dependencies": {
|
||||
"@types/react": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/resolve": {
|
||||
"version": "1.17.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz",
|
||||
@ -3902,8 +3951,7 @@
|
||||
"node_modules/@types/scheduler": {
|
||||
"version": "0.16.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz",
|
||||
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==",
|
||||
"dev": true
|
||||
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew=="
|
||||
},
|
||||
"node_modules/@types/semver": {
|
||||
"version": "7.3.13",
|
||||
@ -6101,8 +6149,7 @@
|
||||
"node_modules/csstype": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz",
|
||||
"integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==",
|
||||
"dev": true
|
||||
"integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw=="
|
||||
},
|
||||
"node_modules/damerau-levenshtein": {
|
||||
"version": "1.0.8",
|
||||
@ -7990,6 +8037,42 @@
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/formik": {
|
||||
"version": "2.2.9",
|
||||
"resolved": "https://registry.npmjs.org/formik/-/formik-2.2.9.tgz",
|
||||
"integrity": "sha512-LQLcISMmf1r5at4/gyJigGn0gOwFbeEAlji+N9InZF6LIMXnFNkO42sCI8Jt84YZggpD4cPWObAZaxpEFtSzNA==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
"url": "https://opencollective.com/formik"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"deepmerge": "^2.1.1",
|
||||
"hoist-non-react-statics": "^3.3.0",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash-es": "^4.17.21",
|
||||
"react-fast-compare": "^2.0.1",
|
||||
"tiny-warning": "^1.0.2",
|
||||
"tslib": "^1.10.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=16.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/formik/node_modules/deepmerge": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz",
|
||||
"integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/formik/node_modules/tslib": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
},
|
||||
"node_modules/forwarded": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
||||
@ -8365,6 +8448,19 @@
|
||||
"he": "bin/he"
|
||||
}
|
||||
},
|
||||
"node_modules/hoist-non-react-statics": {
|
||||
"version": "3.3.2",
|
||||
"resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
|
||||
"integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
|
||||
"dependencies": {
|
||||
"react-is": "^16.7.0"
|
||||
}
|
||||
},
|
||||
"node_modules/hoist-non-react-statics/node_modules/react-is": {
|
||||
"version": "16.13.1",
|
||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
|
||||
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
|
||||
},
|
||||
"node_modules/hoopy": {
|
||||
"version": "0.1.4",
|
||||
"resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz",
|
||||
@ -11442,6 +11538,11 @@
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||
},
|
||||
"node_modules/lodash-es": {
|
||||
"version": "4.17.21",
|
||||
"resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
|
||||
"integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw=="
|
||||
},
|
||||
"node_modules/lodash.debounce": {
|
||||
"version": "4.0.8",
|
||||
"resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
|
||||
@ -11769,6 +11870,11 @@
|
||||
"multicast-dns": "cli.js"
|
||||
}
|
||||
},
|
||||
"node_modules/nanoclone": {
|
||||
"version": "0.2.1",
|
||||
"resolved": "https://registry.npmjs.org/nanoclone/-/nanoclone-0.2.1.tgz",
|
||||
"integrity": "sha512-wynEP02LmIbLpcYw8uBKpcfF6dmg2vcpKqxeH5UcoKEYdExslsdUA4ugFauuaeYdTB76ez6gJW8XAZ6CgkXYxA=="
|
||||
},
|
||||
"node_modules/nanoid": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
|
||||
@ -13672,6 +13778,11 @@
|
||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
|
||||
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
|
||||
},
|
||||
"node_modules/property-expr": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.5.tgz",
|
||||
"integrity": "sha512-IJUkICM5dP5znhCckHSv30Q4b5/JA5enCtkRHYaOVOAocnH/1BQEYTC5NMfT3AVl/iXKdr3aqQbQn9DxyWknwA=="
|
||||
},
|
||||
"node_modules/proxy-addr": {
|
||||
"version": "2.0.7",
|
||||
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
||||
@ -13981,6 +14092,11 @@
|
||||
"resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz",
|
||||
"integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg=="
|
||||
},
|
||||
"node_modules/react-fast-compare": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz",
|
||||
"integrity": "sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw=="
|
||||
},
|
||||
"node_modules/react-is": {
|
||||
"version": "17.0.2",
|
||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
|
||||
@ -13994,6 +14110,36 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/react-router": {
|
||||
"version": "6.6.1",
|
||||
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.6.1.tgz",
|
||||
"integrity": "sha512-YkvlYRusnI/IN0kDtosUCgxqHeulN5je+ew8W+iA1VvFhf86kA+JEI/X/8NqYcr11hCDDp906S+SGMpBheNeYQ==",
|
||||
"dependencies": {
|
||||
"@remix-run/router": "1.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=16.8"
|
||||
}
|
||||
},
|
||||
"node_modules/react-router-dom": {
|
||||
"version": "6.6.1",
|
||||
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.6.1.tgz",
|
||||
"integrity": "sha512-u+8BKUtelStKbZD5UcY0NY90WOzktrkJJhyhNg7L0APn9t1qJNLowzrM9CHdpB6+rcPt6qQrlkIXsTvhuXP68g==",
|
||||
"dependencies": {
|
||||
"@remix-run/router": "1.2.1",
|
||||
"react-router": "6.6.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=16.8",
|
||||
"react-dom": ">=16.8"
|
||||
}
|
||||
},
|
||||
"node_modules/react-scripts": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz",
|
||||
@ -14066,6 +14212,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/react-text-mask": {
|
||||
"version": "5.5.0",
|
||||
"resolved": "https://registry.npmjs.org/react-text-mask/-/react-text-mask-5.5.0.tgz",
|
||||
"integrity": "sha512-SLJlJQxa0uonMXsnXRpv5abIepGmHz77ylQcra0GNd7Jtk4Wj2Mtp85uGQHv1avba2uI8ZvRpIEQPpJKsqRGYw==",
|
||||
"dependencies": {
|
||||
"prop-types": "^15.5.6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/read-cache": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
|
||||
@ -15526,6 +15683,11 @@
|
||||
"resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz",
|
||||
"integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA=="
|
||||
},
|
||||
"node_modules/tiny-warning": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz",
|
||||
"integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA=="
|
||||
},
|
||||
"node_modules/tmpl": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz",
|
||||
@ -15558,6 +15720,11 @@
|
||||
"node": ">=0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/toposort": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz",
|
||||
"integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg=="
|
||||
},
|
||||
"node_modules/tough-cookie": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz",
|
||||
@ -16860,6 +17027,23 @@
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/yup": {
|
||||
"version": "0.32.11",
|
||||
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.11.tgz",
|
||||
"integrity": "sha512-Z2Fe1bn+eLstG8DRR6FTavGD+MeAwyfmouhHsIUgaADz8jvFKbO/fXc2trJKZg+5EBjh4gGm3iU/t3onKlXHIg==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@types/lodash": "^4.14.175",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash-es": "^4.17.21",
|
||||
"nanoclone": "^0.2.1",
|
||||
"property-expr": "^2.0.4",
|
||||
"toposort": "^2.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
@ -18907,6 +19091,11 @@
|
||||
"source-map": "^0.7.3"
|
||||
}
|
||||
},
|
||||
"@remix-run/router": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.2.1.tgz",
|
||||
"integrity": "sha512-XiY0IsyHR+DXYS5vBxpoBe/8veTeoRpMHP+vDosLZxL5bnpetzI0igkxkLZS235ldLzyfkxF+2divEwWHP3vMQ=="
|
||||
},
|
||||
"@rollup/plugin-babel": {
|
||||
"version": "5.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz",
|
||||
@ -19413,6 +19602,11 @@
|
||||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
"@types/history": {
|
||||
"version": "4.7.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz",
|
||||
"integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA=="
|
||||
},
|
||||
"@types/html-minifier-terser": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz",
|
||||
@ -19467,6 +19661,11 @@
|
||||
"resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
|
||||
"integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ=="
|
||||
},
|
||||
"@types/lodash": {
|
||||
"version": "4.14.191",
|
||||
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.191.tgz",
|
||||
"integrity": "sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ=="
|
||||
},
|
||||
"@types/mime": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz",
|
||||
@ -19490,8 +19689,7 @@
|
||||
"@types/prop-types": {
|
||||
"version": "15.7.5",
|
||||
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
|
||||
"integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==",
|
||||
"dev": true
|
||||
"integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="
|
||||
},
|
||||
"@types/q": {
|
||||
"version": "1.5.5",
|
||||
@ -19512,7 +19710,6 @@
|
||||
"version": "18.0.26",
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.26.tgz",
|
||||
"integrity": "sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/prop-types": "*",
|
||||
"@types/scheduler": "*",
|
||||
@ -19528,6 +19725,33 @@
|
||||
"@types/react": "*"
|
||||
}
|
||||
},
|
||||
"@types/react-router": {
|
||||
"version": "5.1.20",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz",
|
||||
"integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==",
|
||||
"requires": {
|
||||
"@types/history": "^4.7.11",
|
||||
"@types/react": "*"
|
||||
}
|
||||
},
|
||||
"@types/react-router-dom": {
|
||||
"version": "5.3.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz",
|
||||
"integrity": "sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==",
|
||||
"requires": {
|
||||
"@types/history": "^4.7.11",
|
||||
"@types/react": "*",
|
||||
"@types/react-router": "*"
|
||||
}
|
||||
},
|
||||
"@types/react-text-mask": {
|
||||
"version": "5.4.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-text-mask/-/react-text-mask-5.4.11.tgz",
|
||||
"integrity": "sha512-DIJ3/dS4jd7NK3lEgsOwcgpp+ZlVrNJEiUDRayZRE/PNMbV/nLWmOKGdL0BUS29hnx0CDgITgPudKx0BgbF5fA==",
|
||||
"requires": {
|
||||
"@types/react": "*"
|
||||
}
|
||||
},
|
||||
"@types/resolve": {
|
||||
"version": "1.17.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz",
|
||||
@ -19544,8 +19768,7 @@
|
||||
"@types/scheduler": {
|
||||
"version": "0.16.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz",
|
||||
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==",
|
||||
"dev": true
|
||||
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew=="
|
||||
},
|
||||
"@types/semver": {
|
||||
"version": "7.3.13",
|
||||
@ -21153,8 +21376,7 @@
|
||||
"csstype": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz",
|
||||
"integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==",
|
||||
"dev": true
|
||||
"integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw=="
|
||||
},
|
||||
"damerau-levenshtein": {
|
||||
"version": "1.0.8",
|
||||
@ -22554,6 +22776,32 @@
|
||||
"mime-types": "^2.1.12"
|
||||
}
|
||||
},
|
||||
"formik": {
|
||||
"version": "2.2.9",
|
||||
"resolved": "https://registry.npmjs.org/formik/-/formik-2.2.9.tgz",
|
||||
"integrity": "sha512-LQLcISMmf1r5at4/gyJigGn0gOwFbeEAlji+N9InZF6LIMXnFNkO42sCI8Jt84YZggpD4cPWObAZaxpEFtSzNA==",
|
||||
"requires": {
|
||||
"deepmerge": "^2.1.1",
|
||||
"hoist-non-react-statics": "^3.3.0",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash-es": "^4.17.21",
|
||||
"react-fast-compare": "^2.0.1",
|
||||
"tiny-warning": "^1.0.2",
|
||||
"tslib": "^1.10.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"deepmerge": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz",
|
||||
"integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA=="
|
||||
},
|
||||
"tslib": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"forwarded": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
||||
@ -22812,6 +23060,21 @@
|
||||
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
|
||||
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw=="
|
||||
},
|
||||
"hoist-non-react-statics": {
|
||||
"version": "3.3.2",
|
||||
"resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
|
||||
"integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
|
||||
"requires": {
|
||||
"react-is": "^16.7.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"react-is": {
|
||||
"version": "16.13.1",
|
||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
|
||||
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"hoopy": {
|
||||
"version": "0.1.4",
|
||||
"resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz",
|
||||
@ -25032,6 +25295,11 @@
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||
},
|
||||
"lodash-es": {
|
||||
"version": "4.17.21",
|
||||
"resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
|
||||
"integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw=="
|
||||
},
|
||||
"lodash.debounce": {
|
||||
"version": "4.0.8",
|
||||
"resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
|
||||
@ -25279,6 +25547,11 @@
|
||||
"thunky": "^1.0.2"
|
||||
}
|
||||
},
|
||||
"nanoclone": {
|
||||
"version": "0.2.1",
|
||||
"resolved": "https://registry.npmjs.org/nanoclone/-/nanoclone-0.2.1.tgz",
|
||||
"integrity": "sha512-wynEP02LmIbLpcYw8uBKpcfF6dmg2vcpKqxeH5UcoKEYdExslsdUA4ugFauuaeYdTB76ez6gJW8XAZ6CgkXYxA=="
|
||||
},
|
||||
"nanoid": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
|
||||
@ -26464,6 +26737,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"property-expr": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.5.tgz",
|
||||
"integrity": "sha512-IJUkICM5dP5znhCckHSv30Q4b5/JA5enCtkRHYaOVOAocnH/1BQEYTC5NMfT3AVl/iXKdr3aqQbQn9DxyWknwA=="
|
||||
},
|
||||
"proxy-addr": {
|
||||
"version": "2.0.7",
|
||||
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
||||
@ -26686,6 +26964,11 @@
|
||||
"resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz",
|
||||
"integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg=="
|
||||
},
|
||||
"react-fast-compare": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz",
|
||||
"integrity": "sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw=="
|
||||
},
|
||||
"react-is": {
|
||||
"version": "17.0.2",
|
||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
|
||||
@ -26696,6 +26979,23 @@
|
||||
"resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz",
|
||||
"integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A=="
|
||||
},
|
||||
"react-router": {
|
||||
"version": "6.6.1",
|
||||
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.6.1.tgz",
|
||||
"integrity": "sha512-YkvlYRusnI/IN0kDtosUCgxqHeulN5je+ew8W+iA1VvFhf86kA+JEI/X/8NqYcr11hCDDp906S+SGMpBheNeYQ==",
|
||||
"requires": {
|
||||
"@remix-run/router": "1.2.1"
|
||||
}
|
||||
},
|
||||
"react-router-dom": {
|
||||
"version": "6.6.1",
|
||||
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.6.1.tgz",
|
||||
"integrity": "sha512-u+8BKUtelStKbZD5UcY0NY90WOzktrkJJhyhNg7L0APn9t1qJNLowzrM9CHdpB6+rcPt6qQrlkIXsTvhuXP68g==",
|
||||
"requires": {
|
||||
"@remix-run/router": "1.2.1",
|
||||
"react-router": "6.6.1"
|
||||
}
|
||||
},
|
||||
"react-scripts": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz",
|
||||
@ -26751,6 +27051,14 @@
|
||||
"workbox-webpack-plugin": "^6.4.1"
|
||||
}
|
||||
},
|
||||
"react-text-mask": {
|
||||
"version": "5.5.0",
|
||||
"resolved": "https://registry.npmjs.org/react-text-mask/-/react-text-mask-5.5.0.tgz",
|
||||
"integrity": "sha512-SLJlJQxa0uonMXsnXRpv5abIepGmHz77ylQcra0GNd7Jtk4Wj2Mtp85uGQHv1avba2uI8ZvRpIEQPpJKsqRGYw==",
|
||||
"requires": {
|
||||
"prop-types": "^15.5.6"
|
||||
}
|
||||
},
|
||||
"read-cache": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
|
||||
@ -27824,6 +28132,11 @@
|
||||
"resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz",
|
||||
"integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA=="
|
||||
},
|
||||
"tiny-warning": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz",
|
||||
"integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA=="
|
||||
},
|
||||
"tmpl": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz",
|
||||
@ -27847,6 +28160,11 @@
|
||||
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
||||
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="
|
||||
},
|
||||
"toposort": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz",
|
||||
"integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg=="
|
||||
},
|
||||
"tough-cookie": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz",
|
||||
@ -28842,6 +29160,20 @@
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
|
||||
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="
|
||||
},
|
||||
"yup": {
|
||||
"version": "0.32.11",
|
||||
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.11.tgz",
|
||||
"integrity": "sha512-Z2Fe1bn+eLstG8DRR6FTavGD+MeAwyfmouhHsIUgaADz8jvFKbO/fXc2trJKZg+5EBjh4gGm3iU/t3onKlXHIg==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@types/lodash": "^4.14.175",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash-es": "^4.17.21",
|
||||
"nanoclone": "^0.2.1",
|
||||
"property-expr": "^2.0.4",
|
||||
"toposort": "^2.0.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
15
package.json
@ -1,13 +1,24 @@
|
||||
{
|
||||
"name": "teste",
|
||||
"name": "challenge_5_institutional",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"author": {
|
||||
"name": "Henrique Santos Santana",
|
||||
"email": "hsstudentwork@gmail.com",
|
||||
"url": "https://github.com/HenriqueSSan"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@types/react-text-mask": "^5.4.11",
|
||||
"formik": "^2.2.9",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.6.1",
|
||||
"react-scripts": "5.0.1",
|
||||
"react-text-mask": "^5.5.0",
|
||||
"sass": "^1.57.1",
|
||||
"web-vitals": "^2.1.4"
|
||||
"web-vitals": "^2.1.4",
|
||||
"yup": "^0.32.11"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
|
@ -1,43 +1,32 @@
|
||||
<!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" />
|
||||
<!--
|
||||
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.
|
||||
<html lang="pt-BR">
|
||||
<head>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
|
||||
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.
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
|
||||
You can add webfonts, meta tags, or analytics to this file.
|
||||
The build step will place the bundled scripts into the <body> tag.
|
||||
<!--=-=-=-=-=-= GOOGLE FONTS =-=-=-=-=-=-->
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
</body>
|
||||
<!--=-=-=-=-=-= ICON =-=-=-=-=-=-->
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
|
||||
<!--=-=-=-=-=-= ICONS =-=-=-=-=-=-->
|
||||
<link
|
||||
href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
|
||||
<title>Challenge - 5 | Institutional</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 9.4 KiB |
@ -1,25 +0,0 @@
|
||||
{
|
||||
"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"
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
||||
Disallow:
|
38
src/App.css
@ -1,38 +0,0 @@
|
||||
.App {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
height: 40vmin;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.App-logo {
|
||||
animation: App-logo-spin infinite 20s linear;
|
||||
}
|
||||
}
|
||||
|
||||
.App-header {
|
||||
background-color: #282c34;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: calc(10px + 2vmin);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.App-link {
|
||||
color: #61dafb;
|
||||
}
|
||||
|
||||
@keyframes App-logo-spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
import React from 'react';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import App from './App';
|
||||
|
||||
test('renders learn react link', () => {
|
||||
render(<App />);
|
||||
const linkElement = screen.getByText(/learn react/i);
|
||||
expect(linkElement).toBeInTheDocument();
|
||||
});
|
36
src/App.tsx
@ -1,32 +1,12 @@
|
||||
import React from 'react'
|
||||
import logo from './logo.svg'
|
||||
import './App.css'
|
||||
import { BrowserRouter } from 'react-router-dom'
|
||||
import { Router } from './routes'
|
||||
|
||||
function App() {
|
||||
import './styles/index.scss'
|
||||
|
||||
export function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
<img
|
||||
src={logo}
|
||||
className="App-logo"
|
||||
alt="logo
|
||||
|
||||
"
|
||||
/>
|
||||
<p>
|
||||
Edit <code>src/App.tsx</code> and save to reload.
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://reactjs.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn React
|
||||
</a>
|
||||
</header>
|
||||
</div>
|
||||
<BrowserRouter>
|
||||
<Router />
|
||||
</BrowserRouter>
|
||||
)
|
||||
}
|
||||
|
||||
export default App
|
||||
|
BIN
src/assets/brands/Boleto.png
Normal file
After Width: | Height: | Size: 817 B |
BIN
src/assets/brands/Diners.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
src/assets/brands/Elo.png
Normal file
After Width: | Height: | Size: 885 B |
BIN
src/assets/brands/Hiper.png
Normal file
After Width: | Height: | Size: 745 B |
BIN
src/assets/brands/Master.png
Normal file
After Width: | Height: | Size: 744 B |
BIN
src/assets/brands/Paypal.png
Normal file
After Width: | Height: | Size: 888 B |
BIN
src/assets/brands/Visa.png
Normal file
After Width: | Height: | Size: 1000 B |
4
src/assets/brands/svgs/M3.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<svg width="29" height="16" viewBox="0 0 29 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17.0306 5.52919C16.5832 4.93578 16.0212 4.44228 15.3793 4.0792C14.7375 3.71612 14.0295 3.49118 13.2991 3.41826C12.5687 3.34535 11.8314 3.42602 11.1327 3.65528C10.4341 3.88455 9.78893 4.25754 9.23719 4.75121L8.76053 4.38166C5.48585 2.02826 0.900357 4.02671 0.471361 8.05764C0.340858 9.9996 0.307448 11.9471 0.371262 13.8925C0.360734 14.1422 0.40062 14.3914 0.488442 14.6246C0.576265 14.8579 0.71015 15.0702 0.881788 15.2485C1.05343 15.4268 1.25915 15.5672 1.4862 15.661C1.71325 15.7548 1.95677 15.7999 2.20165 15.7937C2.44131 15.7927 2.67828 15.7422 2.89833 15.6453C3.11838 15.5485 3.31697 15.4072 3.48215 15.2301C3.64733 15.053 3.77571 14.8436 3.85955 14.6146C3.9434 14.3856 3.98099 14.1416 3.97007 13.8974C3.97007 12.497 3.97007 11.0966 3.97007 9.6914C3.96621 9.27481 3.9949 8.85857 4.05587 8.44663C4.13275 8.02501 4.36328 7.64872 4.70108 7.39343C5.03889 7.13814 5.45893 7.02279 5.87672 7.07057C6.28512 7.10198 6.66826 7.28426 6.95433 7.58324C7.2404 7.88222 7.40975 8.27737 7.43064 8.69461C7.45447 9.21003 7.43064 9.72544 7.43064 10.2409C7.43064 11.4954 7.43064 12.7499 7.43064 14.0044C7.42574 14.3682 7.53183 14.7246 7.73422 15.0243C7.93661 15.324 8.22529 15.5521 8.56033 15.677C9.77582 16.1924 11.0151 15.288 11.039 13.8633C11.039 12.2053 11.039 10.5472 11.0866 8.88911C11.1027 8.48829 11.2228 8.09901 11.4346 7.76103C11.6363 7.46301 11.9286 7.24105 12.2663 7.12943C12.6041 7.01782 12.9684 7.02276 13.3031 7.14351C13.6807 7.25145 14.0107 7.48767 14.2387 7.81307C14.4667 8.13848 14.5789 8.53355 14.5567 8.93287C14.5567 10.6104 14.5567 12.2879 14.5567 13.9655C14.5567 14.2062 14.6032 14.4446 14.6935 14.667C14.7838 14.8894 14.9162 15.0914 15.0831 15.2617C15.2499 15.4319 15.4481 15.5669 15.6661 15.659C15.8841 15.7512 16.1178 15.7986 16.3538 15.7986C16.5898 15.7986 16.8234 15.7512 17.0415 15.659C17.2595 15.5669 17.4576 15.4319 17.6244 15.2617C17.7913 15.0914 17.9237 14.8894 18.014 14.667C18.1043 14.4446 18.1508 14.2062 18.1508 13.9655C18.1508 12.249 18.1508 10.5618 18.1508 8.82103C18.154 7.62594 17.7591 6.4652 17.0306 5.52919Z" fill="white"/>
|
||||
<path d="M26.0349 6.50162L25.4676 6.26337C26.0301 5.81603 26.564 5.4319 27.0406 4.99428C27.4641 4.65415 27.8297 4.24508 28.1227 3.78354C28.9806 2.14978 27.7699 0.24858 25.849 0.204818C24.0758 0.180506 22.3074 0.180506 20.5342 0.180506C20.317 0.165195 20.0991 0.196902 19.8947 0.273547C19.6904 0.350191 19.5042 0.470042 19.3485 0.625235C19.1928 0.780428 19.071 0.967457 18.9911 1.17405C18.9112 1.38065 18.875 1.60214 18.8849 1.824C18.8637 2.04997 18.8909 2.27795 18.9646 2.49213C19.0384 2.70632 19.1569 2.90158 19.312 3.0644C19.467 3.22721 19.655 3.35368 19.8627 3.43504C20.0705 3.5164 20.2931 3.5507 20.5151 3.53556C21.3826 3.53556 22.2502 3.53556 23.1177 3.53556C23.2655 3.58419 23.418 3.58419 23.704 3.58419C22.5266 4.55666 21.4398 5.48052 20.3673 6.39465C19.6762 6.97814 19.4665 7.61511 19.7096 8.33961C19.8387 8.69722 20.0793 9.00173 20.3944 9.20639C20.7096 9.41105 21.0819 9.50455 21.4541 9.47255C22.3741 9.47255 23.2988 9.47255 24.2188 9.47255C24.4251 9.43364 24.6373 9.44151 24.8403 9.49562C25.0433 9.54973 25.2321 9.64874 25.3934 9.78563C25.5547 9.92253 25.6845 10.0939 25.7735 10.2877C25.8626 10.4815 25.9088 10.6929 25.9088 10.907C25.9088 11.121 25.8626 11.3324 25.7735 11.5262C25.6845 11.72 25.5547 11.8914 25.3934 12.0283C25.2321 12.1652 25.0433 12.2642 24.8403 12.3183C24.6373 12.3724 24.4251 12.3803 24.2188 12.3414C23.0271 12.3414 21.8355 12.3414 20.6438 12.3414C20.2261 12.3644 19.8329 12.5499 19.5452 12.8597C19.2575 13.1695 19.0971 13.58 19.0971 14.0067C19.0971 14.4335 19.2575 14.844 19.5452 15.1538C19.8329 15.4636 20.2261 15.6491 20.6438 15.6721C21.8879 15.6721 23.1368 15.6721 24.3808 15.6721C25.4737 15.6438 26.5238 15.2332 27.3552 14.5091C28.1866 13.7849 28.7487 12.7913 28.9473 11.6947C29.1056 10.621 28.9042 9.52429 28.3757 8.58189C27.8472 7.63949 27.0224 6.90654 26.0349 6.50162Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 3.9 KiB |
7
src/assets/brands/svgs/Vtex.svg
Normal file
@ -0,0 +1,7 @@
|
||||
<svg width="46" height="16" viewBox="0 0 46 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M32.8807 5.99083H31.2735V11.4557C31.2735 11.558 31.185 11.6456 31.0818 11.6456H29.8433C29.7401 11.6456 29.6516 11.558 29.6516 11.4557V5.99083H28.0297C27.9855 5.99083 27.9265 5.97622 27.897 5.94699C27.8675 5.91777 27.838 5.87394 27.838 5.81549V4.8511C27.838 4.80727 27.8528 4.74882 27.897 4.7196C27.9265 4.69037 27.9855 4.66115 28.0297 4.67576H32.8807C32.9839 4.67576 33.0723 4.74882 33.0723 4.8511V5.81549C33.0723 5.91777 32.9839 5.99083 32.8807 5.99083Z" fill="white"/>
|
||||
<path d="M38.0559 11.6019C37.4219 11.6896 36.7732 11.7334 36.1391 11.7188C34.9153 11.7188 33.839 11.412 33.839 9.70238V6.59005C33.839 4.88046 34.9301 4.58822 36.1539 4.58822C36.7879 4.57361 37.4219 4.61744 38.0559 4.70511C38.1886 4.71973 38.2476 4.77817 38.2476 4.89507V5.77178C38.2476 5.87406 38.1592 5.96174 38.0559 5.96174H36.0654C35.6231 5.96174 35.4609 6.10785 35.4609 6.60466V7.45215H37.9822C38.0854 7.45215 38.1739 7.53982 38.1739 7.6421V8.53343C38.1739 8.63571 38.0854 8.72338 37.9822 8.72338H35.4609V9.71699C35.4609 10.1992 35.6231 10.3599 36.0654 10.3599H38.0559C38.1592 10.3599 38.2476 10.4476 38.2476 10.5499V11.4266C38.2476 11.5289 38.1886 11.5873 38.0559 11.6019Z" 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.69043C25.5083 4.69043 25.4494 4.73427 25.4346 4.80732L24.0634 9.84842C24.0486 9.9507 24.0191 9.99454 23.9307 9.99454C23.8422 9.99454 23.8127 9.9507 23.798 9.84842L22.4267 4.80732C22.412 4.73427 22.353 4.69043 22.2793 4.69043H20.9228C20.8785 4.69043 20.8343 4.70504 20.8048 4.74888C20.7753 4.7781 20.7606 4.82194 20.7753 4.86577C20.7753 4.86577 22.4562 10.6521 22.4709 10.7105C22.6921 11.3973 23.2377 11.7333 23.9307 11.7333C24.5942 11.7626 25.1987 11.3388 25.3904 10.7105C25.4199 10.6375 27.0565 4.86577 27.0565 4.86577C27.0713 4.82194 27.0565 4.7781 27.027 4.74888C26.9975 4.71965 26.9533 4.69043 26.9091 4.69043H25.5821Z" fill="white"/>
|
||||
<path d="M17.9149 0H3.80428C3.28822 0 2.81639 0.277625 2.56573 0.70137C2.30033 1.13973 2.28559 1.68037 2.5215 2.11872L3.93698 4.77808H1.37142C1.04704 4.77808 0.737403 4.93881 0.560467 5.21644C0.383532 5.49406 0.383532 5.84475 0.530978 6.13699L5.07231 14.6411C5.2345 14.9479 5.55889 15.1379 5.89801 15.1379C6.23714 15.1379 6.56152 14.9479 6.72371 14.6411L7.96225 12.3324L9.51044 15.2402C9.7611 15.7078 10.2624 16 10.7932 16C11.324 16 11.8253 15.7078 12.076 15.2402L19.1534 2.04566C19.3893 1.60731 19.3746 1.08128 19.1092 0.672146C18.8733 0.248402 18.4014 0 17.9149 0ZM11.6042 5.56712L8.5078 11.3242C8.40459 11.5288 8.19817 11.6457 7.96225 11.6457C7.72634 11.6457 7.51992 11.5142 7.4167 11.3242L4.36457 5.62557C4.27611 5.45023 4.27611 5.24566 4.37932 5.07032C4.48253 4.89498 4.67421 4.79269 4.86589 4.79269H11.1176C11.3093 4.79269 11.4862 4.88036 11.5747 5.0411C11.6926 5.20183 11.6926 5.40639 11.6042 5.56712Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 3.6 KiB |
11
src/assets/brands/svgs/whatsapp.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg width="66" height="66" viewBox="0 0 66 66" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_3751_658)">
|
||||
<path d="M33.0083 0H32.9917C14.7964 0 0 14.8005 0 33C0 40.2188 2.3265 46.9095 6.28237 52.3421L2.16975 64.6016L14.8541 60.5468C20.0723 64.0035 26.2969 66 33.0083 66C51.2036 66 66 51.1954 66 33C66 14.8046 51.2036 0 33.0083 0Z" fill="#4CAF50"/>
|
||||
<path d="M52.21 46.6001C51.4139 48.8483 48.2542 50.7128 45.7338 51.2573C44.0095 51.6244 41.7573 51.9173 34.1755 48.774C24.4777 44.7563 18.2324 34.9016 17.7457 34.2623C17.2795 33.6229 13.8269 29.0441 13.8269 24.3086C13.8269 19.5731 16.2318 17.2673 17.2012 16.2773C17.9973 15.4646 19.3132 15.0934 20.5754 15.0934C20.9838 15.0934 21.3509 15.114 21.6809 15.1305C22.6503 15.1718 23.137 15.2295 23.7764 16.7599C24.5725 18.678 26.5113 23.4135 26.7423 23.9003C26.9774 24.387 27.2125 25.047 26.8825 25.6864C26.5732 26.3464 26.3009 26.6393 25.8142 27.2003C25.3274 27.7613 24.8654 28.1903 24.3787 28.7925C23.9332 29.3164 23.4299 29.8774 23.9909 30.8468C24.5519 31.7955 26.4907 34.9594 29.3452 37.5004C33.0288 40.7798 36.0153 41.8275 37.0837 42.273C37.8798 42.603 38.8285 42.5246 39.4102 41.9059C40.1485 41.1098 41.0602 39.7898 41.9883 38.4904C42.6483 37.5581 43.4815 37.4426 44.356 37.7726C45.247 38.082 49.9619 40.4126 50.9313 40.8953C51.9007 41.382 52.54 41.613 52.7752 42.0214C53.0062 42.4298 53.0062 44.3479 52.21 46.6001Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_3751_658">
|
||||
<rect width="66" height="66" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/assets/brands/vtex-pci-200.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
10
src/assets/icons/arrow-right.svg
Normal file
@ -0,0 +1,10 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_3751_560)">
|
||||
<path d="M11.9417 7.03685L5.22531 0.320703C4.79807 -0.106746 4.10537 -0.106746 3.67833 0.320703C3.25126 0.747771 3.25126 1.44043 3.67833 1.86747L9.62128 7.81023L3.67851 13.7528C3.25144 14.18 3.25144 14.8726 3.67851 15.2997C4.10558 15.7269 4.79824 15.7269 5.22548 15.2997L11.9418 8.58344C12.1554 8.3698 12.262 8.0901 12.262 7.81026C12.262 7.53029 12.1552 7.25038 11.9417 7.03685Z" fill="#C4C4C4"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_3751_560">
|
||||
<rect width="15.62" height="15.62" fill="white" transform="matrix(1 0 0 -1 0 15.6201)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 689 B |
16
src/assets/icons/facebook.svg
Normal file
@ -0,0 +1,16 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4238_664)">
|
||||
<g clip-path="url(#clip1_4238_664)">
|
||||
<path d="M19.1779 27.4911V18.544H22.1735L22.6229 15.0561H19.1779V12.8296C19.1779 11.8201 19.4565 11.1321 20.9027 11.1321L22.7441 11.1314V8.01168C22.4257 7.97021 21.3325 7.87512 20.0602 7.87512C17.4035 7.87512 15.5846 9.50028 15.5846 12.4842V15.0561H12.58V18.544H15.5846V27.4911H19.1779Z" fill="#303030"/>
|
||||
</g>
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_4238_664">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_4238_664">
|
||||
<rect width="19.574" height="19.616" fill="white" transform="translate(7.875 7.87509)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 799 B |
5
src/assets/icons/hamburger.svg
Normal 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 |
10
src/assets/icons/home.svg
Normal file
@ -0,0 +1,10 @@
|
||||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_3751_556)">
|
||||
<path d="M30.9231 14.8352L28.692 12.6041L16.4147 0.326808C15.9789 -0.108936 15.2723 -0.108936 14.8365 0.326808L2.55915 12.6041L0.326936 14.8364C-0.101287 15.2798 -0.089058 15.9863 0.354338 16.4146C0.786878 16.8323 1.47257 16.8323 1.90511 16.4146L2.23099 16.0864V30.1339C2.23099 30.7503 2.73069 31.25 3.34713 31.25H27.9018C28.5182 31.25 29.0179 30.7503 29.0179 30.1339V16.0864L29.3449 16.4134C29.7883 16.8417 30.4949 16.8294 30.9231 16.386C31.3408 15.9535 31.3408 15.2677 30.9231 14.8352ZM18.9728 29.0178H12.2761V20.0888H18.9728V29.0178ZM26.7856 29.0178H21.2051V18.9727C21.2051 18.3563 20.7054 17.8566 20.0889 17.8566H11.16C10.5436 17.8566 10.0438 18.3563 10.0438 18.9727V29.0178H4.46327V13.8542L15.6244 2.69296L26.7856 13.8542V29.0178Z" fill="#C4C4C4"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_3751_556">
|
||||
<rect width="31.25" height="31.25" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1007 B |
18
src/assets/icons/instagram.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4238_669)">
|
||||
<g clip-path="url(#clip1_4238_669)">
|
||||
<path d="M22.0996 7.87509H13.2966C10.3071 7.87509 7.875 10.3036 7.875 13.2884V22.0777C7.875 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.61813 24.103 9.61813 22.0777V13.2884C9.61813 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.6983 12.6288C14.9068 12.6288 12.6359 14.8962 12.6359 17.6833C12.6359 20.4703 14.9068 22.7376 17.6983 22.7376C20.4897 22.7376 22.7606 20.4703 22.7606 17.6833C22.7606 14.8962 20.4897 12.6288 17.6983 12.6288ZM17.6983 20.9971C15.8681 20.9971 14.379 19.5105 14.379 17.6832C14.379 15.8558 15.868 14.3691 17.6983 14.3691C19.5285 14.3691 21.0175 15.8558 21.0175 17.6832C21.0175 19.5105 19.5284 20.9971 17.6983 20.9971Z" fill="#303030"/>
|
||||
<path d="M22.973 11.1531C22.6372 11.1531 22.3072 11.2889 22.0701 11.5267C21.8317 11.7634 21.6947 12.0929 21.6947 12.4294C21.6947 12.7648 21.8318 13.0943 22.0701 13.3321C22.3071 13.5688 22.6372 13.7057 22.973 13.7057C23.31 13.7057 23.6389 13.5688 23.8771 13.3321C24.1153 13.0943 24.2513 12.7647 24.2513 12.4294C24.2513 12.0929 24.1153 11.7634 23.8771 11.5267C23.64 11.2889 23.31 11.1531 22.973 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_4238_669">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_4238_669">
|
||||
<rect width="19.6465" height="19.616" fill="white" transform="translate(7.875 7.87509)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
18
src/assets/icons/linkedin.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4238_684)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<g clip-path="url(#clip1_4238_684)">
|
||||
<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.83395C10.7276 8.83395 9.79614 9.76438 9.79614 10.908C9.79614 12.0522 10.7276 12.9829 11.8725 12.9829C13.0165 12.9829 13.9472 12.0521 13.9472 10.908C13.9472 9.76438 13.0165 8.83395 11.8725 8.83395Z" 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.2206C15.1646 24.3602 15.2777 24.4734 15.4174 24.4734H18.557C18.6967 24.4734 18.8098 24.3602 18.8098 24.2206V19.2192C18.8098 17.5338 19.2676 16.8772 20.4425 16.8772C21.722 16.8772 21.8236 17.9298 21.8236 19.3059V24.2206C21.8236 24.3603 21.9368 24.4734 22.0764 24.4734H25.2173C25.3569 24.4734 25.4701 24.3603 25.4701 24.2206V18.6759C25.4701 16.1698 24.9922 13.6079 21.4482 13.6079Z" fill="#303030"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_4238_684">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_4238_684">
|
||||
<rect width="15.6739" height="15.6739" fill="white" transform="translate(9.79614 8.81671)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
5
src/assets/icons/minicart.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M27.823 4.07236C27.6697 3.88079 27.4377 3.76928 27.1923 3.76928H5.69581L5.09469 1.16451C5.01009 0.798054 4.68377 0.538452 4.30768 0.538452H0.80768C0.361648 0.538452 0 0.9001 0 1.34619C0 1.79227 0.361648 2.15387 0.80768 2.15387H3.66516L7.7455 19.8355C7.83005 20.2019 8.15642 20.4615 8.53251 20.4615H24.7154C25.1614 20.4615 25.523 20.0999 25.523 19.6539C25.523 19.2078 25.1614 18.8462 24.7154 18.8462H9.17509L8.55384 16.1539H24.7693C25.1471 16.1539 25.4744 15.892 25.5573 15.5235L27.9803 4.75426C28.0342 4.51483 27.9763 4.26398 27.823 4.07236Z" fill="white"/>
|
||||
<path d="M11.8461 21.5385C10.2131 21.5385 8.88452 22.867 8.88452 24.5C8.88452 26.133 10.213 27.4615 11.8461 27.4615C13.479 27.4615 14.8076 26.133 14.8076 24.5C14.8076 22.867 13.4791 21.5385 11.8461 21.5385Z" fill="white"/>
|
||||
<path d="M21.5385 21.5385C19.9055 21.5385 18.5769 22.867 18.5769 24.5C18.5769 26.133 19.9054 27.4615 21.5385 27.4615C23.1714 27.4615 24.5 26.133 24.5 24.5C24.5 22.867 23.1715 21.5385 21.5385 21.5385Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
3
src/assets/icons/scroll-top.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="25" height="13" 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: 764 B |
10
src/assets/icons/search.svg
Normal file
@ -0,0 +1,10 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_3901_15)">
|
||||
<path d="M13.2094 11.6187C14.0951 10.4091 14.6249 8.92334 14.6249 7.31267C14.6249 3.2807 11.3444 0.000183105 7.31245 0.000183105C3.28048 0.000183105 0 3.2807 0 7.31267C0 11.3446 3.28052 14.6252 7.31248 14.6252C8.92315 14.6252 10.409 14.0953 11.6186 13.2095L16.4092 18.0001L18 16.4093C18 16.4092 13.2094 11.6187 13.2094 11.6187ZM7.31248 12.3751C4.52086 12.3751 2.25001 10.1043 2.25001 7.31267C2.25001 4.52104 4.52086 2.25019 7.31248 2.25019C10.1041 2.25019 12.375 4.52104 12.375 7.31267C12.375 10.1043 10.1041 12.3751 7.31248 12.3751Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_3901_15">
|
||||
<rect width="18" height="18" rx="5" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 804 B |
11
src/assets/icons/twitter.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4238_676)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<path d="M29.9914 10.1563C29.0947 10.5497 28.1392 10.8104 27.143 10.937C28.1678 10.3251 28.95 9.36358 29.3177 8.20462C28.3622 8.7743 27.3072 9.1767 26.1829 9.40126C25.2757 8.43521 23.9826 7.83688 22.5719 7.83688C19.835 7.83688 17.6316 10.0584 17.6316 12.7817C17.6316 13.1735 17.6648 13.5503 17.7462 13.909C13.6363 13.7086 9.99962 11.7388 7.5566 8.73813C7.13009 9.47812 6.87991 10.3251 6.87991 11.2369C6.87991 12.949 7.76157 14.4666 9.07577 15.3453C8.28152 15.3302 7.50235 15.0996 6.84223 14.7364C6.84223 14.7515 6.84223 14.7711 6.84223 14.7907C6.84223 17.193 8.55581 19.1884 10.8029 19.6481C10.4005 19.7581 9.96195 19.8108 9.5068 19.8108C9.19031 19.8108 8.8708 19.7928 8.57089 19.7264C9.21141 21.6842 11.029 23.1235 13.1902 23.1702C11.5082 24.4859 9.37267 25.2786 7.06076 25.2786C6.65535 25.2786 6.26652 25.2605 5.87769 25.2108C8.06751 26.623 10.6628 27.4293 13.4614 27.4293C22.5583 27.4293 27.5318 19.8937 27.5318 13.3619C27.5318 13.1434 27.5243 12.9324 27.5137 12.7229C28.4948 12.0266 29.3192 11.157 29.9914 10.1563Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_4238_676">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
4
src/assets/icons/x.svg
Normal 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 |
11
src/assets/icons/youtube.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4238_681)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<path d="M27.8026 12.2486C27.5447 11.2896 26.7885 10.5336 25.8296 10.2754C24.0778 9.79605 17.0705 9.79605 17.0705 9.79605C17.0705 9.79605 10.0635 9.79605 8.3117 10.2572C7.37124 10.5152 6.59666 11.2897 6.33869 12.2486C5.87769 14.0003 5.87769 17.633 5.87769 17.633C5.87769 17.633 5.87769 21.284 6.33869 23.0174C6.59693 23.9763 7.35279 24.7323 8.31183 24.9905C10.0819 25.47 17.0708 25.47 17.0708 25.47C17.0708 25.47 24.0778 25.47 25.8296 25.0088C26.7887 24.7507 27.5447 23.9947 27.8029 23.0358C28.2638 21.284 28.2638 17.6515 28.2638 17.6515C28.2638 17.6515 28.2822 14.0003 27.8026 12.2486V12.2486ZM14.8396 20.989V14.277L20.6665 17.633L14.8396 20.989Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_4238_681">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 986 B |
BIN
src/assets/m3-logo-medium.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
src/assets/m3-logo-small.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
10
src/components/Atoms/CustomLink/@types/index.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
import { AnchorHTMLAttributes, ReactNode } from 'react'
|
||||
import { LinkProps, To } from 'react-router-dom'
|
||||
|
||||
export interface CustomLinkProps
|
||||
extends AnchorHTMLAttributes<HTMLAnchorElement>,
|
||||
LinkProps {
|
||||
children: ReactNode | ReactNode[]
|
||||
href?: string
|
||||
to?: To | any
|
||||
}
|
18
src/components/Atoms/CustomLink/index.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
import { CustomLinkProps } from './@types'
|
||||
import { Link } from 'react-router-dom'
|
||||
|
||||
export function CustomLink({ children, href, to, ...props }: CustomLinkProps) {
|
||||
return (
|
||||
<>
|
||||
{href ? (
|
||||
<a href={href} {...props}>
|
||||
{children}
|
||||
</a>
|
||||
) : (
|
||||
<Link to={to} {...props}>
|
||||
{children}
|
||||
</Link>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
}
|
7
src/components/Atoms/Icon/@types/index.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
import { HTMLAttributes } from 'react'
|
||||
|
||||
export interface IconProps extends HTMLAttributes<HTMLImageElement> {
|
||||
src: any
|
||||
alt: string
|
||||
$container?: HTMLAttributes<HTMLSpanElement>
|
||||
}
|
10
src/components/Atoms/Icon/index.tsx
Normal file
@ -0,0 +1,10 @@
|
||||
/* eslint-disable jsx-a11y/alt-text */
|
||||
import { IconProps } from './@types'
|
||||
|
||||
export function Icon({ $container, src, alt, ...props }: IconProps) {
|
||||
return (
|
||||
<span {...$container}>
|
||||
<img src={src} alt={alt} {...props} />
|
||||
</span>
|
||||
)
|
||||
}
|
5
src/components/Atoms/Item/@types/index.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { HTMLAttributes, ReactNode } from 'react'
|
||||
|
||||
export interface ItemProps extends HTMLAttributes<HTMLLIElement> {
|
||||
children: ReactNode | ReactNode[]
|
||||
}
|
5
src/components/Atoms/Item/index.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
import { ItemProps } from './@types'
|
||||
|
||||
export function Item({ children, ...props }: ItemProps) {
|
||||
return <li {...props}>{children}</li>
|
||||
}
|
22
src/components/Molecules/Accordion/@types/index.d.ts
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
import { HTMLAttributes, ReactNode } from 'react'
|
||||
|
||||
export interface MainProps
|
||||
extends Omit<AccordionProps, 'setCurrentAccordion'>,
|
||||
HTMLAttributes<HTMLDivElement> {
|
||||
children: ReactNode | ReactNode[]
|
||||
}
|
||||
|
||||
export interface HeaderProps
|
||||
extends Omit<AccordionProps, 'setCurrentAccordion'>,
|
||||
HTMLAttributes<HTMLDivElement> {
|
||||
children: ReactNode | ReactNode[]
|
||||
}
|
||||
|
||||
export interface ContentProps extends HTMLAttributes<HTMLDivElement> {
|
||||
children: ReactNode | ReactNode[]
|
||||
}
|
||||
|
||||
export interface AccordionProps {
|
||||
customKey: string | number
|
||||
setCurrentAccordion: (customKey) => void
|
||||
}
|
147
src/components/Molecules/Accordion/README.md
Normal file
@ -0,0 +1,147 @@
|
||||
# Componente Accordion
|
||||
|
||||
Esse componente foi criado sem nenhuma biblioteca externa, aqui deixo as maneiras de utilizar esse componente
|
||||
|
||||
## Primeiros Passos
|
||||
|
||||
Caso queira usar o componente, é recomendado, que estude sobre, `useContext`, `createContext`, e `useState`;
|
||||
Caso queira usar e não tem os conhecimentos, veja os exemplo a seguir.
|
||||
|
||||
```jsx
|
||||
import { createContext, useState } from 'react'
|
||||
|
||||
interface fooProps {
|
||||
current: string | number // O current(Atual) pode ser uma string ou number
|
||||
handleSetCurrent: (customkey) => void // O handleSetCurrent é uma função que vc pode criar para fazer as alterações que desejar no funcionamento
|
||||
// O paremetro passado chamado de customKey servi para identificar e 'setar' o Accordion Atual
|
||||
}
|
||||
|
||||
const foo = createContext({
|
||||
current: '', // Aqui demostra o componente que está aberto atualmente
|
||||
} as fooProps) // Aqui estamos o nosso contexto do nosso Accordion
|
||||
|
||||
// Provedor do Contexto
|
||||
interface AccordionProviderItemsProps {
|
||||
children: ReactNode | ReactNode[]
|
||||
value: fooProps
|
||||
}
|
||||
|
||||
export const AccordionProviderItems = ({
|
||||
children,
|
||||
value,
|
||||
}: AccordionProviderItemsProps) => {
|
||||
return (
|
||||
<>
|
||||
<AccordionContextItems.Provider value={value}>
|
||||
{children}
|
||||
</AccordionContextItems.Provider>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
// Estado que deve ser criado
|
||||
const [accordionCurrentIsOpen, setAccordionCurrentIsOpen] = useState<string | number | ''>('')
|
||||
|
||||
// Demostração da função handleSetCurrent
|
||||
function handleSetCurrent(customkey: string | number | '') {
|
||||
if (customkey === accordionCurrentIsOpen) {/*A verificação do customKey com o state*/
|
||||
// Essa veficação fica engarregada de verificar se o usario clicou no mesmo Accordion
|
||||
|
||||
// SE Clicou no mesmo Accordion 'setar' a customKey para 'vazio'
|
||||
// SENÃO 'setar' customKey
|
||||
|
||||
// A customKey é um identificador para cada Accordion da página caso queira, já que vc pode criar em qualquer lugar dá página
|
||||
|
||||
// Ok, se isso é um identificador se eu colocar outro igual ?
|
||||
// Simplemente ele íra abrir e fechar os identificadores iguais e fechar o mesmo quando clicado por um deles
|
||||
|
||||
setAccordionCurrentIsOpen('')
|
||||
} else {
|
||||
setAccordionCurrentIsOpen(customkey)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Como usar ?
|
||||
import { Accordion } from "foo"
|
||||
|
||||
function Exemple() {
|
||||
const [accordionCurrentIsOpen, setAccordionCurrentIsOpen] = useState<string | number | ''>('')
|
||||
|
||||
|
||||
function handleSetCurrent(customkey: string | number | '') {
|
||||
if (customkey === accordionCurrentIsOpen) {
|
||||
setAccordionCurrentIsOpen('')
|
||||
} else {
|
||||
setAccordionCurrentIsOpen(customkey)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<AccordionProviderItems
|
||||
value={{
|
||||
current: accordionCurrentIsOpen,
|
||||
handleSetCurrent: handleSetCurrentAccordion,
|
||||
}}
|
||||
>
|
||||
<div>
|
||||
<Accordion customKey={"Identificador"}>
|
||||
<Accordion.Header customKey={"Identificador"}>
|
||||
{/*Elemento escolhido para abrir*/}
|
||||
</Accordion.Header>
|
||||
<Accordion.Content>
|
||||
{/*Qualquer Elemento que vai renderizar*/}
|
||||
</Accordion.Content>
|
||||
</Accordion>
|
||||
</div>
|
||||
<div>
|
||||
<Accordion customKey={"Identificador"}>
|
||||
<Accordion.Header customKey={"Identificador"}>
|
||||
{/*Elemento escolhido para abrir*/}
|
||||
</Accordion.Header>
|
||||
<Accordion.Content>
|
||||
{/*Qualquer Elemento que vai renderizar*/}
|
||||
</Accordion.Content>
|
||||
</Accordion>
|
||||
</div>
|
||||
<div>
|
||||
<Accordion customKey={"Identificador"}>
|
||||
<Accordion.Header customKey={"Identificador"}>
|
||||
{/*Elemento escolhido para abrir*/}
|
||||
</Accordion.Header>
|
||||
<Accordion.Content>
|
||||
{/*Qualquer Elemento que vai renderizar*/}
|
||||
</Accordion.Content>
|
||||
</Accordion>
|
||||
</div>
|
||||
</AccordionProviderItems>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
/*Como Estilizar*/
|
||||
.accordion {
|
||||
/*...*/
|
||||
}
|
||||
|
||||
.accordion.active {
|
||||
/*...*/
|
||||
}
|
||||
|
||||
.accordion-content {
|
||||
/*...*/
|
||||
}
|
||||
|
||||
.accordion-icon {
|
||||
/*...*/
|
||||
}
|
||||
|
||||
/*Alguns Components estão disponiveis para colocar classes HTML criadas por você*/
|
||||
```
|
||||
|
||||
Aviso Componente Criado em um desafio, pode ocorrer problemas com algumas coisas, então devido a colocação em que estão, esse componente não será atualizado
|
28
src/components/Molecules/Accordion/context/Items.tsx
Normal file
@ -0,0 +1,28 @@
|
||||
import { createContext, ReactNode } from 'react'
|
||||
|
||||
interface IAccordionItemsValues {
|
||||
current: string | number | ''
|
||||
handleSetCurrent: (customKey: string | number | '') => void
|
||||
}
|
||||
|
||||
export let AccordionContextItems = createContext<IAccordionItemsValues>({
|
||||
current: '',
|
||||
} as IAccordionItemsValues)
|
||||
|
||||
interface AccordionProviderItemsProps {
|
||||
children: ReactNode | ReactNode[]
|
||||
value: IAccordionItemsValues
|
||||
}
|
||||
|
||||
export const AccordionProviderItems = ({
|
||||
children,
|
||||
value,
|
||||
}: AccordionProviderItemsProps) => {
|
||||
return (
|
||||
<>
|
||||
<AccordionContextItems.Provider value={value}>
|
||||
{children}
|
||||
</AccordionContextItems.Provider>
|
||||
</>
|
||||
)
|
||||
}
|
72
src/components/Molecules/Accordion/index.scss
Normal file
@ -0,0 +1,72 @@
|
||||
.accordion {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
z-index: 10;
|
||||
|
||||
&-content {
|
||||
height: 0;
|
||||
transform: translateY(-5%);
|
||||
transition: 180ms ease-in;
|
||||
}
|
||||
}
|
||||
|
||||
.accordion.active {
|
||||
overflow: unset;
|
||||
.accordion-content {
|
||||
height: auto;
|
||||
transform: translateY(0%);
|
||||
}
|
||||
}
|
||||
|
||||
.accordion.active {
|
||||
.accordion-content {
|
||||
margin-top: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.accordion {
|
||||
header {
|
||||
width: 100%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
&-icon {
|
||||
position: relative;
|
||||
|
||||
width: 7.8px;
|
||||
height: 8.28px;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
background-color: var(--clr-gray-800);
|
||||
}
|
||||
|
||||
&::before {
|
||||
top: 50%;
|
||||
right: 0;
|
||||
transform: translateY(-50%);
|
||||
height: 2px;
|
||||
}
|
||||
|
||||
&::after {
|
||||
right: 50%;
|
||||
transform: translateX(50%);
|
||||
height: 100%;
|
||||
width: 2px;
|
||||
transition: 200ms linear;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.accordion.active {
|
||||
.accordion-icon {
|
||||
&::after {
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
}
|
54
src/components/Molecules/Accordion/index.tsx
Normal file
@ -0,0 +1,54 @@
|
||||
import { useContext } from 'react'
|
||||
import { ContentProps, HeaderProps, MainProps } from './@types/index'
|
||||
import { AccordionContextItems } from './context/Items'
|
||||
|
||||
import './index.scss'
|
||||
|
||||
const Main = ({ customKey, children, className, ...props }: MainProps) => {
|
||||
const { current } = useContext(AccordionContextItems)
|
||||
|
||||
const isOpen = () => {
|
||||
if (current === customKey) {
|
||||
return 'active'
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`${className} accordion ${isOpen()}`}
|
||||
data-jsx="target"
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
const Header = ({ customKey, children, className, ...props }: HeaderProps) => {
|
||||
const { handleSetCurrent } = useContext(AccordionContextItems)
|
||||
|
||||
return (
|
||||
<header
|
||||
className={`${className}`}
|
||||
onClick={() => handleSetCurrent(customKey)}
|
||||
role={'button'}
|
||||
data-jsx="event"
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
<i className="accordion-icon" role={'presentation'}></i>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
|
||||
const Content = ({ children, className, ...props }: ContentProps) => {
|
||||
return (
|
||||
<div className={`accordion-content ${className}`} {...props}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export const Accordion = Object.assign(Main, { Header, Content })
|
45
src/components/Molecules/Breadcrumb/index.module.scss
Normal file
@ -0,0 +1,45 @@
|
||||
@use '../../../styles/utils/helpers/mixin' as mix;
|
||||
|
||||
.list {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
.initial {
|
||||
img {
|
||||
@include mix.square(16px);
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
@include mix.square(31.25px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.divider {
|
||||
@include mix.square(8px);
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
@include mix.square(15.62px);
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--clr-gray-400);
|
||||
|
||||
transition: color 200ms linear;
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-primary-blue-500);
|
||||
}
|
||||
}
|
||||
}
|
35
src/components/Molecules/Breadcrumb/index.tsx
Normal file
@ -0,0 +1,35 @@
|
||||
import arrowRightIcon from '../../../assets/icons/arrow-right.svg'
|
||||
import initialHomeIcon from '../../../assets/icons/home.svg'
|
||||
|
||||
import css from './index.module.scss'
|
||||
|
||||
import { HTMLAttributes } from 'react'
|
||||
|
||||
interface BreadcrumbProps extends HTMLAttributes<HTMLDivElement> {
|
||||
list: Array<{ name: string; href: string }>
|
||||
}
|
||||
|
||||
export function Breadcrumb({ list, ...props }: BreadcrumbProps) {
|
||||
return (
|
||||
<div {...props}>
|
||||
<ul className={css.list}>
|
||||
<li className={css.initial}>
|
||||
<a href="/">
|
||||
<img src={initialHomeIcon} alt="" />
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{list.map(({ name, href }) => {
|
||||
return (
|
||||
<li key={name + '-breadcrumb-item'} className={css.item}>
|
||||
<div className={css.divider}>
|
||||
<img src={arrowRightIcon} alt="ícone de divisão" />
|
||||
</div>
|
||||
<a href={href}>{name}</a>
|
||||
</li>
|
||||
)
|
||||
})}
|
||||
</ul>
|
||||
</div>
|
||||
)
|
||||
}
|
15
src/components/Molecules/ButtonIcon/index.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { ButtonHTMLAttributes } from 'react'
|
||||
import { Icon } from '../../Atoms/Icon'
|
||||
|
||||
interface ButtonIconProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
||||
src: any
|
||||
alt: string
|
||||
}
|
||||
|
||||
export function ButtonIcon({ src, alt, ...props }: ButtonIconProps) {
|
||||
return (
|
||||
<button {...props}>
|
||||
<Icon className="btn-icon icon" src={src} alt={alt} />
|
||||
</button>
|
||||
)
|
||||
}
|
12
src/components/Molecules/ItemList/@types/index.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import { AnchorHTMLAttributes, ReactNode } from 'react'
|
||||
import { To } from 'react-router-dom'
|
||||
import { CustomLinkProps } from '../../Atoms/CustomLink/@types'
|
||||
import { ItemProps } from '../../Atoms/Item/@types'
|
||||
|
||||
export interface ItemListProps
|
||||
extends AnchorHTMLAttributes<HTMLAnchorElement>,
|
||||
CustomLinkProps {
|
||||
to?: To
|
||||
children?: ReactNode | ReactNode[]
|
||||
$container?: ItemProps
|
||||
}
|
11
src/components/Molecules/ItemList/index.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import { Item } from '../../Atoms/Item'
|
||||
import { CustomLink } from '../../Atoms/CustomLink'
|
||||
import { ItemListProps } from './@types'
|
||||
|
||||
export function ItemList({ $container, children, ...props }: ItemListProps) {
|
||||
return (
|
||||
<Item {...$container}>
|
||||
<CustomLink {...props}>{children}</CustomLink>
|
||||
</Item>
|
||||
)
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||
sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
||||
monospace;
|
||||
}
|
@ -1,19 +1,10 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import { App } from './App'
|
||||
|
||||
const root = ReactDOM.createRoot(
|
||||
document.getElementById('root') as HTMLElement
|
||||
);
|
||||
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</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
|
||||
reportWebVitals();
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
)
|
||||
|
@ -1 +0,0 @@
|
||||
<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>
|
Before Width: | Height: | Size: 2.6 KiB |
31
src/pages/Institutional/About/index.module.scss
Normal file
@ -0,0 +1,31 @@
|
||||
.about {
|
||||
margin-bottom: 81px;
|
||||
}
|
||||
|
||||
.descriptions {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
|
||||
p {
|
||||
font-weight: 400;
|
||||
font-size: var(--txt-xs);
|
||||
line-height: 18.2px;
|
||||
|
||||
text-align: justify;
|
||||
|
||||
color: var(--clr-gray-700);
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
font-size: var(--txt-small);
|
||||
line-height: 15.23px;
|
||||
|
||||
text-align: initial;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 30.47px;
|
||||
}
|
||||
}
|
||||
}
|
41
src/pages/Institutional/About/index.tsx
Normal file
@ -0,0 +1,41 @@
|
||||
import css from './index.module.scss'
|
||||
|
||||
export function About() {
|
||||
return (
|
||||
<section className={css.about}>
|
||||
<div className={css.container}>
|
||||
<h2 className="title">Sobre</h2>
|
||||
|
||||
<div className={css.descriptions}>
|
||||
<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>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
53
src/pages/Institutional/Contact/containers/_FormGroup.tsx
Normal file
@ -0,0 +1,53 @@
|
||||
import { ErrorMessage } from 'formik'
|
||||
import { InputHTMLAttributes } from 'react'
|
||||
|
||||
import { CustomInput, CustomMaskInput } from './__Input'
|
||||
|
||||
interface FormGroupProps extends InputHTMLAttributes<HTMLInputElement> {
|
||||
error: any
|
||||
name: string | any
|
||||
masked: boolean
|
||||
mask?: any
|
||||
label: string | any
|
||||
}
|
||||
|
||||
export function FormGroup({
|
||||
error,
|
||||
masked,
|
||||
mask,
|
||||
label,
|
||||
name,
|
||||
...props
|
||||
}: FormGroupProps) {
|
||||
return (
|
||||
<div className="form__group">
|
||||
<label className="form__label" htmlFor={name}>
|
||||
{label}
|
||||
</label>
|
||||
|
||||
<div className="form__content">
|
||||
<ErrorMessage
|
||||
className="error-message"
|
||||
component={'span'}
|
||||
name={name}
|
||||
/>
|
||||
|
||||
{masked ? (
|
||||
<CustomMaskInput
|
||||
mask={mask}
|
||||
id={name}
|
||||
name={name}
|
||||
className={`form__input ${error}`}
|
||||
{...props}
|
||||
/>
|
||||
) : (
|
||||
<CustomInput
|
||||
name={name}
|
||||
className={`form__input ${error}`}
|
||||
{...props}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
26
src/pages/Institutional/Contact/containers/__Input.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
import { Field } from 'formik'
|
||||
import { InputHTMLAttributes } from 'react'
|
||||
import MaskedInput, { MaskedInputProps } from 'react-text-mask'
|
||||
|
||||
interface CustomInputProps extends InputHTMLAttributes<HTMLInputElement> {}
|
||||
|
||||
export function CustomInput({ name, ...props }: CustomInputProps) {
|
||||
return <Field id={name} name={name} {...props} />
|
||||
}
|
||||
|
||||
interface CustomMaskInputProps
|
||||
extends InputHTMLAttributes<HTMLInputElement>,
|
||||
Omit<MaskedInputProps, 'mask'> {
|
||||
mask?: any
|
||||
name: string
|
||||
}
|
||||
|
||||
export function CustomMaskInput({ name, ...props }: CustomMaskInputProps) {
|
||||
return (
|
||||
<Field id={name} name={name}>
|
||||
{({ field }: any) => {
|
||||
return <MaskedInput {...field} {...props} id={name} name={name} />
|
||||
}}
|
||||
</Field>
|
||||
)
|
||||
}
|
207
src/pages/Institutional/Contact/index.module.scss
Normal file
@ -0,0 +1,207 @@
|
||||
.contact {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
margin-bottom: 69.56px;
|
||||
|
||||
&__form {
|
||||
.form__container {
|
||||
width: 100%;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form :global {
|
||||
.form__group {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.form__label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
display: block;
|
||||
padding: 0 15px;
|
||||
margin-bottom: 12px;
|
||||
|
||||
font-size: var(--txt-normal);
|
||||
line-height: 16.41px;
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 32.81px;
|
||||
}
|
||||
}
|
||||
|
||||
.form__content {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
.error-message {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
padding: 0 16px;
|
||||
|
||||
text-align: end;
|
||||
|
||||
top: 0;
|
||||
right: 0;
|
||||
transform: translateY(-100%);
|
||||
color: red;
|
||||
font-size: var(--txt-xs);
|
||||
line-height: 14.06px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 28.13px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form__input {
|
||||
display: block;
|
||||
|
||||
width: 100%;
|
||||
height: 46px;
|
||||
padding: 20px;
|
||||
|
||||
border: 1px solid var(--clr-gray-1000);
|
||||
border-radius: 25px;
|
||||
|
||||
font-size: var(--txt-normal);
|
||||
line-height: 16.41px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
height: 63px;
|
||||
padding: 15px 20px;
|
||||
line-height: 32.81px;
|
||||
}
|
||||
|
||||
&::-webkit-input-placeholder,
|
||||
&::placeholder {
|
||||
color: var(--clr-gray-450);
|
||||
}
|
||||
}
|
||||
|
||||
.form-check {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4.28px;
|
||||
margin-bottom: 12px;
|
||||
|
||||
text-align: center;
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
font-size: 22px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: var(--txt-normal);
|
||||
line-height: 16.41px;
|
||||
|
||||
.form-icon-required {
|
||||
display: inline-block;
|
||||
|
||||
text-decoration: none;
|
||||
color: var(--clr-common-red);
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
color: var(--clr-common-black);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 32.81px;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
input {
|
||||
width: 0;
|
||||
height: 0;
|
||||
|
||||
& ~ .custom-checkbox {
|
||||
width: 18.64px;
|
||||
height: 18px;
|
||||
margin-left: 4.28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid var(--clr-common-black);
|
||||
border-radius: 3px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 36.4px;
|
||||
height: 35.15px;
|
||||
}
|
||||
}
|
||||
|
||||
&:checked {
|
||||
& ~ .custom-checkbox:after {
|
||||
content: '';
|
||||
width: 12.64px;
|
||||
height: 12px;
|
||||
border-radius: 3px;
|
||||
background-color: var(--clr-primary-blue-500);
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 26.4px;
|
||||
height: 26.15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button[type='submit'] {
|
||||
width: 100%;
|
||||
height: 52.44px;
|
||||
border-radius: 25px;
|
||||
|
||||
font-weight: 400;
|
||||
|
||||
font-size: var(--txt-medium);
|
||||
line-height: 18.75px;
|
||||
letter-spacing: 0.05em;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--clr-common-black);
|
||||
color: var(--clr-common-white);
|
||||
|
||||
text-transform: uppercase;
|
||||
|
||||
transition: 200ms ease-in-out;
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-common-black);
|
||||
background-color: var(--clr-primary-blue-500);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
height: 71px;
|
||||
}
|
||||
}
|
||||
|
||||
.form__success {
|
||||
opacity: 0;
|
||||
transition: 200ms;
|
||||
color: var(--clr-common-green);
|
||||
font-size: var(--txt-xs);
|
||||
line-height: 14.06px;
|
||||
margin-top: 0px;
|
||||
height: 0;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 28.13px;
|
||||
}
|
||||
}
|
||||
|
||||
.form__success.form__success-active {
|
||||
opacity: 1;
|
||||
margin-top: 12px;
|
||||
height: auto;
|
||||
}
|
||||
}
|
183
src/pages/Institutional/Contact/index.tsx
Normal file
@ -0,0 +1,183 @@
|
||||
import { Field, Form, Formik } from 'formik'
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
/* import { Input } from './fragments/Input' */
|
||||
|
||||
import validadeShema from './schema/FormSchema'
|
||||
|
||||
import styles from './index.module.scss'
|
||||
|
||||
import { FormGroup } from './containers/_FormGroup'
|
||||
|
||||
export function Contact() {
|
||||
const [isSubmiting, setIsSubmiting] = useState(false)
|
||||
|
||||
const initialValues = useMemo(() => {
|
||||
return {
|
||||
fullname: '',
|
||||
email: '',
|
||||
cpf: '',
|
||||
date: '',
|
||||
tel: '',
|
||||
socials_instagram: '',
|
||||
terms: false,
|
||||
}
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
if (isSubmiting) {
|
||||
setTimeout(() => {
|
||||
setIsSubmiting(false)
|
||||
}, 2000)
|
||||
}
|
||||
}, [isSubmiting])
|
||||
|
||||
return (
|
||||
<section className={styles['contact']}>
|
||||
<div>
|
||||
<h2 className="title">Preencha o formulário</h2>
|
||||
|
||||
<Formik
|
||||
onSubmit={(values, e) => {
|
||||
e.resetForm({
|
||||
isSubmitting: true,
|
||||
})
|
||||
|
||||
setIsSubmiting(true)
|
||||
}}
|
||||
initialValues={initialValues}
|
||||
validationSchema={validadeShema}
|
||||
>
|
||||
{({ errors, touched }) => {
|
||||
return (
|
||||
<Form className={`${styles['contact__form']} ${styles['form']}`}>
|
||||
<fieldset className={styles['form__container']}>
|
||||
<FormGroup
|
||||
label="Nome"
|
||||
name="fullname"
|
||||
type="text"
|
||||
placeholder="Seu nome completo"
|
||||
error={errors && touched && 'touched'}
|
||||
masked={false}
|
||||
/>
|
||||
|
||||
<FormGroup
|
||||
label="Email"
|
||||
type="email"
|
||||
name="email"
|
||||
placeholder="Seu e-mail"
|
||||
error={errors && touched && 'touched'}
|
||||
masked={false}
|
||||
/>
|
||||
|
||||
<FormGroup
|
||||
mask={[
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
'.',
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
'.',
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
'-',
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
]}
|
||||
label="CPF"
|
||||
type="text"
|
||||
name="cpf"
|
||||
placeholder="000.000.000-00"
|
||||
error={errors && touched && 'touched'}
|
||||
masked={true}
|
||||
/>
|
||||
|
||||
<FormGroup
|
||||
mask={[
|
||||
/[0-3]/,
|
||||
/[0-9]/,
|
||||
'.',
|
||||
/[0-1]/,
|
||||
/[0-9]/,
|
||||
'.',
|
||||
/[0-9]/,
|
||||
/[0-9]/,
|
||||
/[0-9]/,
|
||||
/[0-9]/,
|
||||
]}
|
||||
label="Data de Nascimento:"
|
||||
type="text"
|
||||
name="date"
|
||||
placeholder="00.00.0000"
|
||||
error={errors && touched && 'touched'}
|
||||
masked={true}
|
||||
/>
|
||||
|
||||
<FormGroup
|
||||
mask={[
|
||||
'(',
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
')',
|
||||
' ',
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
'-',
|
||||
/[0-9]/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
/\d/,
|
||||
]}
|
||||
label="Telefone:"
|
||||
type="tel"
|
||||
name="tel"
|
||||
placeholder="(00) 00000-0000"
|
||||
error={errors && touched && 'touched'}
|
||||
masked={true}
|
||||
/>
|
||||
|
||||
<FormGroup
|
||||
label="Instagram"
|
||||
type="text"
|
||||
name="socials_instagram"
|
||||
placeholder="@seuuser"
|
||||
error={errors && touched && 'touched'}
|
||||
masked={false}
|
||||
/>
|
||||
|
||||
<div className="form-check">
|
||||
<label htmlFor="terms">
|
||||
<span>
|
||||
<span className="form-icon-required">*</span>{' '}
|
||||
<a href="/">Declaro que li e aceito</a>
|
||||
</span>
|
||||
<Field id="terms" name="terms" type="checkbox" required />
|
||||
<span className="custom-checkbox"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<button className={styles['submit']} type="submit">
|
||||
Cadastre-se
|
||||
</button>
|
||||
|
||||
<p
|
||||
className={`form__success ${
|
||||
isSubmiting ? 'form__success-active' : ''
|
||||
}`}
|
||||
>
|
||||
*Formulário enviado com sucesso!
|
||||
</p>
|
||||
</fieldset>
|
||||
</Form>
|
||||
)
|
||||
}}
|
||||
</Formik>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
39
src/pages/Institutional/Contact/schema/FormSchema.tsx
Normal file
@ -0,0 +1,39 @@
|
||||
import * as Yup from 'yup'
|
||||
|
||||
const messages = {
|
||||
required: '*Campo Obrigatório',
|
||||
}
|
||||
|
||||
const emailRegexPattern = /^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/
|
||||
const cpfRegexPattern = /^([0-9]){3}\.([0-9]){3}\.([0-9]){3}-([0-9]){2}$/
|
||||
const telRegexPattern = /\(([0-9]{1,3})\) ([0-9]{5})-([0-9]{4})/
|
||||
const dateRegexPattern =
|
||||
/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/
|
||||
|
||||
export default Yup.object().shape({
|
||||
fullname: Yup.string()
|
||||
.trim()
|
||||
.min(7, 'Nome completo muito curto')
|
||||
.max(60, 'Nome completo muito grande')
|
||||
.required(messages.required),
|
||||
email: Yup.string()
|
||||
.matches(emailRegexPattern, { message: 'Email ínvalido' })
|
||||
.required(messages.required)
|
||||
.email('Email ínvalido'),
|
||||
cpf: Yup.string()
|
||||
.matches(cpfRegexPattern, { message: 'CPF ínvalido' })
|
||||
.required(messages.required),
|
||||
tel: Yup.string()
|
||||
.matches(telRegexPattern, { message: 'Número de Telefone ínvalido' })
|
||||
.required(messages.required),
|
||||
date: Yup.string()
|
||||
.matches(dateRegexPattern, { message: 'Data de Nascimento ínvalido' })
|
||||
.required(messages.required),
|
||||
socials_instagram: Yup.string().matches(
|
||||
/(?:^|[^\w])(?:@)([A-Za-z0-9_](?:(?:[A-Za-z0-9_]|(?:\.(?!\.))){0,28}(?:[A-Za-z0-9_]))?)/,
|
||||
{
|
||||
messages: 'Instagram ínvalido',
|
||||
}
|
||||
),
|
||||
terms: Yup.boolean().required('*'),
|
||||
})
|
@ -1,15 +0,0 @@
|
||||
import { ReportHandler } from 'web-vitals';
|
||||
|
||||
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
|
||||
if (onPerfEntry && onPerfEntry instanceof Function) {
|
||||
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
||||
getCLS(onPerfEntry);
|
||||
getFID(onPerfEntry);
|
||||
getFCP(onPerfEntry);
|
||||
getLCP(onPerfEntry);
|
||||
getTTFB(onPerfEntry);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default reportWebVitals;
|
13
src/routes/containers/_BreadCrumb.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import { useMemo } from 'react'
|
||||
import { Breadcrumb } from '../../components/Molecules/Breadcrumb'
|
||||
import styles from '../index.module.scss'
|
||||
|
||||
export function RouterBreadcrumb() {
|
||||
let list = useMemo(() => [{ name: 'Introduction', href: '/' }], [])
|
||||
|
||||
return (
|
||||
<nav className={styles['breadcrumb-container']}>
|
||||
<Breadcrumb className={styles['breadcrumb']} list={list} />
|
||||
</nav>
|
||||
)
|
||||
}
|
39
src/routes/containers/_ScrollFixed.tsx
Normal file
@ -0,0 +1,39 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { ItemList } from '../../components/Molecules/ItemList'
|
||||
|
||||
import whatsappImg from '../../assets/brands/svgs/whatsapp.svg'
|
||||
import scrollTopImg from '../../assets/icons/scroll-top.svg'
|
||||
|
||||
import styles from '../index.module.scss'
|
||||
|
||||
export function ScrollFixed() {
|
||||
const [isScrollTop, setIsScrollTop] = useState<boolean>(false)
|
||||
|
||||
useEffect(() => {
|
||||
window.addEventListener('scroll', () => {
|
||||
if (window.scrollY > 100) {
|
||||
setIsScrollTop(true)
|
||||
} else {
|
||||
setIsScrollTop(false)
|
||||
}
|
||||
})
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<ul>
|
||||
<ul className={styles['scroll__fixed']}>
|
||||
<ItemList
|
||||
className={styles['scroll__fixed-whatsapp']}
|
||||
href="https://wa.me/254777123456"
|
||||
>
|
||||
<img src={whatsappImg} alt="" />
|
||||
</ItemList>
|
||||
{isScrollTop && (
|
||||
<ItemList className={styles['scroll__fixed-top']} href={'#root'}>
|
||||
<img src={scrollTopImg} alt="" />
|
||||
</ItemList>
|
||||
)}
|
||||
</ul>
|
||||
</ul>
|
||||
)
|
||||
}
|
97
src/routes/index.module.scss
Normal file
@ -0,0 +1,97 @@
|
||||
@use '../styles/utils/helpers/functions' as function;
|
||||
|
||||
main :global {
|
||||
.main-container {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.breadcrumb :global {
|
||||
a {
|
||||
font-size: var(--txt-xs);
|
||||
line-height: 14.06px;
|
||||
|
||||
text-transform: uppercase;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 28.13px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.breadcrumb-container {
|
||||
width: 100%;
|
||||
padding: 0 16px;
|
||||
margin-top: 29px;
|
||||
margin-bottom: 81px;
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
width: function.fluid(1080px, 1280px);
|
||||
margin: 29px auto 81px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: function.fluid(2299.68px, 2500px);
|
||||
}
|
||||
}
|
||||
|
||||
.scroll__fixed {
|
||||
position: fixed;
|
||||
right: 16px;
|
||||
bottom: 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
bottom: 168px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
bottom: 229.24px;
|
||||
}
|
||||
|
||||
&-whatsapp,
|
||||
&-top {
|
||||
display: block;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 66px;
|
||||
height: 66px;
|
||||
}
|
||||
}
|
||||
|
||||
&-whatsapp {
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--clr-gray-400);
|
||||
border-radius: 100%;
|
||||
|
||||
img {
|
||||
width: 12px;
|
||||
height: 6.46px;
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
width: 13px;
|
||||
height: 7px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: 24.24px;
|
||||
height: 13px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
67
src/routes/index.tsx
Normal file
@ -0,0 +1,67 @@
|
||||
import { Outlet, Route, Routes } from 'react-router-dom'
|
||||
|
||||
import { Header } from '../template/Header'
|
||||
|
||||
import { Sidebar } from '../template/Sidebar'
|
||||
import { About } from '../pages/Institutional/About'
|
||||
import { Contact } from '../pages/Institutional/Contact'
|
||||
import { Footer } from '../template/Footer'
|
||||
import { RouterBreadcrumb } from './containers/_BreadCrumb'
|
||||
import { ScrollFixed } from './containers/_ScrollFixed'
|
||||
|
||||
export function Router() {
|
||||
return (
|
||||
<Routes>
|
||||
<Route
|
||||
path="/"
|
||||
element={
|
||||
<>
|
||||
<Header />
|
||||
<div className="window-routes">
|
||||
<RouterBreadcrumb />
|
||||
<Outlet />
|
||||
</div>
|
||||
<Footer />
|
||||
<ScrollFixed />
|
||||
</>
|
||||
}
|
||||
>
|
||||
<Route
|
||||
path="/"
|
||||
element={
|
||||
<>
|
||||
<main className="window-content">
|
||||
<h1 className="main-title">Institutional</h1>
|
||||
<div className="window-initial">
|
||||
<Sidebar />
|
||||
<div className="main-container">
|
||||
<Outlet />
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</>
|
||||
}
|
||||
>
|
||||
<Route index element={<About />} />
|
||||
<Route path="/contact" element={<Contact />} />
|
||||
<Route
|
||||
path="/payments"
|
||||
element={<h2 className="title">Formas de pagamentos</h2>}
|
||||
/>
|
||||
<Route
|
||||
path="/exchange"
|
||||
element={<h2 className="title">Troca e Devolução</h2>}
|
||||
/>
|
||||
<Route
|
||||
path="/privacity"
|
||||
element={<h2 className="title">Privacidade</h2>}
|
||||
/>
|
||||
<Route
|
||||
path="/shipping"
|
||||
element={<h2 className="title">Entrega</h2>}
|
||||
/>
|
||||
</Route>
|
||||
</Route>
|
||||
</Routes>
|
||||
)
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
// 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';
|
118
src/styles/global/_config.scss
Normal file
@ -0,0 +1,118 @@
|
||||
@use '../utils/resources/colors' as var;
|
||||
@use '../utils/helpers/functions' as function;
|
||||
@use '../utils/resources/fonts' as fonts;
|
||||
|
||||
:root {
|
||||
@each $name, $value in var.$clr-common {
|
||||
--clr-common-#{$name}: #{$value};
|
||||
}
|
||||
|
||||
--clr-primary-purple-500: #{map-get(var.$clr-primary-purple, '500')};
|
||||
--clr-primary-blue-500: #{map-get(var.$clr-primary-blue, '500')};
|
||||
|
||||
@each $name, $value in var.$clr-gray {
|
||||
--clr-gray-#{$name}: #{$value};
|
||||
}
|
||||
|
||||
--font-family-100: #{fonts.$font-family-100};
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-family-100);
|
||||
}
|
||||
|
||||
body {
|
||||
--txt-xxs: 10px;
|
||||
--txt-xs: 12px;
|
||||
--txt-small: 13px;
|
||||
--txt-normal: 14px;
|
||||
--txt-medium: 16px;
|
||||
--txt-large: 18px;
|
||||
--txt-xl: 24px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
--txt-xxs: 20px;
|
||||
--txt-xs: 24px;
|
||||
--txt-small: 26px;
|
||||
--txt-normal: 28px;
|
||||
--txt-medium: 32px;
|
||||
--txt-large: 36px;
|
||||
--txt-xl: 48px;
|
||||
}
|
||||
}
|
||||
|
||||
a,
|
||||
input,
|
||||
button,
|
||||
textarea {
|
||||
font-family: var(--font-family-100);
|
||||
}
|
||||
|
||||
.window-content {
|
||||
width: 100%;
|
||||
padding: 0 16px;
|
||||
|
||||
.main-title {
|
||||
font-weight: 400;
|
||||
font-size: var(--txt-xl);
|
||||
font-family: var(--font-family-100);
|
||||
letter-spacing: 0.1em;
|
||||
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
|
||||
color: var(--clr-gray-900);
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
margin-bottom: 82px;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-bottom: 12px;
|
||||
|
||||
font-weight: 700;
|
||||
font-size: var(--txt-xl);
|
||||
|
||||
text-align: center;
|
||||
|
||||
color: var(--clr-gray-900);
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
text-align: initial;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
width: function.fluid(1080px, 1280px);
|
||||
padding: 0;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: function.fluid(2299.68px, 2500px);
|
||||
}
|
||||
}
|
||||
|
||||
.window-initial {
|
||||
min-height: 60vh;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 30px;
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
grid-template-columns:
|
||||
function.fluid(302px, 1080px)
|
||||
function.fluid(748px, 1080px);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
grid-template-columns:
|
||||
function.fluid(590px, 2299.68px)
|
||||
function.fluid(1680px, 2299.68px);
|
||||
}
|
||||
}
|
34
src/styles/global/_reset.scss
Normal file
@ -0,0 +1,34 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
li,
|
||||
ol,
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
input,
|
||||
button {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
[role='button'],
|
||||
.btn-ref,
|
||||
button {
|
||||
cursor: pointer;
|
||||
}
|
2
src/styles/global/exports.scss
Normal file
@ -0,0 +1,2 @@
|
||||
@import './reset';
|
||||
@import './config';
|
2
src/styles/index.scss
Normal file
@ -0,0 +1,2 @@
|
||||
@import './global/exports.scss';
|
||||
@import './utils/exports.scss';
|
4
src/styles/utils/exports.scss
Normal file
@ -0,0 +1,4 @@
|
||||
@import './resources/colors';
|
||||
@import './resources/fonts';
|
||||
@import './helpers/mixin';
|
||||
@import './helpers/functions';
|
7
src/styles/utils/helpers/_functions.scss
Normal file
@ -0,0 +1,7 @@
|
||||
@function fluid($width, $design-width) {
|
||||
$width: calc($width / $design-width * 100);
|
||||
|
||||
$width: quote($width + '%');
|
||||
|
||||
@return unquote($width);
|
||||
}
|
4
src/styles/utils/helpers/_mixin.scss
Normal file
@ -0,0 +1,4 @@
|
||||
@mixin square($size) {
|
||||
width: #{$size};
|
||||
height: #{$size};
|
||||
}
|
29
src/styles/utils/resources/_colors.scss
Normal file
@ -0,0 +1,29 @@
|
||||
$clr-common: (
|
||||
'black': #000,
|
||||
'white': #fff,
|
||||
'red': #ff0000,
|
||||
'green': #008000,
|
||||
);
|
||||
|
||||
$clr-primary-purple: (
|
||||
'500': #5200ff,
|
||||
);
|
||||
|
||||
$clr-primary-blue: (
|
||||
'500': #00c8ff,
|
||||
);
|
||||
|
||||
$clr-gray: (
|
||||
'100': #fafafa,
|
||||
'150': #f0f0f0,
|
||||
'200': #f2f2f2,
|
||||
'300': #c7c7c7,
|
||||
'400': #c4c4c4,
|
||||
'450': #b8b7b7,
|
||||
'500': #919191,
|
||||
'600': #7d7d7d,
|
||||
'700': #5e5e5e,
|
||||
'800': #303030,
|
||||
'900': #292929,
|
||||
'1000': #110e0f,
|
||||
);
|
1
src/styles/utils/resources/_fonts.scss
Normal file
@ -0,0 +1 @@
|
||||
$font-family-100: 'Roboto', Arial, Helvetica, sans-serif;
|
15
src/template/Footer/@types/index.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
import { AccordionProps } from '../../../components/Molecules/Accordion/@types'
|
||||
|
||||
export interface InstitutionalListProps
|
||||
extends Omit<AccordionProps, 'setCurrentAccordion'> {}
|
||||
|
||||
export interface ContactListProps
|
||||
extends Omit<AccordionProps, 'setCurrentAccordion'> {}
|
||||
|
||||
export interface QuestionsListProps
|
||||
extends Omit<AccordionProps, 'setCurrentAccordion'> {}
|
||||
|
||||
export interface ListProps {
|
||||
accordionCurrentIsOpen: string | number | ''
|
||||
handleSetCurrentAccordion: (customKey: string | number | '') => void
|
||||
}
|
45
src/template/Footer/containers/_List.tsx
Normal file
@ -0,0 +1,45 @@
|
||||
import { ListProps } from '../@types'
|
||||
|
||||
import { AccordionProviderItems } from '../../../components/Molecules/Accordion/context/Items'
|
||||
|
||||
import { ContactList } from './__Contact'
|
||||
import { InstitutionalList } from './__Institutional'
|
||||
import { QuestionsList } from './__Question'
|
||||
import { Socials } from './__Socials'
|
||||
|
||||
import css from '../index.module.scss'
|
||||
import { Item } from '../../../components/Atoms/Item'
|
||||
import { CustomLink } from '../../../components/Atoms/CustomLink'
|
||||
|
||||
export function List({
|
||||
accordionCurrentIsOpen,
|
||||
handleSetCurrentAccordion,
|
||||
}: ListProps) {
|
||||
return (
|
||||
<>
|
||||
<AccordionProviderItems
|
||||
value={{
|
||||
current: accordionCurrentIsOpen,
|
||||
handleSetCurrent: handleSetCurrentAccordion,
|
||||
}}
|
||||
>
|
||||
<ul className={`${css['footer__lists']} ${css['lists']}`}>
|
||||
<Item>
|
||||
<InstitutionalList customKey={'institutional'} />
|
||||
</Item>
|
||||
<Item>
|
||||
<QuestionsList customKey={'question'} />
|
||||
</Item>
|
||||
|
||||
<Item>
|
||||
<ContactList customKey={'contact'} />
|
||||
</Item>
|
||||
</ul>
|
||||
<div className={css['footer__network']}>
|
||||
<Socials />
|
||||
<CustomLink href="/">www.loremipsum.com</CustomLink>
|
||||
</div>
|
||||
</AccordionProviderItems>
|
||||
</>
|
||||
)
|
||||
}
|
60
src/template/Footer/containers/_Newsletter.tsx
Normal file
@ -0,0 +1,60 @@
|
||||
import { Field, Form, Formik } from 'formik'
|
||||
import { useEffect, useState } from 'react'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import styles from '../index.module.scss'
|
||||
|
||||
const schema = Yup.object({
|
||||
email: Yup.string().required('Campo Obrigratorio').email('Email ínvalido'),
|
||||
})
|
||||
|
||||
export function Newsletter() {
|
||||
const [isSubmiting, setIsSubmiting] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
if (isSubmiting) {
|
||||
setTimeout(() => {
|
||||
setIsSubmiting(false)
|
||||
}, 2000)
|
||||
}
|
||||
}, [isSubmiting])
|
||||
|
||||
return (
|
||||
<section className={styles['newsletter']}>
|
||||
<div className={styles['newsletter__container']}>
|
||||
<div className={styles['newsletter__content']}>
|
||||
<h3>Assine nossa newsletter</h3>
|
||||
<Formik
|
||||
initialValues={{ email: '' }}
|
||||
onSubmit={(values, e) => {
|
||||
e.resetForm({
|
||||
isSubmitting: true,
|
||||
})
|
||||
|
||||
setIsSubmiting(true)
|
||||
}}
|
||||
validationSchema={schema}
|
||||
>
|
||||
<Form className={styles['newsletter__form']}>
|
||||
<fieldset className="form-container">
|
||||
<div className="form-group">
|
||||
<div className="form-input">
|
||||
<Field name="email" type="text" placeholder="E-mail" />
|
||||
</div>
|
||||
<button type="submit">Enviar</button>
|
||||
</div>
|
||||
<p
|
||||
className={`form__success ${
|
||||
isSubmiting ? 'form__success-active' : ''
|
||||
}`}
|
||||
>
|
||||
*Formulário enviado com sucesso!
|
||||
</p>
|
||||
</fieldset>
|
||||
</Form>
|
||||
</Formik>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
39
src/template/Footer/containers/_Payment.tsx
Normal file
@ -0,0 +1,39 @@
|
||||
import BoletoImg from '../../../assets/brands/Boleto.png'
|
||||
import DinersBrandImg from '../../../assets/brands/Diners.png'
|
||||
import EloBrandImg from '../../../assets/brands/Elo.png'
|
||||
import HiperBrandImg from '../../../assets/brands/Hiper.png'
|
||||
import PaypalBrandImg from '../../../assets/brands/Paypal.png'
|
||||
import MasterCardBrandImg from '../../../assets/brands/Master.png'
|
||||
import VisaBrandImg from '../../../assets/brands/Visa.png'
|
||||
import VtexPCIImg from '../../../assets/brands/vtex-pci-200.png'
|
||||
|
||||
import styles from '../index.module.scss'
|
||||
import { Item } from '../../../components/Atoms/Item'
|
||||
|
||||
const assetsImg = [
|
||||
MasterCardBrandImg,
|
||||
VisaBrandImg,
|
||||
DinersBrandImg,
|
||||
EloBrandImg,
|
||||
HiperBrandImg,
|
||||
PaypalBrandImg,
|
||||
BoletoImg,
|
||||
]
|
||||
|
||||
export function PaymentsList() {
|
||||
return (
|
||||
<ul className={`${styles['footer__payments']} ${styles['payments']}`}>
|
||||
{assetsImg.map((image, index) => {
|
||||
return (
|
||||
<Item className={`${styles['payments__item']}`} key={index}>
|
||||
<img className="payments__image" src={image} alt="" />
|
||||
</Item>
|
||||
)
|
||||
})}
|
||||
<div className={`${styles['payments__divider']}`} role={'presentation'} />
|
||||
<Item className={`${styles['payments__item']}`}>
|
||||
<img src={VtexPCIImg} alt="" />
|
||||
</Item>
|
||||
</ul>
|
||||
)
|
||||
}
|
28
src/template/Footer/containers/__Contact.tsx
Normal file
@ -0,0 +1,28 @@
|
||||
import { ContactListProps } from '../@types'
|
||||
|
||||
import { Item } from '../../../components/Atoms/Item'
|
||||
import { Accordion } from '../../../components/Molecules/Accordion'
|
||||
|
||||
import styles from '../index.module.scss'
|
||||
|
||||
export function ContactList({ customKey }: ContactListProps) {
|
||||
return (
|
||||
<Accordion className={styles.accordion} customKey={customKey}>
|
||||
<Accordion.Header
|
||||
customKey={customKey}
|
||||
className={`${styles['lists__header']}`}
|
||||
>
|
||||
<h4>Fale Conosco</h4>
|
||||
</Accordion.Header>
|
||||
|
||||
<Accordion.Content className={`${styles['lists__content']}`}>
|
||||
<ul className={styles['lists__content-list']}>
|
||||
<Item>Atendimento ao Consumidor</Item>
|
||||
<Item>(11) 4159 9504</Item>
|
||||
<Item>Atendimento Online</Item>
|
||||
<Item>(11) 99433-8825</Item>
|
||||
</ul>
|
||||
</Accordion.Content>
|
||||
</Accordion>
|
||||
)
|
||||
}
|
35
src/template/Footer/containers/__Institutional.tsx
Normal file
@ -0,0 +1,35 @@
|
||||
import { InstitutionalListProps } from '../@types'
|
||||
|
||||
import { Accordion } from '../../../components/Molecules/Accordion'
|
||||
|
||||
import css from '../index.module.scss'
|
||||
import { ItemList } from '../../../components/Molecules/ItemList'
|
||||
|
||||
export function InstitutionalList({ customKey }: InstitutionalListProps) {
|
||||
return (
|
||||
<Accordion className={css.accordion} customKey={customKey}>
|
||||
<Accordion.Header
|
||||
customKey={customKey}
|
||||
className={`${css['lists__header']}`}
|
||||
>
|
||||
<h4>Institucional</h4>
|
||||
</Accordion.Header>
|
||||
<Accordion.Content className={`${css['lists__content']}`}>
|
||||
<ul className={css['lists__content-list']}>
|
||||
<ItemList $container={{ className: '' }} href="/">
|
||||
Quem somos nós
|
||||
</ItemList>
|
||||
<ItemList $container={{ className: '' }} href="/">
|
||||
Política de Privacidade
|
||||
</ItemList>
|
||||
<ItemList $container={{ className: '' }} href="/">
|
||||
Segurança
|
||||
</ItemList>
|
||||
<ItemList $container={{ className: '' }} href="/">
|
||||
Seja um Revendedor
|
||||
</ItemList>
|
||||
</ul>
|
||||
</Accordion.Content>
|
||||
</Accordion>
|
||||
)
|
||||
}
|
35
src/template/Footer/containers/__Question.tsx
Normal file
@ -0,0 +1,35 @@
|
||||
import { QuestionsListProps } from '../@types'
|
||||
|
||||
import { Accordion } from '../../../components/Molecules/Accordion'
|
||||
import { ItemList } from '../../../components/Molecules/ItemList'
|
||||
|
||||
import css from '../index.module.scss'
|
||||
|
||||
export function QuestionsList({ customKey }: QuestionsListProps) {
|
||||
return (
|
||||
<Accordion className={css.accordion} customKey={customKey}>
|
||||
<Accordion.Header
|
||||
customKey={customKey}
|
||||
className={`${css['lists__header']}`}
|
||||
>
|
||||
<h4>Dúvidas</h4>
|
||||
</Accordion.Header>
|
||||
<Accordion.Content className={`${css['lists__content']}`}>
|
||||
<ul className={`${css['lists__content-list']}`}>
|
||||
<ItemList $container={{ className: '' }} href="/">
|
||||
Entrega
|
||||
</ItemList>
|
||||
<ItemList $container={{ className: '' }} href="/">
|
||||
Pagamento
|
||||
</ItemList>
|
||||
<ItemList $container={{ className: '' }} href="/">
|
||||
Trocas e Devoluções
|
||||
</ItemList>
|
||||
<ItemList $container={{ className: '' }} href="/">
|
||||
Dúvidas Frequentes
|
||||
</ItemList>
|
||||
</ul>
|
||||
</Accordion.Content>
|
||||
</Accordion>
|
||||
)
|
||||
}
|
31
src/template/Footer/containers/__Socials.tsx
Normal file
@ -0,0 +1,31 @@
|
||||
import { ItemList } from '../../../components/Molecules/ItemList'
|
||||
|
||||
import facebookIcon from '../../../assets/icons/facebook.svg'
|
||||
import instagramIcon from '../../../assets/icons/instagram.svg'
|
||||
import linkedinIcon from '../../../assets/icons/linkedin.svg'
|
||||
import twitterIcon from '../../../assets/icons/twitter.svg'
|
||||
import youtubeIcon from '../../../assets/icons/youtube.svg'
|
||||
|
||||
import css from '../index.module.scss'
|
||||
|
||||
export function Socials() {
|
||||
return (
|
||||
<ul className={css.socials}>
|
||||
<ItemList href="https://facebook.com">
|
||||
<img src={facebookIcon} alt="" />
|
||||
</ItemList>
|
||||
<ItemList href="https://instagram.com">
|
||||
<img src={instagramIcon} alt="" />
|
||||
</ItemList>
|
||||
<ItemList href="https://twitter.com">
|
||||
<img src={twitterIcon} alt="" />
|
||||
</ItemList>
|
||||
<ItemList href="https://youtube.com">
|
||||
<img src={youtubeIcon} alt="" />
|
||||
</ItemList>
|
||||
<ItemList href="https://linkedin.com">
|
||||
<img src={linkedinIcon} alt="" />
|
||||
</ItemList>
|
||||
</ul>
|
||||
)
|
||||
}
|
556
src/template/Footer/index.module.scss
Normal file
@ -0,0 +1,556 @@
|
||||
@use '../../styles/utils/helpers/functions' as function;
|
||||
|
||||
.footer {
|
||||
&__container--top,
|
||||
&__container--bottom {
|
||||
width: 100%;
|
||||
padding: 0 16px;
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer__content {
|
||||
border-top: 1px solid var(--clr-common-black);
|
||||
}
|
||||
|
||||
.newsletter {
|
||||
width: 100%;
|
||||
border-top: 1px solid var(--clr-common-black);
|
||||
|
||||
&__container {
|
||||
width: 100%;
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.newsletter {
|
||||
h3 {
|
||||
margin-bottom: 16px;
|
||||
font-weight: 500;
|
||||
font-size: var(--txt-normal);
|
||||
line-height: 16.41px;
|
||||
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
|
||||
color: var(--clr-gray-800);
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
font-size: var(--txt-large);
|
||||
line-height: 21.09px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 42.19px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.newsletter__container {
|
||||
@media screen and (min-width: 1025px) {
|
||||
width: function.fluid(474px, 1280px);
|
||||
padding: 16px 0;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: function.fluid(922px, 2500px);
|
||||
}
|
||||
}
|
||||
|
||||
.newsletter__container {
|
||||
fieldset :global {
|
||||
border: none;
|
||||
|
||||
.form-group {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.newsletter__container :global {
|
||||
.form-input {
|
||||
width: 100%;
|
||||
margin-bottom: 16px;
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
width: function.fluid(340px, 474px);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: function.fluid(668px, 922px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.newsletter__container :global {
|
||||
input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
padding: 0 16px;
|
||||
border: 1px solid var(--clr-gray-400);
|
||||
font-size: var(--txt-normal);
|
||||
line-height: 16.41px;
|
||||
|
||||
&::placeholder {
|
||||
color: var(--clr-gray-400);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
height: 42px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 32.81px;
|
||||
height: 59px;
|
||||
}
|
||||
}
|
||||
|
||||
.form__success {
|
||||
display: none;
|
||||
transition: 200ms;
|
||||
color: var(--clr-common-green);
|
||||
font-size: var(--txt-xs);
|
||||
line-height: 14.06px;
|
||||
margin-top: 12px;
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 28.13px;
|
||||
}
|
||||
}
|
||||
|
||||
.form__success.form__success-active {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.newsletter__form {
|
||||
button[type='submit'] {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--clr-common-black);
|
||||
color: var(--clr-common-white);
|
||||
text-transform: uppercase;
|
||||
|
||||
font-size: var(--txt-normal);
|
||||
line-height: 16.41px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.05em;
|
||||
|
||||
transition: 200ms ease-in-out;
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-common-black);
|
||||
background-color: var(--clr-primary-blue-500);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
width: function.fluid(126px, 474px);
|
||||
font-size: var(--txt-xs);
|
||||
line-height: 14.06px;
|
||||
height: 42px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: function.fluid(246px, 922px);
|
||||
line-height: 28.13px;
|
||||
height: 59px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.newsletter {
|
||||
@media screen and (min-width: 1025px) {
|
||||
&__container {
|
||||
fieldset :global {
|
||||
.form-group {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
.form-input {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer__container--top {
|
||||
padding-top: 17px;
|
||||
padding-bottom: 24px;
|
||||
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
width: function.fluid(1080px, 1280px);
|
||||
padding-top: 50px;
|
||||
padding-bottom: 50px;
|
||||
|
||||
margin: 0 auto;
|
||||
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
gap: 0px;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
width: function.fluid(2299.68px, 2500px);
|
||||
}
|
||||
}
|
||||
|
||||
.footer__container--bottom {
|
||||
background-color: var(--clr-common-black);
|
||||
|
||||
.footer__phrase {
|
||||
width: function.fluid(258px, 343px);
|
||||
|
||||
&::before {
|
||||
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. .';
|
||||
}
|
||||
|
||||
text-overflow: ellipsis;
|
||||
text-transform: capitalize;
|
||||
overflow: hidden;
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
width: function.fluid(234px, 1080px);
|
||||
|
||||
&::before {
|
||||
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor';
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
width: function.fluid(467px, 2299.68px);
|
||||
}
|
||||
}
|
||||
|
||||
* p,
|
||||
* li {
|
||||
color: var(--clr-common-white);
|
||||
}
|
||||
}
|
||||
|
||||
.footer__container--bottom {
|
||||
.footer__phrase::before,
|
||||
.footer__actions--bottom .footer__credits li p {
|
||||
font-size: var(--txt-xxs);
|
||||
}
|
||||
}
|
||||
|
||||
.footer__actions--bottom {
|
||||
.footer__credits {
|
||||
gap: 12.73px;
|
||||
|
||||
&,
|
||||
li {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@each $index, $value in ('1': 12.12px, '2': 12.97px) {
|
||||
li:nth-child(#{$index}) {
|
||||
gap: #{$value};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.accordion {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
// moved container bottom actions footer for large, medium devices
|
||||
.footer__container--bottom {
|
||||
.footer__actions--bottom {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 15px 0;
|
||||
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
|
||||
width: function.fluid(1080px, 1280px);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
width: function.fluid(2299.68px, 2500px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lists {
|
||||
width: 100%;
|
||||
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
|
||||
.lists__content {
|
||||
&-list {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
li,
|
||||
a {
|
||||
font-weight: 400;
|
||||
font-size: var(--txt-xs);
|
||||
line-height: 14.06px;
|
||||
|
||||
color: var(--clr-gray-800);
|
||||
transition: color 200ms ease;
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-primary-blue-500);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 28.13px;
|
||||
}
|
||||
}
|
||||
|
||||
li:last-child {
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
width: function.fluid(707px, 1080px);
|
||||
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
|
||||
& > li {
|
||||
width: function.fluid(155px, 707px);
|
||||
}
|
||||
|
||||
.lists__content {
|
||||
height: auto;
|
||||
overflow: unset;
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
width: function.fluid(1531px, 2299.68px);
|
||||
|
||||
& > li {
|
||||
width: function.fluid(315px, 1531px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lists__header {
|
||||
@media only screen and (min-width: 1025px) {
|
||||
margin-bottom: 12px;
|
||||
|
||||
i {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-weight: 500;
|
||||
font-size: var(--txt-normal);
|
||||
line-height: 16.41px;
|
||||
|
||||
text-transform: uppercase;
|
||||
|
||||
color: var(--clr-gray-800);
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 32.81px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.payments {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: red;
|
||||
|
||||
&__divider {
|
||||
height: 20.36px;
|
||||
border-left: 1px solid var(--clr-gray-400);
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@each $index,
|
||||
$value
|
||||
in(
|
||||
'1': 11.33px,
|
||||
'2': 11.22px,
|
||||
'3': 11.22px,
|
||||
'4': 11.44px,
|
||||
'5': 11.22px,
|
||||
'6': 11.33px,
|
||||
'7': 10.33px
|
||||
)
|
||||
{
|
||||
&__item:nth-child(#{$index}) {
|
||||
margin-right: #{$value};
|
||||
}
|
||||
}
|
||||
|
||||
&__item:last-child {
|
||||
margin-left: 10.49px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
width: function.fluid(398.61px, 1080px);
|
||||
|
||||
gap: 12px;
|
||||
|
||||
&__item:nth-child(1),
|
||||
&__item:nth-child(2),
|
||||
&__item:nth-child(3),
|
||||
&__item:nth-child(4),
|
||||
&__item:nth-child(5),
|
||||
&__item:nth-child(6),
|
||||
&__item:nth-child(7) {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
&__item {
|
||||
width: function.fluid(36px, 398.61px);
|
||||
min-height: 20.2px;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&__item:last-child {
|
||||
width: function.fluid(54.61px, 398.61px);
|
||||
min-height: 34px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
width: function.fluid(692px, 2299.68px);
|
||||
|
||||
&__item {
|
||||
width: function.fluid(70px, 692px);
|
||||
min-height: 39.27px;
|
||||
}
|
||||
|
||||
&__item:last-child {
|
||||
width: function.fluid(106px, 692px);
|
||||
min-height: 66px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer__network {
|
||||
& > a {
|
||||
display: none;
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
display: block;
|
||||
font-size: var(--txt-normal);
|
||||
|
||||
color: var(--clr-gray-800);
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-primary-blue-500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
width: function.fluid(215px, 1080px);
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
width: function.fluid(390px, 2299.68px);
|
||||
}
|
||||
}
|
||||
|
||||
.socials {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// control view order components
|
||||
.footer {
|
||||
&__phrase {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
&__payments {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
&__credits {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
&__phrase,
|
||||
&__payments,
|
||||
&__credits {
|
||||
order: initial;
|
||||
}
|
||||
}
|
||||
}
|
57
src/template/Footer/index.tsx
Normal file
@ -0,0 +1,57 @@
|
||||
import { useState } from 'react'
|
||||
|
||||
import vtexIcon from '../../assets/brands/svgs/Vtex.svg'
|
||||
import m3Icon from '../../assets/brands/svgs/M3.svg'
|
||||
|
||||
import { List } from './containers/_List'
|
||||
import { PaymentsList } from './containers/_Payment'
|
||||
|
||||
import css from './index.module.scss'
|
||||
import { Newsletter } from './containers/_Newsletter'
|
||||
|
||||
export function Footer() {
|
||||
const [accordionCurrentIsOpen, setAccordionCurrentIsOpen] = useState<
|
||||
string | number | ''
|
||||
>('')
|
||||
|
||||
function handleSetCurrentAccordion(customkey: string | number | '') {
|
||||
if (window.innerWidth < 1024) {
|
||||
if (customkey === accordionCurrentIsOpen) {
|
||||
setAccordionCurrentIsOpen('')
|
||||
} else {
|
||||
setAccordionCurrentIsOpen(customkey)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<footer className={css['footer']}>
|
||||
<Newsletter />
|
||||
<div className={css['footer__content']}>
|
||||
<div className={css['footer__container--top']}>
|
||||
<List
|
||||
accordionCurrentIsOpen={accordionCurrentIsOpen}
|
||||
handleSetCurrentAccordion={handleSetCurrentAccordion}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className={css['footer__container--bottom']}>
|
||||
<div className={css['footer__actions--bottom']}>
|
||||
<p className={css['footer__phrase']}></p>
|
||||
<PaymentsList />
|
||||
<ul className={css['footer__credits']}>
|
||||
<li>
|
||||
<p>Powered by</p>
|
||||
<img src={vtexIcon} alt="" />
|
||||
</li>
|
||||
<li>
|
||||
<p>Developed by</p>
|
||||
<img src={m3Icon} alt="" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
}
|
19
src/template/Header/containers/@types/index.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
import { HTMLAttributes, ButtonHTMLAttributes } from 'react'
|
||||
|
||||
export type ISearchProps = HTMLAttributes<HTMLDivElement>
|
||||
|
||||
export interface ITopProps {
|
||||
handleClickOpen: () => void
|
||||
}
|
||||
|
||||
export interface IBottomProps {
|
||||
handleClickClose: () => void
|
||||
isMenuOpen: boolean
|
||||
}
|
||||
|
||||
export interface ActionsProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
||||
$container?: HTMLAttributes<HTMLDivElement>
|
||||
handleClick: () => any
|
||||
src: any
|
||||
alt: string
|
||||
}
|
47
src/template/Header/containers/_Bottom.tsx
Normal file
@ -0,0 +1,47 @@
|
||||
import { IBottomProps } from './@types'
|
||||
|
||||
import { ItemList } from '../../../components/Molecules/ItemList'
|
||||
import { Actions } from './__Actions'
|
||||
|
||||
import closeIcon from '../../../assets/icons/x.svg'
|
||||
|
||||
import styles from '../index.module.scss'
|
||||
|
||||
export function Bottom({ isMenuOpen, handleClickClose }: IBottomProps) {
|
||||
function closeMenu(e: any) {
|
||||
if (e.target.classList.contains(styles.menu)) {
|
||||
if (e.target.children[0] !== e.target) {
|
||||
handleClickClose()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
onClick={(e) => closeMenu(e)}
|
||||
className={`${styles['menu']} ${
|
||||
isMenuOpen ? styles['menu--active'] : ''
|
||||
}`}
|
||||
>
|
||||
<div className={styles['menu__container']}>
|
||||
<Actions
|
||||
handleClick={handleClickClose}
|
||||
$container={{ className: styles['actions__bottom'] }}
|
||||
className={styles['button-close']}
|
||||
alt="ícone do botão para fechar o menu"
|
||||
src={closeIcon}
|
||||
/>
|
||||
|
||||
<ul className={styles['menu__list']}>
|
||||
{['Cursos', 'Saiba Mais', 'Institucionais'].map((item, index) => {
|
||||
return (
|
||||
<ItemList href="/" key={'header-bottom-list-' + index}>
|
||||
{item}
|
||||
</ItemList>
|
||||
)
|
||||
})}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
33
src/template/Header/containers/_Search.tsx
Normal file
@ -0,0 +1,33 @@
|
||||
import { useState } from 'react'
|
||||
|
||||
import { ISearchProps } from './@types'
|
||||
|
||||
import { ButtonIcon } from '../../../components/Molecules/ButtonIcon'
|
||||
|
||||
import searchIcon from '../../../assets/icons/search.svg'
|
||||
|
||||
export function Search({ ...props }: ISearchProps) {
|
||||
const [searchData, setSearchData] = useState('')
|
||||
|
||||
const handleChangeValue = (e: any) => {
|
||||
setSearchData(e.target.value)
|
||||
}
|
||||
|
||||
return (
|
||||
<div {...props}>
|
||||
<input
|
||||
type="search"
|
||||
name="search"
|
||||
placeholder="Buscar..."
|
||||
value={searchData}
|
||||
onChange={handleChangeValue}
|
||||
/>
|
||||
<ButtonIcon
|
||||
type="button"
|
||||
onClick={() => setSearchData('')}
|
||||
src={searchIcon}
|
||||
alt="Search Icon"
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
42
src/template/Header/containers/_Top.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import { ITopProps } from './@types'
|
||||
|
||||
import { ButtonIcon } from '../../../components/Molecules/ButtonIcon'
|
||||
import { Actions } from './__Actions'
|
||||
import { Search } from './_Search'
|
||||
|
||||
import cartIcon from '../../../assets/icons/minicart.svg'
|
||||
import openIcon from '../../../assets/icons/hamburger.svg'
|
||||
import logoImg from '../../../assets/m3-logo-small.png'
|
||||
import logoMediumImg from '../../../assets/m3-logo-medium.png'
|
||||
|
||||
import styles from '../index.module.scss'
|
||||
|
||||
export function Top({ handleClickOpen }: ITopProps) {
|
||||
return (
|
||||
<div className={`${styles['l-header__top']}`}>
|
||||
<ButtonIcon
|
||||
className={styles['button-open']}
|
||||
onClick={handleClickOpen}
|
||||
type="button"
|
||||
src={openIcon}
|
||||
alt="ícone do botão para abrir o menu"
|
||||
/>
|
||||
|
||||
<a className="top__logo" href="/">
|
||||
<picture>
|
||||
<source media="(min-width:1025px)" srcSet={logoMediumImg} />
|
||||
<img src={logoImg} alt="logo da M3 Academy" />
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
<Search className={`${styles['search']} ${styles['search--top']}`} />
|
||||
|
||||
<Actions
|
||||
$container={{ className: styles['actions__top'] }}
|
||||
handleClick={() => console.log('Funcionando')}
|
||||
src={cartIcon}
|
||||
alt="ícone de carrinho"
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
21
src/template/Header/containers/__Actions.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import { ActionsProps } from './@types'
|
||||
import { CustomLink } from '../../../components/Atoms/CustomLink'
|
||||
import { ButtonIcon } from '../../../components/Molecules/ButtonIcon'
|
||||
|
||||
export function Actions({
|
||||
handleClick,
|
||||
$container,
|
||||
src,
|
||||
alt,
|
||||
...props
|
||||
}: ActionsProps) {
|
||||
return (
|
||||
<div {...$container}>
|
||||
<CustomLink href="/">Entrar</CustomLink>
|
||||
{/* prettier-ignore */}
|
||||
<ButtonIcon onClick={handleClick} type="button" src={src}
|
||||
alt={alt} {...props}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
367
src/template/Header/index.module.scss
Normal file
@ -0,0 +1,367 @@
|
||||
@use '../../styles/utils/helpers/functions' as function;
|
||||
|
||||
$containers: (
|
||||
'xs': 339px,
|
||||
'sm': 988px,
|
||||
'md': 1080px,
|
||||
'xl': 2299.68px,
|
||||
);
|
||||
|
||||
.l-header {
|
||||
padding: 25px 0;
|
||||
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
position: sticky;
|
||||
|
||||
background-color: var(--clr-common-black);
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
padding: 25px 0 0;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
min-height: 162px;
|
||||
}
|
||||
}
|
||||
|
||||
.l-header__top {
|
||||
padding: 0px 16px;
|
||||
margin-bottom: 27.14px;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
width: #{function.fluid(map-get($containers, 'md'), 1280px)};
|
||||
padding: 0;
|
||||
margin: 0 auto 22px;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
width: #{function.fluid(map-get($containers, 'xl'), 2500px)};
|
||||
}
|
||||
}
|
||||
|
||||
.l-header__top :global {
|
||||
.top__logo {
|
||||
$content: (
|
||||
'md': 136px,
|
||||
'xl': 265.62px,
|
||||
);
|
||||
|
||||
// prettier-ignore
|
||||
@media only screen and (min-width: 1025px) {
|
||||
width: function.fluid(
|
||||
map-get($content, 'md'),
|
||||
map-get($containers, 'md')
|
||||
);
|
||||
}
|
||||
|
||||
// prettier-ignore
|
||||
@media only screen and (min-width: 2500px) {
|
||||
width: function.fluid(
|
||||
map-get($content, 'xl'),
|
||||
map-get($containers, 'xl')
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search {
|
||||
min-height: 36px;
|
||||
border: 2px solid var(--clr-gray-150);
|
||||
border-radius: 5px;
|
||||
|
||||
background-color: var(--clr-common-white);
|
||||
|
||||
&,
|
||||
button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 36px;
|
||||
height: 100%;
|
||||
background-color: var(--clr-common-white);
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
padding: 0 9px 0 16px;
|
||||
min-height: 36px;
|
||||
border-radius: 5px 0 0 5px;
|
||||
|
||||
font-size: var(--txt-normal);
|
||||
line-height: 16.41px;
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
line-height: 32.81px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search {
|
||||
@media only screen and (min-width: 1025px) {
|
||||
button {
|
||||
width: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
&,
|
||||
input {
|
||||
min-height: 57px;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 56.85px;
|
||||
}
|
||||
|
||||
button img {
|
||||
width: 35.15px;
|
||||
height: 35.15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.actions__top,
|
||||
.actions__bottom {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
a {
|
||||
font-weight: 400;
|
||||
font-size: var(--txt-normal);
|
||||
line-height: 16.41px;
|
||||
|
||||
display: block;
|
||||
|
||||
color: var(--clr-common-white);
|
||||
transition: color 200ms linear;
|
||||
text-transform: uppercase;
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-primary-blue-500);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 32.81px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.actions__top {
|
||||
gap: 55px;
|
||||
|
||||
// remove action top link for small devices and added for large devices 1025 > x
|
||||
a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
a {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 2500px) {
|
||||
img {
|
||||
width: 54.68px;
|
||||
height: 54.68px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// remove open menu mobile button for large devices 1025 > x
|
||||
.button-open {
|
||||
display: flex;
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.actions__bottom {
|
||||
width: 100%;
|
||||
height: 78px;
|
||||
padding: 0 16px;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
background-color: var(--clr-common-black);
|
||||
|
||||
// remove actions bottom for large devices
|
||||
@media only screen and (min-width: 1025px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.menu {
|
||||
@media only screen and (max-width: 1024px) {
|
||||
width: 100vw;
|
||||
|
||||
position: fixed;
|
||||
left: -100%;
|
||||
top: 0;
|
||||
|
||||
background-color: transparent;
|
||||
transition: 300ms ease;
|
||||
|
||||
&,
|
||||
&__container {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
&__container {
|
||||
width: function.fluid(map-get($containers, 'sm'), 1024px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu {
|
||||
@media only screen and (max-width: 768px) {
|
||||
&__container {
|
||||
width: function.fluid(map-get($containers, 'xs'), 375px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu {
|
||||
@media screen and (min-width: 1025px) {
|
||||
&__container {
|
||||
border-top: 1px solid var(--clr-common-white);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu {
|
||||
&__list {
|
||||
height: calc(100% - 78px);
|
||||
padding: 31px 16px 0;
|
||||
|
||||
background-color: var(--clr-common-white);
|
||||
|
||||
a {
|
||||
font-weight: 500;
|
||||
font-size: var(--txt-normal);
|
||||
line-height: 16.41px;
|
||||
|
||||
margin-bottom: 12px;
|
||||
|
||||
display: block;
|
||||
|
||||
color: var(--clr-gray-400);
|
||||
transition: color 200ms linear;
|
||||
text-transform: uppercase;
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-primary-blue-500);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 32.81px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// styles for menu is active
|
||||
.menu {
|
||||
&.menu--active {
|
||||
left: 0;
|
||||
background-color: #0004;
|
||||
}
|
||||
}
|
||||
|
||||
// menu styles for large devices 1025 > x
|
||||
.menu {
|
||||
@media only screen and (min-width: 1025px) {
|
||||
width: 100%;
|
||||
|
||||
display: block;
|
||||
|
||||
background-color: var(--clr-common-black);
|
||||
|
||||
&__list {
|
||||
width: function.fluid(map-get($containers, 'md'), 1280px);
|
||||
padding: 14px 0;
|
||||
margin: 0 auto;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 55px;
|
||||
|
||||
background-color: var(--clr-common-black);
|
||||
|
||||
a {
|
||||
color: var(--clr-common-white);
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
&__list {
|
||||
width: function.fluid(map-get($containers, 'xl'), 2500px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search--top {
|
||||
$content: (
|
||||
'md': 264px,
|
||||
'xl': 515.62px,
|
||||
);
|
||||
|
||||
// prettier-ignore
|
||||
@media only screen and (min-width: 1025px) {
|
||||
width: function.fluid(
|
||||
map-get($content, 'md'),
|
||||
map-get($containers, 'md')
|
||||
);
|
||||
}
|
||||
|
||||
// prettier-ignore
|
||||
@media only screen and (min-width: 2500px) {
|
||||
width: function.fluid(
|
||||
map-get($content, 'xl'),
|
||||
map-get($containers, 'xl')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/*|[X]o-o-o-o[O]|*\
|
||||
|=| SEARCH BOXS |=|
|
||||
\*|[O]o-o-o-o[X]|*/
|
||||
|
||||
//remove search top box for small, medium devices
|
||||
.search--top {
|
||||
display: none;
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
// added search bottom box for small devices, medium devices
|
||||
.search__bottom {
|
||||
padding: 0 16px;
|
||||
|
||||
display: flex;
|
||||
|
||||
&--content {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
48
src/template/Header/index.tsx
Normal file
@ -0,0 +1,48 @@
|
||||
import { useMemo, useState } from 'react'
|
||||
|
||||
import { Top } from './containers/_Top'
|
||||
import { Bottom } from './containers/_Bottom'
|
||||
import { Search } from './containers/_Search'
|
||||
|
||||
import styles from './index.module.scss'
|
||||
|
||||
export const Header = () => {
|
||||
const [isMenuOpen, setIsMenuOpen] = useState(false)
|
||||
|
||||
const topProps = {
|
||||
handleClickOpen: useMemo(
|
||||
() =>
|
||||
function () {
|
||||
if (window.innerWidth <= 1024) setIsMenuOpen(true)
|
||||
},
|
||||
[]
|
||||
),
|
||||
}
|
||||
|
||||
const bottomProps = {
|
||||
isMenuOpen,
|
||||
handleClickClose: useMemo(
|
||||
() =>
|
||||
function () {
|
||||
if (window.innerWidth <= 1024) setIsMenuOpen(false)
|
||||
},
|
||||
[]
|
||||
),
|
||||
}
|
||||
|
||||
return (
|
||||
<header className={styles['l-header']}>
|
||||
<nav>
|
||||
<Top {...topProps} />
|
||||
|
||||
<div className={`${styles['search__bottom']}`}>
|
||||
<Search
|
||||
className={`${styles['search']} ${styles['search__bottom--content']}`}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Bottom {...bottomProps} />
|
||||
</nav>
|
||||
</header>
|
||||
)
|
||||
}
|
47
src/template/Sidebar/index.module.scss
Normal file
@ -0,0 +1,47 @@
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin-top: 40px;
|
||||
|
||||
&__container {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1025px) {
|
||||
max-height: 285px;
|
||||
margin-top: 0;
|
||||
border-right: 1px solid var(--clr-common-black);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
max-height: 465px;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__list {
|
||||
a {
|
||||
display: inline-block;
|
||||
|
||||
width: 100%;
|
||||
padding: 10px 20px;
|
||||
|
||||
font-weight: 400;
|
||||
font-size: var(--txt-medium);
|
||||
line-height: 18.75px;
|
||||
|
||||
color: var(--clr-gray-600);
|
||||
|
||||
transition: background 700ms ease;
|
||||
|
||||
&.active {
|
||||
color: var(--clr-common-white);
|
||||
background: var(--clr-common-black);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2500px) {
|
||||
line-height: 37.5px;
|
||||
}
|
||||
}
|
||||
}
|
38
src/template/Sidebar/index.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import { useLocation } from 'react-router-dom'
|
||||
|
||||
import { ItemList } from '../../components/Molecules/ItemList'
|
||||
|
||||
import styles from './index.module.scss'
|
||||
|
||||
export function Sidebar() {
|
||||
const { pathname } = useLocation()
|
||||
|
||||
const paths = [
|
||||
{ name: 'Sobre', path: '/' },
|
||||
{ name: 'Forma de Pagamento', path: '/payments' },
|
||||
{ name: 'Entrega', path: '/shipping' },
|
||||
{ name: 'Troca e Devolução', path: '/exchange' },
|
||||
{ name: 'Segurança e Privacidade', path: '/privacity' },
|
||||
{ name: 'Contato', path: '/contact' },
|
||||
]
|
||||
|
||||
return (
|
||||
<nav className={styles['sidebar']}>
|
||||
<div className={styles['sidebar__container']}>
|
||||
<ul className={styles['sidebar__list']}>
|
||||
{paths.map(({ path, name }) => {
|
||||
return (
|
||||
<ItemList
|
||||
className={pathname === path ? styles['active'] : ''}
|
||||
key={name.replace(' ', '-').toLowerCase() + '-sidebar'}
|
||||
to={path}
|
||||
>
|
||||
{name}
|
||||
</ItemList>
|
||||
)
|
||||
})}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
)
|
||||
}
|