trailhead promo
This commit is contained in:
parent
2682aec90d
commit
d3e9bb09df
|
@ -8,9 +8,7 @@ function banner(state) {
|
||||||
return; // server side
|
return; // server side
|
||||||
}
|
}
|
||||||
const show =
|
const show =
|
||||||
!state.capabilities.standalone &&
|
!state.capabilities.standalone && !state.route.startsWith('/unsupported/');
|
||||||
!/firefox/i.test(navigator.userAgent) &&
|
|
||||||
!state.route.startsWith('/unsupported/');
|
|
||||||
if (show) {
|
if (show) {
|
||||||
return state.cache(Promo, 'promo').render();
|
return state.cache(Promo, 'promo').render();
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,16 +19,16 @@ class Promo extends Component {
|
||||||
>
|
>
|
||||||
<div class="flex items-center mx-auto">
|
<div class="flex items-center mx-auto">
|
||||||
<img
|
<img
|
||||||
src="${assets.get('firefox_logo-only.svg')}"
|
src="${assets.get('master-logo.svg')}"
|
||||||
class="w-6"
|
class="w-6"
|
||||||
alt="Firefox"
|
alt="Firefox"
|
||||||
/>
|
/>
|
||||||
<span class="ml-3">
|
<span class="ml-3">
|
||||||
${this.state.translate('downloadFirefoxPromo')}${' '}
|
${this.state.translate('trailheadPromo')}${' '}
|
||||||
<a
|
<a
|
||||||
class="text-blue"
|
class="text-blue"
|
||||||
href="https://www.mozilla.org/firefox/new/?utm_campaign=send-acquisition&utm_medium=referral&utm_source=send.firefox.com"
|
href="http://www.mozilla.org/firefox/accounts/?utm_source=send.firefox.com&utm_medium=banner&utm_campaign=trailhead&utm_content=protect-your-privacy"
|
||||||
>${this.state.translate('downloadFirefox')}</a
|
>${this.state.translate('learnMore')}</a
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,10 +12,7 @@ module.exports = function(trigger) {
|
||||||
<send-signup-dialog
|
<send-signup-dialog
|
||||||
class="flex flex-col lg:flex-row justify-center px-8 md:px-24 w-full h-full"
|
class="flex flex-col lg:flex-row justify-center px-8 md:px-24 w-full h-full"
|
||||||
>
|
>
|
||||||
<img
|
<img src="${assets.get('master-logo.svg')}" class="h-16 mt-1 mb-4" />
|
||||||
src="${assets.get('firefox_logo-only.svg')}"
|
|
||||||
class="h-16 mt-1 mb-4"
|
|
||||||
/>
|
|
||||||
<section
|
<section
|
||||||
class="flex flex-col flex-no-shrink self-center lg:mx-6 lg:max-w-xs"
|
class="flex flex-col flex-no-shrink self-center lg:mx-6 lg:max-w-xs"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue