git ssb

16+

Dominic / patchbay



Tree: d1cbca468976daecdbe0e7e526ee93f7f56f9a9f

Files: d1cbca468976daecdbe0e7e526ee93f7f56f9a9f / main / html / scroller.js

536 bytesRaw
1const { h } = require('mutant')
2const nest = require('depnest')
3
4exports.gives = nest('main.html.scroller')
5
6exports.create = function (api) {
7 return nest('main.html.scroller', Scroller)
8
9 function Scroller ({ prepend = [], append = [] } = {}) {
10 const content = h('section.content')
11
12 const container = h('Scroller', { style: { overflow: 'auto' } }, [
13 h('div.wrapper', [
14 h('header', prepend),
15 content,
16 h('footer', append)
17 ])
18 ])
19
20 return {
21 content,
22 container
23 }
24 }
25}
26
27

Built with git-ssb-web