added promo string to ftl & updated deps
This commit is contained in:
parent
c800257678
commit
e7964c03ed
6 changed files with 1500 additions and 1386 deletions
|
@ -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}"
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue