drop.chapril.org-firefoxsend/app/templates/signupPromo/index.js

17 lines
480 B
JavaScript
Raw Normal View History

2018-07-31 20:09:18 +02:00
const html = require('choo/html');
module.exports = function(state) {
2018-09-14 22:58:19 +02:00
if (state.user.loggedIn || !state.capabilities.account) {
2018-09-01 00:15:25 +02:00
return null;
}
2018-07-31 20:09:18 +02:00
return html`
<a href="/signin" class="signupPromo">
2018-07-31 20:09:18 +02:00
<div class="signupPromo__title">${state.translate('signInPromoText')}</div>
<div class="signupPromo__info">${state.translate('signInExplanation')}</div>
<div class="link signupPromo__link">${state.translate(
'signInLearnMore'
)}</div>
</a>
2018-07-31 20:09:18 +02:00
`;
};