2016-06-30 08:18:07 -07:00
|
|
|
const html = require('../../../html')
|
2016-05-13 16:48:46 +07:00
|
|
|
|
|
|
|
|
const emailList = require('../elements/email-list')
|
|
|
|
|
const pathname = require('../elements/pathname')
|
|
|
|
|
const nav = require('../elements/nav')
|
|
|
|
|
|
2016-07-02 00:13:13 +02:00
|
|
|
module.exports = function (state, prev, send) {
|
2016-06-30 08:18:07 -07:00
|
|
|
return html`
|
2016-05-14 10:44:44 +07:00
|
|
|
<main class="mw5 mw7-ns center cf">
|
2016-12-11 19:35:29 +01:00
|
|
|
<button onclick=${goHome}>Home</button>
|
2016-07-02 00:13:13 +02:00
|
|
|
${pathname(state, prev, send)}
|
|
|
|
|
${nav(state, prev, send)}
|
2016-05-14 10:44:44 +07:00
|
|
|
<section class="fl mt4 w-80 db">
|
2016-07-02 00:13:13 +02:00
|
|
|
${emailList(state, prev, send)}
|
2016-05-14 10:44:44 +07:00
|
|
|
</section>
|
|
|
|
|
</main>
|
|
|
|
|
`
|
2016-12-11 19:35:29 +01:00
|
|
|
|
|
|
|
|
function goHome () {
|
|
|
|
|
send('location:set', { pathname: '/' })
|
|
|
|
|
}
|
2016-05-13 16:48:46 +07:00
|
|
|
}
|