diff --git a/packages/website/gatsby-config.js b/packages/website/gatsby-config.js index e41f6d9a..171ccb98 100644 --- a/packages/website/gatsby-config.js +++ b/packages/website/gatsby-config.js @@ -14,7 +14,15 @@ module.exports = { path: `${__dirname}/src/images`, }, }, + { + resolve: `gatsby-source-filesystem`, + options: { + name: `src`, + path: `${__dirname}/src/`, + }, + }, `gatsby-transformer-sharp`, + `gatsby-transformer-json`, `gatsby-plugin-sharp`, `gatsby-plugin-react-svg`, { @@ -35,4 +43,4 @@ module.exports = { // To learn more, visit: https://gatsby.dev/offline // `gatsby-plugin-offline`, ], -} +}; diff --git a/packages/website/package.json b/packages/website/package.json index 55866b7b..75e8c802 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -23,6 +23,7 @@ "gatsby-plugin-react-svg": "^3.0.0", "gatsby-plugin-sharp": "^3.0.0", "gatsby-source-filesystem": "^3.0.0", + "gatsby-transformer-json": "^3.1.0", "gatsby-transformer-sharp": "^3.0.0", "gbimage-bridge": "^0.1.1", "normalize.css": "^8.0.1", @@ -34,6 +35,7 @@ "react-dom": "^17.0.1", "react-helmet": "^6.1.0", "react-svg-loader": "^3.0.3", + "react-use": "^17.2.1", "tailwindcss": "^2.0.3" }, "devDependencies": { diff --git a/packages/website/src/components/Layout/Layout.js b/packages/website/src/components/Layout/Layout.js index 350253a1..52b3ca13 100644 --- a/packages/website/src/components/Layout/Layout.js +++ b/packages/website/src/components/Layout/Layout.js @@ -15,6 +15,19 @@ import Navigation from "../Navigation/Navigation"; import NewsHeader from "../NewsHeader/NewsHeader"; import Footer from "../Footer/Footer"; import FooterNavigation from "../FooterNavigation/FooterNavigation"; +// import { useWindowScroll } from "react-use"; +import classnames from "classnames"; + +const StickyHeader = () => { + // const { y } = useWindowScroll(); + + return ( +