send/app/pages/split.js

21 lines
482 B
JavaScript
Raw Normal View History

2018-10-10 01:17:40 +00:00
const html = require('choo/html');
const title = require('../templates/title');
const signupPromo = require('../templates/signupPromo');
2018-10-16 23:53:33 +00:00
const controlArea = require('../templates/controlArea');
2018-10-10 01:17:40 +00:00
2018-10-16 23:53:33 +00:00
module.exports = function(state, emit, a, b) {
2018-10-10 01:17:40 +00:00
return html`
2018-10-16 23:53:33 +00:00
<main class="main">
${controlArea(state, emit)}
<div class="split__left">
${title(state)}
${a}
2018-10-10 01:17:40 +00:00
</div>
2018-10-16 23:53:33 +00:00
<div class="split__right">
${b}
</div>
${signupPromo(state)}
</main>
2018-10-10 01:17:40 +00:00
`;
};