-
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
89 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/mozorg/templates/mozorg/home/includes/m24/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"' %} | ||
|
||
{% set download_url = 'href="https://www.mozilla.org/en-US/firefox/download/thanks/"' %} | ||
|
||
<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/download/thanks/ | ||
m24-pencil-banner-download-firefox = You know whats good for ya? <a { $download }>downloading { -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