Skip to content

Commit 16bc99a

Browse files
committed
Scaling screenshot mask on smaller devices.
1 parent 2951654 commit 16bc99a

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

_config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ your_city : Copenhagen
2222

2323
# Icon, screenshot and header image
2424
app_icon : # assets/appicon.png # Automatically populates if not set and if iOS app ID is set. Otherwise enter path to icon file manually.
25-
app_video : # assets/yourvideo.mov # Uncomment and replace with path to app preview video. Optimal resolutions: 1242x2688 or 1125x2436.
25+
app_video_mov : # assets/yourvideo.mov # Uncomment and replace with path to app preview video. Optimal resolutions: 1242x2688 or 1125x2436. Use format .mov for Safari support.
26+
app_video_ogg : # assets/yourvideo.ogg # Uncomment and replace with path to app preview video. Optimal resolutions: 1242x2688 or 1125x2436. Use format .ogg for Chrome support.
2627
app_screenshot : assets/yourscreenshot.png # Replace with alternateive image path. Does not automatically populate since Apple does not provide iPhone X/XS/XR screenshots in their iTunes lookup API.
2728
header_image : assets/headerimage.png # Replace with alternative image path.
2829
device_color : black # Set to blue, black, yellow, coral or white
@@ -97,7 +98,7 @@ google_analytics :
9798

9899

99100

100-
# Jekyll Configuration
101+
# Jekyll Configuration. No need to touch this.
101102

102103
# The release of Mobile App Landing Page that you're using
103104
version: v1.0

_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<div class="videoContainer">
2828
<video autoplay="autoplay" controls="controls">
2929
<source src="{{ site.app_video }}" type="video/mp4">
30+
<source src="{{ site.app_video }}" type="video/mp4">
3031
</video>
3132
</div>
3233
{% else %}

_sass/layout.scss

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -228,25 +228,6 @@ nav > ul li a:active {
228228
margin-top: 68px;
229229
}
230230

231-
@media only screen and (max-width: 992px) {
232-
233-
.iphonePreview {
234-
display: flex;
235-
justify-content: center;
236-
background-position: center 0;
237-
margin-top: 47px;
238-
}
239-
240-
.iphoneScreen {
241-
242-
}
243-
244-
.videoContainer {
245-
margin-left: -100px;
246-
}
247-
248-
}
249-
250231
.iphoneScreen {
251232
width: 388px;
252233
-webkit-clip-path: url(#screenMask);
@@ -270,6 +251,30 @@ nav > ul li a:active {
270251
height: 839px;
271252
}
272253

254+
@media only screen and (max-width: 992px) {
255+
256+
.iphonePreview {
257+
display: flex;
258+
background-size: 260px auto;
259+
background-position: center 0;
260+
margin-top: 47px;
261+
justify-items: center;
262+
}
263+
264+
.iphoneScreen {
265+
width: 226px;
266+
height: 488px;
267+
-webkit-clip-path: url(#screenMask);
268+
clip-path: url(#screenMask);
269+
margin-top: 0px;
270+
}
271+
272+
.videoContainer {
273+
274+
}
275+
276+
}
277+
273278
.features {
274279
grid-area: c;
275280
display: flex;

0 commit comments

Comments
 (0)