2017-11-08 00:54:42 +01:00
|
|
|
const html = require('choo/html');
|
|
|
|
const assets = require('../../common/assets');
|
|
|
|
|
|
|
|
module.exports = function(state, emit) {
|
2018-01-20 00:07:05 +01:00
|
|
|
function clicked() {
|
|
|
|
emit('experiment', { cd3: 'promo' });
|
2017-11-08 00:54:42 +01:00
|
|
|
}
|
|
|
|
|
2017-12-05 23:06:40 +01:00
|
|
|
const classes = state.promo === 'blue' ? 'banner banner-blue' : 'banner';
|
|
|
|
|
2017-11-08 00:54:42 +01:00
|
|
|
return html`
|
2017-12-05 23:06:40 +01:00
|
|
|
<div class="${classes}">
|
2017-11-08 00:54:42 +01:00
|
|
|
<div>
|
|
|
|
<img
|
|
|
|
src="${assets.get('firefox_logo-only.svg')}"
|
|
|
|
class="firefox-logo-small"
|
|
|
|
alt="Firefox"/>
|
|
|
|
<span>Send is brought to you by the all-new Firefox.
|
|
|
|
<a
|
|
|
|
class="link"
|
|
|
|
href="https://www.mozilla.org/firefox/new/?utm_campaign=send-acquisition&utm_medium=referral&utm_source=send.firefox.com"
|
|
|
|
onclick=${clicked}
|
|
|
|
>Download Firefox now ≫</a></span>
|
|
|
|
</div>
|
|
|
|
</div>`;
|
|
|
|
};
|