trailhead promo

This commit is contained in:
Danny Coates 2019-05-29 19:22:03 -07:00
parent 2682aec90d
commit d3e9bb09df
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
3 changed files with 6 additions and 11 deletions

View File

@ -8,9 +8,7 @@ function banner(state) {
return; // server side
}
const show =
!state.capabilities.standalone &&
!/firefox/i.test(navigator.userAgent) &&
!state.route.startsWith('/unsupported/');
!state.capabilities.standalone && !state.route.startsWith('/unsupported/');
if (show) {
return state.cache(Promo, 'promo').render();
}

View File

@ -19,16 +19,16 @@ class Promo extends Component {
>
<div class="flex items-center mx-auto">
<img
src="${assets.get('firefox_logo-only.svg')}"
src="${assets.get('master-logo.svg')}"
class="w-6"
alt="Firefox"
/>
<span class="ml-3">
${this.state.translate('downloadFirefoxPromo')}${' '}
${this.state.translate('trailheadPromo')}${' '}
<a
class="text-blue"
href="https://www.mozilla.org/firefox/new/?utm_campaign=send-acquisition&utm_medium=referral&utm_source=send.firefox.com"
>${this.state.translate('downloadFirefox')}</a
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('learnMore')}</a
>
</span>
</div>

View File

@ -12,10 +12,7 @@ module.exports = function(trigger) {
<send-signup-dialog
class="flex flex-col lg:flex-row justify-center px-8 md:px-24 w-full h-full"
>
<img
src="${assets.get('firefox_logo-only.svg')}"
class="h-16 mt-1 mb-4"
/>
<img src="${assets.get('master-logo.svg')}" class="h-16 mt-1 mb-4" />
<section
class="flex flex-col flex-no-shrink self-center lg:mx-6 lg:max-w-xs"
>