fix(Breadcrumb e product-images): Ajusta o breadcrumb e o tamanho das imgaens no product-images

This commit is contained in:
Filipe Quintanilha Evangelista 2023-02-02 18:19:52 -03:00
parent 4f318195ac
commit f1e8f6c05c
12 changed files with 132 additions and 22 deletions

3
.eslintignore Normal file
View File

@ -0,0 +1,3 @@
node_modules/
coverage/
*.snap.ts

7
.eslintrc Normal file
View File

@ -0,0 +1,7 @@
{
"extends": "vtex",
"root": true,
"env": {
"node": true
}
}

1
.prettierrc Normal file
View File

@ -0,0 +1 @@
"@vtex/prettier-config"

View File

@ -1,20 +1,27 @@
{ {
"name": "store-theme",
"private": true,
"license": "UNLICENSED", "license": "UNLICENSED",
"main": "gulpfile.js",
"directories": {
"doc": "docs"
},
"scripts": { "scripts": {
"dev": "concurrently \"vtex unlink --all && vtex link\" \"gulp storefront\"",
"lint": "eslint ./ --fix", "lint": "eslint ./ --fix",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json}\"",
"dev": "concurrently \"vtex unlink --all && vtex link\" \"gulp storefront\"",
"scss": "gulp storefront" "scss": "gulp storefront"
}, },
"repository": { "husky": {
"type": "git", "hooks": {
"url": "git@gitlab.com:agenciam3/pattern/vtex-io-template.git" "pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js,tsx,jsx}": [
"eslint --fix",
"prettier --write"
],
"*.{json,graphql,gql}": [
"prettier --write"
]
}, },
"keywords": [],
"author": "",
"devDependencies": { "devDependencies": {
"eslint": "^7.22.0", "eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0", "eslint-config-prettier": "^8.1.0",
@ -37,8 +44,18 @@
"prettier": "2.0.2", "prettier": "2.0.2",
"typescript": "3.8.3" "typescript": "3.8.3"
}, },
"main": "gulpfile.js",
"directories": {
"doc": "docs"
},
"repository": {
"type": "git",
"url": "git@gitlab.com:agenciam3/pattern/vtex-io-template.git"
},
"keywords": [],
"author": "",
"dependencies": { "dependencies": {
"husky": "^5.2.0", "husky": "^5.2.0",
"react": "^17.0.2" "react": "^17.0.2"
} }
} }

View File

@ -1,9 +1,20 @@
import React from 'react' import React from 'react'
import './pix.css'
import { useProduct } from 'vtex.product-context'
const Example = () => { const Example = () => {
const productContext = useProduct()
console.log('productContext', productContext)
return ( return (
<div>Example</div> <div className="pix-container">
<img
src="https://agenciamagma.vteximg.com.br/arquivos/pix-icon-sauloklein-m3academy.svg"
alt="pix"
/>
</div>
) )
} }
export default Example export default Example

View File

@ -0,0 +1,3 @@
[class*="pix-container"] {
margin: 8px 0 16px 0;
}

View File

@ -2,10 +2,16 @@
"extends": "@vtex/tsconfig", "extends": "@vtex/tsconfig",
"compilerOptions": { "compilerOptions": {
"noEmitOnError": false, "noEmitOnError": false,
"lib": ["dom"], "lib": [
"dom"
],
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "node",
"target": "es2017" "target": "es2017"
}, },
"include": ["./typings/*.d.ts", "./**/*.tsx", "./**/*.ts"] "include": [
"./typings/*.d.ts",
"./**/*.tsx",
"./**/*.ts"
]
} }

View File

@ -109,13 +109,14 @@
"flex-layout.row#list-price-savings", "flex-layout.row#list-price-savings",
"flex-layout.row#selling-price", "flex-layout.row#selling-price",
"product-installments", "product-installments",
"example-component",
// "product-separator", // "product-separator",
"product-identifier.product", "product-identifier.product",
"sku-selector", "sku-selector",
"html#quantity-wrapper", "html#quantity-wrapper",
// "product-quantity", // "product-quantity",
"product-assembly-options", "product-assembly-options",
"product-gifts", // "product-gifts",
// "flex-layout.row#buy-button", // "flex-layout.row#buy-button",
"availability-subscriber", "availability-subscriber",
"shipping-simulator", "shipping-simulator",
@ -129,7 +130,15 @@
"testId": "quantity", "testId": "quantity",
"blockClass": "quantity-wrapper" "blockClass": "quantity-wrapper"
}, },
"children": ["product-quantity", "html#buy-button"] "children": ["html#product-quantity", "html#buy-button"]
},
"html#product-quantity": {
"props": {
"testId": "product-quantity",
"blockClass": "quantidade"
},
"children": ["product-quantity"]
}, },
"html#buy-button": { "html#buy-button": {

View File

@ -18,6 +18,19 @@
.container .homeLink .homeIcon { .container .homeLink .homeIcon {
display: none; display: none;
} }
.container .arrow {
position: relative;
}
.container .arrow .link--1,
.container .arrow .link--2 {
position: absolute;
top: -7px;
width: 57px;
}
.container .arrow .link--1:focus,
.container .arrow .link--2:focus {
color: transparent;
}
.container .arrow--1, .container .arrow--1,
.container .arrow--2 { .container .arrow--2 {
font-size: 0; font-size: 0;
@ -28,9 +41,11 @@
} }
.container .arrow--1::after { .container .arrow--1::after {
content: "Sapatos"; content: "Sapatos";
padding-left: 8px;
} }
.container .arrow--2::after { .container .arrow--2::after {
content: "Sandálias"; content: "Sandálias";
padding-left: 8px;
} }
.container .homeLink::before, .container .homeLink::before,
.container .arrow--1::after, .container .arrow--1::after,

View File

@ -20,9 +20,15 @@
.container .carouselGaleryCursor { .container .carouselGaleryCursor {
width: 664px; width: 664px;
} }
.container .carouselGaleryThumbs {
margin-top: 16px;
}
.container .productImageTag { .container .productImageTag {
object-fit: fill !important; object-fit: fill !important;
} }
.container .thumbImg {
border-radius: 8px;
}
.container .productNameContainer { .container .productNameContainer {
text-align: right; text-align: right;
font-weight: 300; font-weight: 300;
@ -98,6 +104,9 @@
line-height: 19px; line-height: 19px;
color: rgba(185, 185, 185, 0.6); color: rgba(185, 185, 185, 0.6);
} }
.container .skuSelectorOptionsList {
margin: 0;
}
.container .diagonalCross { .container .diagonalCross {
transform: rotate(90deg); transform: rotate(90deg);
} }

View File

@ -2,7 +2,7 @@
padding: 0 0 16px 40px; padding: 0 0 16px 40px;
.homeLink { .homeLink {
&::before { &::before {
content: "Home"; content: 'Home';
} }
.homeIcon { .homeIcon {
@ -10,6 +10,21 @@
} }
} }
.arrow {
position: relative;
.link--1,
.link--2 {
position: absolute;
top: -7px;
width: 57px;
&:focus {
color: transparent;
}
}
}
.arrow--1, .arrow--1,
.arrow--2 { .arrow--2 {
font-size: 0; font-size: 0;
@ -20,11 +35,13 @@
} }
.arrow--1::after { .arrow--1::after {
content: "Sapatos"; content: 'Sapatos';
padding-left: 8px;
} }
.arrow--2::after { .arrow--2::after {
content: "Sandálias"; content: 'Sandálias';
padding-left: 8px;
} }
.homeLink::before, .homeLink::before,

View File

@ -16,10 +16,18 @@
width: 664px; width: 664px;
} }
.carouselGaleryThumbs {
margin-top: 16px;
}
.productImageTag { .productImageTag {
object-fit: fill !important; object-fit: fill !important;
} }
.thumbImg {
border-radius: 8px;
}
.productNameContainer { .productNameContainer {
text-align: right; text-align: right;
font-weight: 300; font-weight: 300;
@ -46,7 +54,7 @@
&:last-child { &:last-child {
&::before { &::before {
content: "OUTROS TAMANHOS:"; content: 'OUTROS TAMANHOS:';
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 19px; line-height: 19px;
@ -55,7 +63,7 @@
} }
&::before { &::before {
content: "OUTRAS CORES"; content: 'OUTRAS CORES';
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 19px; line-height: 19px;
@ -113,6 +121,10 @@
color: rgba(185, 185, 185, 0.6); color: rgba(185, 185, 185, 0.6);
} }
.skuSelectorOptionsList {
margin: 0;
}
.diagonalCross { .diagonalCross {
transform: rotate(90deg); transform: rotate(90deg);
} }