From 4cd1a583502efede1ee2db22c2adc92b4c756146 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Mon, 12 Apr 2010 23:32:38 +0100 Subject: [PATCH] Minor layout/style changes --- app.rb | 31 ++++++++++++++++++++++--------- public/favicon.ico | 0 public/od_80x15_blue.png | Bin 0 -> 446 bytes public/style.css | 10 ++++++++++ 4 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 public/favicon.ico create mode 100644 public/od_80x15_blue.png diff --git a/app.rb b/app.rb index 6721fda..c9c8c27 100644 --- a/app.rb +++ b/app.rb @@ -29,26 +29,39 @@ __END__ %title Find My Candidates %link{ :rel => 'stylesheet', :type => 'text/css', :href => 'style.css' } %body - #main + #header %h1 Find My Candidates + #main = yield #footer %hr/ - %p Design by Adrian Short + %p + Made by + %a{ :href => "http://adrianshort.co.uk/" } Adrian Short + with + %a{ :href => "http://www.ordnancesurvey.co.uk/oswebsite/products/code-point-open/" } Ordnance Survey + and + %a{ :href => "http://www.sutton.gov.uk/" } Sutton Council + data, + %a{ :href => "http://uk-postcodes.com" } UK Postcodes API + and + %a{ :href => "http://sinatrarb.com" } Sinatra. + %p + Hosted by + %a{ :href => "http://heroku.com" } Heroku. + Source at + %a{ :href => "http://github.com/adrianshort" } Github. + @@home %form{ :method => 'get', :action => '/wards' } - %label{ :for => "postcode" } - Postcode - %input{ :type => 'text', :name => 'postcode', :size => 10 } + %label{ :for => "postcode" } Postcode + %input{ :type => 'text', :name => 'postcode', :size => 8, :maxlength => 8 } %input{ :type => 'submit', :value => "Find" } - for ward in @wards %p= ward @@wards -%h2 - #{@ward_name} Ward in #{@district_name} -%p - Your postcode is #{@postcode} +%h2 #{@postcode} is in #{@ward_name} Ward in #{@district_name} \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/od_80x15_blue.png b/public/od_80x15_blue.png new file mode 100644 index 0000000000000000000000000000000000000000..6314d594007363e3ff8d2f8e2c2f288bef6fdb8c GIT binary patch literal 446 zcmV;v0YUzWP)| zQsy-Lnl?ZfhPvyxNgT&11k{D?COXqA5&ISZhUPkMo<=}LYFoH$tNXR#1 zDDo_X069zvCS43e0Ef@}blL`QlP&;@<(kLw`_B6^Us*%DB?w+j0G6wahtYhyHu6k_ z5LY`M4jgE^39)Yx`_@4b$KsJ!#6?9PIZVm2(+B)wxyE)Ap1coU$M-uqZ8zE01+ZG@ z^qs;md&lv#CjcG$+_NONIS>ms)!X&JyrgaaG}} z%%