added promo string to ftl & updated deps

This commit is contained in:
Danny Coates 2019-04-26 11:39:24 -07:00
parent c800257678
commit e7964c03ed
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
6 changed files with 1500 additions and 1386 deletions

View file

@ -448,7 +448,7 @@ module.exports.empty = function(state, emit) {
</div>
<input
id="file-upload"
class="opacity-0 w-0 h-0 appearance-none absolute"
class="opacity-0 w-0 h-0 appearance-none absolute overflow-hidden"
type="file"
multiple
onfocus="${focus}"

View file

@ -10,7 +10,6 @@ function banner(state) {
const show =
!state.capabilities.standalone &&
!/firefox/i.test(navigator.userAgent) &&
document.querySelector('html').lang.startsWith('en') &&
!state.route.startsWith('/unsupported/');
if (show) {
return state.cache(Promo, 'promo').render();

View file

@ -3,8 +3,9 @@ const Component = require('choo/component');
const assets = require('../../common/assets');
class Promo extends Component {
constructor(name) {
constructor(name, state) {
super(name);
this.state = state;
}
update() {
@ -22,13 +23,12 @@ class Promo extends Component {
class="w-6"
alt="Firefox"
/>
<span class="ml-3"
>Send is brought to you by the all-new Firefox.${' '}
<span class="ml-3">
${this.state.translate('downloadFirefoxPromo')}${' '}
<a
class="text-blue"
href="https://www.mozilla.org/firefox/new/?utm_campaign=send-acquisition&utm_medium=referral&utm_source=send.firefox.com"
>
Download Firefox now </a
>${this.state.translate('downloadFirefox')}</a
>
</span>
</div>