diff --git a/desafio-5/src/components/Footer/assets/flagsCards/AmericanExpress.svg b/desafio-5/src/components/Footer/assets/flagsCards/AmericanExpress.svg new file mode 100644 index 0000000..efa6194 --- /dev/null +++ b/desafio-5/src/components/Footer/assets/flagsCards/AmericanExpress.svg @@ -0,0 +1,9 @@ + diff --git a/desafio-5/src/components/Footer/assets/flagsCards/Elo.svg b/desafio-5/src/components/Footer/assets/flagsCards/Elo.svg new file mode 100644 index 0000000..93ccba3 --- /dev/null +++ b/desafio-5/src/components/Footer/assets/flagsCards/Elo.svg @@ -0,0 +1,9 @@ + diff --git a/desafio-5/src/components/Footer/assets/flagsCards/Hiper.svg b/desafio-5/src/components/Footer/assets/flagsCards/Hiper.svg new file mode 100644 index 0000000..923ff82 --- /dev/null +++ b/desafio-5/src/components/Footer/assets/flagsCards/Hiper.svg @@ -0,0 +1,9 @@ + diff --git a/desafio-5/src/components/Footer/assets/flagsCards/Master.svg b/desafio-5/src/components/Footer/assets/flagsCards/Master.svg new file mode 100644 index 0000000..7707d8b --- /dev/null +++ b/desafio-5/src/components/Footer/assets/flagsCards/Master.svg @@ -0,0 +1,9 @@ + diff --git a/desafio-5/src/components/Footer/assets/flagsCards/PayPal.svg b/desafio-5/src/components/Footer/assets/flagsCards/PayPal.svg new file mode 100644 index 0000000..5da8465 --- /dev/null +++ b/desafio-5/src/components/Footer/assets/flagsCards/PayPal.svg @@ -0,0 +1,9 @@ + diff --git a/desafio-5/src/components/Footer/assets/flagsCards/Visa.svg b/desafio-5/src/components/Footer/assets/flagsCards/Visa.svg new file mode 100644 index 0000000..3b9692b --- /dev/null +++ b/desafio-5/src/components/Footer/assets/flagsCards/Visa.svg @@ -0,0 +1,9 @@ + diff --git a/desafio-5/src/components/Footer/assets/flagsCards/boleto.svg b/desafio-5/src/components/Footer/assets/flagsCards/boleto.svg new file mode 100644 index 0000000..e47286d --- /dev/null +++ b/desafio-5/src/components/Footer/assets/flagsCards/boleto.svg @@ -0,0 +1,9 @@ + diff --git a/desafio-5/src/components/Footer/assets/flagsCards/vtexPci-icon.svg b/desafio-5/src/components/Footer/assets/flagsCards/vtexPci-icon.svg new file mode 100644 index 0000000..a28db2f --- /dev/null +++ b/desafio-5/src/components/Footer/assets/flagsCards/vtexPci-icon.svg @@ -0,0 +1,9 @@ + diff --git a/desafio-5/src/components/Footer/assets/imgs/m3-logo.svg b/desafio-5/src/components/Footer/assets/imgs/m3-logo.svg new file mode 100644 index 0000000..4229a66 --- /dev/null +++ b/desafio-5/src/components/Footer/assets/imgs/m3-logo.svg @@ -0,0 +1,4 @@ + diff --git a/desafio-5/src/components/Footer/assets/imgs/vtex-logo.svg b/desafio-5/src/components/Footer/assets/imgs/vtex-logo.svg new file mode 100644 index 0000000..f052f92 --- /dev/null +++ b/desafio-5/src/components/Footer/assets/imgs/vtex-logo.svg @@ -0,0 +1,7 @@ + diff --git a/desafio-5/src/components/Footer/components/footerBy.tsx b/desafio-5/src/components/Footer/components/footerBy.tsx new file mode 100644 index 0000000..9d3b191 --- /dev/null +++ b/desafio-5/src/components/Footer/components/footerBy.tsx @@ -0,0 +1,29 @@ +import React from "react"; +import { ReactComponent as M3 } from "../assets/imgs/m3-logo.svg"; +import { ReactComponent as Vtex } from "../assets/imgs/vtex-logo.svg"; +import style from "../style/footerBy.module.scss"; + +const FooterBy = () => { + return ( +
+ ); +}; + +export { FooterBy }; \ No newline at end of file diff --git a/desafio-5/src/components/Footer/components/payFlags.tsx b/desafio-5/src/components/Footer/components/payFlags.tsx new file mode 100644 index 0000000..4f1c295 --- /dev/null +++ b/desafio-5/src/components/Footer/components/payFlags.tsx @@ -0,0 +1,20 @@ +import React from "react"; +import style from "../style/payFlags.module.scss"; + +interface IPayment{ + urlImage: string; + textAlt: string; + vtexPci?: boolean +} + +const Payment = ({urlImage, textAlt, vtexPci} : IPayment) => { + return ( + + ); +}; + +export { Payment }; diff --git a/desafio-5/src/components/Footer/footer.tsx b/desafio-5/src/components/Footer/footer.tsx new file mode 100644 index 0000000..1f513bd --- /dev/null +++ b/desafio-5/src/components/Footer/footer.tsx @@ -0,0 +1,54 @@ +import React from "react"; +import style from "../Footer/style/footer.module.scss"; +import Master from "../Footer/assets/flagsCards/Master.svg"; +import Visa from "../Footer/assets/flagsCards/Visa.svg"; +import AmericanExpress from "../Footer/assets/flagsCards/AmericanExpress.svg"; +import Elo from "../Footer/assets/flagsCards/Elo.svg"; +import Hiper from "../Footer/assets/flagsCards/Hiper.svg"; +import Paypal from "../Footer/assets/flagsCards/PayPal.svg"; +import Boleto from "../Footer/assets/flagsCards/boleto.svg"; +import VtexPci from "../Footer/assets/flagsCards/vtexPci-icon.svg"; + + +import {FooterBy} from "../Footer/components/footerBy" +import { Payment } from "../Footer/components/payFlags"; + + + +const Footer = () => { + return ( + + ); + + } + + + + + export { Footer }; \ No newline at end of file diff --git a/desafio-5/src/components/Footer/style/footer.module.scss b/desafio-5/src/components/Footer/style/footer.module.scss new file mode 100644 index 0000000..433a3d6 --- /dev/null +++ b/desafio-5/src/components/Footer/style/footer.module.scss @@ -0,0 +1,86 @@ +.footer-home { + display: block; + display: flex; + background-color: var(--black-600); + justify-content: space-between; + align-items: center; + padding: 20px 100px; + color: #fff; +} + +.footer-home__text { + // max-width: 234px; + width: 100%; + font-style: normal; + font-weight: 400; + font-size: 10px; + line-height: 12px; + text-transform: capitalize; +} + +.footer-home__text--mobile { + display: none; +} + +.footer-home__payments { + display: flex; + align-items: center; +} + +.footer-home__payments--division { + display: flex; + align-items: center; + padding-left: 6px; +} + +.footer-home__payments--division:first-child { + padding-left: 0; +} + +@media screen and (max-width: 1024px) { + + .footer-home__payments{ + + order: -1; + } + .footer-home { + flex-direction: column; + padding: 16px; + align-items: flex-start; + + } + + .footer-home__text { + max-width: 234px; + + margin: 21.94px 0 21px 0; + } + + .footer-home__text--mobile { + max-width: 234px; + display: flex; + justify-content: center; + + } + + +} + + + + +@media screen and (max-width: 375px) { + + + + + + .footer-home__text--mobile { + flex-direction: column; + align-items: flex-start; + } + + .footer-home__payments--division:last-child { + margin-top: 10px; + } +} \ No newline at end of file diff --git a/desafio-5/src/components/Footer/style/footerBy.module.scss b/desafio-5/src/components/Footer/style/footerBy.module.scss new file mode 100644 index 0000000..0922c76 --- /dev/null +++ b/desafio-5/src/components/Footer/style/footerBy.module.scss @@ -0,0 +1,39 @@ +.footer-home__creators { + display: flex; +} + +.footer-home__creators-powered, +.footer-home__creators-developed { + display: flex; + align-items: center; + + font-weight: 400; + font-size: 10px; + line-height: 12px; + text-transform: capitalize; + text-decoration: none; + color: var(--whiet-100); +} + +.footer-home__creators-powered svg, +.footer-home__creators-developed svg { + padding-left: 8px; +} + +.footer-home__creators-developed { + margin-left: 13px; +} + +@media screen and (max-width: 1024px) { + .footer-home__creators { + width: 100%; + justify-content: flex-start; + + } +} + +@media screen and (max-width: 375px) { + .footer-home__creators { + justify-content: flex-start; + } +} \ No newline at end of file diff --git a/desafio-5/src/components/Footer/style/payFlags.module.scss b/desafio-5/src/components/Footer/style/payFlags.module.scss new file mode 100644 index 0000000..85a0bdf --- /dev/null +++ b/desafio-5/src/components/Footer/style/payFlags.module.scss @@ -0,0 +1,26 @@ +.footer-home__payments-band{ + padding: 0 7px; + } + .footer-home__payments-band:first-child{ + padding: 0 7px 0 0; + } + .footer-home__payments-band--vtexPci{ + margin-left: 7px; + padding: 0 0 0 10px; + border-left: 1px solid var(--gray-400); + } + + @media screen and (max-width: 1024px) { + .footer-home__payments-band{ + max-width: 30px; + padding: 0 5px; + + + } + .footer-home__payments-band:first-child{ + padding: 0 5px 0 0; + } + .footer-home__payments-band--vtexPci{ + max-width: 45px; + } + } \ No newline at end of file diff --git a/desafio-5/src/assets/icones/Vectorbuscaicon.svg b/desafio-5/src/components/Header/assets/icons/Vectorbuscaicon.svg similarity index 100% rename from desafio-5/src/assets/icones/Vectorbuscaicon.svg rename to desafio-5/src/components/Header/assets/icons/Vectorbuscaicon.svg diff --git a/desafio-5/src/assets/icones/fechaHamburgue.svg b/desafio-5/src/components/Header/assets/icons/fechaHamburgue.svg similarity index 100% rename from desafio-5/src/assets/icones/fechaHamburgue.svg rename to desafio-5/src/components/Header/assets/icons/fechaHamburgue.svg diff --git a/desafio-5/src/assets/icones/menuHamburguer-icon.svg b/desafio-5/src/components/Header/assets/icons/menuHamburguer-icon.svg similarity index 100% rename from desafio-5/src/assets/icones/menuHamburguer-icon.svg rename to desafio-5/src/components/Header/assets/icons/menuHamburguer-icon.svg diff --git a/desafio-5/src/assets/icones/shoppingCart-icon.svg b/desafio-5/src/components/Header/assets/icons/shoppingCart-icon.svg similarity index 100% rename from desafio-5/src/assets/icones/shoppingCart-icon.svg rename to desafio-5/src/components/Header/assets/icons/shoppingCart-icon.svg diff --git a/desafio-5/src/assets/logos/Logo-M3Academy 1m3academy-header.svg b/desafio-5/src/components/Header/assets/imgs/Logo-M3Academy 1m3academy-header.svg similarity index 100% rename from desafio-5/src/assets/logos/Logo-M3Academy 1m3academy-header.svg rename to desafio-5/src/components/Header/assets/imgs/Logo-M3Academy 1m3academy-header.svg diff --git a/desafio-5/src/components/Header/BuscaMenu.tsx b/desafio-5/src/components/Header/components/BuscaMenu.tsx similarity index 81% rename from desafio-5/src/components/Header/BuscaMenu.tsx rename to desafio-5/src/components/Header/components/BuscaMenu.tsx index 8885268..acbfb38 100644 --- a/desafio-5/src/components/Header/BuscaMenu.tsx +++ b/desafio-5/src/components/Header/components/BuscaMenu.tsx @@ -1,7 +1,7 @@ import React from "react"; -import style from "../../styles/header/inputMenuHeader.module.scss" -import buscaIcon from "../../assets/icones/Vectorbuscaicon.svg"; +import style from "../styles/inputMenuHeader.module.scss" +import buscaIcon from "../assets/icons/Vectorbuscaicon.svg"; interface IView{ view: string diff --git a/desafio-5/src/components/Header/SubMenu.tsx b/desafio-5/src/components/Header/components/SubMenu.tsx similarity index 52% rename from desafio-5/src/components/Header/SubMenu.tsx rename to desafio-5/src/components/Header/components/SubMenu.tsx index a0bca8a..48570bb 100644 --- a/desafio-5/src/components/Header/SubMenu.tsx +++ b/desafio-5/src/components/Header/components/SubMenu.tsx @@ -1,35 +1,30 @@ import React, { useContext } from "react"; -import style from "../../styles/header/submenu.module.scss"; -import { HeaderContext } from "../../contexts/HeaderContext"; -import fechaIcon from "../../assets/icones/fechaHamburgue.svg"; - - - - +import style from "../styles/submenu.module.scss"; +import { HeaderContext } from "../../../contexts/HeaderContext"; +import fechaIcon from "../assets/icons/fechaHamburgue.svg"; const Submenu = () => { - const { open, menu } = useContext(HeaderContext); - return ( -