@@ -3,12 +3,18 @@ body | |||||
background-color: #fff; | background-color: #fff; | ||||
color: #555; | color: #555; | ||||
font-family: Helvetica, Arial, sans-serif; | font-family: Helvetica, Arial, sans-serif; | ||||
font-size: 100%; | |||||
width: 760px; | width: 760px; | ||||
margin: 20px auto; | |||||
margin: 60px auto; | |||||
line-height: 1.5em; | line-height: 1.5em; | ||||
} | } | ||||
p | |||||
{ | |||||
font-size: 110%; | |||||
} | |||||
input | input | ||||
{ | { | ||||
font-size: 130%; | font-size: 130%; | ||||
@@ -29,13 +35,15 @@ input.postcode | |||||
{ | { | ||||
font-size: 100%; | font-size: 100%; | ||||
background-color: #fff; | background-color: #fff; | ||||
text-align: right; | |||||
text-align: left; | |||||
margin: 40px 0; | |||||
} | } | ||||
.credit | .credit | ||||
{ | { | ||||
text-align: right; | |||||
text-align: left; | |||||
font-size: 80%; | font-size: 80%; | ||||
display: none; | |||||
} | } | ||||
a, a:visited | a, a:visited | ||||
@@ -81,7 +89,7 @@ a.date | |||||
#header | #header | ||||
{ | { | ||||
margin-bottom: 60px; | |||||
margin-bottom: 0px; | |||||
} | } | ||||
h1 | h1 | ||||
@@ -112,9 +120,4 @@ h1 | |||||
strong | strong | ||||
{ | { | ||||
color: #000; | color: #000; | ||||
} | |||||
.border_right | |||||
{ | |||||
border-right: 0px solid #ccc; | |||||
} | } |
@@ -11,18 +11,24 @@ | |||||
%a{ :href => "http://twitter.com/adrianshort" }<follow me on Twitter | %a{ :href => "http://twitter.com/adrianshort" }<follow me on Twitter | ||||
\. | \. | ||||
%p.highlight This site is independent of Sutton Council, all political parties and candidates. It exists only to provide information about the voting system and local candidates. | |||||
%p.highlight This site is independent of Sutton Council, all political parties and candidates. | |||||
%p | %p | ||||
The council candidates' data comes from Sutton Council who also provided information on council wards and parliamentary constituencies. | The council candidates' data comes from Sutton Council who also provided information on council wards and parliamentary constituencies. | ||||
%p | |||||
This site is written in Ruby using the Sinatra framework. | |||||
%p | %p | ||||
The code for this website is open source and managed on Github. It is hosted by Heroku. | The code for this website is open source and managed on Github. It is hosted by Heroku. | ||||
%p | %p | ||||
The postcode lookup is done by UK Postcodes using open data from Ordnance Survey Code-Point Open enhanced by MySociety. I use the Ruby Pat gem to access the postcodes API. | |||||
The postcode lookup is done by UK Postcodes using open data from Ordnance Survey enhanced by MySociety. I use the Ruby Pat gem to access the postcodes API. | |||||
%p | %p | ||||
This site is written in Ruby using the Sinatra framework. The HTML templates use Haml. The database is SQLite for development and PostgreSQL for production, abstracted through DataMapper. Source control and deployment is done with Git. | |||||
The HTML templates use Haml. The database is SQLite for development and PostgreSQL for production, abstracted through DataMapper. | |||||
%p | |||||
Source control and deployment is done with Git. | |||||
-# | -# | ||||
@@ -1,8 +1,10 @@ | |||||
.grid_9 | .grid_9 | ||||
%h1 | %h1 | ||||
Vote for your MP and councillors | |||||
Vote for your MP and | |||||
%br | %br | ||||
in Sutton on 6 May | |||||
councillors in Sutton | |||||
%br | |||||
on 6 May | |||||
%p | %p | ||||
On 6 May 2010 you can vote to | On 6 May 2010 you can vote to | ||||
@@ -17,18 +17,17 @@ | |||||
= yield | = yield | ||||
.clear | .clear | ||||
#footer | #footer | ||||
.grid_9 | |||||
| |||||
.grid_3 | |||||
%p | |||||
%a{ :href => '/' } Home | |||||
%p | |||||
%a{ :href => '/how-the-council-election-works' } How the council election works | |||||
-# | |||||
.grid_12 | |||||
%p | %p | ||||
%a{ :href => '/voting' } How to vote | |||||
%p | |||||
%a{ :href => '/about' } About this website | |||||
%p.credit | |||||
Design | |||||
%a{ :href => "http://adrianshort.co.uk/" } Adrian Short | |||||
%a{ :href => '/' } Home | |||||
%p | |||||
%a{ :href => '/how-the-council-election-works' } How the council election works | |||||
-# | |||||
%p | |||||
%a{ :href => '/voting' } How to vote | |||||
%p | |||||
%a{ :href => '/about' } About this website | |||||
%p.credit | |||||
Design | |||||
%a{ :href => "http://adrianshort.co.uk/" } Adrian Short | |||||
.clear |
@@ -4,7 +4,7 @@ | |||||
If you live in | If you live in | ||||
= @postcode | = @postcode | ||||
.grid_6.border_right | |||||
.grid_6 | |||||
%h1 | %h1 | ||||
= @ward.constituency.name | = @ward.constituency.name | ||||
member of parliament | member of parliament | ||||
@@ -42,7 +42,7 @@ | |||||
- for candidate in @parly_candidates | - for candidate in @parly_candidates | ||||
%p | %p | ||||
%span.candidate_name | %span.candidate_name | ||||
= candidate.forenames | |||||
= candidate.forenames.split(' ')[0] | |||||
= candidate.surname | = candidate.surname | ||||
%br | %br | ||||
%span.candidate_party | %span.candidate_party | ||||
@@ -60,7 +60,7 @@ | |||||
- for candidate in @council_candidates | - for candidate in @council_candidates | ||||
%p | %p | ||||
%span.candidate_name | %span.candidate_name | ||||
= candidate.forenames | |||||
= candidate.forenames.split(' ')[0] | |||||
= candidate.surname | = candidate.surname | ||||
%br | %br | ||||
%span.candidate_party | %span.candidate_party |