1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-11 21:52:39 +01:00
send/app/templates/fxPromo.js

27 lines
784 B
JavaScript
Raw Normal View History

const html = require('choo/html');
const assets = require('../../common/assets');
module.exports = function(state, emit) {
function clicked() {
emit('experiment', { cd3: 'promo' });
}
2017-12-05 23:06:40 +01:00
const classes = state.promo === 'blue' ? 'banner banner-blue' : 'banner';
return html`
2017-12-05 23:06:40 +01:00
<div class="${classes}">
<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>`;
};