git ssb

2+

mixmix / ticktack



Tree: ef08c9119e733198510e57b49ae441a7d0c8cae7

Files: ef08c9119e733198510e57b49ae441a7d0c8cae7 / app / html / header.js

978 bytesRaw
1const nest = require('depnest')
2const { h, computed } = require('mutant')
3
4exports.gives = nest('app.html.header')
5
6exports.needs = nest('keys.sync.id', 'first')
7
8exports.create = (api) => {
9 return nest('app.html.header', (nav) => {
10 return h('Header', [
11 h('nav', [
12 h('div.back', { 'ev-click': nav.back }, [
13 h('i.fa.fa-angle-left')
14 ]),
15 h('i.fa.fa-home', { 'ev-click': () => nav.push({page:'home'}) }),
16 // FUTURE breadcrumb here ?
17 // h('h1', computed(nav.location, e => e.element.title)),
18
19 h('div.tools', [
20 // h('i.fa.fa-user', { 'ev-click': () => nav.push({page:'userEdit', feed: api.keys.sync.id()}) }), // TEMP
21 h('i.fa.fa-address-book', { 'ev-click': () => nav.push({page:'userFind'}) }),
22 h('i.fa.fa-hashtag', { 'ev-click': () => nav.push({page:'groupFind'}) }),
23 h('i.fa.fa-gear', { 'ev-click': () => nav.push({page:'settings'}) })
24 ])
25 ]),
26 ])
27 })
28}
29

Built with git-ssb-web