Files: 8766e942c58719d9e2f497fd1dead4d67c096397 / tmpl / apps / index.html.js
1243 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: 'ssb-cli-dashboard', title: 'CLI Dashboard', desc: 'Browse the database state.', url: 'https://github.com/ssbc/ssb-cli-dashboard' }, |
10 | { id: 'ssb-simple-whois', title: 'CLI Whois', desc: 'Very simple petname->pubkey lookup.', url: 'https://github.com/ssbc/ssb-simple-whois' }, |
11 | { id: 'git-ssb', title: 'git ssb', desc: 'git repos and issue tracking', url: 'https://git-ssb.celehner.com/%25n92DiQh7ietE%2BR%2BX%2FI403LQoyf2DtR3WQfCkDKlheQU%3D.sha256' }, |
12 | { id: 'add-new', title: 'Add an application', url: 'https://github.com/ssbc/scuttlebot.io/blob/master/add-an-application.md' } |
13 | ]) |
14 | }) |
15 | |
16 | function listing (items) { |
17 | return `<div class="cards"> |
18 | ${ items.map(item => { |
19 | return `<a class="card" href="${item.url}" target="_blank"> |
20 | <img src="/img/${item.id}.png"> |
21 | <h4>${item.title}</h4> |
22 | <p>${item.desc||''}</p> |
23 | </a>` |
24 | }).join('') } |
25 | </div>` |
26 | } |
Built with git-ssb-web