git ssb

1+

gb / plank



Commit c4d2eee18be85d39027240013d4974bc653d2484

add readme, add dotheplank css

Gwen committed on 1/14/2017, 9:39:58 PM
Parent: 8aa977f4e0f34a40979910d5b51417575b042af4

Files changed

index.jschanged
readme.mdadded
index.jsView
@@ -1,24 +1,36 @@
11 var fs = require('fs');
22 var h = require('hyperscript');
33 var http = require('http')
44
5-var site = h('html',
6- h('head',
7- h('title', 'Gwen Bell · Plank Log'),
8- h('style', fs.readFileSync('walkthe.css', 'utf8'))
9- ),
10- h('body',
11- h('div.sidebar',
12- h('h1', 'Gwen Bell\'s Plank Log'),
13- h('p', 'Plank Log: Write it down before it disappears forever.'),
14- h('p', {innerHTML: '<a href="http://gwenbell.com:8807/%25Omw69K3+sY4O6bTMMyecLNgXHpckmthKXjl+1iEPEUk=.sha256" target="splank">Engineer Year</a>'})
5 +var viewer = "http://gwenbell.com:8807/";
6 +
7 +var posts = {
8 + "Your Own Social": "%25eKXxfaiKR+qW7WaVJirI/FDCBaktqhkGSA3qJt1THqE=.sha256",
9 + "Engineer Year": "%25Omw69K3+sY4O6bTMMyecLNgXHpckmthKXjl+1iEPEUk=.sha256",
10 + "Interview for Death & Tech": "%25YIZVZ6uRmJsQiwRFzqMWcOY7B6f4x1o3qgCAxuwQwpI%3D.sha256"
11 +}
12 +
13 +var cash = ""
14 +
15 +for (var post in posts) {
16 + cash = cash + "<a href='" + viewer + posts[post] + "' target='splank'>" + post + "</a></p><p>"
17 +}
18 +
19 +http.createServer(function (req, res){
20 + res.end(h('html',
21 + h('head',
22 + h('title', 'Plank || Built with Hyperscript by Gwen Bell'),
23 + h('style', fs.readFileSync('dotheplank.css', 'utf8'))
1524 ),
16- h('div.frame',
17- h('iframe', {name:'splank', href:'http://gwenbell.com'})
25 + h('body',
26 + h('div.sidebar',
27 + h('h1', 'Gwen Bell'),
28 + h('p', 'Plank: Log it before it disappears forever.'),
29 + h('div.posts', {innerHTML: cash})
30 + ),
31 + h('div.frame',
32 + h('iframe', {name:'splank', href:'http://gwenbell.com'})
33 + )
1834 )
19- )
20-)
21-
22-http.createServer(function (req, res){
23- res.end(site.outerHTML);
35 + ).outerHTML)
2436 }).listen(1337);
readme.mdView
@@ -1,0 +1,8 @@
1 +---
2 +title: Readme
3 +date: 2017-01-13
4 +---
5 +
6 +Mentioned I can open source Plank. Got a [hearty yah](%P/oDqmvJfx1WD+YCVmCi7HgehvOJC3SD+H4NwhLJzm0=.sha256) so here we are. It ain't pretty, but it's not s'posed to be. This is v1.0.0, use as you want, don't expect too much. But imagine if one day you could display <a href="http://gwenbell.com/your-own-social/">your own social on your own site</a>.
7 +
8 +This is the genesis of Plank.

Built with git-ssb-web