From a3b86375c946299c9216412e10c5bcf5234c7fcd Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Fri, 28 Jun 2019 19:12:42 +0200 Subject: Initial commit --- src/blog.html.erb | 7 +++++ src/blog/welcome.html | 29 ++++++++++++++++++++ src/index.html.erb | 22 +++++++++++++++ src/post-template.html.erb | 2 ++ src/projects.html | 10 +++++++ src/style.css | 67 ++++++++++++++++++++++++++++++++++++++++++++++ src/template.html.erb | 39 +++++++++++++++++++++++++++ 7 files changed, 176 insertions(+) create mode 100644 src/blog.html.erb create mode 100644 src/blog/welcome.html create mode 100644 src/index.html.erb create mode 100644 src/post-template.html.erb create mode 100644 src/projects.html create mode 100644 src/style.css create mode 100644 src/template.html.erb (limited to 'src') diff --git a/src/blog.html.erb b/src/blog.html.erb new file mode 100644 index 0000000..d89494a --- /dev/null +++ b/src/blog.html.erb @@ -0,0 +1,7 @@ + diff --git a/src/blog/welcome.html b/src/blog/welcome.html new file mode 100644 index 0000000..98de4f5 --- /dev/null +++ b/src/blog/welcome.html @@ -0,0 +1,29 @@ +title: Welcome! +date: June 26, 2019 +--- +

+Hello, internet! In the spirit of + +

+(•_•)
+<)  )╯Always
+/  \
+
+\(•_•)
+ (  (>  Own
+ /  \
+
+ (•_•)
+<)  )>  Your Platform
+ /  \
+
+ +I've decided to launch my own website and blog. +

+

+In the spirit of minimalism, it's (as you can see) very bare-bones. +

+

+In the spirit of self-reliance, it's built with a custom static site generator +(which is really just a few glorified Ruby scripts) that (again, in the spirit +of minimalism) do only what I need them to do (and hopefully do so well!). diff --git a/src/index.html.erb b/src/index.html.erb new file mode 100644 index 0000000..23f08bc --- /dev/null +++ b/src/index.html.erb @@ -0,0 +1,22 @@ +

+ I am a software engineer, writing smart contracts and other fun things + for Celo. I got my bachelor's in computer + science at the University of Warsaw. +

+ +

Recent posts:

+ + + +
+ diff --git a/src/post-template.html.erb b/src/post-template.html.erb new file mode 100644 index 0000000..ece1545 --- /dev/null +++ b/src/post-template.html.erb @@ -0,0 +1,2 @@ +

<%= post['title'] %>

(<%= post['date'] %>) +<%= post['content'] %> diff --git a/src/projects.html b/src/projects.html new file mode 100644 index 0000000..61363a1 --- /dev/null +++ b/src/projects.html @@ -0,0 +1,10 @@ + diff --git a/src/style.css b/src/style.css new file mode 100644 index 0000000..70fc10b --- /dev/null +++ b/src/style.css @@ -0,0 +1,67 @@ +body { + margin: 40px auto; + max-width: 800px; + line-height: 1.6; + font-size: 18px; + padding: 0 10px; +} + +a { + color: darkblue; + text-decoration: none; +} + +a:hover { + color: #55f; +} + +ul { + list-style-type: '—'; +} + +li { + margin-top: 10px; + margin-bottom: 10px; + text-indent: 0.7em; +} + +h1, h2, h3 { + line-height: 1.2 +} + +ul.links { + list-style-type: none; + display: flex; + align-items: stretch; + justify-content: space-evenly; +} + +.links li { + margin-top: 0px; + margin-bottom: 0px; +} + +/* note stuff */ +.note { + position: relative; + vertical-align: baseline; +} + +.note-content { + display: none; + position: absolute; + border: 1px solid black; + word-wrap: break-word; + background-color: white; + font-size: 14px; + min-width: 30em; + left: 1em; + bottom: 0px; +} + +.foot-down a { + position: relative; + z-index: 1; + padding: 10px; + margin: -10px; +} diff --git a/src/template.html.erb b/src/template.html.erb new file mode 100644 index 0000000..d61054e --- /dev/null +++ b/src/template.html.erb @@ -0,0 +1,39 @@ + + <%= head_title %> + '> + + + +

<%= h1_title %>

+ +
+ + + +
+ + <%= content %> + + + -- cgit v1.2.3