Skip to content

Commit 97fbdcb

Browse files
committed
Added support for video playback
1 parent 8cefbaa commit 97fbdcb

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ app_description : Wherever some that and kiwi that well
77
one aside canny one preparatory up less therefore
88
hello oh amid goodness checked.
99
app_price : 4.99
10-
ios_app_id :
10+
ios_app_id : 912209541
1111
android_app_id :
1212

1313
# Icon and screenshot
1414
app_icon :
15-
app_video :
16-
app_screenshot :
15+
app_video : assets/video.mp4
16+
app_screenshot :
1717

1818
# Social Links
1919
facebook_username :

_sass/layout.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,21 @@ nav > ul li a {
180180
margin-top: 27px;
181181
}
182182

183+
.videoContainer {
184+
width: 388px;
185+
height: 839px;
186+
-webkit-clip-path: url(#screenMask);
187+
clip-path: url(#screenMask);
188+
margin-left: 28px;
189+
margin-top: 3px;
190+
padding: 0px;
191+
}
192+
193+
.videoContainer > video {
194+
width: 388px;
195+
height: 839px;
196+
}
197+
183198
.features {
184199
grid-area: c;
185200
display: flex;

assets/video.mp4

13.2 MB
Binary file not shown.

index.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,24 @@
1111
<div class="headerBackground">
1212
<div class="container">
1313
{% include header.html %}
14-
1514
<div class="iphonePreview">
16-
{% if %}
17-
18-
19-
{% else %}
2015
<svg width="0" height="0">
2116
<defs>
2217
<clipPath id="screenMask">
2318
<path id="Screen" class="cls-1" d="M6490.24,1234.36H6216.28c-2.57,0-10.55-.07-12.07-0.07a87.524,87.524,0,0,1-12-1.03,40.051,40.051,0,0,1-11.4-3.79,38.315,38.315,0,0,1-16.82-16.84,39.948,39.948,0,0,1-3.78-11.42,72.257,72.257,0,0,1-1.04-12.02c-0.06-1.83-.06-5.56-0.06-5.56V452.125h0s0.06-11.391.06-12.086a87.9,87.9,0,0,1,1.04-12.025,39.843,39.843,0,0,1,3.78-11.413,38.283,38.283,0,0,1,16.82-16.847,39.762,39.762,0,0,1,11.4-3.785,71.909,71.909,0,0,1,12-1.037c16.99-.567,36.32-0.061,34.51-0.061,5.02,0,6.5,3.439,6.63,6.962a35.611,35.611,0,0,0,1.2,8.156,21.326,21.326,0,0,0,19.18,15.592c2.28,0.192,6.78.355,6.78,0.355H6433.7s4.5-.059,6.79-0.251a21.348,21.348,0,0,0,19.18-15.591,35.582,35.582,0,0,0,1.19-8.154c0.13-3.523,1.61-6.962,6.64-6.962-1.81,0,17.52-.5,34.5.061a71.923,71.923,0,0,1,12.01,1.038,39.832,39.832,0,0,1,11.4,3.784,38.283,38.283,0,0,1,16.82,16.844,40.153,40.153,0,0,1,3.78,11.413,87.844,87.844,0,0,1,1.03,12.023c0,0.695.06,12.084,0.06,12.084h0V1183.64s0,3.72-.06,5.55a72.366,72.366,0,0,1-1.03,12.03,40.2,40.2,0,0,1-3.78,11.41,38.315,38.315,0,0,1-16.82,16.84,40.155,40.155,0,0,1-11.4,3.79,87.669,87.669,0,0,1-12.01,1.03c-1.52,0-9.5.07-12.07,0.07" transform="translate(-6159.12 -394.656)"/>
2419
</clipPath>
2520
</defs>
2621
</svg>
27-
<img class="iphoneScreen" src="/assets/Screenshot.png">
22+
{% if site.app_video %}
23+
<div class="videoContainer">
24+
<video controls="controls">
25+
<source src="{{ site.app_video }}" type="video/mp4">
26+
</video>
27+
</div>
28+
{% else %}
29+
<img class="iphoneScreen" src="/assets/Screenshot.png">
30+
{% endif %}
2831
</div>
29-
3032
<div class="appInfo">
3133
<div class="appIconShadow">
3234
<svg width="0" height="0">
@@ -38,7 +40,6 @@
3840
</svg>
3941
<img class="appIconLarge" src="/assets/appicon-1024px.png">
4042
</div>
41-
4243
<div class="appNamePriceContainer">
4344
<h1 class="appName">
4445
{{ site.app_name }}
@@ -57,9 +58,7 @@ <h4 class ="appDescription">
5758
<a href=""><img class="appStore" src="/assets/appstore.png"></a>
5859
</div>
5960
</div>
60-
6161
{% include features.html %}
62-
6362
{% include footer.html %}
6463
</div>
6564
</div>

0 commit comments

Comments
 (0)