update promo to be for the vpn
This commit is contained in:
parent
deec85be14
commit
2a3db78f97
|
@ -59,7 +59,8 @@ if (process.env.NODE_ENV === 'production') {
|
||||||
sentry: Sentry,
|
sentry: Sentry,
|
||||||
user: new User(storage, LIMITS, window.AUTH_CONFIG),
|
user: new User(storage, LIMITS, window.AUTH_CONFIG),
|
||||||
transfer: null,
|
transfer: null,
|
||||||
fileInfo: null
|
fileInfo: null,
|
||||||
|
locale: locale()
|
||||||
};
|
};
|
||||||
|
|
||||||
const app = routes(choo({ hash: true }));
|
const app = routes(choo({ hash: true }));
|
||||||
|
|
|
@ -8,7 +8,9 @@ function banner(state) {
|
||||||
return; // server side
|
return; // server side
|
||||||
}
|
}
|
||||||
const show =
|
const show =
|
||||||
!state.capabilities.standalone && !state.route.startsWith('/unsupported/');
|
!state.capabilities.standalone &&
|
||||||
|
!state.route.startsWith('/unsupported/') &&
|
||||||
|
state.locale === 'en-US';
|
||||||
if (show) {
|
if (show) {
|
||||||
return state.cache(Promo, 'promo').render();
|
return state.cache(Promo, 'promo').render();
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,11 +24,11 @@ class Promo extends Component {
|
||||||
alt="Firefox"
|
alt="Firefox"
|
||||||
/>
|
/>
|
||||||
<span class="ml-2 sm:ml-4 text-xs sm:text-base">
|
<span class="ml-2 sm:ml-4 text-xs sm:text-base">
|
||||||
${this.state.translate('trailheadPromo')}${' '}
|
${`Like Firefox Send? You'll love our new full-device VPN. `}
|
||||||
<a
|
<a
|
||||||
class="underline link-blue"
|
class="underline link-blue"
|
||||||
href="http://www.mozilla.org/firefox/accounts/?utm_source=send.firefox.com&utm_medium=banner&utm_campaign=trailhead&utm_content=protect-your-privacy"
|
href="https://fpn.firefox.com/?utm_source=send.firefox.com&utm_medium=referral&utm_content=Try+Firefox+Private+Network&utm_campaign=top-bar"
|
||||||
>${this.state.translate('learnMore')}</a
|
>${`Get it today`}</a
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue