Skip to content

Commit fa10834

Browse files
committed
Bug 1112324 - Privacy Day home page promo
1 parent 9ecc969 commit fa10834

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed

bedrock/mozorg/templates/mozorg/home/home-new.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,19 @@ <h3>{{ _('See the principles <br>that guide everything <br>we do.') }}</h3>
115115
</a>
116116
</li>
117117
{% endif %}
118+
{% if l10n_has_tag('privacy_day') and waffle.switch('mozorg-home-privacy-promo') %}
119+
<li id="promo-2" class="item promo-small-landscape advocacy" data-name="Learn about Mozilla Advocacy">
120+
<a class="panel-link" href="https://advocacy.mozilla.org">
121+
<h2>{{ _('Learn about Mozilla Advocacy') }}</h2>
122+
</a>
123+
</li>
124+
{% else %}
118125
<li id="promo-2" class="item promo-small-landscape privacy" data-name="Understand your privacy online">
119126
<a class="panel-link" href="{{ url('privacy.privacy-day') }}">
120127
<h2>{{ _('Understand your privacy online') }}</h2>
121128
</a>
122129
</li>
130+
{% endif %}
123131
<li id="promo-3" class="item promo-face">
124132
{{ promo_face(1) }}
125133
</li>
@@ -136,6 +144,29 @@ <h2 class="go">{{ _('Download Firefox') }}</h2>
136144
<a class="fxos-link" href="{{ url('firefox.desktop.index') }}">{{ _('Learn more') }}</a>
137145
</div>
138146
</li>
147+
{% if l10n_has_tag('privacy_day') and waffle.switch('mozorg-home-privacy-promo') %}
148+
{% if LANG.startswith('en') and waffle.switch('mozorg-home-privacy-promo-jan28') %}
149+
<li id="promo-6" class="item promo-large-landscape privacy-day" tabindex="0" data-name="January 28 is Data Privacy Day">
150+
<h2 class="primary go">January 28 is Data Privacy Day</h2>
151+
<a class="panel-link" rel="external" href="{{ url('privacy.privacy-day') }}">
152+
<div class="secondary">
153+
<h3>Get smart on privacy<br> in four easy steps.</h3>
154+
<p class="more">Learn how</p>
155+
</div>
156+
</a>
157+
</li>
158+
{% else %}
159+
<li id="promo-6" class="item promo-large-landscape privacy-day" tabindex="0" data-name="Get smart on privacy">
160+
<h2 class="primary go">{{ _('Get Smart on Privacy') }}</h2>
161+
<a class="panel-link" rel="external" href="{{ url('privacy.privacy-day') }}">
162+
<div class="secondary">
163+
<h3>{{ _('Learn how to give yourself more control online in four easy steps.') }}</h3>
164+
<p class="more">{{ _('Get smart on privacy') }}</p>
165+
</div>
166+
</a>
167+
</li>
168+
{% endif %}
169+
{% else %}
139170
<li id="promo-6" class="item promo-large-landscape webmaker" tabindex="0" data-name="Teach the Web">
140171
<h2 class="primary go">{{ _('Teach the Web') }}</h2>
141172
<a class="panel-link" rel="external" href="https://webmaker.org/">
@@ -145,6 +176,7 @@ <h3>{{ _('Let’s build a Web that’s open <br>and made by everyone.') }}</h3>
145176
</div>
146177
</a>
147178
</li>
179+
{% endif %}
148180
<li id="promo-7" class="item promo-face">
149181
{{ promo_face(3) }}
150182
</li>

media/css/mozorg/home/home-promo.less

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,20 @@ html[lang|="en"] {
760760
}
761761
}
762762

763+
/****************************************************************************/
764+
// Advocacy
765+
.promo-small-landscape.advocacy {
766+
background-color: #3fa9f1;
767+
background-image: url(/media/img/home/voices/promos/advocacy/advocacy-logo.png);
768+
background-position: 15px 20px;
769+
background-repeat: no-repeat;
770+
.background-size(100px, 100px);
771+
772+
h2 {
773+
padding: 20px 10px 10px 130px;
774+
}
775+
}
776+
763777
/****************************************************************************/
764778
// Appmaker
765779
.promo-small-landscape.appmaker {
@@ -849,6 +863,21 @@ html[lang|="en"] {
849863
}
850864
}
851865

866+
/****************************************************************************/
867+
// Privacy Day
868+
.promo-large-landscape.privacy-day {
869+
background: #c33b32; // red
870+
871+
h2 {
872+
padding: 120px @baseLine 0 @baseLine;
873+
margin-top: @baseLine;
874+
background-image: url(/media/img/home/voices/promos/privacy/privacy-shield.svg);
875+
background-position: top center;
876+
background-repeat: no-repeat;
877+
.background-size(90px, 103px);
878+
}
879+
}
880+
852881
/****************************************************************************/
853882
// Support
854883
.promo-large-landscape.support {
@@ -1656,6 +1685,12 @@ html[lang|="en"] {
16561685
.background-size(121px, 120px);
16571686
}
16581687

1688+
// Advocacy
1689+
.promo-small-landscape.advocacy {
1690+
background-image: url(/media/img/home/voices/promos/advocacy/advocacy-logo-high-res.png);
1691+
.background-size(100px, 100px);
1692+
}
1693+
16591694
// Volunteer
16601695
.promo-small-landscape.volunteer {
16611696
background-image: url(/media/img/home/voices/promos/volunteer/volunteer-high-res.png);
11.4 KB
Loading
2.44 KB
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)