Skip to content

Commit

Permalink
standard footer now only appears on the homepage (it breaks the game …
Browse files Browse the repository at this point in the history
…on the other pages)
  • Loading branch information
wrightmartin authored and tmtmtmtm committed Jun 21, 2016
1 parent 5e99830 commit 891f580
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 64 deletions.
2 changes: 1 addition & 1 deletion views/about.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<p>Frustratingly, it’s difficult to provide an answer for these questions, because the objective data just isn’t there.</p>

<p>The closest thing is data from the <a href="http://www.ipu.org/iss-e/women.htm">Inter-Parliamentary Union</a>, but that can't be used for this kind of in-depth anaylsis. They simply provide a total for each legislature, rather than data on individual politicians — plus the figures are self-reported, not always up-to-date, and only cover member countries.</p>
<p>The closest thing is data from the <a href="http://www.ipu.org/iss-e/women.htm">Inter-Parliamentary Union</a>, but that can't be used for this kind of in-depth anaylsis. They simply provide a total for each legislature, rather than data on individual politicians — plus the figures are self-reported, not always up-to-date, and only cover member countries.</p>

<p>For advanced insights, you need rich data that can be sliced in multiple ways. So, alongside politicians' gender, you might also compare by age, or party, or voting records, or by many other exciting factors.</p>

Expand Down
63 changes: 63 additions & 0 deletions views/footer.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<div class="mysoc-footer" role="contentinfo">
<div class="container">
<div class="row">

<div class="col-sm-12">
<h2 class="mysoc-footer__site-name">Gender Balance</h2>
<div class="mysoc-footer__site-description">
<p>Crowdsourcing a single, reliable source for gender data of politicians in every country in the world, and for the world as a whole</p>
</div>
</div>

</div>

<div class="row">

<div class="col-sm-6">
<nav class="mysoc-footer__links">
<ul>
<li role="presentation"><a href="/about">About</a></li>
</ul>
<ul>
<li role="presentation"><a href="http://everypolitician.org/">EveryPolitician</a></li>
</ul>
</nav>
</div>

<div class="col-sm-6">
<div class="mysoc-footer__donate">
<p>Your donations keep this site and others like it running</p>
<a href="https://www.mysociety.org/donate" class="mysoc-footer__donate__button">Donate now</a>
</div>
</div>

</div>
<hr class="mysoc-footer__divider" role="presentation">
<div class="row">

<div class="col-sm-5">
<div class="mysoc-footer__orgs">
<p class="mysoc-footer__org">
Built by
<a href="https://www.mysociety.org" class="mysoc-footer__org__logo mysoc-footer__org__logo--mysociety">mySociety</a>
</p>
</div>
</div>

<div class="col-sm-4">
<div class="mysoc-footer__legal">
<p>mySociety Limited is a project of UK Citizens Online Democracy, a registered charity in England and Wales. For full details visit <a href="https://www.mysociety.org">mysociety.org</a>.</p>
</div>
</div>

<div class="col-sm-3">
<ul class="mysoc-footer__badges">
<li role="presentation"><a href="https://github.com/everypolitician/gender-balance" class="mysoc-footer__badge mysoc-footer__badge--github">Github</a></li>
<li role="presentation"><a href="https://twitter.com/mysociety" class="mysoc-footer__badge mysoc-footer__badge--twitter">Twitter</a></li>
<li role="presentation"><a href="https://facebook.com/mysociety" class="mysoc-footer__badge mysoc-footer__badge--facebook">Facebook</a></li>
</ul>
</div>

</div>
</div>
</div>
2 changes: 2 additions & 0 deletions views/home_anonymous.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@
<p class="home-attribution">
Header image: <a href="https://www.flickr.com/photos/uk_parliament/14599371450/">Mark Twain visits Parliament 1907</a>, CC-BY-NC UK Parliament
</p>

<%= erb :footer %>
2 changes: 2 additions & 0 deletions views/home_loggedin.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@
<p class="home-attribution">
Header image: <a href="https://www.flickr.com/photos/uk_parliament/14599371450/">Mark Twain visits Parliament 1907</a>, CC-BY-NC UK Parliament
</p>

<%= erb :footer %>
63 changes: 0 additions & 63 deletions views/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,68 +56,5 @@
<%= yield %>
</div>
</div>
<div class="mysoc-footer" role="contentinfo">
<div class="container">
<div class="row">

<div class="col-sm-12">
<h2 class="mysoc-footer__site-name">Gender Balance</h2>
<div class="mysoc-footer__site-description">
<p>Crowdsourcing a single, reliable source for gender data of politicians in every country in the world, and for the world as a whole</p>
</div>
</div>

</div>

<div class="row">

<div class="col-sm-6">
<nav class="mysoc-footer__links">
<ul>
<li role="presentation"><a href="https://www.mysociety.org/democracy/everypolitician/case-study-gender-balance/">About</a></li>
</ul>
<ul>
<li role="presentation"><a href="http://everypolitician.org/">EveryPolitician</a></li>
</ul>
</nav>
</div>

<div class="col-sm-6">
<div class="mysoc-footer__donate">
<p>Your donations keep this site and others like it running</p>
<a href="https://www.mysociety.org/donate" class="mysoc-footer__donate__button">Donate now</a>
</div>
</div>

</div>
<hr class="mysoc-footer__divider" role="presentation">
<div class="row">

<div class="col-sm-5">
<div class="mysoc-footer__orgs">
<p class="mysoc-footer__org">
Built by
<a href="https://www.mysociety.org" class="mysoc-footer__org__logo mysoc-footer__org__logo--mysociety">mySociety</a>
</p>
</div>
</div>

<div class="col-sm-4">
<div class="mysoc-footer__legal">
<p>mySociety Limited is a project of UK Citizens Online Democracy, a registered charity in England and Wales. For full details visit <a href="https://www.mysociety.org">mysociety.org</a>.</p>
</div>
</div>

<div class="col-sm-3">
<ul class="mysoc-footer__badges">
<li role="presentation"><a href="#" class="mysoc-footer__badge mysoc-footer__badge--github">Github</a></li>
<li role="presentation"><a href="#" class="mysoc-footer__badge mysoc-footer__badge--twitter">Twitter</a></li>
<li role="presentation"><a href="#" class="mysoc-footer__badge mysoc-footer__badge--facebook">Facebook</a></li>
</ul>
</div>

</div>
</div>
</div>
</body>
</html>
4 changes: 4 additions & 0 deletions views/sass/_mysociety-footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ $grid-breakpoint-sm: 3000px;
}

.mysoc-footer {
text-align: left;
.container {
margin-right: auto;
margin-left: auto;
Expand Down Expand Up @@ -179,6 +180,9 @@ $grid-breakpoint-sm: 3000px;
@media (min-width: $mysoc-footer-breakpoint-sm){
margin-top: 0;
}
p {
margin-top: 0;
}
}

.mysoc-footer__donate__button {
Expand Down

0 comments on commit 891f580

Please sign in to comment.