feat(availability):availability finalizada

This commit is contained in:
Gustavo Rallenson Gonçalves Da Silva 2023-02-09 16:18:58 -03:00
parent 589fcce599
commit 0dcda9f038
6 changed files with 173 additions and 3 deletions

View File

@ -1,7 +1,14 @@
import React from 'react'; import React, { useRef, useEffect } from 'react';
import { useProduct } from 'vtex.product-context'; import { useProduct } from 'vtex.product-context';
const Pix = () => { const Pix: React.FC = () => {
const buttonRef = useRef<HTMLButtonElement>(null);
useEffect(() => {
if (buttonRef.current) {
buttonRef.current.innerHTML = 'Novo texto';
buttonRef.current.setAttribute('placeholder', 'Novo placeholder');
}
}, []);
const { product } = useProduct() const { product } = useProduct()
let pixprice = product?.priceRange.sellingPrice.lowPrice let pixprice = product?.priceRange.sellingPrice.lowPrice

View File

@ -454,6 +454,12 @@
"children": ["availability-subscriber"] "children": ["availability-subscriber"]
}, },
"availability-subscriber":{
"props": {
"blockClass": "message-availability"
}
},
"share#default": { "share#default": {
"props": { "props": {
"social": { "social": {

View File

@ -1,3 +1,4 @@
@charset "UTF-8";
/* /*
0 - 600PX: Phone 0 - 600PX: Phone
600 - 900px: Table portrait 600 - 900px: Table portrait
@ -201,3 +202,28 @@
font-size: 25px; font-size: 25px;
line-height: 38px; line-height: 38px;
} }
.flexRowContent--message-availability :global(.vtex-store-components-3-x-title) {
font-size: 0;
}
.flexRowContent--message-availability :global(.vtex-store-components-3-x-title)::after {
content: "Produto indisponível";
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 900;
font-size: 14px;
line-height: 19px;
color: #868686;
}
.flexRowContent--message-availability :global(.vtex-store-components-3-x-subscribeLabel) {
font-size: 0;
}
.flexRowContent--message-availability :global(.vtex-store-components-3-x-subscribeLabel)::after {
content: "Deseja saber quando estiver disponível?";
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
color: #868686;
}

View File

@ -242,3 +242,56 @@
line-height: 19px !important; line-height: 19px !important;
} }
} }
.form {
width: max-content;
}
.form .content {
width: 65.532%;
height: 108px;
display: grid;
justify-items: center;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 1fr 1fr;
gap: 8px;
}
.form .content .inputName, .form .content .inputEmail {
width: 100%;
height: 40px;
min-width: 150px;
margin-right: 0;
margin-bottom: 7px;
}
.form .submit {
width: 100%;
justify-content: center;
grid-column: span 2;
grid-row: 2;
}
.form .submit :global(.vtex-button) {
width: 100%;
background: #000000;
width: 308px;
height: 49px;
}
.form .submit :global(.vtex-button) :global(.vtex-button__label) {
font-size: 0;
}
.form .submit :global(.vtex-button) :global(.vtex-button__label)::after {
content: "AVISE-ME";
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 600;
font-size: 18px;
line-height: 25px;
color: #FFFFFF;
}
.form :global(.vtex-styleguide-9-x-input) {
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 28px;
padding: 14px 14px 16px;
color: #989898;
}

View File

@ -194,4 +194,29 @@
line-height: 38px; line-height: 38px;
} }
} }
.flexRowContent--message-availability{
:global(.vtex-store-components-3-x-title){
font-size: 0;
&::after{
content: "Produto indisponível";
font-family: 'Open Sans',sans-serif;
font-style: normal;
font-weight: 900;
font-size: 14px;
line-height: 19px;
color: #868686;
}
}
:global(.vtex-store-components-3-x-subscribeLabel){
font-size: 0;
&::after{
content: "Deseja saber quando estiver disponível?";
font-family: 'Open Sans',sans-serif;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
color: #868686;
}
}
}

View File

@ -216,4 +216,57 @@
} }
} }
.form{
width: max-content;
.content{
width: 65.532%;
height: 108px;
display: grid;
justify-items: center;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 1fr 1fr;
gap: 8px;
.inputName,.inputEmail{
width: 100%;
height: 40px;
min-width: 150px;
margin-right: 0;
margin-bottom: 7px;
}
}
.submit{
width: 100%;
justify-content: center;
grid-column: span 2;
grid-row: 2;
:global(.vtex-button){
width: 100%;
background: #000000;
width: 308px;
height: 49px;
:global(.vtex-button__label){
font-size: 0;
&::after{
content: "AVISE-ME";
font-family: 'Open Sans',sans-serif;
font-style: normal;
font-weight: 600;
font-size: 18px;
line-height: 25px;
color: #FFFFFF;
}
}
}
}
:global(.vtex-styleguide-9-x-input ){
font-family: 'Open Sans',sans-serif;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 28px;
padding: 14px 14px 16px;
color: #989898;
}
}