Skip to content

Commit

Permalink
Adding video block example to about us page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ícaro committed Nov 16, 2020
1 parent ef9d8eb commit 326e188
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
Example of [vtex.store-video](https://github.com/vtex-apps/store-video) usage.

## [4.1.0] - 2020-11-16
### Changed
Expand Down
1 change: 1 addition & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"vtex.store-icons": "0.x",
"vtex.modal-layout": "0.x",
"vtex.store-link": "0.x",
"vtex.store-video": "1.x",
"vtex.product-gifts": "0.x",
"vtex.product-price": "1.x",
"vtex.disclosure-layout": "1.x",
Expand Down
25 changes: 23 additions & 2 deletions store/blocks/about-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

"flex-layout.row#about-us": {
"children": [
"image#mobile-phone",
"slider-layout#about-us",
"flex-layout.col#text-about-us"
]
},
Expand All @@ -31,6 +31,21 @@
}
},

"slider-layout#about-us": {
"props": {
"itemsPerPage": {
"desktop": 1,
"tablet": 1,
"phone": 1
},
"infinite": true,
"showNavigationArrows": "desktopOnly"
},
"children": [
"image#mobile-phone",
"video#about-us"
]
},
"image#mobile-phone": {
"props": {
"src": "https://storecomponents.vteximg.com.br/arquivos/mobile-phone.png",
Expand All @@ -39,7 +54,13 @@
"blockClass": "storePrint"
}
},

"video#about-us": {
"props": {
"src": "https://www.youtube.com/embed/JgkrlaF52WQ",
"width": "100%",
"height": "100%"
}
},
"rich-text#about-us": {
"props": {
"text": "**Optimized store framework** \n Free your front-end with our React + Node store framework. Improve usability and SEO, while driving more conversion with modular components, single page applications, and a ready-for-PWA structure. \n **Multi-currency and language** \n Go international with multiple storefronts to support different languages and easily manage local currencies and payment conditions. \n **Serverless development platform** \n Reduce loading time, improve usability, and make the best out of SEO. Developing scalable components with a comprehensive, easy-to-use toolset, you can build stores faster than ever.",
Expand Down
6 changes: 6 additions & 0 deletions styles/css/vtex.store-video.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.videoContainer {
width: 95%;
height: 54%;
display: flex;
justify-content: center;
}

0 comments on commit 326e188

Please sign in to comment.