Files: 33d5cc54a0288b1a29b3ba744db7e476157f3eac / tmpl / apps / index.html.js
1547 bytesRaw
1 | var page = require('../page.part') |
2 | |
3 | // this page is the same as the first guide in basics, but with the big hero |
4 | module.exports = () => page({ |
5 | section: 'apps', |
6 | path: '/apps/index.html', |
7 | content: listing([ |
8 | { id: 'patchwork', title: 'Patchwork', desc: 'Inbox, social feed, and profiles.', url: 'https://github.com/ssbc/patchwork' }, |
9 | { id: 'ferment', title: 'Ferment', desc: 'Peer-to-peer audio publishing and streaming.', url: 'http://ferment.audio'}, |
10 | { id: 'ssb-cli-dashboard', title: 'CLI Dashboard', desc: 'Browse the database state.', url: 'https://github.com/ssbc/ssb-cli-dashboard' }, |
11 | { id: 'ssb-simple-whois', title: 'CLI Whois', desc: 'Very simple petname->pubkey lookup.', url: 'https://github.com/ssbc/ssb-simple-whois' }, |
12 | { id: 'git-ssb', title: 'git ssb', desc: 'git repos and issue tracking', url: 'https://git.scuttlebot.io/%25n92DiQh7ietE%2BR%2BX%2FI403LQoyf2DtR3WQfCkDKlheQU%3D.sha256' }, |
13 | { id: 'dnssb', title: 'dnssb', desc: 'publish, distribute and query dns records', url: 'https://git.scuttlebot.io/%25aVOBlkoiDbK99ROZPIaiiDk%2B4q2P4%2BG7MGul4UxkBBM%3D.sha256' }, |
14 | { id: 'add-new', title: 'Add an application', url: 'https://github.com/ssbc/scuttlebot.io/blob/master/add-an-application.md' } |
15 | ]) |
16 | }) |
17 | |
18 | function listing (items) { |
19 | return `<div class="cards"> |
20 | ${ items.map(item => { |
21 | return `<a class="card" href="${item.url}" target="_blank"> |
22 | <img src="/img/${item.id}.png"> |
23 | <h4>${item.title}</h4> |
24 | <p>${item.desc||''}</p> |
25 | </a>` |
26 | }).join('') } |
27 | </div>` |
28 | } |
29 |
Built with git-ssb-web