git ssb

0+

mixmix / marama



Tree: f9d6722111546ffee8db81eaf805211d19e68f64

Files: f9d6722111546ffee8db81eaf805211d19e68f64 / example / index-letnice.js

860 bytesRaw
1// run this from the terminal using :
2// npx electro example/index-letnice.js
3
4const { h } = require('mutant')
5
6const Marama = require('../')
7require('../lib/styles-inject')()
8
9const marama = Marama({
10 today: new Date(2018, 6, 12),
11 events: [
12 { date: new Date(2018, 3, 4), data: { attending: true } },
13 { date: new Date(2018, 6, 5), data: { attending: true } },
14 { date: new Date(2018, 6, 7), data: { attending: false } },
15 { date: new Date(2018, 6, 17), data: { attending: true } },
16 { date: new Date(2018, 6, 21), data: { attending: false } },
17 { date: new Date(2018, 6, 27), data: { attending: true } }
18 ],
19 range: {
20 gte: new Date(2018, 6, 9),
21 lt: new Date(2018, 6, 23)
22 },
23 styles: {
24 weekFormat: 'columns'
25 }
26})
27
28const page = h('div',
29 {
30 style: { margin: '3rem' }
31 },
32 marama
33)
34
35document.body.appendChild(page)
36

Built with git-ssb-web