From 9c40a869ac4d7021a89dad75540e0a92a88f5e99 Mon Sep 17 00:00:00 2001 From: Anne Demey Date: Mon, 29 Mar 2021 12:41:14 -0500 Subject: [PATCH 01/12] Adding MD fro non-shoppable services New icon for homepage service section Progress on menu dropdown styling --- gatsby-node.js | 18 ++++--- src/components/app/Nav.js | 51 ++++++++++++------- src/components/core/CtaLink.js | 35 +++++++++++++ src/components/core/index.js | 1 + src/components/icons/DtTriad.js | 16 ++++++ src/components/icons/index.js | 1 + src/components/mega-menu/MegaMenu.js | 2 +- src/components/pages/home/Solutions.js | 20 +++++--- .../pages/service-category/ServiceList.js | 10 ++-- .../pages/solution-detail/SolutionList.js | 33 +++++------- src/content/service-detail/dual-path.md | 6 +++ src/content/service-detail/hnp-it.md | 6 +++ src/content/solutions/biti.md | 9 ++-- src/pages/solutions.js | 4 +- src/templates/SolutionDetail.js | 1 - 15 files changed, 148 insertions(+), 65 deletions(-) create mode 100644 src/components/core/CtaLink.js create mode 100644 src/components/icons/DtTriad.js create mode 100644 src/content/service-detail/dual-path.md create mode 100644 src/content/service-detail/hnp-it.md diff --git a/gatsby-node.js b/gatsby-node.js index f5c9e7b..883c5ae 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -65,13 +65,15 @@ const mdPagesFromTemplate = async ( return; } result.data.allMarkdownRemark.edges.forEach(({ node }) => { - createPage({ - path: node.frontmatter.slug, - component: pageTemplate, - context: { - // additional data can be passed via context - slug: node.frontmatter.slug, - }, - }); + if (node.frontmatter.slug) { + createPage({ + path: node.frontmatter.slug, + component: pageTemplate, + context: { + // additional data can be passed via context + slug: node.frontmatter.slug, + }, + }); + } }); }; diff --git a/src/components/app/Nav.js b/src/components/app/Nav.js index 98f960e..b50b4ab 100644 --- a/src/components/app/Nav.js +++ b/src/components/app/Nav.js @@ -1,13 +1,6 @@ import React, { useState, useContext } from 'react'; -import { - Box, - Button, - Keyboard, - Layer, - ThemeContext, - ResponsiveContext, -} from 'grommet'; -import { Menu } from 'grommet-icons'; +import { Box, Button, Text, Keyboard, Layer, ResponsiveContext } from 'grommet'; +import { Menu, FormUp, FormDown } from 'grommet-icons'; import { Link } from '../core'; import { MegaMenu, MegaMobileMenu } from '../mega-menu'; @@ -29,7 +22,8 @@ const Nav = ({ sticky }) => { @@ -54,19 +48,40 @@ const Nav = ({ sticky }) => { - + {sticky && } + - -