From 28a4acaf70f3e13be60c31d19c94654f78181852 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 4 Jul 2023 13:39:42 -0400 Subject: [PATCH] fix: interaction styles for navigation bar and footer links (#642) --- package-lock.json | 11 ++-- package.json | 2 +- src/_includes/layouts/404.njk | 2 +- src/_includes/layouts/history.njk | 2 +- src/_includes/layouts/home.njk | 2 +- src/_includes/layouts/ideas.njk | 2 +- src/_includes/layouts/news.njk | 2 +- src/_includes/layouts/page--team.njk | 2 +- src/_includes/layouts/page.njk | 2 +- src/_includes/layouts/project.njk | 2 +- src/_includes/layouts/projects.njk | 2 +- src/_includes/layouts/resources.njk | 2 +- .../partials/components/page-header.njk | 2 +- src/assets/styles/app.scss | 1 + src/assets/styles/base/_base.scss | 12 +++-- src/assets/styles/components/_nav.scss | 7 ++- .../styles/components/_page-header.scss | 50 +++++++++++++++++++ src/assets/styles/layout/_footer.scss | 25 +++++++--- src/assets/styles/layout/_header.scss | 12 ++++- src/assets/styles/pages/_generic.scss | 45 ----------------- 20 files changed, 112 insertions(+), 75 deletions(-) create mode 100644 src/assets/styles/components/_page-header.scss diff --git a/package-lock.json b/package-lock.json index 68bbd3d8..abd890c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@11ty/eleventy-navigation": "0.3.5", "@11ty/eleventy-plugin-rss": "1.2.0", "d3-selection": "3.0.0", - "eleventy-plugin-fluid": "1.0.1", + "eleventy-plugin-fluid": "1.0.2", "eleventy-plugin-i18n-gettext": "^1.5.1", "eleventy-plugin-pwa": "1.0.8", "eleventy-plugin-sharp": "0.1.1", @@ -6240,8 +6240,9 @@ } }, "node_modules/eleventy-plugin-fluid": { - "version": "1.0.1", - "license": "BSD-3-Clause", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/eleventy-plugin-fluid/-/eleventy-plugin-fluid-1.0.2.tgz", + "integrity": "sha512-YW8metiSnqxXGtm2TrTngKHmCxtUlo1EUu/ut/KCk/h2oCnph2Bcc5ozDYmHgJiiDMauThu8xfxmOmhUVVnx5Q==", "dependencies": { "html-minifier": "4.0.0" }, @@ -21426,7 +21427,9 @@ } }, "eleventy-plugin-fluid": { - "version": "1.0.1", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/eleventy-plugin-fluid/-/eleventy-plugin-fluid-1.0.2.tgz", + "integrity": "sha512-YW8metiSnqxXGtm2TrTngKHmCxtUlo1EUu/ut/KCk/h2oCnph2Bcc5ozDYmHgJiiDMauThu8xfxmOmhUVVnx5Q==", "requires": { "html-minifier": "4.0.0" } diff --git a/package.json b/package.json index 4bc56a10..a54adf1e 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "@11ty/eleventy-navigation": "0.3.5", "@11ty/eleventy-plugin-rss": "1.2.0", "d3-selection": "3.0.0", - "eleventy-plugin-fluid": "1.0.1", + "eleventy-plugin-fluid": "1.0.2", "eleventy-plugin-i18n-gettext": "^1.5.1", "eleventy-plugin-pwa": "1.0.8", "eleventy-plugin-sharp": "0.1.1", diff --git a/src/_includes/layouts/404.njk b/src/_includes/layouts/404.njk index 55ad67a4..de3fccf6 100644 --- a/src/_includes/layouts/404.njk +++ b/src/_includes/layouts/404.njk @@ -3,8 +3,8 @@ {% set pageType = 'page--404' %} {% block content %} + {% include 'partials/components/page-header.njk' %}
- {% include 'partials/components/page-header.njk' %}
{{ content | safe }} diff --git a/src/_includes/layouts/history.njk b/src/_includes/layouts/history.njk index 0b5e75fd..30463de4 100644 --- a/src/_includes/layouts/history.njk +++ b/src/_includes/layouts/history.njk @@ -7,8 +7,8 @@ {% set pageType = 'page--generic' %} {% block content %} + {% include 'partials/components/page-header.njk' %}
- {% include 'partials/components/page-header.njk' %}
{{ content | safe }} diff --git a/src/_includes/layouts/home.njk b/src/_includes/layouts/home.njk index 093f1afa..79d2fd40 100644 --- a/src/_includes/layouts/home.njk +++ b/src/_includes/layouts/home.njk @@ -7,8 +7,8 @@ {% set pageType = 'page--home' %} {% block content %} + {% include 'partials/components/page-header.njk' %}
- {% include 'partials/components/page-header.njk' %} {%- if sections %} {%- for section in sections %} {% include 'partials/components/section.njk' %} diff --git a/src/_includes/layouts/ideas.njk b/src/_includes/layouts/ideas.njk index 37bbd9c3..56b8494b 100644 --- a/src/_includes/layouts/ideas.njk +++ b/src/_includes/layouts/ideas.njk @@ -7,8 +7,8 @@ {% set pageType = 'page--ideas' %} {% block content %} + {% include 'partials/components/page-header.njk' %}
- {% include 'partials/components/page-header.njk' %}
{% if pagination.pageNumber == 0 %} diff --git a/src/_includes/layouts/news.njk b/src/_includes/layouts/news.njk index cbd39be4..5662ec65 100644 --- a/src/_includes/layouts/news.njk +++ b/src/_includes/layouts/news.njk @@ -7,8 +7,8 @@ {% set pageType = 'page--news' %} {% block content %} + {% include 'partials/components/page-header.njk' %}
- {% include 'partials/components/page-header.njk' %}
{% if posts.length %} diff --git a/src/_includes/layouts/page--team.njk b/src/_includes/layouts/page--team.njk index 0f39e890..f6700bb5 100644 --- a/src/_includes/layouts/page--team.njk +++ b/src/_includes/layouts/page--team.njk @@ -7,8 +7,8 @@ {% set pageType = 'page--team' %} {% block content %} + {% include 'partials/components/page-header.njk' %}
- {% include 'partials/components/page-header.njk' %}
diff --git a/src/_includes/layouts/page.njk b/src/_includes/layouts/page.njk index 4986fd61..3edcacd2 100644 --- a/src/_includes/layouts/page.njk +++ b/src/_includes/layouts/page.njk @@ -7,8 +7,8 @@ {% set pageType = 'page--generic' %} {% block content %} + {% include 'partials/components/page-header.njk' %}
- {% include 'partials/components/page-header.njk' %} {%- if sections and sections.length > 0 %} {%- for section in sections %} {% include 'partials/components/section.njk' %} diff --git a/src/_includes/layouts/project.njk b/src/_includes/layouts/project.njk index 8d4427e8..4ccf392c 100644 --- a/src/_includes/layouts/project.njk +++ b/src/_includes/layouts/project.njk @@ -7,10 +7,10 @@ {% set pageType = 'page--project' %} {% block content %} + {% include 'partials/components/page-header.njk' %}
{% set articleTitle = title %} {% set title = projectName %} - {% include 'partials/components/page-header.njk' %} {% set parentPages = collections.all | eleventyNavigationBreadcrumb(articleTitle) %} diff --git a/src/_includes/layouts/projects.njk b/src/_includes/layouts/projects.njk index 3ce1284b..b5ce2f5b 100644 --- a/src/_includes/layouts/projects.njk +++ b/src/_includes/layouts/projects.njk @@ -7,8 +7,8 @@ {% set pageType = 'page--projects' %} {% block content %} + {% include 'partials/components/page-header.njk' %}
- {% include 'partials/components/page-header.njk' %}
{% for project in collections['projects_en-CA'] %}
diff --git a/src/_includes/layouts/resources.njk b/src/_includes/layouts/resources.njk index fddeebde..98eb94f6 100644 --- a/src/_includes/layouts/resources.njk +++ b/src/_includes/layouts/resources.njk @@ -34,8 +34,8 @@ + {% include 'partials/components/page-header.njk' %}
- {% include 'partials/components/page-header.njk' %}
{% include 'partials/components/filter-resources.njk' %} diff --git a/src/_includes/partials/components/page-header.njk b/src/_includes/partials/components/page-header.njk index 23e52dfb..66ab8386 100644 --- a/src/_includes/partials/components/page-header.njk +++ b/src/_includes/partials/components/page-header.njk @@ -1,4 +1,4 @@ -
+