From ea030b3af77d4d020f2c5d718ef730ca1ce46305 Mon Sep 17 00:00:00 2001 From: Yves Gatesoupe Date: Tue, 14 Jul 2020 20:30:02 +0200 Subject: [PATCH] Contact form on every pages --- src/_includes/layouts/home.njk | 2 +- src/_includes/layouts/page.njk | 1 + src/_includes/layouts/team.njk | 1 + src/scss/components/_form.scss | 10 ++++++---- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/_includes/layouts/home.njk b/src/_includes/layouts/home.njk index 85eb923..f960436 100644 --- a/src/_includes/layouts/home.njk +++ b/src/_includes/layouts/home.njk @@ -5,7 +5,7 @@ {% set newsListItems = collections.newsFeed %} {% block content %} -
+
{% include "partials/components/intro.njk" %} {% include "partials/components/news-list.njk" %} {% include "partials/components/post-list.njk" %} diff --git a/src/_includes/layouts/page.njk b/src/_includes/layouts/page.njk index 7a4dd86..998f6ad 100644 --- a/src/_includes/layouts/page.njk +++ b/src/_includes/layouts/page.njk @@ -7,5 +7,6 @@ {{ content | safe }} + {% include "partials/components/contact-form.njk" %}
{% endblock %} diff --git a/src/_includes/layouts/team.njk b/src/_includes/layouts/team.njk index b59a92b..98ae21b 100644 --- a/src/_includes/layouts/team.njk +++ b/src/_includes/layouts/team.njk @@ -5,5 +5,6 @@ {% block content %}
{% include "partials/components/member-list.njk" %} + {% include "partials/components/contact-form.njk" %}
{% endblock %} diff --git a/src/scss/components/_form.scss b/src/scss/components/_form.scss index 75b0cbc..1d017e8 100644 --- a/src/scss/components/_form.scss +++ b/src/scss/components/_form.scss @@ -1,14 +1,16 @@ /* Form */ +.home .form-container { + svg > path:first-child { + fill: #f1f0f6; + } +} + .form-container { padding: 0 0 6rem; background-color: var(--color-primary); color: var(--color-dark); - svg > path:first-child { - fill: #f1f0f6; - } - .contact-heading { margin: 2rem 0 4rem; }