diff --git a/app/assets/stylesheets/photos.css.sass b/app/assets/stylesheets/photos.css.sass index bfeb92c..71b4a3b 100644 --- a/app/assets/stylesheets/photos.css.sass +++ b/app/assets/stylesheets/photos.css.sass @@ -1,12 +1,15 @@ @import "includes/box_shadow" +* + box-sizing: border-box + html -webkit-text-size-adjust: 100% body background: #101010 color: white - font-family: proxima-nova, "Helvetica Neue", "Arial", sans-serif + font-family: freight-sans-pro, "Helvetica Neue", "Arial", sans-serif letter-spacing: 0.1em font-weight: 400 font-size: 100% @@ -73,8 +76,8 @@ footer position: relative display: block color: white - height: 138px - width: 138px + height: 140px + width: 140px .sg-7 height: 196px @@ -82,22 +85,22 @@ footer position: relative display: block color: white - height: 194px - width: 194px + height: 196px + width: 196px .sg-11 height: 308px a display: block - height: 306px - width: 306px + height: 308px + width: 308px .sg-17 height: 476px a display: block - width: 474px - height: 474px + width: 476px + height: 476px .about background-color: #99BF00 @@ -232,7 +235,7 @@ form textarea height: 150px width: 325px - font-family: proxima-nova, "Helvetica Neue", "Arial", sans-serif + font-family: freight-sans-pro, "Helvetica Neue", "Arial", sans-serif font-size: 1em padding: 5px color: #333 @@ -241,7 +244,7 @@ form box-shadow: 0 0 8px rgba(0, 0, 0, 0.1) input &[type='text'] - font-family: proxima-nova, "Helvetica Neue", "Arial", sans-serif + font-family: freight-sans-pro, "Helvetica Neue", "Arial", sans-serif font-size: 1em padding: 5px color: #333 @@ -283,10 +286,36 @@ input.error, textarea.error form input[type='submit'] -webkit-font-smoothing: antialiased background: #666 - font-family: proxima-nova, "Helvetica Neue", "Arial", sans-serif + font-family: freight-sans-pro, "Helvetica Neue", "Arial", sans-serif font-size: 1em padding: 6px 11px color: white border: 0 border-radius: 3px box-shadow: 0 0 8px rgba(0, 0, 0, 0.2), inset 0 0 8px rgba(255, 255, 255, 0.1) + +.error + position: relative + background-color: #333333 + padding: 20px + h1, p + text-align: center + h1 + font-size: 2em + font-weight: 600 + line-height: 1em + margin-top: 1em + margin-bottom: 1em + p.pointer + position: absolute + bottom: 60px + left: 20px + +.error-code + text-align: center + span + color: rgba(255, 255, 255, 0.2) + text-shadow: 0 0 15px rgba(0, 0, 0, 0.1) + font-size: 8em + font-weight: 300 + line-height: 0.8em diff --git a/app/views/errors/not_found.html.erb b/app/views/errors/not_found.html.erb index 3d0ed0e..9bd4d9d 100644 --- a/app/views/errors/not_found.html.erb +++ b/app/views/errors/not_found.html.erb @@ -1 +1,19 @@ -

404

+<% content_for :navigation do %> + <%= render 'shared/main_nav' %> +<% end %> + +
+

Page Not Found

+

Oops! It doesn't look like there's anything here.

+

Why not try one of these links here?

+
+ +
+ 4 +
+
+ 0 +
+
+ 4 +
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 5904050..2617ae4 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,10 +1,5 @@ <% content_for :navigation do %> -
- <%= link_to raw('about'), page_path(:about) %> -
-
- <%= link_to raw('portfolio'), :controller => 'categories' %> -
+ <%= render 'shared/main_nav' %> <% end %> <% if @photo %> diff --git a/app/views/shared/_flash_messages.html.haml b/app/views/shared/_flash_messages.html.haml index 133b4bc..669d69c 100644 --- a/app/views/shared/_flash_messages.html.haml +++ b/app/views/shared/_flash_messages.html.haml @@ -7,4 +7,3 @@ %p.flash.alert = flash[:alert] = link_to raw("×"), "#", :class => :close - \ No newline at end of file diff --git a/app/views/shared/_main_nav.html.erb b/app/views/shared/_main_nav.html.erb new file mode 100644 index 0000000..b2a52d8 --- /dev/null +++ b/app/views/shared/_main_nav.html.erb @@ -0,0 +1,6 @@ +
+ <%= link_to raw('about'), page_path(:about) %> +
+
+ <%= link_to raw('portfolio'), :controller => 'categories' %> +