From 3837538e517e7ac4b47a066ac8acfab04f11c034 Mon Sep 17 00:00:00 2001 From: TomNUSDS <74203452+TomNUSDS@users.noreply.github.com> Date: Mon, 14 Jun 2021 11:06:23 -0700 Subject: [PATCH] Tomn usds/template8 (#118) * Fix issues from #120 * Include USWDS scss into build. Allows us to do theme things. Compile time slower... Not sure if it's worth it since most items can be overridden in css and we can't theme the Navbar (e.g. invert colors). * Update J40Footer.spec.tsx.snap * Update gatsby-config.js --- client/gatsby-config.js | 7 +- client/src/components/J40Aside.tsx | 71 +++--- client/src/components/J40Footer.tsx | 4 +- client/src/components/J40Header.tsx | 89 +++++--- .../__snapshots__/J40Footer.spec.tsx.snap | 6 +- client/src/components/layout.tsx | 22 +- client/src/pages/index.tsx | 208 ++++++++---------- client/src/pages/timeline.tsx | 120 +++++----- client/src/styles/global.scss | 155 +++++++++++-- 9 files changed, 403 insertions(+), 279 deletions(-) diff --git a/client/gatsby-config.js b/client/gatsby-config.js index cae5a4d5..e6cea388 100644 --- a/client/gatsby-config.js +++ b/client/gatsby-config.js @@ -7,6 +7,11 @@ module.exports = { { resolve: 'gatsby-plugin-sass', options: { + sassOptions: { + includePaths: [ + './node_modules/uswds', + ], + }, cssLoaderOptions: { modules: { exportLocalsConvention: 'camelCaseOnly', @@ -15,7 +20,7 @@ module.exports = { }, }, { - resolve: `gatsby-plugin-intl`, + resolve: 'gatsby-plugin-intl', options: { // language JSON resource path path: `${__dirname}/src/intl`, diff --git a/client/src/components/J40Aside.tsx b/client/src/components/J40Aside.tsx index 8f97a2d1..b73b9930 100644 --- a/client/src/components/J40Aside.tsx +++ b/client/src/components/J40Aside.tsx @@ -9,45 +9,38 @@ const J40Aside = () => { return ( <> ); diff --git a/client/src/components/J40Footer.tsx b/client/src/components/J40Footer.tsx index 6210597c..5029375b 100644 --- a/client/src/components/J40Footer.tsx +++ b/client/src/components/J40Footer.tsx @@ -8,6 +8,7 @@ const J40Footer = () => { <>