fox-send/app/ui/promo.js

41 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

const html = require('choo/html');
const Component = require('choo/component');
const assets = require('../../common/assets');
class Promo extends Component {
constructor(name, state) {
super(name);
this.state = state;
}
update() {
return false;
}
createElement() {
return html`
<send-promo
2019-05-31 16:18:20 +00:00
class="w-full flex-row items-center content-center justify-center bg-white text-grey-darkest px-4 py-3 flex border-b border-grey-banner leading-normal"
>
<div class="flex items-center mx-auto">
<img
2019-05-30 02:22:03 +00:00
src="${assets.get('master-logo.svg')}"
2019-05-31 11:48:32 +00:00
class="w-6 h-6"
alt="Firefox"
/>
2019-05-31 16:18:20 +00:00
<span class="ml-2 sm:ml-4 text-xs sm:text-base">
2019-05-30 02:22:03 +00:00
${this.state.translate('trailheadPromo')}${' '}
<a
2019-05-31 11:48:32 +00:00
class="underline text-blue-dark"
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
>
</span>
</div>
</send-promo>
`;
}
}
module.exports = Promo;