git ssb

1+

gb / plank



Commit 25498e8f63e54754024b16fdb0824be55bfa7b2c

initial commit, initial layout

Gwen committed on 1/13/2017, 10:53:27 PM

Files changed

index.jsadded
package.jsonadded
walkthe.cssadded
index.jsView
@@ -1,0 +1,23 @@
1 +var fs = require('fs');
2 +var h = require('hyperscript');
3 +var http = require('http')
4 +
5 +var site = h('html',
6 + h('head',
7 + h('title', 'Plank Log'),
8 + h('style', fs.readFileSync('walkthe.css', 'utf8'))
9 + ),
10 + h('body',
11 + h('div.sidebar',
12 + h('h1', 'Plank Log'),
13 + h('p', 'Plank Log: Write it down before it disappears forever.')
14 + ),
15 + h('div.frame',
16 + h('iframe', {name:'splank', href:'http://gwenbell.com'})
17 + )
18 + )
19 +)
20 +
21 +http.createServer(function (req, res){
22 + res.end(site.outerHTML);
23 +}).listen(1337);
package.jsonView
@@ -1,0 +1,5 @@
1 +{
2 + "dependencies": {
3 + "hyperscript": "^2.0.2"
4 + }
5 +}
walkthe.cssView
@@ -1,0 +1,11 @@
1 +/*walk the css*/
2 +
3 +.sidebar {
4 + position: fixed;
5 + width: 20%;
6 +}
7 +
8 +.frame {
9 + width: 80%;
10 + margin-left: auto;
11 +}

Built with git-ssb-web