CTA section fixes

This commit is contained in:
Matthias Kretschmann 2018-04-10 17:50:24 +02:00
parent d53217c14e
commit 61d58abd54
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 16 additions and 5 deletions

View File

@ -1,5 +1,10 @@
.section-cta--services {
@media ($screen-md) {
padding-top: $spacer * 7;
padding-bottom: $spacer * 7;
}
.logo-services {
margin-bottom: $spacer;
transform: scale(.8);

View File

@ -1,12 +1,18 @@
{% if layout %}
{% assign context = layout %}
{% else %}
{% assign context = page %}
{% endif %}
<section class="section section-cta background--photo text-center">
<div class="row">
<header class="section-header">
<h1 class="section-title">{{ page.cta.title }}</h1>
<p class="section-description">{{ page.cta.description }}</p>
<h1 class="section-title">{{ context.cta.title }}</h1>
<p class="section-description">{{ context.cta.description }}</p>
</header>
<a class="btn btn-primary" href="{{ page.cta.button_link }}">
{{ page.cta.button }}
<a class="btn btn-primary" href="{{ context.cta.button_link }}">
{{ context.cta.button }}
</a>
</div>
</section>

View File

@ -43,7 +43,7 @@ layout: base
</div>
</div>
<div class="row text-center">
<a class="btn btn-primary" href="{% link developers/guide.html %}">All guides</a>
<a class="btn btn-primary" href="{% link developers/guide.html %}">All chapters</a>
</div>
</section>