Files: 217f66e53fa7f36e108affdc715f4eb465f1f7da / views / awesome.js
426 bytesRaw
1 | const html = require('choo/html') |
2 | |
3 | module.exports = view |
4 | |
5 | function view (state, emit) { |
6 | song = state.songs.find(song => song.title == state.params.song.replace(/-/g,' ')) |
7 | console.log({song}) |
8 | return html` |
9 | <div class='wrapper'> |
10 | <div class='paper'> |
11 | <div class='text'> |
12 | <h1>${song.title}</h1> |
13 | <p>${song.post}</p> |
14 | <a href='#songbook'>x close x</a> |
15 | </div> |
16 | </div> |
17 | </div> |
18 | ` |
19 | } |
20 |
Built with git-ssb-web