Commit 60951b4ba455a5ad31e0ff33b6380ff31451c51f
delete front page content
gb committed on 10/1/2016, 9:32:49 PMParent: 5555ce6349f77034537c4af268af5c1377734c36
Parent: 9d005b2e11b2e2e87198d0670fcd854aa2ace0ff
Files changed
index.js | changed |
layouts/blog.jade | changed |
layouts/index.jade | changed |
layouts/layout.jade | changed |
layouts/navbar.jade | changed |
src/simplicitease.css | changed |
src/index.md | added |
index.js | ||
---|---|---|
@@ -1,10 +1,5 @@ | ||
1 | 1 … | var express = require('express'); |
2 | -var avatar = require('ssb-avatar'); | |
3 | -var client = require('ssb-client'); | |
4 | -var pull = require('pull-stream'); | |
5 | -var moment = require('moment'); | |
6 | -var markdown = require('marked'); | |
7 | 2 … | var nm = require('nodemailer'); |
8 | 3 … | var bodyParser = require('body-parser'); |
9 | 4 … | |
10 | 5 … | var app = express(); |
@@ -13,73 +8,8 @@ | ||
13 | 8 … | |
14 | 9 … | app.use(bodyParser.json()); |
15 | 10 … | app.use(bodyParser.urlencoded({extended: true})); |
16 | 11 … | |
17 | -const me = '@ya/sq19NPxRza5xtoqi9BilwLZ7HgQjG3QpcTRnGgWs=.ed25519' | |
18 | -const site = 'Gwen Bell'; | |
19 | - | |
20 | -app.get('/', function (req, res) { | |
21 | - client(function (err, sbot) { | |
22 | - if (err) { | |
23 | - throw err; | |
24 | - } | |
25 | - avatar(sbot, me, me, function (err, avatar){ | |
26 | - if (err) { | |
27 | - throw err; | |
28 | - } | |
29 | - name = avatar.name; | |
30 | - image = avatar.image; | |
31 | - }) | |
32 | - | |
33 | - pull( | |
34 | - sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'pin'}}}}], limit: 1, reverse: true}), | |
35 | - pull.drain(function (data) { | |
36 | - getpin = data; | |
37 | - pull( | |
38 | - sbot.query.read({query: [{$filter: { key: getpin.value.content.link}}]}), | |
39 | - pull.drain(function (data){ | |
40 | - pinned = data; | |
41 | - }) | |
42 | - ) | |
43 | - }) | |
44 | - ) | |
45 | - pull( | |
46 | - sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'post'}}}}], limit: 1, reverse: true}), | |
47 | - pull.drain(function (data) { | |
48 | - post = data; | |
49 | - }) | |
50 | - ) | |
51 | - pull( | |
52 | - sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'vote'}}}}], limit: 1, reverse: true}), | |
53 | - pull.drain(function (data) { | |
54 | - vote = data; | |
55 | - pull( | |
56 | - sbot.query.read({query: [{$filter: { key: data.value.content.vote.link}}]}), | |
57 | - pull.drain(function (reblog) { | |
58 | - avatar(sbot, me, reblog.value.author, function (err, avatar){ | |
59 | - if (err) { | |
60 | - throw err; | |
61 | - } | |
62 | - reauthor = avatar; | |
63 | - gotPost(); | |
64 | - }) | |
65 | - redo = reblog; | |
66 | - }) | |
67 | - ) | |
68 | - }) | |
69 | - ) | |
70 | - pull( | |
71 | - sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'git-update'}}}}], limit: 1, reverse: true}), | |
72 | - pull.drain(function (data) { | |
73 | - gits = data; | |
74 | - }) | |
75 | - ) | |
76 | - }); | |
77 | - function gotPost() { | |
78 | - res.render('index', { title: site, markdown, moment}); | |
79 | - } | |
80 | -}); | |
81 | - | |
82 | 12 … | app.post('/send', function (req, res) { |
83 | 13 … | var name = req.body.nombre; |
84 | 14 … | var email = req.body.elmail; |
85 | 15 … | var website = req.body.siteurl; |
layouts/blog.jade | ||
---|---|---|
@@ -7,7 +7,8 @@ | ||
7 | 7 … | li |
8 | 8 … | a(href="/" + blog.path + "/")= blog.title |
9 | 9 … | span - #{moment(blog.date).format('MMMM Do YYYY')} |
10 | 10 … | div!= contents |
11 | - <a href="http://gwenbell.fetchapp.com/sell/e3547c1e"><img src="/blogtobook.jpg" class="profile" style="width: 30%; float:left;"></a> | |
12 | - h2 Buy <a href="http://gwenbell.fetchapp.com/sell/e3547c1">Blog to Book</a> for $35, get 25 new pieces only available in book format. Each time I hit the tenth new piece added, the price goes up by a dollar(as of 2016-09-16 2/10 are done). For those of you who've already bought, you get all new pieces included in the current price: 35. | |
11 … | + <a href="http://gwenbell.fetchapp.com/sell/e3547c1e"><img src="/blogtobook.jpg" class="profile" style="width: 100%;"></a> | |
12 … | + <button><a href="http://gwenbell.fetchapp.com/sell/e3547c1">Buy Now or Cry Later | 35</a></button> | |
13 … | + | |
13 | 14 … |
layouts/index.jade | ||
---|---|---|
@@ -1,63 +1,3 @@ | ||
1 | 1 … | extends layout |
2 | 2 … | |
3 | 3 … | block content |
4 | - | |
5 | - a(href="/"): h1= title | |
6 | - h2 Hi & welcome. This site reflects a living, breathing application built on a <a href="/dt-interview">distributed database called scuttlebot</a>. You might think of what you see on this site as a healthy response to what I view as unhealthy centralized social networking: | |
7 | - div(class='message') | |
8 | - p.small.ri pinned | |
9 | - img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar') | |
10 | - p <a href='/' target='_parent'>@#{name}</a> | |
11 | - != markdown(pinned.value.content.text) | |
12 | - span.date #{moment(pinned.value.timestamp).fromNow()} | |
13 | - div(class='message') | |
14 | - img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar') | |
15 | - p <a href='/' target='_parent'>@#{name}</a> | |
16 | - != markdown(post.value.content.text) | |
17 | - span.date #{moment(post.value.timestamp).fromNow()} | |
18 | - div(class='message') | |
19 | - img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar') | |
20 | - p <a href='/' target='_parent'>@#{name}</a> dug #{vote.value.content.vote.link} | |
21 | - span.date #{moment(vote.value.timestamp).fromNow()} | |
22 | - div.message | |
23 | - if (redo.value.content.type === post) | |
24 | - img(src='https://evbogue.com/ws/blobs/get/#{reauthor.image}' class='avatar') | |
25 | - p @<a href='#{redo.value.author}'>#{reauthor.name}</a> said | |
26 | - != markdown(redo.value.content.text) | |
27 | - span.date #{moment(redo.value.timestamp).fromNow()} | |
28 | - div(class='message') | |
29 | - img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar') | |
30 | - p <a href='/' target='_parent'>@#{name}</a> pushed a git commit to #{gits.value.content.repo}<br /> | |
31 | - span.date #{moment(gits.value.timestamp).fromNow()} | |
32 | - <br /> | |
33 | - <img src="/g.jpg" class="profile" style="width:150px; float:left;" /><h2 id="about"><a href="#about">About</a></h2> <p>Gwen(dolyn) Bell is a Mexico City, Mexico based web developer and technical writer. She's lived in Mexico on and off since her <a href="firstmxtrip">first trip to Mexico in 2006</a>. When she first arrived in the country she told everyone she knew she intended to stay. The commitment took root.</p> | |
34 | - <p>Gwen practices Stoicism and yoga, takes long walks around Mexico City and builds for the future where the web is decentralized, distributed, cryptographically secure and more home-grown than corporate. She intends to one day build the <a href="/grh">GRH</a>, speak fluent Spanish and drink...in Oaxaca where it was born... the <i>pura mezcal</i>, <i>madre cuixhe</i>.</p> | |
35 | - <br /> | |
36 | - <h2><a href="#details">Technical Details</a></h2> | |
37 | - <ul> | |
38 | - <li>Site hand-built by gb</li> | |
39 | - <li>Built with Arch Linux local and VPS</li> | |
40 | - <li>Rocks Git for version control</li> | |
41 | - <li>Is an active sbot instance</li> | |
42 | - <li>Built with Node.js</li> | |
43 | - <li>Pull requests accepted</li> | |
44 | - </ul> | |
45 | - <br /> | |
46 | - <h2 id="contact"><a href="#contact">Contact</a></h2> | |
47 | - <ul> | |
48 | - <li>Email: gwen@gwenbell.com <a href="/key.txt">PGP</a></li> | |
49 | - <li>sbot: gb</li> | |
50 | - <li><a href="http://git-ssb.celehner.com/%25sa%2FOgrHPhHCw8V0x2wrIgadRJANxQAKY6V9AP%2FF4iyw%3D.sha256"> Issues tracked</a> via pull request</li> | |
51 | - </ul> | |
52 | - <h2><a href="#subscribe">Subscribe</a></h2> | |
53 | - form(name='contact', action='/send', method='post') | |
54 | - input(type='text', name='nombre', placeholder='What name should I call you?') | |
55 | - br | |
56 | - input(type='text', name='elmail', placeholder='you@your email address dot com') | |
57 | - br | |
58 | - input(type='text', name='siteurl', placeholder='What is your site address?') | |
59 | - br | |
60 | - button GO | |
61 | - br | |
62 | - br | |
63 | - hr |
layouts/layout.jade | |||
---|---|---|---|
@@ -8,13 +8,12 @@ | |||
8 | 8 … | meta(name='viewport', content='maximum-scale=1') | |
9 | 9 … | link(rel="shortcut icon", href="/favicon.png") | |
10 | 10 … | link(rel='stylesheet' href='/static/reserva.css') | |
11 | 11 … | link(rel='stylesheet' href='/simplicitease.css') | |
12 | - // link(rel='stylesheet' href='/jenesaisquoi.css') | ||
13 | 12 … | body | |
14 | 13 … | include navbar.jade | |
15 | 14 … | .contain | |
16 | 15 … | .twelve.col | |
16 … | + iframe(src='https://sdash.gwenbell.com' style='width:100%; border:none;') | ||
17 | 17 … | .article | |
18 | 18 … | block content | |
19 | - <h6 id="contact"><a href="http://gwenbell.com/#contact"><b>gwen@gwenbell dot com 2016</b></p></h6> | ||
20 | 19 … |
layouts/navbar.jade | ||
---|---|---|
@@ -1,8 +1,6 @@ | ||
1 | 1 … | .navbar |
2 | 2 … | .contain |
3 | 3 … | .twelve.col |
4 | 4 … | ul |
5 | - li <a href="/"><b>gb</b></a> | |
6 | - li <a href="http://gwenbell.com/#about">About</a> | |
7 | - li <a href="http://gwenbell.com/blog">Blog</a> | |
8 | - li <a href="http://gwenbell.com/#contact">Contact</a> | |
5 … | + li <a href="/"><b>Gwen Bell</b></a> | |
6 … | + li <a href="/blog">Blog ➡ Book</a> |
src/simplicitease.css | ||
---|---|---|
@@ -27,9 +27,9 @@ | ||
27 | 27 … | color: #000; |
28 | 28 … | font-weight: 400; |
29 | 29 … | font-family: 'Open Sans', arial, sans-serif; |
30 | 30 … | text-decoration: none; |
31 | - margin-top: 3em; | |
31 … | + margin-top: none; | |
32 | 32 … | display: block; |
33 | 33 … | } |
34 | 34 … | |
35 | 35 … | img.profile { |
@@ -103,9 +103,9 @@ | ||
103 | 103 … | color: #333; |
104 | 104 … | } |
105 | 105 … | |
106 | 106 … | blockquote { |
107 | - font-family: 'Open Sens', arial, sans-serif; | |
107 … | + font-family: 'Open Sans', arial, sans-serif; | |
108 | 108 … | border-left: 2px solid #333; |
109 | 109 … | } |
110 | 110 … | |
111 | 111 … | ul { |
@@ -167,9 +167,9 @@ | ||
167 | 167 … | width: 100%; |
168 | 168 … | } |
169 | 169 … | |
170 | 170 … | .article { |
171 | - padding-right: 5em; | |
171 … | + padding-right: 1em; | |
172 | 172 … | |
173 | 173 … | } |
174 | 174 … | |
175 | 175 … | /* navbar */ |
@@ -201,45 +201,8 @@ | ||
201 | 201 … | color: #002b36; |
202 | 202 … | background: #ffdb00; |
203 | 203 … | } |
204 | 204 … | |
205 | -button { | |
206 | - font-size: 1.2em; | |
207 | - padding: .5ex 1ex; | |
208 | - color: #0C5; | |
209 | - background: #0D6; | |
210 | - border: 1px solid #0D6; | |
211 | - color: #FFF; | |
212 | - transition: all 0.5s; | |
213 | -} | |
214 | - | |
215 | -button:hover, button:active { | |
216 | - cursor: pointer; | |
217 | - text-decoration: none; | |
218 | - color: #0C5; | |
219 | - border-color: #0C5; | |
220 | - background: #FFF; | |
221 | -} | |
222 | - | |
223 | -pre { | |
224 | - padding: .5em; | |
225 | - padding-left: .7em; | |
226 | - background: #3f3f3f; | |
227 | - color: #dcdcdc; | |
228 | - border-radius: 5px; | |
229 | - margin-bottom: .5em; | |
230 | - white-space: pre-wrap; | |
231 | - word-wrap: break-word; | |
232 | -} | |
233 | - | |
234 | -hr { | |
235 | - border: solid #eee; | |
236 | - clear: both; | |
237 | - border-width: 1px 0 0; | |
238 | - height: 0; | |
239 | - margin-bottom: .9em; | |
240 | -} | |
241 | - | |
242 | 205 … | .message { |
243 | 206 … | border: 1px solid #ccc; |
244 | 207 … | padding: 1em; |
245 | 208 … | } |
Built with git-ssb-web