Skip to content

Commit

Permalink
added top cities again; styled top-cities
Browse files Browse the repository at this point in the history
  • Loading branch information
tkwidmer committed Mar 2, 2015
1 parent eedbe07 commit 952a02e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ h1 {

footer {
text-align: center;
text-size: 15px;
font-size: 8pt;
color: #41326b;
background-color: #ffffff;
}
Expand Down
32 changes: 30 additions & 2 deletions app/assets/stylesheets/splash.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
footer {
color: white;
background-color: transparent;
position: fixed;
bottom: 0px;
left: 0px;
right: 0px;
Expand All @@ -38,6 +37,18 @@
.splash-content {
padding: 75px 10px 0px 10px;

.search-bar {
height: 70px;
font-size: 18pt;
}

.input-group-btn > .btn {
height: 70px;
&:hover {
border-color: $dark-purple;
}
}

.splash-text-container {
@include border-radius(5px);
color: white;
Expand All @@ -47,7 +58,7 @@

h1 {
font-weight: bold;
font-size: 52pt;
font-size: 34pt;
padding-bottom: 20px
}

Expand All @@ -56,6 +67,10 @@
padding-top: 20px
}

.splash-add-restroom-container {
padding-bottom: 40px
}

.splash-add-restroom-btn {
margin: 0 auto;
display: block;
Expand All @@ -69,4 +84,17 @@
margin-left: 20px
}
}
}

.top-cities-container {
padding: 5px;
color: white;
background: rgb(0, 0, 0); /* fallback color */
background: rgba(0, 0, 0, 0.7);
p {
margin: 0
}
a {
color: white;
}
}
11 changes: 6 additions & 5 deletions app/views/welcome/_topcities.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#top-cities-content
.top-cities-container
%p
Popular Cities
%ul
%strong
Popular Cities:
- @cities.each do |city_and_state|
%li
= link_to city_and_state.join(', '), restrooms_path(search: city_and_state)
= link_to city_and_state.join(', '), restrooms_path(search: city_and_state)
- unless city_and_state == @cities.last
|
7 changes: 4 additions & 3 deletions app/views/welcome/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
.splash-content
.row
.col-xs-12.col-sm-8.col-sm-offset-2
.col-xs-10.col-xs-offset-1.col-sm-6.col-sm-offset-3
.splash-text-container.centered-text
%h3.headroom
Sometimes life is tough...
%h1.centered-text
Find Your Refuge
Find Refuge

.row.more-headroom
.col-xs-12.col-sm-8.col-sm-offset-2
= render partial: "layouts/search", locals: {splash: true}
= render partial: "welcome/topcities"

.row.more-headroom
.row.more-headroom.splash-add-restroom-container
.col-xs-12.col-sm-6.col-sm-offset-3
= button_to new_restroom_path, method: :get, class: "btn btn-lg btn-purple splash-add-restroom-btn" do
Add A Restroom
Expand Down

0 comments on commit 952a02e

Please sign in to comment.