Skip to content

Commit

Permalink
Remove JUL24 home donate banner (#14995)
Browse files Browse the repository at this point in the history
  • Loading branch information
janbrasna authored Sep 16, 2024
1 parent cf21cf2 commit a609014
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 248 deletions.
75 changes: 0 additions & 75 deletions bedrock/base/templates/includes/banners/fundraiser.html

This file was deleted.

23 changes: 7 additions & 16 deletions bedrock/mozorg/templates/mozorg/home/home-new.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

{% block page_desc %}{{ ftl('home-did-you-know-mozilla-the-maker') }}{% endblock %}

{% set show_fundraising_banner = switch('fundraising-banner-july2024', ["en", "de", "fr"]) %}
{% set show_fundraising_nav_cta = switch('fundraising-nav-cta-july2024', ["en"]) and not show_fundraising_banner %}
{% set show_fundraising_nav_cta = switch('fundraising-nav-cta-july2024', ["en"]) %}
{% set show_firefox_app_store_banner = switch('firefox-app-store-banner') %}

{% block page_css %}
Expand All @@ -40,9 +39,7 @@
{{ css_bundle('ctd-promo') }}
{% endif %}

{% if show_fundraising_banner %}
{{ css_bundle('fundraising-banner') }}
{% elif show_firefox_app_store_banner %}
{% if show_firefox_app_store_banner %}
{{ css_bundle('firefox-app-store-banner') }}
{% endif %}
{% endblock %}
Expand Down Expand Up @@ -71,25 +68,21 @@
{% block site_header %}
{% if show_fundraising_nav_cta and variation == '1' %}
{% with custom_nav_cta=donate_button() %}
{% include 'includes/protocol/navigation/navigation.html' %}
{% endwith %}
{% include 'includes/protocol/navigation/navigation.html' %}
{% endwith %}
{% else %}
{% include 'includes/protocol/navigation/navigation.html' %}
{% endif %}
{% endblock %}

{% block page_banner %}
{% if show_fundraising_banner %}
{% include 'includes/banners/fundraiser.html' %}
{% elif show_firefox_app_store_banner %}
{% if show_firefox_app_store_banner %}
{% include 'includes/banners/mobile/firefox-app-store.html' %}
{% endif %}
{% endblock %}

{% block experiments %}
{% if show_fundraising_banner and switch('fundraising-banner-experiment-july2024', ["en-US", "en-CA"]) %}
{{ js_bundle('fundraising-banner-experiment') }}
{% elif show_fundraising_nav_cta %}
{% if show_fundraising_nav_cta %}
{{ js_bundle('fundraising-nav-cta')}}
{% endif %}
{% endblock %}
Expand Down Expand Up @@ -361,9 +354,7 @@ <h2>{{ ftl('newsletter-form-join-the-community', fallback='newsletter-form-get-f
{% block js %}
{{ js_bundle('newsletter') }}

{% if show_fundraising_banner %}
{{ js_bundle('fundraising-banner') }}
{% elif show_firefox_app_store_banner %}
{% if show_firefox_app_store_banner %}
{{ js_bundle('firefox-app-store-banner') }}
{% endif %}
{% endblock %}
19 changes: 3 additions & 16 deletions bedrock/mozorg/templates/mozorg/home/home-old.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
{% block page_title %}{{ ftl('home-internet-for-people-not-profit') }}{% endblock %}
{% block page_desc %}{{ ftl('home-did-you-know-mozilla-the-maker') }}{% endblock %}

{% set show_fundraising_banner = switch('fundraising-banner-july2024', ["en", "de", "fr"]) %}
{% set referrals="?utm_source=www.mozilla.org&utm_medium=referral&utm_campaign=homepage" %}

{% block page_css %}
Expand All @@ -20,27 +19,17 @@
{{ css_bundle('protocol-newsletter') }}
{{ css_bundle('home-old') }}

{% if show_fundraising_banner %}
{{ css_bundle('fundraising-banner') }}
{% elif show_firefox_app_store_banner %}
{% if show_firefox_app_store_banner %}
{{ css_bundle('firefox-app-store-banner') }}
{% endif %}
{% endblock %}

{% block page_banner %}
{% if show_fundraising_banner %}
{% include 'includes/banners/fundraiser.html' %}
{% elif show_firefox_app_store_banner %}
{% if show_firefox_app_store_banner %}
{% include 'includes/banners/mobile/firefox-app-store.html' %}
{% endif %}
{% endblock %}

{% block experiments %}
{% if show_fundraising_banner and switch('fundraising-banner-experiment-july2024', ["en-US", "en-CA"]) %}
{{ js_bundle('fundraising-banner-experiment') }}
{% endif %}
{% endblock %}

{% block content %}
<main>
{% call split(
Expand Down Expand Up @@ -213,9 +202,7 @@ <h2 class="mzp-c-picto-heading">{{ ftl('home-need-help') }}</h2>
{% block js %}
{{ js_bundle('newsletter') }}

{% if show_fundraising_banner %}
{{ js_bundle('fundraising-banner') }}
{% elif show_firefox_app_store_banner %}
{% if show_firefox_app_store_banner %}
{{ js_bundle('firefox-app-store-banner') }}
{% endif %}
{% endblock %}
64 changes: 0 additions & 64 deletions media/css/base/banners/fundraiser.scss

This file was deleted.

Binary file removed media/img/banners/fundraising/hand-heart-1000.png
Binary file not shown.
Binary file removed media/img/banners/fundraising/hand-heart-1200.png
Binary file not shown.
Binary file removed media/img/banners/fundraising/hand-heart-1400.png
Binary file not shown.
Binary file removed media/img/banners/fundraising/hand-heart-600.png
Binary file not shown.
Binary file removed media/img/banners/fundraising/hand-heart-800.png
Binary file not shown.
45 changes: 0 additions & 45 deletions media/js/mozorg/home/fundraising-banner-experiment.es6.js

This file was deleted.

13 changes: 0 additions & 13 deletions media/js/mozorg/home/fundraising-banner.es6.js

This file was deleted.

19 changes: 0 additions & 19 deletions media/static-bundles.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,6 @@
],
"name": "mpl-1-1"
},
{
"files": [
"css/base/banners/fundraiser.scss"
],
"name": "fundraising-banner"
},
{
"files": [
"css/base/banners/firefox-app-store.scss"
Expand Down Expand Up @@ -1356,19 +1350,6 @@
],
"name": "firefox_features_article"
},
{
"files": [
"js/base/banners/mozilla-banner.es6.js",
"js/mozorg/home/fundraising-banner.es6.js"
],
"name": "fundraising-banner"
},
{
"files": [
"js/mozorg/home/fundraising-banner-experiment.es6.js"
],
"name": "fundraising-banner-experiment"
},
{
"files": [
"js/mozorg/home/fundraising-nav-cta.es6.js"
Expand Down

0 comments on commit a609014

Please sign in to comment.