Skip to content

Commit 0254378

Browse files
add main nav links to footer
1 parent 62fcf34 commit 0254378

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
@@ -29,27 +29,29 @@ footer.global-footer {
2929
flex-wrap: wrap;
3030
margin-bottom: 5em;
3131

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

37-
svg {
38-
flex: 1;
39-
}
37+
svg {
38+
height: 100%;
39+
}
4040

41-
#logotype {
42-
fill: #ebecf0;
43-
}
44-
}
41+
#logotype {
42+
fill: #ebecf0;
43+
}
4544
}
4645

4746
h3 {
47+
height: 36px;
4848
margin-bottom: 15px;
4949
color: #FCA76C;
5050
font-size: 1.17em;
5151
line-height: 1.2;
5252
font-weight: bold;
53+
display: flex;
54+
align-items: center;
5355
}
5456

5557
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)