Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(): Introduce new footer for mobile devices #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2019
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
30 changes: 28 additions & 2 deletions src/_includes/components/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="footer__container">
<div class="flex flex--wrap waffle waffle--large">
{% for nav in site.data.nav.sections %}
<div class="flex__column flex__column--4 flex__column--2@large">
<div class="flex__column flex__column--2">
<div class="nav">
<p class="nav__title">{{ nav.section_title }}</p>

Expand All @@ -17,7 +17,7 @@
</div>
{% endfor %}

<div class="flex__column flex__column--4 flex__column--2@large flex__column--center">
<div class="flex__column flex__column--2 flex__column--center">
<div class="footer__aside">
{% include icons/segment.svg %}

Expand Down Expand Up @@ -63,3 +63,29 @@
</div>
</div>
</div>

<div class="footer-mobile">
<div class="footer__aside">
<p>© Copyright 2019 Segment</p>
</div>

<ul class="social-list social-list--dark flex flex--middle flex--center gutter gutter--xlarge">
<li>
<a href="#" class="social-list__link">
{% include icons/socials/linkedin.svg %}
</a>
</li>

<li>
<a href="#" class="social-list__link">
{% include icons/socials/twitter.svg %}
</a>
</li>

<li>
<a href="#" class="social-list__link">
{% include icons/socials/github.svg %}
</a>
</li>
</ul>
</div>
12 changes: 12 additions & 0 deletions src/_sass/components/_footer-mobile.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.footer-mobile {
padding: 25px 20px;
text-align: center;

@include breakpoint(large up) {
display: none;
}

& > * + * {
margin-top: 15px;
}
}
5 changes: 5 additions & 0 deletions src/_sass/components/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
.footer {
display: none;
overflow: hidden;
padding-top: 70px;
padding-bottom: 120px;
background-color: color(secondary);
font-size: 16px;
color: color(white);

@include breakpoint(large up) {
display: block;
}

&__container {
position: relative;
z-index: 1;
Expand Down
10 changes: 9 additions & 1 deletion src/_sass/components/_social-list.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
.social-list {
$this: &;

padding-left: 0;
list-style: none;

&__link {
color: color(white);
}

&--dark {
#{$this}__link {
color: color(gray);
}
}
}
1 change: 1 addition & 0 deletions src/_sass/segment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
@import "components/nav-list";
@import "components/social-list";
@import "components/footer";
@import "components/footer-mobile";
@import "components/sidebar";
@import "components/widget";
@import "components/menu";
Expand Down