Files: 66d7bd513270b804eb7c6a61a46eb1103afd519a / building / components / library.js
578 bytesRaw
1 | const html = require('nanohtml') |
2 | |
3 | const newZineForm = require('./newZineForm') |
4 | const shelving = require('./shelving') |
5 | module.exports = view |
6 | |
7 | function view (state, emit) { |
8 | return html` |
9 | <body> |
10 | <h1>Welcome to your Zine Library, Good Friend!</h1> |
11 | ${newZineForm()} |
12 | ${shelving(state)} |
13 | </body> |
14 | ` |
15 | // newZineForm is a button for adding new zines |
16 | // shelving is the grid that shows all zines pulled from yr zines/ folder |
17 | // I am writing these notes here cos I dont' know how to leave comments in nanohtml code :( . |
18 | // If anyone knows i'd appreciate the help! |
19 | } |
20 |
Built with git-ssb-web