1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-22 09:36:52 +01:00

revised connect section

This commit is contained in:
Matthias Kretschmann 2017-09-20 14:45:52 +02:00
parent d159863f11
commit 26a1057b1d
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 48 additions and 14 deletions

View File

@ -151,20 +151,9 @@
display: flex;
justify-content: space-between;
margin-top: $spacer;
}
.social-link {
display: block;
border: 1.5px solid $brand-02;
border-radius: $border-radius;
padding: $spacer / 2;
width: 2rem;
height: 2rem;
line-height: 1;
svg {
fill: $brand-05;
}
}
}

View File

@ -41,7 +41,7 @@
}
&:active {
transform: translateY(0);
transform: none;
}
}
@ -50,3 +50,26 @@
height: $font-size-base;
}
}
.social-link {
display: inline-block;
border: 1.5px solid $brand-02;
border-radius: $border-radius;
padding: $spacer / 2;
width: 2rem;
height: 2rem;
line-height: 1;
&:hover,
&:focus {
transform: translateY(-1px);
}
&:active {
transform: none;
}
svg {
fill: $brand-04;
}
}

View File

@ -266,7 +266,6 @@
//
.articles {
max-width: 100%;
margin-bottom: $spacer * 4;
}
.article {
@ -310,3 +309,13 @@
align-self: flex-end;
transition: .15s ease-out;
}
.section--connect {
.social {
margin-bottom: $spacer * 3;
}
.social-link {
margin-right: $spacer / 2;
}
}

View File

@ -84,5 +84,6 @@ connect:
title: "Stay connected"
description: "Stalk us like there's no tomorrow."
blog_title: "From the blog"
newsletter_title: "Newsletter"
follow_title: "Follow us"
newsletter_title: "Subscribe to our newsletter"
newsletter_text: "Our email newsletter will keep you informed of major developments."

View File

@ -237,6 +237,18 @@ css: page-front
</header>
</div>
<div class="grid__col">
<div class="social">
<h2 class="connect__title">{{ content.connect.follow_title }}</h2>
{% for item in site.data.contact.social %}
<a class="social-link" href="{{ item.link }}" title="{{ item.name }}">
<svg class="icon" aria-labelledby="title">
<title>{{ item.name }}</title>
<use xlink:href="/assets/img/sprite.svg#icon-{{ item.name | downcase }}"></use>
</svg>
</a>
{% endfor %}
</div>
<div class="connect connect--newsletter">
<h2 class="connect__title">{{ content.connect.newsletter_title }}</h2>
<p>{{ content.connect.newsletter_text }}</p>