Skip to content

Commit

Permalink
added footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Maggie Benson authored and Maggie Benson committed Mar 14, 2016
1 parent bcd5dbc commit 6a0d76f
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 11 deletions.
1 change: 1 addition & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ tdj:jqueryinputfitjs
reactive-var
jesperwe:bootstrap-select
fortawesome:fontawesome
momentjs:moment
1 change: 1 addition & 0 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
momentjs:[email protected]
monbro:[email protected]
[email protected]
[email protected]
Expand Down
11 changes: 1 addition & 10 deletions client/helpers/layout.js
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
Template.layout.helpers({
notHome: function() {
return Router.current().route.getName() !== 'home';
},
isActive: function(template) {
var currentRoute = Router.current();
return currentRoute &&
template === currentRoute.lookupTemplate() ? 'active' : '';
}
});

3 changes: 3 additions & 0 deletions client/helpers/registerHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ Template.registerHelper("isDeci", function(base) {
return "deci";
}
});
Template.registerHelper("getYear", function() {
return moment().format("YYYY");
})
18 changes: 18 additions & 0 deletions client/stylesheets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@

html {
overflow-y: scroll;
min-height: 100%;
}
body {
font-family: 'Open Sans', 'Helvetica', sans-serif;
font-size: 16px;
font-weight: 400;
padding-top: 70px; /* body offset for navbar */
margin-bottom: 60px;
}
h1 {
font-size: 4em;
Expand All @@ -26,6 +28,22 @@ h4 {
font-size: 1.5em;
}

.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 45px;
background-color: #f5f5f5;
padding-top: 15px;
font-size: 0.8em;
}
.github-link {
color: #777;
}
.github-link:hover {
color: #ff6699;
}


/**************************************************
Expand Down
12 changes: 12 additions & 0 deletions client/templates/application/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<template name="footer">
<footer class="footer">
<div class="container">
<p class="text-muted">
<a href="https://github.com/meetmagdalene" target="_blank" title="Made with love" class="github-link">Maggie Benson</a> <i class="fa fa-copyright"></i> {{getYear}}
<span class="pull-right">
And now you're a bit wiser.
</span>
</p>
</div>
</footer>
</template>
3 changes: 2 additions & 1 deletion client/templates/application/layout.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<template name='layout'>
<div class='container'>
{{> navbar}}
{{> navbar}}
{{#if notHome}} {{> breadcrumbs}} {{/if}}
<div id='main'>
{{> yield}}
</div>
</div>
{{> footer}}
</template>

0 comments on commit 6a0d76f

Please sign in to comment.