Skip to content

feat(): Introduce Footer #88

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 4 commits into from
Oct 2, 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
74 changes: 74 additions & 0 deletions src/_data/menu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
sections:
- section_title: Product
section:
- path: "https://segment.com/product/connections/"
title: Connections
- path: "https://segment.com/product/protocols/"
title: Protocols
- path: "https://segment.com/product/personas/"
title: Personas
- path: "https://segment.com/catalog/"
title: Integrations Catalog
- path: "https://segment.com/pricing/"
title: Pricing
- path: "https://segment.com/security/"
title: Security
- path: "https://segment.com/product/gdpr/"
title: GDPR
- section_title: For Developers
section:
- path: "https://segment.com/docs/"
title: Documentation
- path: "https://segment.com/docs/sources/"
title: Segment API
- path: "https://segment.com/partners/developer-center/"
title: Build on Segment
- path: "https://open.segment.com/"
title: Open Source
- path: "https://segment.com/engineering/"
title: Engineering Team
- section_title: For Businesses
section:
- path: "https://segment.com/docs/"
title: Customer Stories
- path: "https://segment.com/docs/sources/"
title: Enterprise
- path: "https://segment.com/partners/developer-center/"
title: Startups
- path: "https://open.segment.com/"
title: Retail
- path: "https://segment.com/engineering/"
title: Marketplace
- path: "https://segment.com/engineering/"
title: B2B Software
- path: "https://segment.com/engineering/"
title: Mobile
- section_title: Company
section:
- path: "https://segment.com/docs/"
title: Careers
- path: "https://segment.com/docs/sources/"
title: Blog
- path: "https://segment.com/partners/developer-center/"
title: Press
- path: "https://open.segment.com/"
title: FTFY Podcast
- path: "https://segment.com/engineering/"
title: Events
- section_title: Support
section:
- path: "https://segment.com/docs/"
title: Help Center
- path: "https://segment.com/docs/sources/"
title: Contact us
- path: "https://segment.com/partners/developer-center/"
title: Resources
- path: "https://open.segment.com/"
title: Recipes
- path: "https://segment.com/engineering/"
title: Security Bulletins
- path: "https://segment.com/engineering/"
title: Documentation
- path: "https://segment.com/engineering/"
title: Become a Partner
65 changes: 65 additions & 0 deletions src/_includes/components/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<div class="footer">
<div class="footer__container">
<div class="flex flex--wrap waffle waffle--large">
{% for menu in site.data.menu.sections %}
<div class="flex__column flex__column--4 flex__column--2@large">
<div class="nav">
<p class="nav__title">{{ menu.section_title }}</p>

<ul class="nav-list">
{% for item in menu.section %}
<li>
<a class="nav-list__link" href="{{ item.path }}">{{ item.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
{% endfor %}

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

<p>© 2019 Segment.io, Inc.</p>

<div class="nav">
<ul class="nav-list">
<li>
<a class="nav-list__link" href="#">Privacy</a>
</li>

<li>
<a class="nav-list__link" href="#">Terms</a>
</li>
</ul>
</div>

<ul class="social-list flex flex--middle 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>
</div>
</div>

<div class="footer__bg">
<svg width="912" height="900" xmlns="http://www.w3.org/2000/svg"><path d="M103.991 751.69c0 28.174 23.561 50.991 52.622 50.991 29.036 0 52.597-22.817 52.597-50.99 0-28.15-23.561-50.991-52.597-50.991-29.06 0-52.622 22.842-52.622 50.99zm580.15-616.302c0 28.174 23.535 50.99 52.596 50.99 29.036 0 52.571-22.816 52.571-50.99 0-28.149-23.535-50.99-52.57-50.99-29.062 0-52.597 22.841-52.597 50.99zM355.718 353.041c0 9.375 7.854 17.013 17.524 17.013h521.234c9.67 0 17.524-7.638 17.524-17.013v-62.3c0-9.375-7.854-17.013-17.524-17.013H373.242c-9.67 0-17.524 7.638-17.524 17.013v62.3zm200.564 163.636c0-9.375-7.88-16.988-17.524-16.988H17.524C7.879 499.689 0 507.302 0 516.677v62.325c0 9.375 7.88 16.989 17.524 16.989h521.234c9.644 0 17.524-7.614 17.524-16.99v-62.324zm339.934-28.1l-63.98-6.299c-9.466-.942-17.883 5.481-19.136 14.633-11.23 82.364-52.571 158.7-116.347 214.9-67.23 59.224-154.337 91.862-245.307 91.862-44.87 0-88.667-7.787-130.135-23.164-8.852-3.273-18.675.819-22.36 9.35l-24.737 57.538c-1.868 4.266-1.842 8.953.051 13.194 1.868 4.29 5.372 7.565 9.85 9.251C337.426 889.832 393.758 900 451.445 900c115.734 0 226.58-41.542 312.153-116.936C845.23 711.14 897.904 613.35 911.847 507.699c.613-4.613-.691-9.151-3.659-12.772-2.967-3.621-7.214-5.903-11.972-6.35zM1.714 338.31c24.584-93.152 80.814-177.847 158.25-238.51C242.135 35.44 345.665 0 451.447 0c52.316 0 103.633 8.358 152.572 24.875 4.528 1.538 8.135 4.663 10.156 8.879 2.02 4.191 2.225 8.879.511 13.219l-22.716 58.332c-3.352 8.63-13.047 13.045-22.052 10.044-37.964-12.624-77.846-19.047-118.47-19.047-84.345 0-163.572 27.132-229.062 78.42-60.476 47.37-104.554 113.44-124.022 186.007-2.047 7.639-9.056 12.673-16.884 12.673-1.28 0-2.61-.148-3.94-.421l-62.727-13.84c-4.656-1.016-8.57-3.769-11.077-7.712-2.481-3.968-3.223-8.63-2.021-13.12z" fill="#F7F9F9" fill-rule="evenodd" opacity=".048"/></svg>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions src/_includes/icons/segment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/_includes/icons/socials/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/_includes/icons/socials/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/_includes/icons/socials/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</div>

<footer>
{% include data-collection-footer.html %}
{% include components/footer.html %}
</footer>
</div>

Expand Down
1 change: 1 addition & 0 deletions src/_sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ $gutter-sizes: (
small: 0.3rem,
medium: 0.5rem,
large: 1rem,
xlarge: 1.5rem,
) !default;

/// Default gutter size.
Expand Down
34 changes: 34 additions & 0 deletions src/_sass/components/_footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.footer {
overflow: hidden;
padding-top: 70px;
padding-bottom: 120px;
background-color: color(secondary);
font-size: 16px;
color: color(white);

&__container {
position: relative;
z-index: 1;
max-width: 1150px;
margin-left: auto;
margin-right: auto;
padding-left: 15px;
padding-right: 15px;
}

&__aside {
font-size: 14px;

& > * + * {
margin-top: 20px;
}
}

&__bg {
position: absolute;
top: 0;
right: 0;
transform: translate(0, 10%);
z-index: -1;
}
}
12 changes: 12 additions & 0 deletions src/_sass/components/_nav-list.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.nav-list {
padding-left: 0;
list-style: none;

& > * + * {
margin-top: 10px;
}

&__link {
color: color(white);
}
}
10 changes: 10 additions & 0 deletions src/_sass/components/_nav.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.nav {
& > * + * {
margin-top: 10px;
}

&__title {
font-weight: 500;
color: color(white);
}
}
8 changes: 8 additions & 0 deletions src/_sass/components/_social-list.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.social-list {
padding-left: 0;
list-style: none;

&__link {
color: color(white);
}
}
4 changes: 4 additions & 0 deletions src/_sass/segment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
@import "components/field";
@import "components/breadcrumbs";
@import "components/highlight";
@import "components/nav";
@import "components/nav-list";
@import "components/social-list";
@import "components/footer";
@import "components/sidebar";
@import "components/widget";
@import "components/menu-side";
Expand Down