aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Mathis <brandon@imathis.com>2009-10-21 11:39:53 -0500
committerB Mathis <brandon@imathis.com>2009-10-21 11:39:53 -0500
commit77bb406a9344eb669bf33b951e6156de62094b58 (patch)
treecd294ce3dcbc212e4741e5e7c87ad98688c7172b
parentf17271f6e2a237ab2aa80088caf872933cea3ffb (diff)
downloadmy_new_personal_website-77bb406a9344eb669bf33b951e6156de62094b58.tar.xz
my_new_personal_website-77bb406a9344eb669bf33b951e6156de62094b58.zip
improved layout styling, added about page, added archive page link to footer
-rw-r--r--source/_layouts/default.haml10
-rw-r--r--source/about.haml12
-rw-r--r--source/images/rss.pngbin0 -> 6905 bytes
-rw-r--r--source/index.haml7
-rw-r--r--source/stylesheets/partials/main/_layout.sass95
-rw-r--r--source/stylesheets/partials/main/_theme.sass21
6 files changed, 103 insertions, 42 deletions
diff --git a/source/_layouts/default.haml b/source/_layouts/default.haml
index 77bd29e7..ceadff3b 100644
--- a/source/_layouts/default.haml
+++ b/source/_layouts/default.haml
@@ -17,10 +17,14 @@ root_url:
#header
.page_width
%a.title(href="/")=page.blog_title
- %ul#header_nav.nav
+ #nav
+ .page_width
+ %ul
%li.alpha
- %a(href="#{page.root_url}/archives") Archives
+ %a(href="#{page.root_url}/") Blog
%li.omega
+ %a(href="#{page.root_url}/about") About
+ %li.subscribe
%a(href="#{page.root_url}/atom.xml") Subscribe
#page
.page_width
@@ -35,4 +39,4 @@ root_url:
#footer
.page_width
= "Copyright &copy; #{Time.now.strftime('%Y')} - #{page.blog_title} | "
- %span.credit Powered by <a href="http://github.com/henrik/jekyll">Jekyll</a> & <a href="http://github.com/imathis/octopress/">Octopress</a> \ No newline at end of file
+ %span.credit Powered by <a href="http://github.com/imathis/octopress/">Octopress</a> \ No newline at end of file
diff --git a/source/about.haml b/source/about.haml
new file mode 100644
index 00000000..bc272ebb
--- /dev/null
+++ b/source/about.haml
@@ -0,0 +1,12 @@
+---
+layout: default
+title: About Me
+---
+:markdown
+ # About Me
+
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum.
+
+ Ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt.
+
+ Dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent. \ No newline at end of file
diff --git a/source/images/rss.png b/source/images/rss.png
new file mode 100644
index 00000000..723559bc
--- /dev/null
+++ b/source/images/rss.png
Binary files differ
diff --git a/source/index.haml b/source/index.haml
index 12afdcfd..a244f7e0 100644
--- a/source/index.haml
+++ b/source/index.haml
@@ -4,5 +4,8 @@ title: Blog
---
.blog
- site.posts.sort_by(&:date).reverse[0..9].each_with_index do |post,index|
- %h2= link_to(post.title, post.url, {:class=>"title"})
- .article= post.content \ No newline at end of file
+ .article
+ %h2= link_to(post.title, post.url, {:class=>"title"})
+ = post.content
+ .footer
+ %a(href="/archives.html" title="archives") &laquo; Blog Archives \ No newline at end of file
diff --git a/source/stylesheets/partials/main/_layout.sass b/source/stylesheets/partials/main/_layout.sass
index 0b6bf275..3fbb3f96 100644
--- a/source/stylesheets/partials/main/_layout.sass
+++ b/source/stylesheets/partials/main/_layout.sass
@@ -1,4 +1,5 @@
!page_width = 560px
+!sidebar_width = 0
!pad = 15px
!default_border_radius = 4px
@@ -8,23 +9,63 @@ html body
a
color= !link_color
+#footer a
+ color= #ddd
+ &:hover
+ color = #fff
#header
background-color= !header_bg
border-bottom= "1px solid" !header_border
- padding: 20px 0
+ padding: 30px 0
a.title
- font-size= !h3
+ font-size= !h1
+heading-font
display: inline-block
- color= !header_nav
+ color= !title_color
text-decoration: none
- #header_nav
- float: right
+
+#nav
+ +clearfix
+ position: relative
+ z-index: 1
+ padding: 6px 0
+ background:
+ color= !nav_bg
+ image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#ddd), color-stop(0.3, #f4f4f4))
+ image: -moz-linear-gradient(left top, left bottom, from(#fcfcfc), to(#ddd), color-stop(0.3, #f4f4f4))
+ border:
+ top= "1px solid" !nav_border_top
+ bottom= "1px solid" !nav_border_bottom
+ ul
+ position: relative
+horizontal-list
- a
- color: #ccc
- li.alpha a
- color: #f2f2f2
+ margin: 0 auto
+ overflow: visible
+ li
+ padding: 0 15px
+ border-left: 1px solid #d3d3d3
+ border-right: 1px solid #f4f4f4
+ &.alpha
+ border-left: none
+ padding-left: 0
+ &.omega
+ border-right: 0
+ &.subscribe
+ position: absolute
+ right: 0
+ //left= !page_width - 25px
+ border: none
+ a
+ display: inline-block
+ padding-left: 28px
+ background: url("/images/rss.png") left top no-repeat
+ a
+ display: inline-block
+ color= !nav_color
+ line-height: 150%
+ text-decoration: none
+ &:hover
+ color= !nav_color_hover
.page_width
width= !page_width
@@ -35,31 +76,27 @@ html body
#page
background-color= !page_bg
- border-top= "1px solid" !page_border
- padding: 25px 0
.page_width
- background-color= !page_bg
+ padding:
+ top: 25px
+ bottom: 25px
+ background-color= !content_bg
+ +box-shadow(#ccc)
+ .article
+ padding= !base_font_size * 1.5 0 !base_font_size * 1.5
+ border-bottom= "1px solid" !article_border
+ &:first-child
+ padding-top: 0
+ .blog .footer
+ padding-top= !base_font_size
-#subnav
- +clearfix
- margin: -25px 0 25px
- padding: 10px 0
- background-color= !subnav_bg
- border-bottom= "1px solid" !subnav_border
- font-size: 85%
- #account
- float: right
- a
- color= !subnav_logout_color
- display: inline-block
- padding-left: 10px
- margin-left: 8px
- border-left= "1px solid" #aaa
#footer
+ position: relative
+ z-index: 2
font-size= !base_font_size_small
clear: both
- padding: 15px 0
+ padding= !base_font_size * 1.5 0
color= !footer_color
+h-linear-gradient(darken(!body_bg, 25), !body_bg)
- border-top= "4px solid" !footer_bg \ No newline at end of file
+ border-top= "14px solid" !footer_bg \ No newline at end of file
diff --git a/source/stylesheets/partials/main/_theme.sass b/source/stylesheets/partials/main/_theme.sass
index 6d70f792..2feff314 100644
--- a/source/stylesheets/partials/main/_theme.sass
+++ b/source/stylesheets/partials/main/_theme.sass
@@ -1,19 +1,24 @@
// Main Section Colors
!body_color = #333
!body_bg = #323232
-!test = darken(!body_bg, 20)
+
!header_bg = #323232
!header_border = #181818
-!header_nav = #ddd
-!header_nav_hover = #fff
+!title_color = #ddd
+
+!nav_color = #555
+!nav_color_hover = #000
+!nav_bg = #e8e8e8
+!nav_border_top = #fff
+!nav_border_bottom = #aaa
+
!page_border = #fff
-!page_bg = #ececec
+!page_bg = #f0f0f0
+!article_border = #eee
+!content_bg = #fff
+
!footer_color = #999
!footer_bg = #444
-!subnav_bg = #fff
-!subnav_border = #ccc
-!subnav_link_color = #333
-!subnav_logout_color = #777
// Link Colors
!link_color = #165B94