Skip to content

Commit badf5a4

Browse files
add main nav links to footer (#1000)
1 parent 464cd04 commit badf5a4

File tree

5 files changed

+42
-15
lines changed

5 files changed

+42
-15
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- title: Docs
2+
link: /documentation/
3+
- title: Community
4+
link: /community/
5+
- title: Packages
6+
link: /packages/
7+
- title: Blog
8+
link: /blog/
9+
- title: Install
10+
link: /install/

_includes/new-includes/footer/footer.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<footer class="global-footer">
22
<div class="container">
33
<div class="footer-navigation-container">
4-
<div class="notes">
5-
<a class="logo" href="/" title="Swift.org"> {% include new-includes/header/logo.html %} </a>
6-
</div>
4+
{% include new-includes/footer/navigations/main.html %}
75

86
{% include new-includes/footer/navigations/tools.html %}
97

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<nav aria-label="Main">
2+
<a class="logo" href="/" title="Swift.org"> {% include new-includes/header/logo.html %} </a>
3+
4+
<ul>
5+
{% for item in site.data.new-data.footer.main-navigation %}
6+
<li class="item {% if page.url == item.url %}active{% endif %}">
7+
<a href="{{ item.link }}" data-text="{{ item.title }}">{{ item.title }}</a>
8+
</li>
9+
{% endfor %}
10+
</ul>
11+
</nav>

assets/stylesheets/new-stylesheets/includes/footer/_base.scss

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,29 @@ footer.global-footer {
3030
flex-wrap: wrap;
3131
margin-bottom: 5em;
3232

33-
.notes {
34-
.logo {
35-
display: flex;
36-
width: 116px;
33+
.logo {
34+
display: flex;
35+
height: 36px;
36+
margin-bottom: 15px;
3737

38-
svg {
39-
flex: 1;
40-
}
38+
svg {
39+
height: 100%;
40+
}
4141

42-
#logotype {
43-
fill: #ebecf0;
44-
}
45-
}
42+
#logotype {
43+
fill: #ebecf0;
44+
}
4645
}
4746

4847
h3 {
48+
height: 36px;
4949
margin-bottom: 15px;
5050
color: #FCA76C;
5151
font-size: 1.17em;
5252
line-height: 1.2;
5353
font-weight: bold;
54+
display: flex;
55+
align-items: center;
5456
}
5557

5658
nav {

assets/stylesheets/new-stylesheets/includes/footer/_mobile.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@
55
align-items: center;
66
margin-bottom: 3em;
77

8-
.notes .logo {
8+
.logo {
99
margin-bottom: 3em;
1010
}
1111

12+
h3 {
13+
height: auto;
14+
display: block;
15+
align-items: unset;
16+
}
17+
1218
nav {
1319
text-align: center;
1420
margin-bottom: 30px;

0 commit comments

Comments
 (0)