Files: 9b05eee01a12392729755fabfccef269c4748684 / app / html / header.js
818 bytesRaw
1 | const nest = require('depnest') |
2 | const { h, computed } = require('mutant') |
3 | |
4 | exports.gives = nest('app.html.header') |
5 | |
6 | exports.create = (api) => { |
7 | return nest('app.html.header', (nav) => { |
8 | return h('Header', [ |
9 | h('nav', [ |
10 | h('div.back', { 'ev-click': nav.back }, [ |
11 | h('i.fa.fa-angle-left') |
12 | ]), |
13 | h('i.fa.fa-home', { 'ev-click': () => nav.push({page:'home'}) }), |
14 | // breadcrumb here potentially |
15 | // h('h1', computed(nav.location, e => e.element.title)), |
16 | |
17 | h('div.tools', [ |
18 | h('i.fa.fa-address-book', { 'ev-click': () => nav.push({page:'userFind'}) }), |
19 | h('i.fa.fa-hashtag', { 'ev-click': () => nav.push({page:'groupFind'}) }), |
20 | h('i.fa.fa-gear', { 'ev-click': () => nav.push({page:'settings'}) }) |
21 | ]) |
22 | ]), |
23 | ]) |
24 | }) |
25 | } |
26 | |
27 |
Built with git-ssb-web