Skip to content

Commit f194c4b

Browse files
committed
Add social links to the footer
1 parent 24fc321 commit f194c4b

File tree

5 files changed

+40
-22
lines changed

5 files changed

+40
-22
lines changed

_layouts/default.html

+10-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@
1717
{{ content }}
1818

1919
<footer>
20-
<div class="inner">
21-
<p>
22-
Europe Code Week is a project by the <a href="http://ec.europa.eu/digital-agenda/en/young-advisors">Young Advisors Group</a> at the <a href="http://ec.europa.eu/index_en.htm">European Commission</a>.
23-
<br>
24-
Help us with this website on <a href="https://github.com/codeeu/codeeu.github.io">GitHub</a>.
25-
</p>
20+
<div class="inner row">
21+
<ul class="links col-md-4">
22+
<li><a href="https://twitter.com/codeweekeu" title="@CodeWeekEU on Twitter" class="twitter">CodeWeekEU</a></li>
23+
<li><a href="https://www.facebook.com/codeEU" title="Europe Code Week on Facebook" class="facebook">codeEU</a></li>
24+
<li><a href="https://github.com/codeeu" title="CodeEU on GitHub" class="github">codeeu</a></li>
25+
</ul>
26+
<div class="team links col-md-8">
27+
A project by the <a href="http://ec.europa.eu/digital-agenda/en/young-advisors">Young Advisors Group</a> at the <a href="http://ec.europa.eu/index_en.htm">European Commission</a><br>
28+
Help us with this website on <a href="https://github.com/codeeu/codeeu.github.io">GitHub</a>
29+
</div>
2630
</div>
2731
</footer>
2832

images/links-facebook.png

4.15 KB
Loading

images/links-github.png

4.19 KB
Loading

images/links-twitter.png

4.1 KB
Loading

stylesheets/core.css

+30-16
Original file line numberDiff line numberDiff line change
@@ -251,28 +251,42 @@ footer {
251251
margin-top: 40px;
252252
}
253253

254-
footer .inner {
255-
overflow: hidden;
256-
}
257-
258-
footer p {
259-
float: left;
254+
footer .team {
260255
padding: 25px 0;
261256
font-size: 16px;
262-
line-height: 30px;
257+
line-height: 25px;
258+
text-align: right;
263259
}
264-
footer p a, footer p a:link, footer p a:visited {
260+
footer a, footer a:link, footer a:visited {
265261
color: #bcdbff;
266262
}
267263

268-
footer a.ec-logo {
264+
footer ul.links {
265+
padding: 25px 0;
266+
margin: 0;
267+
}
268+
footer ul.links li {
269+
list-style: none;
270+
padding: 0;
271+
font-size: 16px;
272+
}
273+
footer ul.links li a, footer ul.links li a:visited {
269274
display: block;
270-
float: right;
275+
padding: 4px 0 4px 32px;
276+
background: transparent no-repeat left 3px;
277+
color: #fff;
271278
text-decoration: none;
272-
text-indent: -9999px;
273-
width: 135px;
274-
height: 95px;
275-
background: #fff url('ec-logo.png') no-repeat center center;
276-
padding: 8px;
277-
margin: 5px;
279+
}
280+
footer ul.links li a:hover {
281+
text-decoration: underline;
282+
}
283+
284+
footer ul.links li a.twitter {
285+
background-image: url('/images/links-twitter.png');
286+
}
287+
footer ul.links li a.facebook {
288+
background-image: url('/images/links-facebook.png');
289+
}
290+
footer ul.links li a.github {
291+
background-image: url('/images/links-github.png');
278292
}

0 commit comments

Comments
 (0)