git ssb

0+

Zach! / music-visions



Tree: 4e3a4be0788f6e80d9510e5f86c967dea4d413cd

Files: 4e3a4be0788f6e80d9510e5f86c967dea4d413cd / views / awesome.js

426 bytesRaw
1const html = require('choo/html')
2
3module.exports = view
4
5function 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