Skip to content

Commit 8a467be

Browse files
committed
Image in screenshot folder will be used no matter the name
1 parent 0d23bdb commit 8a467be

File tree

4 files changed

+88
-19
lines changed

4 files changed

+88
-19
lines changed

_config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ app_icon : # assets/appicon.png
2525
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.
2626
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.
2727
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.
28-
header_image : assets/headerimage.png # Replace with alternative image path.
29-
device_color : black # Set to blue, black, yellow, coral or white
28+
header_image : assets/headerimage.png # Replace with alternative image path or image URL.
29+
device_color : black # Set to: blue, black, yellow, coral or white
3030

3131
# Social Links # Enter usernames and email address. If set, they will be presented as links in the footer.
3232
facebook_username :
@@ -40,10 +40,10 @@ email_address : [email protected]
4040
features :
4141

4242
- title : GitHub Pages Jekyll Theme
43-
description : Designed for GitHub Pages for easy set-up. Fork. Edit _config.yml. Push. Voilá!
43+
description : Designed for GitHub Pages. Fork. Edit _config.yml. Push to gh-pages branch. Voilá!
4444
fontawesome_icon_name : magic
4545

46-
- title : iPhone Device Previews
46+
- title : iPhone Device Preview
4747
description : Show your app in the context of an iPhone device. Five different colors included.
4848
fontawesome_icon_name : mobile
4949

@@ -55,16 +55,16 @@ features :
5555
description : Choose between five different iPhone colors to match your app's visual identity.
5656
fontawesome_icon_name : palette
5757

58-
- title : Feature list
58+
- title : Feature List
5959
description : Add features (like this one) to your site simply by editing the _config.yml file.
6060
fontawesome_icon_name : star
6161

6262
- title : Automatic App Icon
63-
description : Enter your iOS app ID in the _config.yml file to automatically fetch app icon.
63+
description : Enter iOS app ID in the _config.yml file to automatically fetch app icon, price and App Store Link.
6464
fontawesome_icon_name : sync
6565

6666
- title : Smart App Banner
67-
description : Display a smart app banner on iOS devices.
67+
description : Display a smart app banner right on iOS devices.
6868
fontawesome_icon_name : arrow-alt-circle-down
6969

7070
- title : Social Links

_layouts/default.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,26 @@
1616
</clipPath>
1717
</svg>
1818

19+
<!--
1920
{% if site.app_video %}
2021
<div class="videoContainer">
2122
<video autoplay="autoplay" controls="controls">
2223
<source src="{{ site.app_video }}" type="video/mp4">
2324
<source src="{{ site.app_video }}" type="video/mp4">
2425
</video>
2526
</div>
27+
2628
{% else %}
2729
<img class="iphoneScreen" src="{{ site.app_screenshot }}">
2830
{% endif %}
31+
-->
32+
33+
{% for image in site.static_files %}
34+
{% if image.path contains 'assets/screenshot' %}
35+
<img class="iphoneScreen" src="{{ image.path }}" alt="">
36+
{% endif %}
37+
{% endfor %}
38+
2939
</div>
3040
<div class="appInfo">
3141
<div class="appIconShadow">
@@ -52,7 +62,9 @@ <h2 class="appPrice">
5262
</p>
5363
</div>
5464
<div class="downloadButtonsContainer">
55-
<a class="playStoreLink" href=""><img class="playStore" src="assets/playstore.png"></a>
65+
{% if site.playstore_link %}
66+
<a class="playStoreLink" href=""><img class="playStore" src="assets/playstore.png"></a>
67+
{% endif %}
5668
<a class="appStoreLink" href=""><img class="appStore" src="assets/appstore.png"></a>
5769
</div>
5870
</div>

_sass/layout.scss

Lines changed: 68 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,18 @@
3131
grid-column-gap: 30px;
3232
grid-template-areas:
3333
"h h h h h h h h h h h h"
34-
"p p p p p p i i i i i i"
34+
"p p p p p i i i i i i i"
3535
"c c c c c c c c c c c c"
3636
"f f f f f f f f f f f f";
3737
}
3838

39+
@media only screen and (max-width: 1070px) {
40+
41+
.container { // Set up the container for the site content
42+
grid-template-rows: 115px 811px auto auto;
43+
}
44+
}
45+
3946
@media only screen and (max-width: 992px) {
4047

4148
.container {
@@ -78,7 +85,11 @@ header {
7885
margin-right: 15px;
7986
}
8087

88+
89+
90+
// Navigation Links
8191
nav {
92+
width: 100%;
8293
display: flex;
8394
justify-content: flex-end;
8495
align-items: center;
@@ -111,6 +122,10 @@ nav > ul li a:active {
111122
color: rgba(#fff, 1);
112123
}
113124

125+
126+
127+
// App Title, Price, Description and Links
128+
114129
.appInfo {
115130
grid-area: i;
116131
display: flex;
@@ -192,14 +207,6 @@ nav > ul li a:active {
192207

193208
}
194209

195-
@media only screen and (max-width: 1070px) {
196-
197-
.playStore {
198-
margin-bottom: 27px;
199-
}
200-
201-
}
202-
203210
.playStore {
204211
height: 75px;
205212
margin-right: 24px;
@@ -227,6 +234,10 @@ nav > ul li a:active {
227234
height: 75px;
228235
}
229236

237+
238+
239+
// iPhone Device Preview
240+
230241
.iphonePreview {
231242
grid-area: p;
232243
background-image: url($device-color);
@@ -257,6 +268,32 @@ nav > ul li a:active {
257268
height: 755px;
258269
}
259270

271+
@media only screen and (max-width: 1070px) {
272+
273+
.iphonePreview {
274+
background-size: 370px auto;
275+
}
276+
277+
.iphoneScreen {
278+
width: 322px;
279+
margin-left: 24px;
280+
margin-top: 22px;
281+
}
282+
283+
.videoContainer {
284+
width: 322px;
285+
height: 698px;
286+
margin-left: 28px;
287+
margin-top: 3px;
288+
}
289+
290+
.videoContainer > video {
291+
width: 322px;
292+
height: 398px;
293+
}
294+
295+
}
296+
260297
@media only screen and (max-width: 992px) {
261298

262299
.iphonePreview {
@@ -284,6 +321,9 @@ nav > ul li a:active {
284321

285322
}
286323

324+
325+
// Feature List
326+
287327
.features {
288328
grid-area: c;
289329
display: flex;
@@ -292,16 +332,21 @@ nav > ul li a:active {
292332
justify-content: flex-start;
293333
flex-grow: 1;
294334
flex-wrap: wrap;
335+
margin-top: 93px;
295336
}
296337

297338
.feature {
298339
display: flex;
299-
padding-top: 93px;
340+
padding-top: 63px;
300341
padding-left: 15px;
301342
padding-right: 15px;
302343
width: calc(100%/3);
303344
}
304345

346+
.feature:nth-child(-n+3) {
347+
padding-top: 0px;
348+
}
349+
305350
.feature:nth-child(3n) {
306351
padding-right: 0px;
307352
}
@@ -326,7 +371,6 @@ nav > ul li a:active {
326371
color: $social-icons-foreground-color;
327372
}
328373

329-
330374
.featureText {
331375
margin-left: 18px;
332376
}
@@ -347,6 +391,7 @@ nav > ul li a:active {
347391
flex-grow: 1;
348392
flex-direction: row;
349393
flex-wrap: wrap;
394+
margin-top: 11px;
350395
}
351396

352397
.feature {
@@ -357,6 +402,14 @@ nav > ul li a:active {
357402
width: 100%;
358403
}
359404

405+
.feature:nth-child(-n+3) {
406+
padding-top: 41px;
407+
}
408+
409+
.feature:nth-child(1) {
410+
padding-top: 0px;
411+
}
412+
360413
.feature:nth-child(3n) {
361414
padding-right: 15px;
362415
}
@@ -367,6 +420,10 @@ nav > ul li a:active {
367420

368421
}
369422

423+
424+
425+
// Footer
426+
370427
footer {
371428
grid-area: f;
372429
display: flex;

assets/screenshot/yourscreenshot.png

81.7 KB
Loading

0 commit comments

Comments
 (0)