From 81e2f13ccbfd4403dc66dc6cfc3c66749ce760f2 Mon Sep 17 00:00:00 2001 From: Elton Cristovao Date: Mon, 28 Feb 2022 12:06:53 -0300 Subject: [PATCH 1/7] =?UTF-8?q?ignore=20altere=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/blocks/home/home.jsonc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/store/blocks/home/home.jsonc b/store/blocks/home/home.jsonc index 0e7cfad4..f3241bb5 100644 --- a/store/blocks/home/home.jsonc +++ b/store/blocks/home/home.jsonc @@ -1,6 +1,8 @@ { "store.home": { "blocks": [ + //"image#name", + //"rich-text#name", "list-context.image-list#demo", /* You can make references to blocks defined in other files. * For example, `flex-layout.row#deals` is defined in the `deals.json` file. */ @@ -15,6 +17,28 @@ ] }, + + + + "rich-text#name": { + "props": { + "blockClass": ["name"], + "font": "t-body", + "text": "Olá Mundo VTEX /n teste", + "textAlignment": "CENTER", + "textColor": "c-on-base", + "textPosition": "CENTER" + } + }, + + "image#name": { + "props": { + "blockClass": ["name"], + // "maxHeight": 124, + "src": "https://storecomponents.vteximg.com.br/arquivos/banner-principal.png" + } + }, + "list-context.image-list#demo": { "children": ["slider-layout#demo-images"], "props": { From 2557bd3a63933751bafdc1d1021b271ab32aa48e Mon Sep 17 00:00:00 2001 From: Elton Cristovao Date: Thu, 21 Apr 2022 10:57:17 -0300 Subject: [PATCH 2/7] inicio exercicio front-end --- store/blocks/home/ecristovao.jsonc | 17 +++++++++++++++++ store/blocks/home/home.jsonc | 1 + 2 files changed, 18 insertions(+) create mode 100644 store/blocks/home/ecristovao.jsonc diff --git a/store/blocks/home/ecristovao.jsonc b/store/blocks/home/ecristovao.jsonc new file mode 100644 index 00000000..44a2c430 --- /dev/null +++ b/store/blocks/home/ecristovao.jsonc @@ -0,0 +1,17 @@ +{ + +"flex-layout.row#exercicio-ecristovao": { + "props": { + "blockClass": "exercicio-ecristovao", + "fullWidth": "true" + }, + "children": [ + "rich-text#regiao" + ] + }, + "rich-text#regiao": { + "props": { + "text": "**Sua loja**" + } + } +} \ No newline at end of file diff --git a/store/blocks/home/home.jsonc b/store/blocks/home/home.jsonc index f3241bb5..85b7f605 100644 --- a/store/blocks/home/home.jsonc +++ b/store/blocks/home/home.jsonc @@ -4,6 +4,7 @@ //"image#name", //"rich-text#name", "list-context.image-list#demo", + "flex-layout.row#exercicio-ecristovao", /* You can make references to blocks defined in other files. * For example, `flex-layout.row#deals` is defined in the `deals.json` file. */ "__fold__.experimentalLazyAssets", From 0df259211bae966e84651f00783b92d71b36c1ea Mon Sep 17 00:00:00 2001 From: Elton Cristovao Date: Mon, 25 Apr 2022 12:58:20 -0300 Subject: [PATCH 3/7] Exercicio Trilha Vtex IO --- store/blocks/home/ecristovao.jsonc | 85 ++++++++++++++++++++++++++++-- 1 file changed, 80 insertions(+), 5 deletions(-) diff --git a/store/blocks/home/ecristovao.jsonc b/store/blocks/home/ecristovao.jsonc index 44a2c430..8c4974fb 100644 --- a/store/blocks/home/ecristovao.jsonc +++ b/store/blocks/home/ecristovao.jsonc @@ -1,17 +1,92 @@ { -"flex-layout.row#exercicio-ecristovao": { + "flex-layout.row#exercicio-ecristovao": { + "title": "Título Vtex IO", "props": { "blockClass": "exercicio-ecristovao", "fullWidth": "true" }, "children": [ - "rich-text#regiao" + "flex-layout.col#exercicio-ecristovao" ] }, + "flex-layout.col#exercicio-ecristovao": { + "children": [ + "rich-text#regiao", + "slider-layout#slider-ecristovao", + "list-context.product-list#demo2" + + ] + }, +//Título "rich-text#regiao": { - "props": { - "text": "**Sua loja**" - } + "title": "Título Trilha", + "props": { + "text": "## **_Rich Text Trilha IO_**", + "textAlignment": "CENTER", + "textPosition": "CENTER" } + }, +//Slider de imagens + "slider-layout#slider-ecristovao": { + "title": "Imagens Trilha", + "props": { + "itemsPerPage": { + "desktop": 1, + "tablet": 1, + "phone": 1 + }, + "infinite": true, + "showNavigationArrows": "desktopOnly", + "blockClass": "carousel" + }, + "children": ["list-context.image-list#ecristovao-list-img"] + }, + + "list-context.image-list#ecristovao-list-img": { + "children": ["slider-layout#ecristovao-images"], + "props": { + "height": 400, + "images": [ + { + "image": "https://i.pinimg.com/originals/d0/1c/79/d01c7974bcdd61091068bc2f8019769f.jpg", + "mobileImage": "https://estado.rs.gov.br/upload/recortes/201707/19033218_1119075_GD.jpg" + } + ] + } + }, +//Lista de produtos + "slider-layout#ecristovao-images": { + "props": { + "itemsPerPage": { + "desktop": 1, + "tablet": 1, + "phone": 1 + }, + "infinite": true, + "showNavigationArrows": "desktopOnly", + "blockClass": "carousel" + } + }, + + +"product-summary.shelf#demo2": { + "children": [ + "stack-layout#prodsum", + "product-summary-name", + "product-rating-inline", + "product-summary-space", + "product-summary-price", + "product-summary-buy-button" + ] + }, + "list-context.product-list#demo2": { + "blocks": ["product-summary.shelf#demo2"], + "children": ["slider-layout#demo-products"], + "props": { + "orderBy": "OrderByTopSaleDESC", + "collection": "150" + } + } + } \ No newline at end of file From 0b44136cf36c1855a52732f42be6471260803d8c Mon Sep 17 00:00:00 2001 From: Elton Cristovao Date: Mon, 25 Apr 2022 14:01:04 -0300 Subject: [PATCH 4/7] trilha io] --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 734d6880..f557e677 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "vendor": "vtex", + "vendor": "acctglobal", "name": "store-theme", "version": "4.4.2", "builders": { From a4d778fb124ca76d73429eaa690296e8d2911764 Mon Sep 17 00:00:00 2001 From: Elton Cristovao Date: Tue, 26 Apr 2022 13:39:21 -0300 Subject: [PATCH 5/7] ajuste --- manifest.json | 2 +- react/yarn.lock | 4 ++++ store/blocks/home/ecristovao.jsonc | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 react/yarn.lock diff --git a/manifest.json b/manifest.json index f557e677..734d6880 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "vendor": "acctglobal", + "vendor": "vtex", "name": "store-theme", "version": "4.4.2", "builders": { diff --git a/react/yarn.lock b/react/yarn.lock new file mode 100644 index 00000000..fb57ccd1 --- /dev/null +++ b/react/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/store/blocks/home/ecristovao.jsonc b/store/blocks/home/ecristovao.jsonc index 8c4974fb..b6600aa5 100644 --- a/store/blocks/home/ecristovao.jsonc +++ b/store/blocks/home/ecristovao.jsonc @@ -12,14 +12,14 @@ }, "flex-layout.col#exercicio-ecristovao": { "children": [ - "rich-text#regiao", + "rich-text#titulo", "slider-layout#slider-ecristovao", "list-context.product-list#demo2" ] }, //Título - "rich-text#regiao": { + "rich-text#titulo": { "title": "Título Trilha", "props": { "text": "## **_Rich Text Trilha IO_**", From cfe15e42e799477735aafc670870ab4ff99ebad0 Mon Sep 17 00:00:00 2001 From: Elton Cristovao Date: Tue, 26 Apr 2022 17:10:37 -0300 Subject: [PATCH 6/7] teste --- store/blocks/header/header.jsonc | 4 ++++ store/blocks/home/ecristovao.jsonc | 35 ++++++++++++++++++++++++++++-- store/blocks/home/home.jsonc | 2 +- store/interfaces.json | 9 ++++++++ 4 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 store/interfaces.json diff --git a/store/blocks/header/header.jsonc b/store/blocks/header/header.jsonc index 7a7a1254..2dc77692 100644 --- a/store/blocks/header/header.jsonc +++ b/store/blocks/header/header.jsonc @@ -7,12 +7,16 @@ }, "header-layout.desktop": { "children": [ + "header-row#1-desktop", "flex-layout.row#1-desktop", "flex-layout.row#2-desktop", "flex-layout.row#3-desktop", "sticky-layout#4-desktop" ] }, +"header-row#1-desktop": { + "children": ["minicart.v2"] + }, "flex-layout.row#1-desktop": { "children": ["telemarketing"], diff --git a/store/blocks/home/ecristovao.jsonc b/store/blocks/home/ecristovao.jsonc index b6600aa5..f7980848 100644 --- a/store/blocks/home/ecristovao.jsonc +++ b/store/blocks/home/ecristovao.jsonc @@ -15,9 +15,40 @@ "rich-text#titulo", "slider-layout#slider-ecristovao", "list-context.product-list#demo2" - + //"modal-trigger" ] }, + + + +"modal-trigger": { + "props": { + "trigger": "load" + }, + "children": [ + "modal-layout" + ] + }, + "modal-layout": { + "children": [ + "modal-header", + "modal-content" + ] + }, + "modal-header": { + "props": { + "showCloseButton": true, + "iconCloseSize": 30 + } + }, + "modal-content": { + "children": [ + "modalfink" + ] + }, + + + //Título "rich-text#titulo": { "title": "Título Trilha", @@ -81,7 +112,7 @@ ] }, "list-context.product-list#demo2": { - "blocks": ["product-summary.shelf#demo2"], + "blocks": ["product-summary.shelf"], "children": ["slider-layout#demo-products"], "props": { "orderBy": "OrderByTopSaleDESC", diff --git a/store/blocks/home/home.jsonc b/store/blocks/home/home.jsonc index 85b7f605..0ecd97cf 100644 --- a/store/blocks/home/home.jsonc +++ b/store/blocks/home/home.jsonc @@ -10,7 +10,7 @@ "__fold__.experimentalLazyAssets", "flex-layout.row#deals", "rich-text#shelf-title", - "flex-layout.row#shelf", + //"flex-layout.row#shelf", "info-card#home", "rich-text#question", "rich-text#link", diff --git a/store/interfaces.json b/store/interfaces.json new file mode 100644 index 00000000..8ebc27af --- /dev/null +++ b/store/interfaces.json @@ -0,0 +1,9 @@ +{ + "modalfink": { + "component": "Form" + }, + + "fb_like": { + "component": "Like" + } +} \ No newline at end of file From 0d76e386dd32a060ca5e258cf6b228b7a78a9de1 Mon Sep 17 00:00:00 2001 From: Elton Cristovao Date: Wed, 27 Apr 2022 08:53:55 -0300 Subject: [PATCH 7/7] estudo teste --- store/blocks/header/header.jsonc | 1 - 1 file changed, 1 deletion(-) diff --git a/store/blocks/header/header.jsonc b/store/blocks/header/header.jsonc index 2dc77692..38b1ab8c 100644 --- a/store/blocks/header/header.jsonc +++ b/store/blocks/header/header.jsonc @@ -7,7 +7,6 @@ }, "header-layout.desktop": { "children": [ - "header-row#1-desktop", "flex-layout.row#1-desktop", "flex-layout.row#2-desktop", "flex-layout.row#3-desktop",