Commit a88c05de authored by Richard Hancock's avatar Richard Hancock
Browse files

Added missing files.

parent 5726ae3a
Pipeline #1135 passed with stage
in 1 minute and 42 seconds
The MIT License (MIT)
Copyright (c) 2019 Emil Baehr
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
{% if site.ios_app_id %}
<script>
$(function () {
var apiURL = "https://itunes.apple.com/lookup?id={{ site.ios_app_id }}&callback=?";
$.getJSON(apiURL, function (json) {
if (json.results && json.results.length) {
console.info("Image strings loaded from Apple API.");
var appInfo = json.results[0];
// Set favicon
$('link[rel="shortcut icon"]').attr("href", appInfo.artworkUrl512);
// Set large app icon using the iOS app ID if it is not set manually in _config.yml
var $appIconLarge = $(".appIconLarge");
if (!$appIconLarge.attr('src')) {
$($appIconLarge).attr("src", appInfo.artworkUrl512);
}
// Set header app icon using the iOS app ID if it is not set manually in _config.yml
var $appIconHeader = $(".headerIcon");
if (!$appIconHeader.attr('src')) {
$($appIconHeader).attr("src", appInfo.artworkUrl512);
}
// Set app name using the iOS app ID if it is not set manually in _config.yml
var $appName = $(".appName");
var $headerName = $(".headerName");
if ($.trim($($appName).text()).length == 0) {
$($appName).html(appInfo.trackName);
$($headerName).html(appInfo.trackName);
}
// Set price using the iOS app ID if it is not set manually in _config.yml
var $appPrice = $(".appPrice");
if ($.trim($($appPrice).text()).length == 0) {
$($appPrice).html(appInfo.formattedPrice);
}
// Set price using the iOS app ID if it is not set manually in _config.yml
var $appStoreLink = $(".appStoreLink");
if ($.trim($($appStoreLink).text()).length == 0) {
$($appStoreLink).attr("href", appInfo.trackViewUrl);
}
console.info(appInfo);
}
});
});
</script>
{% endif %}
<div class="features">
{% for feature in site.features %}
{% if feature.title %}
<div class="feature">
<div>
<span class="fa-stack fa-1x">
<i class="iconBack fas fa-circle fa-stack-2x"></i>
<i class="iconTop fas fa-{{ feature.fontawesome_icon_name }} fa-stack-1x"></i>
</span>
</div>
<div class="featureText">
<h3>
{{ feature.title }}
</h3>
<p>
{{ feature.description }}
</p>
</div>
</div>
{% endif %}
{% endfor %}
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
{% for file in site.static_files %}
{% if file.path contains 'assets/screenshot/' %}
<script>
$(function () {
$(".iphoneScreen").attr('src', '{{ site.github.baseurl }}{{ file.path }}');
$(".iphoneScreen").removeClass("hidden");
console.log("{{ file.path }}");
});
</script>
{% elsif file.path contains 'assets/videos/' %}
{% unless file.path contains 'assets/videos/Place-video-files-here.txt' %}
<script>
$(function () {
$(".iphoneScreen").addClass("hidden");
console.log("remove screenshot");
});
</script>
{% endunless %}
{% if file.extname == ".mov" or file.extname == ".mp4" %}
<script>
$(function () {
$(".videoContainer").removeClass("hidden");
$(".screenvideo").append('<source src="{{ site.github.baseurl }}{{ file.path }}" type="video/mp4">');
console.log("{{ file.path }}");
});
</script>
{% elsif file.extname == ".ogg" %}
<script>
$(function () {
$(".videoContainer").removeClass("hidden");
$(".screenvideo").append('<source src="{{ site.github.baseurl }}{{ file.path }}" type="video/ogg">');
console.log("{{ file.path }}");
});
</script>
{% elsif file.extname == ".webm" %}
<script>
$(function () {
$(".videoContainer").removeClass("hidden");
$(".screenvideo").append('<source src="{{ site.github.baseurl }}{{ file.path }}" type="video/webm">');
console.log("{{ file.path }}");
});
</script>
{% endif %}
{% endif %}
{% endfor %}
// Layout and grids
$content-width: 1170px;
// Fonts and sizes
$font: 'Helvetica Neue',
sans-serif;
$primary-text-color: #000;
html {
font-size: 62.5%;
font-family: $font;
line-height: 1;
}
body {
font-size: 2rem;
background-color: $body-color;
}
h1 {
font-size: 3rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 2rem;
}
// Better font rendering
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: $body-color;
}
a:link,
a:hover,
a:visited,
a:active {
color: $accent-color;
text-decoration: none;
}
// Shadows
$drop-shadow: drop-shadow(0px 5px 10px rgba(#000, 0.1)) drop-shadow(0px 1px 1px rgba(#000, 0.2));
// Various resets
*,
*::before,
*::after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
}
.imageWrapper {
// Sets the background image in the header area
height: 714px;
background:
linear-gradient(rgba($image-overlay-color, $image-overlay-transparency),
rgba($image-overlay-color, $image-overlay-transparency)),
url($header-image);
background-repeat: no-repeat;
background-size: cover;
background-position: top;
border-radius: 0px 0px 40px 40px;
}
.headerBackground {
height: 115px;
background-color: rgba($header-color, $header-transparency);
}
.container {
// Set up the container for the site content
display: grid;
margin: auto;
max-width: $content-width;
padding-left: 15px;
padding-right: 15px;
grid-template-columns: repeat(12, 1fr);
grid-template-rows: 115px 876px auto auto;
grid-column-gap: 30px;
grid-template-areas:
"h h h h h h h h h h h h"
"p p p p p i i i i i i i"
"c c c c c c c c c c c c"
"f f f f f f f f f f f f";
}
@media only screen and (max-width: 1070px) {
.container {
// Set up the container for the site content
grid-template-rows: 115px 811px auto auto;
}
}
@media only screen and (max-width: 992px) {
.container {
grid-column-gap: 0px;
grid-template-columns: 1;
grid-template-rows: 115px auto auto auto auto;
grid-template-areas:
"h h h h h h h h h h h h"
"i i i i i i i i i i i i"
"p p p p p p p p p p p p"
"c c c c c c c c c c c c"
"f f f f f f f f f f f f";
}
}
header {
grid-area: h;
display: flex;
}
.logo {
display: flex;
width: 100%;
justify-content: flex-start;
align-items: center;
height: 115px;
}
.logo>p {
color: $header-title-color;
display: flex;
font-weight: bold;
padding-bottom: 1px;
}
.headerIcon {
width: 50px;
height: 50px;
-webkit-clip-path: url(#shape);
clip-path: url(#shape);
margin-right: 15px;
}
// Navigation Links
nav {
width: 100%;
display: flex;
justify-content: flex-end;
align-items: center;
height: 115px;
}
nav>ul {
color: #fff;
display: flex;
list-style-type: none;
}
nav>ul li {
padding-left: 50px;
text-align: right;
}
nav>ul li:first-child {
padding-left: 0px;
}
nav>ul li a:link,
nav>ul li a:visited {
text-decoration: none;
color: rgba($header-title-color, 0.6);
}
nav>ul li a:hover,
nav>ul li a:active {
text-decoration: none;
color: rgba($header-title-color, 1);
}
// App Title, Price, Description and Links
.appInfo {
grid-area: i;
display: flex;
flex-wrap: wrap;
padding-top: 140px;
align-content: flex-start;
}
@media only screen and (max-width: 992px) {
.appInfo {
padding-top: 50px;
justify-content: center;
}
}
.appIconShadow {
display: flex;
filter: $drop-shadow;
}
.appIconLarge {
width: 120px;
height: 120px;
-webkit-clip-path: url(#shape120);
clip-path: url(#shape120);
}
.appNamePriceContainer {
display: flex;
flex: 0 1 auto;
flex-direction: column;
align-items: start;
justify-content: center;
margin-left: 30px;
}
.appName {
color: $app-title-color;
}
.appPrice {
color: $app-price-color;
font-weight: normal;
margin-top: 13px;
}
@media only screen and (max-width: 768px) {
.appNamePriceContainer {
width: 100%;
margin-left: 0px;
align-items: center;
justify-content: center;
}
.appName {
margin-top: 30px;
text-align: center;
}
.appPrice {
margin-top: 13px;
text-align: center;
}
}
.appDescriptionContainer {
font-size: 2.5rem;
font-weight: normal;
width: 100%;
align-items: flex-start;
margin-top: 45px;
flex: 0 1 auto;
line-height: 1.5;
}
.appDescription {
color: $app-description-color;
}
@media only screen and (max-width: 992px) {
.appDescription {
text-align: center;
}
}
.downloadButtonsContainer {
display: inline-block;
margin-top: 42px;
filter: $drop-shadow;
}
@media only screen and (max-width: 992px) {
.downloadButtonsContainer {
text-align: center;
}
}
.playStore {
height: 75px;
margin-right: 24px;
}
@media only screen and (max-width: 992px) {
.playStore {
margin-right: 24px;
margin-bottom: 0px;
}
}
@media only screen and (max-width: 528px) {
.playStore {
margin-right: 0px;
margin-bottom: 24px;
}
}
.appStore {
height: 75px;
}
// iPhone Device Preview
.iphonePreview {
grid-area: p;
background-image: url($device-color);
background-size: 400px auto;
background-repeat: no-repeat;
margin-top: 68px;
}
.iphoneScreen {
width: 349px;
-webkit-clip-path: url(#screenMask);
clip-path: url(#screenMask);
margin-left: 26px;
margin-top: 23px;
}
.videoContainer {
width: 349px;
height: 755px;
-webkit-clip-path: url(#screenMask);
clip-path: url(#screenMask);
margin-left: 26px;
margin-top: 23px;
}
.videoContainer>video {
width: 349px;
height: 755px;
}
@media only screen and (max-width: 1070px) {
.iphonePreview {
background-size: 370px auto;
}
.iphoneScreen {
width: 322px;
margin-left: 24px;
margin-top: 22px;
}
.videoContainer {
width: 322px;
height: 698px;
margin-left: 24px;
margin-top: 22px;
}
.videoContainer>video {
width: 322px;
height: 698px;
}
}
@media only screen and (max-width: 992px) {
.iphonePreview {
display: flex;
background-size: 260px auto;
background-position: center 0;
margin-top: 47px;
justify-content: center;
padding-bottom: 75px;
}
.iphoneScreen {
width: 226px;
height: 488px;
-webkit-clip-path: url(#screenMask);
clip-path: url(#screenMask);
margin: 0px;
margin-top: 17px;
}
.videoContainer {
width: 226px;
height: 488px;
margin-left: 0px;
margin-top: 17px;
}
.videoContainer>video {
width: 226px;
height: 488px;
}
}
// Feature List
.features {
grid-area: c;
display: flex;
flex: 0 1 auto;
align-content: flex-start;
justify-content: flex-start;
flex-grow: 1;
flex-wrap: wrap;
margin-top: 93px;
}
.feature {
display: flex;
padding-top: 63px;
padding-left: 15px;
padding-right: 15px;
width: calc(100%/3);
}
.feature:nth-child(-n+3) {
padding-top: 0px;
}
.feature:nth-child(3n) {
padding-right: 0px;
}
.feature:nth-child(3n+1) {
padding-left: 0px;
}
.iconBack {
color: $feature-icons-background-color;
}
.iconTop {
color: $feature-icons-foreground-color;
}
.socialIconBack {
color: $social-icons-background-color;
}
.socialIconTop {
color: $social-icons-foreground-color;
}
.featureText {
margin-left: 18px;
}
.featureText>h3 {
color: $feature-title-color;