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