Skip to content

Commit 6c28e30

Browse files
committed
Use Font Awesome for homepage icons
This should make it easier to update the icons in the future. Switch from using `float:` to `display: grid` to display the icons.
1 parent c42b11e commit 6c28e30

File tree

11 files changed

+34
-23
lines changed

11 files changed

+34
-23
lines changed

assets/sass/front-page.scss

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,39 +31,45 @@
3131
}
3232

3333
a {
34-
display: block;
35-
height: 86px;
36-
padding-left: 90px;
37-
color: var(--font-color);
38-
background-repeat: no-repeat;
39-
background-position: 0 0;
40-
transition-duration: 0.3s;
41-
transition-property: color;
34+
display: grid;
35+
grid-template-columns: 74px 1fr;
36+
grid-template-rows: auto auto;
37+
column-gap: 1rem;
38+
align-items: start;
4239

4340
img {
44-
float: left;
45-
margin-right: -90px;
46-
margin-left: -90px;
47-
opacity: 0.9;
41+
grid-row: 1 / -1;
42+
grid-column: 1;
4843
transition-duration: 0.3s;
4944
transition-property: opacity;
45+
opacity: 0.5;
46+
width: 38px;
47+
height: 38px;
48+
background-color: #cdcdc5;
49+
border-radius: 40%;
50+
padding: 18px;
5051
}
5152

5253
h3 {
5354
font-size: 18px;
5455
font-weight: bold;
5556
color: var(--orange);
57+
grid-row: 1;
58+
grid-column: 2;
5659
}
5760

5861
p {
62+
grid-row: 2;
63+
grid-column: 2;
5964
font-size: 13px;
6065
line-height: $base-line-height * 0.8;
66+
color: var(--font-color);
6167
}
6268
}
6369

6470
a:hover {
6571
img {
66-
opacity: 1;
72+
opacity: 0.7;
6773
}
6874

6975
h3 {

layouts/partials/site-root.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@
22
<section id="front-navigation">
33
<nav id="front-nav">
44
<ul>
5-
<li id="nav-about">
5+
<li>
66
<a href="{{ relURL "about" }}">
7-
<img src="{{ relURL "images/icons/[email protected]" }}" width="74" height="74" />
7+
<img src="{{ relURL "images/icons/fa-gears.svg" }}" width="74" height="74" />
88
<h3>About</h3>
99
<p>The advantages of Git compared to other source control systems.</p>
1010
</a>
1111
</li>
12-
<li id="nav-learn">
12+
<li>
1313
<a href="{{ relURL "learn" }}">
14-
<img src="{{ relURL "images/icons/[email protected]" }}" width="74" height="74" />
14+
<img src="{{ relURL "images/icons/fa-lightbulb.svg" }}" width="74" height="74" />
1515
<h3>Learn</h3>
1616
<p>Pro Git book, videos, tutorials, and cheat sheet</p>
1717
</a>
1818
</li>
19-
<li id="nav-documentation">
19+
<li>
2020
<a href="{{ relURL "docs" }}">
21-
<img src="{{ relURL "images/icons/[email protected]" }}" width="74" height="74" />
21+
<img src="{{ relURL "images/icons/fa-book-open.svg" }}" width="74" height="74" />
2222
<h3>Reference</h3>
2323
<p>Git's reference documentation</p>
2424
</a>
2525
</li>
26-
<li id="nav-downloads">
26+
<li>
2727
<a href="{{ relURL "downloads" }}">
28-
<img src="{{ relURL "images/icons/[email protected]" }}" width="74" height="74" />
28+
<img src="{{ relURL "images/icons/fa-down-long.svg" }}" width="74" height="74" />
2929
<h3>Downloads</h3>
3030
<p>GUI clients and binary releases for all major platforms.</p>
3131
</a>
3232
</li>
33-
<li id="nav-community">
33+
<li>
3434
<a href="{{ relURL "community" }}">
35-
<img src="{{ relURL "images/icons/[email protected]" }}" width="74" height="74" />
35+
<img src="{{ relURL "images/icons/fa-comments.svg" }}" width="74" height="74" />
3636
<h3>Community</h3>
3737
<p>Get involved! Bug reporting, mailing list, chat, development and more.</p>
3838
</a>
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

static/images/icons/fa-gears.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
-2.72 KB
Binary file not shown.
-2.68 KB
Binary file not shown.
-3.07 KB
Binary file not shown.

0 commit comments

Comments
 (0)