Skip to content

Commit 04e6a01

Browse files
committed
feature(footer) - Added sticky footer
1 parent 175e4fe commit 04e6a01

File tree

5 files changed

+30
-12
lines changed

5 files changed

+30
-12
lines changed

_includes/component/footer.html

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
<footer>
2-
Site by Alex
3-
</footer>
1+
<footer class="navbar-fixed-bottom page-footer brum--bg--navy-blue--tinted brum--fg--white pt-4 pb-4">
2+
<div class="container">
3+
<div class="row">
4+
<div class="col-md-6">
5+
© BrumPHP 2018
6+
</div>
7+
</div>
8+
</div>
9+
</footer>

_includes/component/header.html

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
<li class="nav-item">
1313
<a class="nav-link" href="/community">Community</a>
1414
</li>
15-
<li class="nav-item">
16-
<a class="nav-link" href="/code-of-conduct">Code of Conduct</a>
17-
</li>
1815
</ul>
1916
</div>
2017
</nav>

_layouts/layout.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
<link rel="stylesheet" href="/assets/main.css">
66
</head>
77
<body>
8-
{% include component/header.html %}
9-
{{ content }}
8+
<div class="content">
9+
{% include component/header.html %}
10+
{{ content }}
11+
</div>
12+
1013
{% include component/footer.html %}
1114
</body>
12-
</html>
15+
</html>

assets/scss/_palette.scss

+14-1
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,22 @@ $palette: (
6262
}
6363
}
6464

65+
.content {
66+
min-height: calc(100vh - 70px);
67+
}
68+
69+
.footer {
70+
height: 50px;
71+
}
72+
6573
h1 {
6674
margin-top: 10px;
6775
}
6876

77+
.brum--summary {
78+
padding-top: 20px;
79+
}
80+
6981
.brum--summary h3 {
7082
overflow: hidden;
7183
white-space: nowrap;
@@ -77,7 +89,8 @@ h1 {
7789
}
7890

7991
.brum--summary img {
80-
width: 50%;
92+
width: 40%;
93+
max-width: 110px;
8194
margin: 10px auto;
8295
display: block;
8396
}

index.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ layout: landingpage
1717
</main>
1818
<section class="brum--bg--yellow brum--fg--white">
1919
<div class="container">
20-
<!-- Todo have this populated by the meetup API -->
21-
{% assign nextEvent = site.events.first %}
20+
{% assign nextEvent = site.events.last %}
2221
<p class="py-4">Next meetup: <a class="py-4" class="brum--fg--navy-blue" href="{{nextEvent.link}}">{{nextEvent.date | date: "%a %b %d %Y"}} at {{nextEvent.location}}</a></p>
2322
</div>
2423
</section>

0 commit comments

Comments
 (0)