2018-11-12 19:13:31 +00:00
|
|
|
const html = require('choo/html');
|
|
|
|
const Component = require('choo/component');
|
|
|
|
const assets = require('../../common/assets');
|
|
|
|
|
|
|
|
class Promo extends Component {
|
2019-04-26 18:39:24 +00:00
|
|
|
constructor(name, state) {
|
2018-11-12 19:13:31 +00:00
|
|
|
super(name);
|
2019-04-26 18:39:24 +00:00
|
|
|
this.state = state;
|
2018-11-12 19:13:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
update() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
createElement() {
|
|
|
|
return html`
|
2019-01-11 00:22:40 +00:00
|
|
|
<send-promo
|
2019-03-13 18:16:58 +00:00
|
|
|
class="w-full flex-none flex-row items-center content-center justify-center text-sm bg-grey-light leading-tight text-grey-darkest px-4 py-3 hidden md:flex"
|
2018-11-12 19:13:31 +00:00
|
|
|
>
|
|
|
|
<div class="flex items-center mx-auto">
|
|
|
|
<img
|
2019-05-30 02:22:03 +00:00
|
|
|
src="${assets.get('master-logo.svg')}"
|
2018-11-12 19:13:31 +00:00
|
|
|
class="w-6"
|
|
|
|
alt="Firefox"
|
|
|
|
/>
|
2019-04-26 18:39:24 +00:00
|
|
|
<span class="ml-3">
|
2019-05-30 02:22:03 +00:00
|
|
|
${this.state.translate('trailheadPromo')}${' '}
|
2018-11-12 19:13:31 +00:00
|
|
|
<a
|
|
|
|
class="text-blue"
|
2019-05-30 02:22:03 +00:00
|
|
|
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
|
2018-11-12 19:13:31 +00:00
|
|
|
>
|
|
|
|
</span>
|
|
|
|
</div>
|
2019-01-11 00:22:40 +00:00
|
|
|
</send-promo>
|
2018-11-12 19:13:31 +00:00
|
|
|
`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Promo;
|