Skip to content

Commit

Permalink
trailhead promo
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed May 30, 2019
1 parent 2682aec commit d3e9bb0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
4 changes: 1 addition & 3 deletions app/ui/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
8 changes: 4 additions & 4 deletions app/ui/promo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 1 addition & 4 deletions app/ui/signupDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down

0 comments on commit d3e9bb0

Please sign in to comment.