-
Notifications
You must be signed in to change notification settings - Fork 919
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
6 changed files
with
88 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
21 changes: 21 additions & 0 deletions
21
bedrock/base/templates/includes/protocol/navigation/pencil-banner.html
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,21 @@ | ||
{# | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
#} | ||
|
||
{% block page_css %} | ||
{{ css_bundle('m24-pencil-banner') }} | ||
{% endblock %} | ||
|
||
<aside class="m24-pencil-banner c-banner"> | ||
<div class="m24-pencil-banner-copy"> | ||
{% set donate_url = 'href="https://foundation.mozilla.org/en/?form=donate-today" data-cta-type="link" data-cta-text="donate today"' %} | ||
|
||
{% set download_url = 'href="%s" data-cta-type="link" data-cta-text="download Firefox"'|safe|format(url('firefox.new')) %} | ||
|
||
<p class="c-banner-mofo-donate">{{ ftl('m24-pencil-banner-support-ethical', donate=donate_url) }}</p> | ||
|
||
<p class="c-banner-firefox-download">{{ ftl('m24-pencil-banner-download-firefox', download=download_url) }}</p> | ||
</div> | ||
</aside> |
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,11 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
# Variables: | ||
# $donate (url) - link to https://foundation.mozilla.org/en/?form=donate-today | ||
m24-pencil-banner-support-ethical = Support ethical AI and internet privacy — <a { $donate }>donate today!</a> | ||
# Variables: | ||
# $download (url) - link to https://www.mozilla.org/en-US/firefox/new/ | ||
m24-pencil-banner-download-firefox = Love a fast, private browser? <a { $download }>Download { -brand-name-firefox }</a> |
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,48 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
@import '~@mozilla-protocol/core/protocol/css/includes/lib'; | ||
|
||
@import 'vars/color'; | ||
@import 'vars/fonts'; | ||
@import 'vars/grid'; | ||
@import 'vars/spacing'; | ||
@import 'vars/text'; | ||
|
||
.m24-pencil-banner { | ||
background-color: $m24-color-light-green; | ||
border-bottom: 2px solid $m24-color-green; | ||
padding: $spacer-sm; | ||
|
||
.m24-pencil-banner-copy { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
p { | ||
color: $m24-color-black; | ||
margin-bottom: 0; | ||
text-align: center; | ||
} | ||
|
||
.c-banner-mofo-donate { | ||
display: none; | ||
} | ||
|
||
.c-banner-firefox-download { | ||
display: block; | ||
} | ||
|
||
.is-firefox & { | ||
.c-banner-mofo-donate { | ||
display: block; | ||
} | ||
|
||
.c-banner-firefox-download { | ||
display: none; | ||
} | ||
} | ||
|
||
} | ||
} |
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