Skip to content

Commit c05e697

Browse files
author
Ícaro Azevedo
authored
Merge pull request #235 from vtex-apps/feature/video-block-example
Adding video block example to about us page
2 parents ef9d8eb + 83306b8 commit c05e697

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

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

1012
## [4.1.0] - 2020-11-16
1113
### Changed

manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"vtex.store-icons": "0.x",
5353
"vtex.modal-layout": "0.x",
5454
"vtex.store-link": "0.x",
55+
"vtex.store-video": "1.x",
5556
"vtex.product-gifts": "0.x",
5657
"vtex.product-price": "1.x",
5758
"vtex.disclosure-layout": "1.x",

store/blocks/about-us.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"store.custom#about-us": {
33
"blocks": [
4-
"flex-layout.row#about-us"
4+
"flex-layout.row#about-us",
5+
"video#about-us"
56
]
67
},
78

@@ -39,7 +40,13 @@
3940
"blockClass": "storePrint"
4041
}
4142
},
42-
43+
"video#about-us": {
44+
"props": {
45+
"src": "https://www.youtube.com/embed/JgkrlaF52WQ",
46+
"width": "100%",
47+
"height": "100%"
48+
}
49+
},
4350
"rich-text#about-us": {
4451
"props": {
4552
"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.",

styles/css/vtex.store-video.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.videoContainer {
2+
width: 100%;
3+
height: 300px;
4+
margin-top: 2%;
5+
}
6+
7+
@media only screen and (min-width: 640px) {
8+
.videoContainer {
9+
height: 700px;
10+
}
11+
}

0 commit comments

Comments
 (0)