Merge branch 'feature/body' into desenvolvimento

This commit is contained in:
Gustavo Rallenson Gonçalves Da Silva 2023-01-29 17:20:07 -03:00
commit a7f5c6001c
22 changed files with 476 additions and 52 deletions

View File

@ -1 +1,2 @@
CHANGELOG.md
CHANGELOG.md
Todo.md

14
Todo.md
View File

@ -1,14 +0,0 @@
- [x] (a) inciando projeto
os Requisitos cobrados serão:
-XXX (b) Blocos que devem ser ajustado e desenvolvidos: BreadCrumb, todo o bloco de imagens do produto e dados do produto e de compra (ao lado das imagens), tabLayout com descrição até troca e devolução e seu conteúdo, prateleira de produtos, Newsletter.
- XXX (c) Bloco de Preço com Desconto deve ser CUSTOM
- HACK Layout deve ser desenvolvido na seguinte pagina de produto (PDP): https://agenciamagma.myvtex.com/sandalia-azul-spike-amarracao/p
- FIXME O bloco de cores do produto deve ser feito com o bloco de produtos similares da VTEX.
- FIXME {f} Os Comentários que estão no figma devem ser seguidos, incluindo aqueles que falam qual bloco da Vtex vcs devem usar no desenvolvimento.

1
docs/Task.txt Normal file
View File

@ -0,0 +1 @@
NOME-DO-BLOCO#INDENTIFICADOR

37
docs/Todo.md Normal file
View File

@ -0,0 +1,37 @@
# Projeto
--- {cm:2023-01-25}
- [x] (a) inciando projeto {cm:2023-01-25}
- [](b)
os Requisitos cobrados serão:
# Dev
- HACK Layout deve ser desenvolvido na seguinte pagina de produto (PDP): https://agenciamagma.myvtex.com/sandalia-azul-spike-amarracao/p
- FIXME [Blocos que devem ser ajustado e desenvolvidos](BreadCrumb){
- HACK 1. BreadCrumb;
- HACK 2. todo o bloco de imagens do produto e dados do produto e de compra (ao lado das imagens),
- HACK 3. tabLayout com descrição até troca e devolução e seu conteúdo,
- HACK 4. prateleira de produtos,
- HACK 5. Newsletter.
}
# Requisitos
{cm:2023-01-25}
- FIXME Bloco de Preço com Desconto deve ser CUSTOM
* FIXME O bloco de cores do produto deve ser feito com o bloco de produtos similares da VTEX.
* FIXME Os Comentários que estão no figma devem ser seguidos, incluindo aqueles que falam qual bloco da Vtex vcs devem usar no desenvolvimento.

View File

@ -15,7 +15,6 @@
"postreleasy": "vtex publish --verbose"
},
"dependencies": {
"agenciamagma.store-theme": "5.x",
"vtex.store": "2.x",
"vtex.store-header": "2.x",
"vtex.product-summary": "2.x",

View File

@ -1,6 +1,6 @@
import React, { ReactNode } from "react";
import { useCssHandles } from "vtex.css-handles";
import "./styles.css";
const CSS_HANDLES = ["html"] as const;
type HtmlProps = {

View File

@ -0,0 +1,3 @@
[class*=container--m3-product-breadcrumb]{
background: blue;
}

View File

@ -5,6 +5,7 @@
"condition-layout.product#availability",
"flex-layout.row#description",
"flex-layout.row#specifications-title",
"example-component",
"product-specification-group#table",
"shelf.relatedProducts",
"product-questions-and-answers"
@ -91,7 +92,8 @@
"desktop": "auto",
"phone": "16:9"
},
"displayThumbnailsArrows": true
"displayThumbnailsArrows": false,
"thumbnailsOrientation": "horizontal"
}
},
"flex-layout.col#right-col": {

View File

@ -20,8 +20,8 @@
"marginTop": 5
},
"children": [
"product-list-price",
"product-price-savings"
"product-price-savings",
"product-list-price"
]
}
}

View File

@ -7,10 +7,9 @@
*/
/* Media Query M3 */
/* Grid breakpoints */
.html {
background-color: red;
.container .homeLink::before {
content: "HOME";
}
.html--pdp-breadcrumb {
background-color: green;
.container .homeLink .homeIcon {
display: none;
}

View File

@ -1,3 +1,12 @@
/*
0 - 600PX: Phone
600 - 900px: Table portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our nortal styles apply
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 0.5rem;
@ -9,14 +18,12 @@
padding: 0 1rem;
}
}
@media screen and (min-width: 80rem) {
.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 0.25rem;
}
}
.flexRowContent--menu-link {
background-color: #03044e;
color: #fff;
@ -96,3 +103,19 @@
.flexRow--addToCartRow {
padding-bottom: 1rem;
}
:global(.vtex-shelf-1-x-slide) :global(.vtex-store-components-3-x-discountInsideContainer) {
display: none;
}
:global(.vtex-shelf-1-x-slide) :global(.vtex-product-price-1-x-savings) {
display: none;
}
:global(.vtex-shelf-1-x-slide) :global(.vtex-button) {
display: none;
}
:global(.vtex-shelf-1-x-slide) .flexCol--m3-shelf-badges {
display: none;
}
:global(.vtex-shelf-1-x-slide) .flexRowContent--m3-shelf-price-selling-savings {
justify-content: center;
}

View File

@ -1,6 +1,15 @@
/*
0 - 600PX: Phone
600 - 900px: Table portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our nortal styles apply
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
.listPrice {
color: #727273;
margin-bottom: .25rem;
margin-bottom: 0.25rem;
font-size: 1rem;
}
@ -35,7 +44,6 @@
border-radius: 1000px;
align-items: center;
display: flex;
padding-left: 0.5rem;
padding-right: 0.5rem;
font-size: 0.875rem;
@ -55,7 +63,7 @@
.listPrice--summary {
margin-bottom: 0.25rem;
font-size: .875rem;
font-size: 0.875rem;
}
.installments--summary {
@ -77,3 +85,8 @@
color: #FFFFFF;
padding: 0.25rem 0.5rem 0.25rem 0.5rem;
}
:global(.vtex-shelf-1-x-slide) .listPrice {
text-align: center;
margin-bottom: 16px;
}

View File

@ -1,3 +1,12 @@
/*
0 - 600PX: Phone
600 - 900px: Table portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our nortal styles apply
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
.skuSelectorContainer--quickview .skuSelectorItemImage .frameAround, .skuSelectorContainer--quickview .skuSelectorItemImage .skuSelectorInternalBox {
border-radius: 50%;
}
@ -16,7 +25,6 @@
display: none;
}
}
.nameContainer {
justify-content: start;
padding-top: 1rem;
@ -40,3 +48,10 @@
.image {
border-radius: 0.25rem;
}
.nameContainer {
padding-bottom: 0.5rem;
}
.nameContainer .productNameContainer {
text-align: center;
}

View File

@ -1,10 +1,12 @@
.stackItem--product {
width: 100%;
min-height: 257px
}
.stackItem--quickview {
right: 0;
top: 0;
left: auto;
}
/*
0 - 600PX: Phone
600 - 900px: Table portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our nortal styles apply
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
.stackItem {
display: block;
}

View File

@ -7,6 +7,42 @@
*/
/* Media Query M3 */
/* Grid breakpoints */
.skuSelectorContainer--m3-custom-sku-selector {
display: flex;
flex-direction: column-reverse;
}
.skuSelectorContainer--m3-custom-sku-selector .frameAround--m3-custom-sku-selector {
border-radius: 50%;
}
.skuSelectorContainer--m3-custom-sku-selector .skuSelectorSubcontainer--cor .skuSelectorTextContainer .skuSelectorName {
text-transform: uppercase;
}
.skuSelectorContainer--m3-custom-sku-selector .skuSelectorSubcontainer--cor .skuSelectorTextContainer .skuSelectorName::after {
content: "ES:";
}
.skuSelectorContainer--m3-custom-sku-selector .skuSelectorSubcontainer--cor .skuSelectorTextContainer .skuSelectorName::before {
content: "OUTRAS ";
}
.skuSelectorContainer--m3-custom-sku-selector .skuSelectorSubcontainer--tamanho .skuSelectorTextContainer .skuSelectorName {
text-transform: uppercase;
}
.skuSelectorContainer--m3-custom-sku-selector .skuSelectorSubcontainer--tamanho .skuSelectorTextContainer .skuSelectorName::after {
content: "S:";
}
.skuSelectorContainer--m3-custom-sku-selector .skuSelectorSubcontainer--tamanho .skuSelectorTextContainer .skuSelectorName::before {
content: "OUTROS ";
}
.skuSelectorContainer--m3-custom-sku-selector .skuSelectorItemImageValue--m3-custom-sku-selector {
border-radius: 50%;
}
.skuSelectorContainer--m3-custom-sku-selector .diagonalCross--m3-custom-sku-selector {
border-radius: 50%;
}
.newsletter {
background: red;
background: black;
}
.carouselGaleryThumbs {
flex-direction: row;
}

View File

@ -1,8 +0,0 @@
.html {
background-color: red;
}
.html--pdp-breadcrumb {
background-color: green;
}

View File

@ -0,0 +1,10 @@
.container{
.homeLink{
&::before{
content: "HOME";
}
.homeIcon{
display: none;
}
}
}

View File

@ -0,0 +1,117 @@
.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 0.5rem;
}
@media screen and (min-width: 40em) {
.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 1rem;
}
}
@media screen and (min-width: 80rem) {
.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 0.25rem;
}
}
.flexRowContent--menu-link {
background-color: #03044e;
color: #fff;
}
.flexRowContent--main-header {
background-color: #f0f0f0;
}
.flexRowContent--main-header-mobile {
align-items: center;
padding: 0.625rem 0.5rem;
background-color: #f0f0f0;
}
.flexRowContent--menu-link :global(.vtex-menu-2-x-styledLink) {
color: #ffffff;
font-size: 14px;
}
.flexRowContent--main-header :global(.vtex-menu-2-x-styledLink) {
color: #727273;
font-size: 14px;
}
.flexRow--deals {
background-color: #0F3E99;
padding: 14px 0px;
}
.flexRow--deals .stretchChildrenWidth {
align-items: center;
}
.flexRow--deals .flexCol {
align-items: center;
margin-bottom: 5px;
padding-top: 5px;
}
.flexCol--filterCol {
max-width: 500px;
min-width: 230px;
}
.flexCol--productCountCol {
align-items: flex-start;
}
.flexCol--orderByCol {
align-items: flex-end;
}
.flexCol--orderByMobileCol {
width: 42%;
}
.flexCol--filterMobileCol {
width: 38%;
}
.flexRow--quickviewMainRow {
display: flex;
max-height: 100%;
}
.flexColChild--quickviewDetails:first-child {
overflow-y: auto;
height: 66% !important;
overflow-x: hidden;
}
.flexColChild--quickviewDetails:last-child {
height: 34% !important;
}
.flexRow--addToCartRow {
padding-bottom: 1rem;
}
:global(.vtex-shelf-1-x-slide){
:global(.vtex-store-components-3-x-discountInsideContainer){
display: none;
}
:global(.vtex-product-price-1-x-savings){
display: none;
}
:global(.vtex-button){
display: none;
}
.flexCol--m3-shelf-badges{
display: none;
}
.flexRowContent--m3-shelf-price-selling-savings{
justify-content: center;
}
}

View File

@ -0,0 +1,49 @@
.skuSelectorContainer--quickview .skuSelectorItemImage .frameAround, .skuSelectorContainer--quickview .skuSelectorItemImage .skuSelectorInternalBox {
border-radius: 50%;
}
.container :global(.vtex-modal-layout-0-x-triggerContainer) {
opacity: 0;
transition: opacity 200ms ease-in-out;
}
.container:hover :global(.vtex-modal-layout-0-x-triggerContainer) {
opacity: 1;
}
@media screen and (max-width: 40em) {
.container :global(.vtex-modal-layout-0-x-triggerContainer) {
display: none;
}
}
.nameContainer {
justify-content: start;
padding-top: 1rem;
padding-bottom: 1rem;
}
.brandName {
font-weight: 600;
font-size: 18px;
color: #2E2E2E;
}
.container {
text-align: start;
}
.imageContainer {
text-align: center;
}
.image {
border-radius: 0.25rem;
}
.nameContainer{
padding-bottom: 0.5rem;
.productNameContainer{
text-align: center;
}
}

View File

@ -0,0 +1,3 @@
.stackItem{
display: block;
}

View File

@ -1,3 +1,53 @@
.skuSelectorContainer--m3-custom-sku-selector{
display: flex;
flex-direction: column-reverse;
.frameAround--m3-custom-sku-selector{
border-radius: 50%;
}
.skuSelectorSubcontainer-{
&-cor{
.skuSelectorTextContainer{
.skuSelectorName{
text-transform: uppercase;
&::after{
content: "ES:";
}
&::before{
content: "OUTRAS ";
}
}
}
}
&-tamanho{
.skuSelectorTextContainer{
.skuSelectorName{
text-transform: uppercase;
&::after{
content: "S:";
}
&::before{
content: "OUTROS ";
}
}
}
}
}
.skuSelectorItemImageValue--m3-custom-sku-selector{
border-radius: 50%;
}
.diagonalCross--m3-custom-sku-selector{
border-radius: 50%;
}
}
.newsletter{
background: red;
}
background: black;
}
.carouselGaleryThumbs{
flex-direction: row;
}

View File

@ -0,0 +1,86 @@
.listPrice {
color: #727273;
margin-bottom: .25rem;
font-size: 1rem;
}
.sellingPrice {
color: #3f3f40;
font-size: 1.25rem;
}
.sellingPriceValue {
font-size: 2.25rem;
font-weight: 700;
}
.installments {
color: #727273;
margin-bottom: 1rem;
}
.savings {
font-weight: 500;
color: #79B03A;
}
.sellingPriceValue--summary {
font-size: 1.25rem;
font-weight: 600;
color: #2E2E2E;
}
.savings--summary {
background: #8BC34A;
border-radius: 1000px;
align-items: center;
display: flex;
padding-left: 0.5rem;
padding-right: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
vertical-align: baseline;
color: #FFFFFF;
}
.savings-discount--summary {
font-size: 0.875rem;
font-weight: 600;
vertical-align: baseline;
color: #FFFFFF;
padding-left: 0.5rem;
padding-right: 0.5rem;
}
.listPrice--summary {
margin-bottom: 0.25rem;
font-size: .875rem;
}
.installments--summary {
margin-bottom: 2rem;
font-size: 0.875rem;
}
.savings--summaryPercentage {
background: #0f3e99;
border-radius: 1000px;
align-items: center;
display: flex;
}
.savingsPercentage--summaryPercentage {
font-size: 0.875rem;
font-weight: 600;
vertical-align: baseline;
color: #FFFFFF;
padding: 0.25rem 0.5rem 0.25rem 0.5rem;
}
:global(.vtex-shelf-1-x-slide){
.listPrice{
text-align: center;
margin-bottom: 16px;
}
}