Files: c52c66bca2f11bf3f73ea7ec3a141a23510f6e3b / tmpl / apps / index.html.js
1589 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. Like SoundCloud but decentralized. ', url: 'https://fement.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-ssb.celehner.com/%25n92DiQh7ietE%2BR%2BX%2FI403LQoyf2DtR3WQfCkDKlheQU%3D.sha256' }, |
13 | { id: 'dnssb', title: 'dnssb', desc: 'publish, distribute and query dns records', url: 'https://git-ssb.celehner.com/%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