Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions _data/new-data/footer/main-navigation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- title: Docs
link: /documentation/
- title: Community
link: /community/
- title: Packages
link: /packages/
- title: Blog
link: /blog/
- title: Install
link: /install/
4 changes: 1 addition & 3 deletions _includes/new-includes/footer/footer.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<footer class="global-footer">
<div class="container">
<div class="footer-navigation-container">
<div class="notes">
<a class="logo" href="/" title="Swift.org"> {% include new-includes/header/logo.html %} </a>
</div>
{% include new-includes/footer/navigations/main.html %}

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

Expand Down
11 changes: 11 additions & 0 deletions _includes/new-includes/footer/navigations/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<nav aria-label="Main">
<a class="logo" href="/" title="Swift.org"> {% include new-includes/header/logo.html %} </a>

<ul>
{% for item in site.data.new-data.footer.main-navigation %}
<li class="item {% if page.url == item.url %}active{% endif %}">
<a href="{{ item.link }}" data-text="{{ item.title }}">{{ item.title }}</a>
</li>
{% endfor %}
</ul>
</nav>
24 changes: 13 additions & 11 deletions assets/stylesheets/new-stylesheets/includes/footer/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,29 @@ footer.global-footer {
flex-wrap: wrap;
margin-bottom: 5em;

.notes {
.logo {
display: flex;
width: 116px;
.logo {
display: flex;
height: 36px;
margin-bottom: 15px;

svg {
flex: 1;
}
svg {
height: 100%;
}

#logotype {
fill: #ebecf0;
}
}
#logotype {
fill: #ebecf0;
}
}

h3 {
height: 36px;
margin-bottom: 15px;
color: #FCA76C;
font-size: 1.17em;
line-height: 1.2;
font-weight: bold;
display: flex;
align-items: center;
}

nav {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
align-items: center;
margin-bottom: 3em;

.notes .logo {
.logo {
margin-bottom: 3em;
}

h3 {
height: auto;
display: block;
align-items: unset;
}

nav {
text-align: center;
margin-bottom: 30px;
Expand Down