Add log
dece8d45770e6b7f1f298bc12ab3d62b337cf603
1 parent
3b40a3fd
log/_article.html.erb
added
+89 -0
| 1 | + | <!doctype html> |
|
| 2 | + | <html lang="en"> |
|
| 3 | + | <head> |
|
| 4 | + | <title>cloudhead.io</title> |
|
| 5 | + | <style> |
|
| 6 | + | * { margin: 0; padding: 0 } |
|
| 7 | + | ||
| 8 | + | body > header { |
|
| 9 | + | font-family: courier, monospace; |
|
| 10 | + | float: right; |
|
| 11 | + | padding: 10px; |
|
| 12 | + | } |
|
| 13 | + | h1 { |
|
| 14 | + | font-size: 20px; |
|
| 15 | + | } |
|
| 16 | + | footer { |
|
| 17 | + | font-family: courier, monospace; |
|
| 18 | + | text-align: center; |
|
| 19 | + | margin: 0 auto; |
|
| 20 | + | padding: 30px; |
|
| 21 | + | font-size: 11px; |
|
| 22 | + | } |
|
| 23 | + | footer p { |
|
| 24 | + | margin: 5px 0; |
|
| 25 | + | } |
|
| 26 | + | ul li { |
|
| 27 | + | list-style-type: none; |
|
| 28 | + | } |
|
| 29 | + | a { |
|
| 30 | + | text-decoration: none; |
|
| 31 | + | } |
|
| 32 | + | ||
| 33 | + | .post { |
|
| 34 | + | padding-top: 90px; |
|
| 35 | + | } |
|
| 36 | + | .post .body, .post header { |
|
| 37 | + | font-family: "Times New Roman", Times, serif; |
|
| 38 | + | width: 640px; |
|
| 39 | + | margin: 0 auto; |
|
| 40 | + | text-align: left; |
|
| 41 | + | } |
|
| 42 | + | .post .body, .post code, .post h2, footer a { |
|
| 43 | + | font-size: 17px; |
|
| 44 | + | line-height: 1.3em; |
|
| 45 | + | } |
|
| 46 | + | .post .date { |
|
| 47 | + | display: block; |
|
| 48 | + | padding-top: 10px; |
|
| 49 | + | } |
|
| 50 | + | .post .date, .post blockquote { |
|
| 51 | + | color: #777; |
|
| 52 | + | } |
|
| 53 | + | .post blockquote { |
|
| 54 | + | font-style: italic; |
|
| 55 | + | } |
|
| 56 | + | .post pre { |
|
| 57 | + | margin-left: 10px; |
|
| 58 | + | } |
|
| 59 | + | .post code { |
|
| 60 | + | font-family: courier, monospace; |
|
| 61 | + | } |
|
| 62 | + | .post p { |
|
| 63 | + | margin: 1.5em 0; |
|
| 64 | + | } |
|
| 65 | + | .post h1 { |
|
| 66 | + | font-size: 19px; |
|
| 67 | + | } |
|
| 68 | + | </style> |
|
| 69 | + | </head> |
|
| 70 | + | <body> |
|
| 71 | + | <header> |
|
| 72 | + | <h1><a href="/">cloudhead.io</a></h1> |
|
| 73 | + | </header> |
|
| 74 | + | <article class="post"> |
|
| 75 | + | <header> |
|
| 76 | + | <h1><%= title %></h1> |
|
| 77 | + | <span class="date"><%= date %></span> |
|
| 78 | + | </header> |
|
| 79 | + | <section class="body"> |
|
| 80 | + | <%= body %> |
|
| 81 | + | </section> |
|
| 82 | + | </article> |
|
| 83 | + | <footer> |
|
| 84 | + | <a href="http://twitter.com/cloudhead">@cloudhead</a></br /> |
|
| 85 | + | <a href="mailto:hello@cloudhead.io">comments@cloudhead.io</a> |
|
| 86 | + | <p>© 2010-2013 Alexis Sellier</p> |
|
| 87 | + | </footer> |
|
| 88 | + | </body> |
|
| 89 | + | </html> |
log/index.html.erb
added
+87 -0
| 1 | + | <!doctype html> |
|
| 2 | + | <html lang="en"> |
|
| 3 | + | <head> |
|
| 4 | + | <link rel="stylesheet" type="text/css" href="style.css"> |
|
| 5 | + | <title>cloudhead</title> |
|
| 6 | + | <style> |
|
| 7 | + | * { |
|
| 8 | + | margin: 0; |
|
| 9 | + | padding: 0; |
|
| 10 | + | } |
|
| 11 | + | ||
| 12 | + | body { |
|
| 13 | + | font-family: courier, monospace; |
|
| 14 | + | padding: 10px; |
|
| 15 | + | font-size: 20px; |
|
| 16 | + | } |
|
| 17 | + | ||
| 18 | + | h1 { |
|
| 19 | + | font-size: 20px; |
|
| 20 | + | } |
|
| 21 | + | ||
| 22 | + | body > header { |
|
| 23 | + | float: right; |
|
| 24 | + | } |
|
| 25 | + | ||
| 26 | + | section > header { |
|
| 27 | + | margin-bottom: 10px; |
|
| 28 | + | } |
|
| 29 | + | ||
| 30 | + | section > header > h2 { |
|
| 31 | + | font-size: 20px; |
|
| 32 | + | } |
|
| 33 | + | ||
| 34 | + | footer { |
|
| 35 | + | text-align: right; |
|
| 36 | + | position: fixed; |
|
| 37 | + | bottom: 10px; |
|
| 38 | + | right: 10px; |
|
| 39 | + | font-size: 11px; |
|
| 40 | + | } |
|
| 41 | + | ||
| 42 | + | footer a { |
|
| 43 | + | font-size: 17px; |
|
| 44 | + | } |
|
| 45 | + | ||
| 46 | + | li { |
|
| 47 | + | margin: 5px 0; |
|
| 48 | + | } |
|
| 49 | + | ||
| 50 | + | li .date { |
|
| 51 | + | float: right; |
|
| 52 | + | color: #999; |
|
| 53 | + | } |
|
| 54 | + | ||
| 55 | + | ul li { |
|
| 56 | + | list-style-type: none; |
|
| 57 | + | } |
|
| 58 | + | ||
| 59 | + | section p { |
|
| 60 | + | margin: 30px 0; |
|
| 61 | + | } |
|
| 62 | + | ||
| 63 | + | a { |
|
| 64 | + | text-decoration: none; |
|
| 65 | + | } |
|
| 66 | + | </style> |
|
| 67 | + | </head> |
|
| 68 | + | <body> |
|
| 69 | + | <header> |
|
| 70 | + | <h1><a href="/">cloudhead.io</a>/log</h1> |
|
| 71 | + | </header> |
|
| 72 | + | <section> |
|
| 73 | + | <header> |
|
| 74 | + | <h2>articles</h2> |
|
| 75 | + | </header> |
|
| 76 | + | <ul> |
|
| 77 | + | <% articles.each do |a| %> |
|
| 78 | + | <li><a href="<%= a.permalink %>"><%= a.title %></a><span class="date"><%= a.date %></li> |
|
| 79 | + | <% end %> |
|
| 80 | + | </ul> |
|
| 81 | + | </section> |
|
| 82 | + | <footer> |
|
| 83 | + | <a href="mailto:hello@cloudhead.io">comments@cloudhead.io</a> |
|
| 84 | + | <p>© 2010-2013 Alexis Sellier</p> |
|
| 85 | + | </footer> |
|
| 86 | + | </body> |
|
| 87 | + | </html> |