Skip to content
Browse files

Prettied up the contact page and got not found page up and functional.

Next up: functional contact form!
  • Loading branch information...
1 parent f54e6bd commit 6199104fcd93dabd6870bb792209a9924fce0eb2 @chadoh committed
Showing with 32 additions and 17 deletions.
  1. +4 −5 TODO
  2. +9 −1 controls.rb
  3. +0 −2 views/contact.haml
  4. +2 −0 views/not_found.haml
  5. +17 −9 views/styles.sass
View
9 TODO
@@ -1,9 +1,8 @@
-6 April
- Get it looking like blogger
- Get it on GitHub
+make contact form functional
-7 April
- Link to blogger profile for blog page
+Look into Heroku
+
+Link to blogger profile for blog page
Later
Use blogger data api to reproduce blogger content natively
View
10 controls.rb
@@ -24,6 +24,14 @@ def current_tab_if(route)
begin
haml params[:page].to_sym
rescue Errno::ENOENT
- haml :home
+ haml :not_found
end
end
+
+not_found do
+ haml :not_found
+end
+
+post "/contact/?" do
+ #figure this out (need interwebs for that...)
+end
View
2 views/contact.haml
@@ -2,9 +2,7 @@
%form{ :name => "contact_me", :id => "contact_me", :action => "/contact", :method => "post" }
%label{ :for => "name" } Your name
%input{ :name => "name", :id => "name", :type => "text" }
- %br
%label{ :for => "email" } Your email address
%input{ :name => "email", :id => "email", :type => "text" }
- %br
%label{ :for => "message" } Your message to me
%textarea{ :name => "message", :id => "message" }
View
2 views/not_found.haml
@@ -0,0 +1,2 @@
+%h1 Not found!
+%p Sorry, you've hit a nonexistent page. Try clicking on the tabs up there ^^.
View
26 views/styles.sass
@@ -100,12 +100,11 @@ div
margin: 5px 5px 0px
padding: 20px 20px 0.25em
text-transform: uppercase
-
-h1
- display: block
- font-size: 2em
- font-weight: bold
- margin: 0.67em 0px
+ h1
+ display: block
+ font-size: 2em
+ font-weight: bold
+ margin: 0.67em 0px
p
display: block
@@ -147,6 +146,16 @@ h2
+sans-heading-font
letter-spacing: 0.2em
margin: 1.5em 0px 0.75em
+h1
+ display: block
+ +sans-heading-font
+ font-size: 1.5em
+ color: #777
+ margin: 0.67em 0px
+
+a
+ text-decoration: none
+ color = #58A
.post-title
color: #c60
@@ -262,9 +271,6 @@ dt
/*
typography
- a
- text-decoration: none
- color = #58A
h2
padding: 0 0 10px 0
@@ -285,5 +291,7 @@ input[type="text"], textarea
font-size: 18px
padding: 7px
display: block
+ font: large Georgia, serif
+ margin: 2px 0 37px
textarea
height: 150px

0 comments on commit 6199104

Please sign in to comment.
Something went wrong with that request. Please try again.