Skip to content

Commit a23daec

Browse files
committed
redesigned footer
1 parent a5a4d8c commit a23daec

File tree

2 files changed

+41
-5
lines changed

2 files changed

+41
-5
lines changed

source/localizable/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
</section>
4848

4949
<footer class="footer">
50-
<p>
51-
<%= t('footer.attribution', link: link_to('%', 'http://pdxruby.org/codeofconduct')) %>
50+
<p class="footer--text">
51+
<%= t('footer.attribution', link: link_to('%', 'http://pdxruby.org/codeofconduct', class: 'footer--link')) %>
5252
</p>
5353
</footer>
5454

source/stylesheets/style.css.scss

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
background: black;
129129
color: white;
130130
margin-top: 6em;
131-
padding: 1em;
131+
padding: 1em 1rem 8rem;
132132
position: relative;
133133
z-index: 2;
134134
&:before {
@@ -237,7 +237,43 @@
237237
}
238238
}
239239

240+
240241
//// FOOTER ////
241-
.original-link {
242-
color: #888;
242+
243+
.footer {
244+
background: #444;
245+
margin-top: -2rem;
246+
padding: 1rem;
247+
position: relative;
248+
z-index: 2;
249+
250+
&:before {
251+
background: inherit;
252+
content: "";
253+
display: block;
254+
margin: -9% -10% -5%;
255+
padding-top: 8%;
256+
position: relative;
257+
-webkit-transform: rotate(-3deg) translateY(50%);
258+
transform: rotate(-3deg) translateY(50%);
259+
z-index: -1;
260+
}
261+
}
262+
263+
.footer--text {
264+
@extend %headline-font;
265+
font-size: 0.9rem;
266+
margin: 4rem auto 0;
267+
max-width: 900px;
268+
text-align: center;
269+
text-transform: none;
243270
}
271+
272+
.footer--link {
273+
color: #000;
274+
275+
&:hover {
276+
color: #666;
277+
}
278+
}
279+

0 commit comments

Comments
 (0)