diff --git a/react-ts/src/assets/images/AmericaCard.svg b/react-ts/src/assets/images/AmericaCard.svg deleted file mode 100644 index 5956357..0000000 --- a/react-ts/src/assets/images/AmericaCard.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/AmericaCardMobile.svg b/react-ts/src/assets/images/AmericaCardMobile.svg deleted file mode 100644 index bbeb0c1..0000000 --- a/react-ts/src/assets/images/AmericaCardMobile.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/AmericaEx.png b/react-ts/src/assets/images/AmericaEx.png new file mode 100644 index 0000000..e07547c Binary files /dev/null and b/react-ts/src/assets/images/AmericaEx.png differ diff --git a/react-ts/src/assets/images/Boleto.png b/react-ts/src/assets/images/Boleto.png new file mode 100644 index 0000000..3a68969 Binary files /dev/null and b/react-ts/src/assets/images/Boleto.png differ diff --git a/react-ts/src/assets/images/Boleto.svg b/react-ts/src/assets/images/Boleto.svg deleted file mode 100644 index 5d80109..0000000 --- a/react-ts/src/assets/images/Boleto.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/BoletoMobile.svg b/react-ts/src/assets/images/BoletoMobile.svg deleted file mode 100644 index 09e0e61..0000000 --- a/react-ts/src/assets/images/BoletoMobile.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/EloCard.png b/react-ts/src/assets/images/EloCard.png new file mode 100644 index 0000000..f8945cd Binary files /dev/null and b/react-ts/src/assets/images/EloCard.png differ diff --git a/react-ts/src/assets/images/EloCard.svg b/react-ts/src/assets/images/EloCard.svg deleted file mode 100644 index b93be6f..0000000 --- a/react-ts/src/assets/images/EloCard.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/EloCardMobile.svg b/react-ts/src/assets/images/EloCardMobile.svg deleted file mode 100644 index 623678a..0000000 --- a/react-ts/src/assets/images/EloCardMobile.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/HiperCard.png b/react-ts/src/assets/images/HiperCard.png new file mode 100644 index 0000000..dd3f15d Binary files /dev/null and b/react-ts/src/assets/images/HiperCard.png differ diff --git a/react-ts/src/assets/images/HiperCard.svg b/react-ts/src/assets/images/HiperCard.svg deleted file mode 100644 index 7a7474f..0000000 --- a/react-ts/src/assets/images/HiperCard.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/HiperCardMobile.svg b/react-ts/src/assets/images/HiperCardMobile.svg deleted file mode 100644 index 6b0ba29..0000000 --- a/react-ts/src/assets/images/HiperCardMobile.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/MasterCard.png b/react-ts/src/assets/images/MasterCard.png new file mode 100644 index 0000000..774e581 Binary files /dev/null and b/react-ts/src/assets/images/MasterCard.png differ diff --git a/react-ts/src/assets/images/MasterCard.svg b/react-ts/src/assets/images/MasterCard.svg deleted file mode 100644 index f10d568..0000000 --- a/react-ts/src/assets/images/MasterCard.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/MasterCardMobile.svg b/react-ts/src/assets/images/MasterCardMobile.svg deleted file mode 100644 index eb98d23..0000000 --- a/react-ts/src/assets/images/MasterCardMobile.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/MasterCardPNG.png b/react-ts/src/assets/images/MasterCardPNG.png deleted file mode 100644 index 792a73b..0000000 Binary files a/react-ts/src/assets/images/MasterCardPNG.png and /dev/null differ diff --git a/react-ts/src/assets/images/PayPal.png b/react-ts/src/assets/images/PayPal.png new file mode 100644 index 0000000..f69976b Binary files /dev/null and b/react-ts/src/assets/images/PayPal.png differ diff --git a/react-ts/src/assets/images/PayPal.svg b/react-ts/src/assets/images/PayPal.svg deleted file mode 100644 index 3c14215..0000000 --- a/react-ts/src/assets/images/PayPal.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/PayPalMobile.svg b/react-ts/src/assets/images/PayPalMobile.svg deleted file mode 100644 index 9550baf..0000000 --- a/react-ts/src/assets/images/PayPalMobile.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/VisaCard.png b/react-ts/src/assets/images/VisaCard.png new file mode 100644 index 0000000..7c4567c Binary files /dev/null and b/react-ts/src/assets/images/VisaCard.png differ diff --git a/react-ts/src/assets/images/VisaCard.svg b/react-ts/src/assets/images/VisaCard.svg deleted file mode 100644 index 77a4de3..0000000 --- a/react-ts/src/assets/images/VisaCard.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/VisaCardMobile.svg b/react-ts/src/assets/images/VisaCardMobile.svg deleted file mode 100644 index aa2346a..0000000 --- a/react-ts/src/assets/images/VisaCardMobile.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/vtex-pci.png b/react-ts/src/assets/images/vtex-pci.png new file mode 100644 index 0000000..4dce994 Binary files /dev/null and b/react-ts/src/assets/images/vtex-pci.png differ diff --git a/react-ts/src/assets/images/vtex-pci.svg b/react-ts/src/assets/images/vtex-pci.svg deleted file mode 100644 index d2d6925..0000000 --- a/react-ts/src/assets/images/vtex-pci.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/assets/images/vtex-pciMobile.svg b/react-ts/src/assets/images/vtex-pciMobile.svg deleted file mode 100644 index 23acac6..0000000 --- a/react-ts/src/assets/images/vtex-pciMobile.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/react-ts/src/components/Cards/Entrega.module.scss b/react-ts/src/components/Cards/Entrega.module.scss index 8ecef2b..d56ffc8 100644 --- a/react-ts/src/components/Cards/Entrega.module.scss +++ b/react-ts/src/components/Cards/Entrega.module.scss @@ -25,4 +25,28 @@ color: $color-grey4; } } +} + +@media only screen and (max-width: 1024px) { + .container { + &__h1 { + text-align: center; + margin-top: 30px; + } + } +} + +@media only screen and (min-width: 2500px) { + .container { + &__h1 { + line-height: 56px; + font-size: 48px; + } + &__p { + p { + font-size: 26px; + line-height: 30px; + } + } + } } \ No newline at end of file diff --git a/react-ts/src/components/Cards/FormaDePagamento.module.scss b/react-ts/src/components/Cards/FormaDePagamento.module.scss index 8ecef2b..ae5db4b 100644 --- a/react-ts/src/components/Cards/FormaDePagamento.module.scss +++ b/react-ts/src/components/Cards/FormaDePagamento.module.scss @@ -25,4 +25,27 @@ color: $color-grey4; } } +} + +@media only screen and (max-width: 1024px) { + .container { + &__h1 { + text-align: center; + margin-top: 30px; + } + } +} +@media only screen and (min-width: 2500px) { + .container { + &__h1 { + line-height: 56px; + font-size: 48px; + } + &__p { + p { + font-size: 26px; + line-height: 30px; + } + } + } } \ No newline at end of file diff --git a/react-ts/src/components/Cards/Seguranca.module.scss b/react-ts/src/components/Cards/Seguranca.module.scss index 8ecef2b..ae5db4b 100644 --- a/react-ts/src/components/Cards/Seguranca.module.scss +++ b/react-ts/src/components/Cards/Seguranca.module.scss @@ -25,4 +25,27 @@ color: $color-grey4; } } +} + +@media only screen and (max-width: 1024px) { + .container { + &__h1 { + text-align: center; + margin-top: 30px; + } + } +} +@media only screen and (min-width: 2500px) { + .container { + &__h1 { + line-height: 56px; + font-size: 48px; + } + &__p { + p { + font-size: 26px; + line-height: 30px; + } + } + } } \ No newline at end of file diff --git a/react-ts/src/components/Cards/Sobre.module.scss b/react-ts/src/components/Cards/Sobre.module.scss index 8ecef2b..ae5db4b 100644 --- a/react-ts/src/components/Cards/Sobre.module.scss +++ b/react-ts/src/components/Cards/Sobre.module.scss @@ -25,4 +25,27 @@ color: $color-grey4; } } +} + +@media only screen and (max-width: 1024px) { + .container { + &__h1 { + text-align: center; + margin-top: 30px; + } + } +} +@media only screen and (min-width: 2500px) { + .container { + &__h1 { + line-height: 56px; + font-size: 48px; + } + &__p { + p { + font-size: 26px; + line-height: 30px; + } + } + } } \ No newline at end of file diff --git a/react-ts/src/components/Cards/Troca.module.scss b/react-ts/src/components/Cards/Troca.module.scss index 8ecef2b..b781549 100644 --- a/react-ts/src/components/Cards/Troca.module.scss +++ b/react-ts/src/components/Cards/Troca.module.scss @@ -25,4 +25,27 @@ color: $color-grey4; } } +} + +@media only screen and (max-width: 1024px) { + .container { + &__h1 { + text-align: center; + margin-top: 30px; + } + } +} +@media only screen and (min-width: 2500px) { + .container { + &__h1 { + font-size: 48px; + line-height: 56px; + } + &__p { + p { + font-size: 26px; + line-height: 30px; + } + } + } } \ No newline at end of file diff --git a/react-ts/src/components/CardsSelect/CardsSelect.module.scss b/react-ts/src/components/CardsSelect/CardsSelect.module.scss index d025867..8ed5751 100644 --- a/react-ts/src/components/CardsSelect/CardsSelect.module.scss +++ b/react-ts/src/components/CardsSelect/CardsSelect.module.scss @@ -30,7 +30,8 @@ display: flex; flex-direction: column; width: 100%; - button { + &__component { + background-color: transparent; max-width: 302px; height: 39px; border: none; @@ -62,4 +63,53 @@ color: $color-white1; } } -} \ No newline at end of file +} + +@media only screen and (max-width: 1024px) { + .container { + padding: 0 16px; + &__wrapper { + flex-direction: column; + &__button { + max-width: unset; + border-right: none; + height: 224px; + &__wrapper { + flex-direction: column; + width: 100%; + button { + max-width: unset; + width: 100%; + } + } + } + &__cards { + margin-left: unset; + } + } + } +} + +@media only screen and (min-width: 2500px) { + + .container { + &__h1 { + font-size: 48px; + line-height: 56px; + } + &__wrapper { + &__button { + max-width: 590px; + height: 465px; + &__wrapper { + &__component { + max-width: 590px; + height: 58px; + font-size: 32px; + line-height: 38px; + } + } + } + } + } +} \ No newline at end of file diff --git a/react-ts/src/components/CardsSelect/CardsSelect.tsx b/react-ts/src/components/CardsSelect/CardsSelect.tsx index 4eb5ff3..abba691 100644 --- a/react-ts/src/components/CardsSelect/CardsSelect.tsx +++ b/react-ts/src/components/CardsSelect/CardsSelect.tsx @@ -8,37 +8,64 @@ import Troca from '../Cards/Troca'; import Seguranca from '../Cards/Seguranca'; import ContactForm from '../ContactForm/ContactForm'; -const CardSelect = () => { +const buttonToRender = [ + { + label : 'Sobre', + id : 0, + }, + { + label : 'Forma de Pagamento', + id : 1, + }, + { + label : 'Entrega', + id : 2, + }, + { + label : 'Troca e Devolução', + id : 3, + }, + { + label : 'Segurança e Privacidade', + id : 4, + }, + { + label : 'Contato', + id : 5, + } +] - const [render, setRender] = useState ("Sobre"); - + const CardSelect = () => { + + const [render, setRender] = useState ("Sobre"); + + const button = () => { + return buttonToRender.map(( + button + ) => ( + + ) ) + } return ( -