-
Notifications
You must be signed in to change notification settings - Fork 185
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
1 parent
15bf8af
commit cecd05b
Showing
7 changed files
with
215 additions
and
0 deletions.
There are no files selected for viewing
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
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,17 @@ | ||
{% load static %} | ||
{% load relay_tags %} | ||
{% load ftl %} | ||
{% ftlconf bundle='privaterelay.ftl_bundles.main' %} | ||
|
||
<div id="vpnPromoBanner" class="vpn-promo-banner "> | ||
<div class="vpn-promo-banner-wrapper"> | ||
<img alt="Mozilla VPN" class="vpn-promo-logo" src="{% static 'images/logos/mozilla-vpn.svg' %}"/> | ||
<div class="vpn-promo-copy"> | ||
<strong>{% ftlmsg 'vpn-promo-price-headline' %}</strong> | ||
<span>{% ftlmsg 'vpn-promo-price-copy' %}</span> | ||
<small>{% ftlmsg 'vpn-promo-price-disclaimer' %}</small> | ||
</div> | ||
<a class="vpn-promo-cta" href="https://www.mozilla.org/products/vpn/?utm_source=monitor&utm_medium=monitor&utm_campaign=intro-pricing">{% ftlmsg 'vpn-promo-cta' %}</a> | ||
<button id="vpnPromoCloseButton" type="button" name="button" data-event-category="vpn-promo-close"><img src="{% static 'images/x-close-black.svg' %}"/></button> | ||
</div> | ||
</div> |
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.
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 |
---|---|---|
|
@@ -17,4 +17,5 @@ | |
|
||
@import "partials/fx-bento"; | ||
@import "partials/glocal-menu"; | ||
@import "partials/vpn-promo"; | ||
|
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,184 @@ | ||
html, | ||
body { | ||
--vpn-purple: #c5c8fb; | ||
} | ||
|
||
.vpn-banner-visible .clear-header { | ||
padding-top: 28rem; | ||
} | ||
|
||
.vpn-banner-visible .micro-survey-banner { | ||
display: none; | ||
} | ||
|
||
.vpn-promo-banner { | ||
background-color: var(--background); | ||
font-family: "Metropolis", sans-serif; | ||
font-size: 16px; | ||
position: relative; | ||
transition: max-height 0.3s ease-out; | ||
overflow: hidden; | ||
max-height: 500px; | ||
} | ||
|
||
@media (prefers-reduced-motion) { | ||
.vpn-promo-banner { | ||
transition-property: none; | ||
} | ||
} | ||
|
||
.vpn-promo-banner.closed { | ||
max-height: 0; | ||
} | ||
|
||
.vpn-promo-banner + .recruitment-banner { | ||
display: none; | ||
} | ||
|
||
.vpn-promo-banner-wrapper { | ||
max-width: 1000px; | ||
margin: 0 auto; | ||
padding: 1rem 2rem; | ||
text-align: center; | ||
} | ||
|
||
.vpn-promo-logo { | ||
display: block; | ||
max-width: 122px; | ||
margin: 0 auto 1rem; | ||
} | ||
|
||
.vpn-promo-copy { | ||
text-align: center; | ||
font-size: 1rem; | ||
max-width: 320px; | ||
margin: 0 auto 1rem; | ||
line-height: 1.2rem; | ||
color: var(--inkDark); | ||
} | ||
|
||
.vpn-promo-copy strong, .vpn-promo-copy span { | ||
display: block; | ||
margin: 0 0 2px; | ||
} | ||
|
||
.vpn-promo-copy small { | ||
padding-top: 2px; | ||
display: block; | ||
font-size: 0.65rem; | ||
margin: 0 auto; | ||
line-height: normal; | ||
font-style: italic; | ||
} | ||
|
||
.vpn-promo-banner a { | ||
background-color: var(--bgLight); | ||
border: solid 2px var(--inkDark); | ||
box-shadow: 8px 8px 0 #6a57dc; | ||
color: var(--inkDark); | ||
cursor: pointer; | ||
display: inline-block; | ||
font-size: 1.125rem; | ||
font-weight: bold; | ||
line-height: 1.5rem; | ||
padding: 0.5rem 1rem; | ||
margin-bottom: 1rem; | ||
position: relative; | ||
text-decoration: none; | ||
transition: background-color 0.15s ease, color 0.15s ease; | ||
} | ||
|
||
.vpn-promo-banner a:hover, | ||
.vpn-promo-banner a:active, | ||
.vpn-promo-banner a:focus { | ||
background-color: var(--inkDark); | ||
color: var(--bgLight); | ||
} | ||
|
||
.vpn-promo-banner button { | ||
-moz-appearance: none; | ||
-webkit-appearance: none; | ||
position: absolute; | ||
top: 0.5rem; | ||
right: 0; | ||
border: none; | ||
outline: none; | ||
display: block; | ||
} | ||
|
||
.vpn-promo-banner button:hover img { | ||
transform: scale(1.1); | ||
} | ||
|
||
.vpn-promo-banner button:active img { | ||
transform: scale(0.9); | ||
} | ||
|
||
.vpn-promo-banner button img { | ||
display: block; | ||
width: 30px; | ||
height: 30px; | ||
transition: transform 0.2s ease-out; | ||
} | ||
|
||
@media screen and (min-width: 700px) { | ||
.vpn-promo-banner-wrapper { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-around; | ||
} | ||
|
||
.vpn-promo-copy { | ||
flex-shrink: 2; | ||
} | ||
|
||
.vpn-promo-copy strong { | ||
display: block; | ||
} | ||
|
||
.vpn-promo-banner button { | ||
top: 0; | ||
right: 0; | ||
} | ||
|
||
.vpn-promo-logo, | ||
.vpn-promo-copy { | ||
margin: 0; | ||
} | ||
|
||
.vpn-promo-banner a { | ||
margin-bottom: 0.25rem; | ||
} | ||
|
||
.vpn-banner-visible .clear-header { | ||
padding-top: 18rem; | ||
} | ||
|
||
.vpn-promo-copy small { | ||
max-width: 400px; | ||
} | ||
|
||
} | ||
|
||
@media screen and (min-width: 800px) { | ||
.vpn-promo-copy { | ||
max-width: none; | ||
padding: 0 1rem; | ||
} | ||
.vpn-banner-visible .clear-header { | ||
padding-top: 16rem; | ||
} | ||
.vpn-promo-copy small { | ||
max-width: none; | ||
} | ||
} | ||
|
||
@media screen and (min-width: 960px) { | ||
.vpn-promo-banner button { | ||
top: 0.25rem; | ||
right: 0.25rem; | ||
} | ||
.vpn-promo-banner a { | ||
flex-shrink: 0; | ||
} | ||
} |