Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style the footer to match the new header #18

Merged
merged 1 commit into from
Feb 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 36 additions & 11 deletions app/assets/stylesheets/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
.main-footer-information {
font-size: modular-scale(-1);
color: lighten($dark-grey, 25);
.main-footer-wrapper,
.footer-sitemap-wrapper {
color: white;
}

.main-footer,
.footer-sitemap {
@include margin(null auto);
@include padding(null 1rem);
max-width: $width-max;

a {
color: lighten($dark-grey, 40);
color: inherit;
text-decoration: underline;
}
}

h3 {
color: lighten($dark-grey, 45);
font-size: modular-scale(0);
text-transform: uppercase;
font-weight: $font-weight-medium;
letter-spacing: 0.05em;
}
.main-footer-wrapper {
margin-top: 3rem;
padding: 3rem 0;
background: $color-porkchop-blue;
box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.1);

p {
margin-bottom: 0;
}
}

.footer-sitemap-wrapper {
padding: 0.5rem 0;
background: $color-porkchop-red;
}

.footer-sitemap {
list-style: none;

li {
@include margin(0.5rem null);
display: inline-block;
font-size: 18px;

&:not(:last-child) {
margin-right: 1rem;
}
}
}
4 changes: 3 additions & 1 deletion app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
@import "modular-scale";
@import "bourbon";

@import "palette";
@import "setup/layout";
@import "setup/palette";

@import "animations";
@import "base";
@import "tables";
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/setup/_layout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$width-max: 1024px;
13 changes: 10 additions & 3 deletions app/views/layouts/_footer.html.haml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
%footer.main-footer.porkbox-dark
.main-footer-information
.main-footer-wrapper
%footer.main-footer
%h3 About PorkChop Club
%p
PorkChop Club began as a pure JavaScript scoreboard for helping us keep track
of service in our table tennis matches at <a href="http://freerunningtech.com">FreeRunning Technologies</a>.
of service in our table tennis matches at <a href="https://stembolt.com">Stembolt</a>.
Named for the <a href="http://en.wikipedia.org/wiki/Table_tennis#Chop">chop</a>
shot and its use of <a href="https://github.com/baconjs/bacon.js/">Bacon.js</a>,
it quickly evolved into a full fledged Rails application that tracks our
game records, Elo ratings, and achievements.

.footer-sitemap-wrapper
%ul.footer-sitemap
- if write_access?
%li= link_to "Match Controls", edit_scoreboard_path
%li= link_to "Players", players_path
%li= link_to "Match History", matches_path
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
.outer-container
= yield

= render "layouts/footer"
= render "layouts/footer"