send/app/pages/error/index.js

23 lines
583 B
JavaScript
Raw Normal View History

const html = require('choo/html');
const assets = require('../../../common/assets');
2018-07-31 18:09:18 +00:00
const title = require('../../templates/title');
module.exports = function(state) {
return html`
2018-02-22 00:28:40 +00:00
<div class="page">
2018-07-31 18:09:18 +00:00
${title(state)}
<div class="error">${state.translate('errorPageHeader')}</div>
<img class="flexible" src="${assets.get('illustration_error.svg')}"/>
<div class="description">
${state.translate('uploadPageExplainer')}
</div>
<a class="link link--action" href="/">
${state.translate('sendYourFilesLink')}
</a>
</div>`;
};