-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
202 additions
and
18 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions
31
app/assets/javascripts/species/templates/_promo_banner.handlebars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<div id="promo-banner" class="promo-banner"> | ||
<div class="promo-banner__image"></div> | ||
|
||
<h2 class="promo-banner__title"> | ||
<span class="text-species--sm">Species+</span> | ||
is now available as an app! | ||
</h2> | ||
|
||
<p class="promo-banner__text"> | ||
Search for Species+ on your mobile app store | ||
</p> | ||
|
||
<div class="promo-banner__links"> | ||
<a | ||
class="promo-banner__link--google" | ||
href='http://play.google.com/store/apps/details?id=com.google.android.apps.maps' | ||
rel="external" | ||
target="_blank" | ||
title="Get it on Google Play" | ||
></a> | ||
|
||
<div class="promo-banner__links"> | ||
<a | ||
class="promo-banner__link--apple" | ||
href='https://apps.apple.com/gb/app/yarnbuddy-knit-and-crochet/id1267678125' | ||
rel="external" | ||
target="_blank" | ||
title="Get it on the Apple Store" | ||
></a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ | |
--> | ||
|
||
{{outlet downloadsButton}} | ||
|
||
{{partial 'species/promo_banner'}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Structure | ||
$main-container-width: 860px; | ||
|
||
// Colors | ||
$color-gray-light: #F3F1F1; | ||
$color-navy-dark: #2D3237; | ||
$color-navy: #253748; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
@import './variables'; | ||
|
||
$promo-banner-padding-left: 418px; | ||
$promo-banner-image-scale: 1.45; | ||
$promo-banner-image-radius: $promo-banner-image-scale * $promo-banner-padding-left; | ||
$promo-banner-image-padding-right: 76px; | ||
$promo-banner-image-translate-x: ($promo-banner-image-scale - 1) * $promo-banner-padding-left + $promo-banner-image-padding-right; | ||
$promo-banner-width: $main-container-width; | ||
|
||
$promo-banner-badge-height: 42px; | ||
$promo-banner-badge-ratio--google: 120/36; | ||
$promo-banner-badge-ratio--apple: 120/40; | ||
|
||
@mixin promo-banner-link { | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
cursor: pointer; | ||
margin-right: 18px; | ||
height: $promo-banner-badge-height; | ||
|
||
&:not(:last-child) { | ||
margin-right: 18px; | ||
} | ||
} | ||
|
||
.promo-banner { | ||
background-color: $color-gray-light; | ||
box-sizing: border-box; | ||
overflow: hidden; | ||
padding: 34px 71px 41px $promo-banner-padding-left; | ||
text-align: left; | ||
width: $promo-banner-width; | ||
|
||
position: absolute; | ||
bottom: 44px; | ||
|
||
&__image { | ||
background: image_url('species/promo_banner_image.png') no-repeat right 241px; | ||
background-size: 346px 197px; | ||
border-radius: 100%; | ||
width: $promo-banner-image-radius; height: $promo-banner-image-radius; | ||
|
||
position: absolute; | ||
left: 0; | ||
top: 50%; | ||
transform: translate(-$promo-banner-image-translate-x, -56%); | ||
} | ||
|
||
&__title { | ||
color: $color-navy; | ||
font-size: 20px; | ||
font-weight: 700; | ||
line-height: 1.2em; | ||
margin-bottom: 8px; | ||
|
||
.text-species--sm { | ||
margin-top: 0; | ||
} | ||
} | ||
|
||
&__text { | ||
#main & { | ||
color: $color-navy-dark; | ||
font-size: 16px; | ||
margin: 0 0 24px; | ||
} | ||
} | ||
|
||
&__links { | ||
display: flex; | ||
} | ||
|
||
&__link { | ||
&--google { | ||
@include promo-banner-link; | ||
background-image: image_url('species/google_play_badge.png'); | ||
width: $promo-banner-badge-height * $promo-banner-badge-ratio--google; | ||
} | ||
|
||
&--apple { | ||
@include promo-banner-link; | ||
background-image: image-url('species/apple_store_badge.svg'); | ||
width: $promo-banner-badge-height * $promo-banner-badge-ratio--apple; | ||
} | ||
} | ||
} |