feat(breadcrumb and product): cria breadcrumb e inicia estilização da área do produto
This commit is contained in:
parent
c9a06914fb
commit
525b66a40a
@ -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",
|
||||
|
@ -1,9 +1,11 @@
|
||||
import React from 'react'
|
||||
import React from "react";
|
||||
|
||||
const Example = () => {
|
||||
return (
|
||||
<div>Example</div>
|
||||
)
|
||||
}
|
||||
<div>
|
||||
asdioudhasuijdhasuihduiashdi9uashduiashdiuashuidhasiudhasuidhasuidhasuidhasuidhauishduiashduiashduiash
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Example
|
||||
export default Example;
|
||||
|
@ -2,6 +2,7 @@
|
||||
"store.product": {
|
||||
"children": [
|
||||
"html#breadcrumb",
|
||||
//"example-component",
|
||||
"condition-layout.product#availability",
|
||||
"flex-layout.row#description",
|
||||
"flex-layout.row#specifications-title",
|
||||
@ -45,6 +46,7 @@
|
||||
},
|
||||
"flex-layout.row#product-main": {
|
||||
"props": {
|
||||
"blockClass": "productPanel",
|
||||
"colGap": 7,
|
||||
"rowGap": 7,
|
||||
"marginTop": 4,
|
||||
@ -78,8 +80,9 @@
|
||||
"flex-layout.col#stack": {
|
||||
"children": ["stack-layout"],
|
||||
"props": {
|
||||
"width": "60%",
|
||||
"rowGap": 0
|
||||
"width": "49%",
|
||||
"rowGap": 0,
|
||||
"blockClass": "productShowcase"
|
||||
}
|
||||
},
|
||||
"flex-layout.row#product-image": {
|
||||
@ -91,7 +94,10 @@
|
||||
"desktop": "auto",
|
||||
"phone": "16:9"
|
||||
},
|
||||
"displayThumbnailsArrows": true
|
||||
"thumbnailsOrientation": "horizontal",
|
||||
"displayThumbnailsArrows": true,
|
||||
"showNavigationArrows": false,
|
||||
"showPaginationDots": false
|
||||
}
|
||||
},
|
||||
"flex-layout.col#right-col": {
|
||||
@ -102,7 +108,7 @@
|
||||
"children": [
|
||||
"flex-layout.row#product-name",
|
||||
"product-rating-summary",
|
||||
"flex-layout.row#list-price-savings",
|
||||
//"flex-layout.row#list-price-savings",
|
||||
"flex-layout.row#selling-price",
|
||||
"product-installments",
|
||||
"product-separator",
|
||||
@ -113,8 +119,8 @@
|
||||
"product-gifts",
|
||||
"flex-layout.row#buy-button",
|
||||
"availability-subscriber",
|
||||
"shipping-simulator",
|
||||
"share#default"
|
||||
"shipping-simulator"
|
||||
//"share#default"
|
||||
]
|
||||
},
|
||||
|
||||
@ -170,16 +176,16 @@
|
||||
"blockClass": "message-availability"
|
||||
},
|
||||
"children": ["availability-subscriber"]
|
||||
},
|
||||
}
|
||||
|
||||
"share#default": {
|
||||
"props": {
|
||||
"social": {
|
||||
"Facebook": true,
|
||||
"WhatsApp": true,
|
||||
"Twitter": false,
|
||||
"Pinterest": true
|
||||
}
|
||||
}
|
||||
}
|
||||
// "share#default": {
|
||||
// "props": {
|
||||
// "social": {
|
||||
// "Facebook": true,
|
||||
// "WhatsApp": true,
|
||||
// "Twitter": false,
|
||||
// "Pinterest": true
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
@ -1,26 +1,28 @@
|
||||
{
|
||||
"typeScale": [
|
||||
3, 2.25, 1.5, 1.25, 1, 0.875, 0.75
|
||||
],
|
||||
"typeScale": [3, 2.25, 1.5, 1.25, 1, 0.875, 0.75],
|
||||
"spacing": [0.125, 0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4, 8, 16],
|
||||
"customMedia": [
|
||||
{ "s": 20 },
|
||||
{ "ns": {
|
||||
{
|
||||
"ns": {
|
||||
"value": 40,
|
||||
"minWidth": true
|
||||
}
|
||||
},
|
||||
{ "m": {
|
||||
{
|
||||
"m": {
|
||||
"value": 40,
|
||||
"minWidth": true
|
||||
}
|
||||
},
|
||||
{ "l": {
|
||||
{
|
||||
"l": {
|
||||
"value": 64,
|
||||
"minWidth": true
|
||||
}
|
||||
},
|
||||
{ "xl": {
|
||||
{
|
||||
"xl": {
|
||||
"value": 80,
|
||||
"minWidth": true
|
||||
}
|
||||
|
@ -12,5 +12,5 @@
|
||||
}
|
||||
|
||||
.html--pdp-breadcrumb {
|
||||
background-color: green;
|
||||
background-color: blue;
|
||||
}
|
46
styles/css/vtex.breadcrumb.css
Normal file
46
styles/css/vtex.breadcrumb.css
Normal file
@ -0,0 +1,46 @@
|
||||
@charset "UTF-8";
|
||||
/*
|
||||
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 */
|
||||
.container {
|
||||
padding: 0 40px;
|
||||
margin: 32px 0 0;
|
||||
}
|
||||
.container .homeLink::before {
|
||||
content: "Home";
|
||||
}
|
||||
.container .homeLink .homeIcon {
|
||||
display: none;
|
||||
}
|
||||
.container .arrow--1,
|
||||
.container .arrow--2 {
|
||||
font-size: 0;
|
||||
}
|
||||
.container .arrow--1::after,
|
||||
.container .arrow--2::after {
|
||||
font-size: 12px;
|
||||
}
|
||||
.container .arrow--1::after {
|
||||
content: "Sapatos";
|
||||
}
|
||||
.container .arrow--2::after {
|
||||
content: "Sandálias";
|
||||
}
|
||||
.container .homeLink::before,
|
||||
.container .arrow--1::after,
|
||||
.container .arrow--2::after {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
}
|
||||
.container .termArrow,
|
||||
.container .term {
|
||||
display: none;
|
||||
}
|
@ -1,98 +1,20 @@
|
||||
.flexRowContent--menu-link,
|
||||
.flexRowContent--main-header {
|
||||
padding: 0 0.5rem;
|
||||
/*
|
||||
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 */
|
||||
.flexRow .flexRowContent--productPanel {
|
||||
margin: 16px 0 0;
|
||||
padding: 0 40px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 40em) {
|
||||
.flexRowContent--menu-link,
|
||||
.flexRowContent--main-header {
|
||||
padding: 0 1rem;
|
||||
.flexRow .flexRowContent--productPanel .stretchChildrenWidth:first-child {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@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;
|
||||
.flexRow .flexRowContent--productPanel .stretchChildrenWidth:first-child .flexCol--productShowcase {
|
||||
margin: 0 32px 0 0;
|
||||
}
|
@ -1,3 +1,21 @@
|
||||
.product-identifier--productReference {
|
||||
margin-bottom: 1rem;
|
||||
/*
|
||||
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 */
|
||||
.product-identifier {
|
||||
position: absolute;
|
||||
top: 65px;
|
||||
right: 40px;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: rgba(146, 146, 146, 0.4784313725);
|
||||
}
|
||||
.product-identifier__label, .product-identifier__separator {
|
||||
display: none;
|
||||
}
|
@ -1,79 +1,9 @@
|
||||
.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;
|
||||
}
|
||||
/*
|
||||
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 */
|
12
styles/css/vtex.shelf.css
Normal file
12
styles/css/vtex.shelf.css
Normal file
@ -0,0 +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 */
|
||||
.relatedProducts {
|
||||
padding: 0 40px;
|
||||
}
|
@ -7,6 +7,41 @@
|
||||
*/
|
||||
/* Media Query M3 */
|
||||
/* Grid breakpoints */
|
||||
.newsletter {
|
||||
background: red;
|
||||
.container {
|
||||
padding: 0;
|
||||
}
|
||||
.container .carouselContainer {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
.container .carouselContainer .carouselGaleryThumbs {
|
||||
position: static;
|
||||
margin: 16px 0 0;
|
||||
}
|
||||
.container .carouselContainer .carouselThumbBorder {
|
||||
height: fit-content;
|
||||
}
|
||||
.container .productImagesThumb {
|
||||
max-height: 90px !important;
|
||||
margin: 0 16px 0 0;
|
||||
width: fit-content !important;
|
||||
}
|
||||
.container .productImagesThumb .figure,
|
||||
.container .productImagesThumb .figure .thumbImg {
|
||||
max-height: 90px;
|
||||
max-width: 90px;
|
||||
min-height: 90px;
|
||||
object-fit: fill;
|
||||
}
|
||||
.container .productImageTag--main {
|
||||
object-fit: fill !important;
|
||||
max-width: 664px;
|
||||
}
|
||||
.container .productNameContainer {
|
||||
text-align: right;
|
||||
font-weight: 300;
|
||||
font-size: 20px;
|
||||
line-height: 34px;
|
||||
color: #575757;
|
||||
margin: 0 0 51px;
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
.html {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.html--pdp-breadcrumb {
|
||||
background-color: green;
|
||||
}
|
||||
|
45
styles/sass/pages/product/vtex.breadcrumb.scss
Normal file
45
styles/sass/pages/product/vtex.breadcrumb.scss
Normal file
@ -0,0 +1,45 @@
|
||||
.container {
|
||||
padding: 0 40px;
|
||||
margin: 32px 0 0;
|
||||
|
||||
.homeLink {
|
||||
&::before {
|
||||
content: "Home";
|
||||
}
|
||||
|
||||
.homeIcon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.arrow--1,
|
||||
.arrow--2 {
|
||||
font-size: 0;
|
||||
|
||||
&::after {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.arrow--1::after {
|
||||
content: "Sapatos";
|
||||
}
|
||||
|
||||
.arrow--2::after {
|
||||
content: "Sandálias";
|
||||
}
|
||||
|
||||
.homeLink::before,
|
||||
.arrow--1::after,
|
||||
.arrow--2::after {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: $color-gray6;
|
||||
}
|
||||
|
||||
.termArrow,
|
||||
.term {
|
||||
display: none;
|
||||
}
|
||||
}
|
15
styles/sass/pages/product/vtex.flex-layout.scss
Normal file
15
styles/sass/pages/product/vtex.flex-layout.scss
Normal file
@ -0,0 +1,15 @@
|
||||
.flexRow {
|
||||
.flexRowContent--productPanel {
|
||||
margin: 16px 0 0;
|
||||
padding: 0 40px;
|
||||
position: relative;
|
||||
|
||||
.stretchChildrenWidth:first-child {
|
||||
padding: 0;
|
||||
|
||||
.flexCol--productShowcase {
|
||||
margin: 0 32px 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
14
styles/sass/pages/product/vtex.product-identifier.scss
Normal file
14
styles/sass/pages/product/vtex.product-identifier.scss
Normal file
@ -0,0 +1,14 @@
|
||||
.product-identifier {
|
||||
position: absolute;
|
||||
top: 65px;
|
||||
right: 40px;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: $color-gray8;
|
||||
|
||||
&__label,
|
||||
&__separator {
|
||||
display: none;
|
||||
}
|
||||
}
|
3
styles/sass/pages/product/vtex.shelf.scss
Normal file
3
styles/sass/pages/product/vtex.shelf.scss
Normal file
@ -0,0 +1,3 @@
|
||||
.relatedProducts {
|
||||
padding: 0 40px;
|
||||
}
|
@ -1,3 +1,45 @@
|
||||
.newsletter{
|
||||
background: red;
|
||||
.container {
|
||||
padding: 0;
|
||||
|
||||
.carouselContainer {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
|
||||
.carouselGaleryThumbs {
|
||||
position: static;
|
||||
margin: 16px 0 0;
|
||||
}
|
||||
|
||||
.carouselThumbBorder {
|
||||
height: fit-content;
|
||||
}
|
||||
}
|
||||
|
||||
.productImagesThumb {
|
||||
max-height: 90px !important;
|
||||
margin: 0 16px 0 0;
|
||||
width: fit-content !important;
|
||||
|
||||
.figure,
|
||||
.figure .thumbImg {
|
||||
max-height: 90px;
|
||||
max-width: 90px;
|
||||
min-height: 90px;
|
||||
object-fit: fill;
|
||||
}
|
||||
}
|
||||
|
||||
.productImageTag--main {
|
||||
object-fit: fill !important;
|
||||
max-width: 664px;
|
||||
}
|
||||
|
||||
.productNameContainer {
|
||||
text-align: right;
|
||||
font-weight: 300;
|
||||
font-size: 20px;
|
||||
line-height: 34px;
|
||||
color: $color-gray7;
|
||||
margin: 0 0 51px;
|
||||
}
|
||||
}
|
@ -7,6 +7,9 @@ $color-gray2: #7d7d7d;
|
||||
$color-gray3: #f0f0f0;
|
||||
$color-gray4: #c4c4c4;
|
||||
$color-gray5: #e5e5e5;
|
||||
$color-gray6: #929292;
|
||||
$color-gray7: #575757;
|
||||
$color-gray8: #9292927a;
|
||||
|
||||
$color-blue: #4267b2;
|
||||
|
||||
@ -19,7 +22,7 @@ $grid-breakpoints: (
|
||||
sm: 576px,
|
||||
md: 768px,
|
||||
lg: 992px,
|
||||
xl: 1200px
|
||||
xl: 1200px,
|
||||
) !default;
|
||||
|
||||
$z-index: (
|
||||
@ -27,5 +30,5 @@ $z-index: (
|
||||
level2: 10,
|
||||
level3: 15,
|
||||
level4: 20,
|
||||
level5: 25
|
||||
level5: 25,
|
||||
) !default;
|
||||
|
Loading…
x
Reference in New Issue
Block a user