diff --git a/web/gatsby-browser.js b/web/gatsby-browser.js index 07ebbfc2..c3bc9175 100644 --- a/web/gatsby-browser.js +++ b/web/gatsby-browser.js @@ -14,3 +14,4 @@ import "@fontsource/open-sans" import "@fontsource/exo" import "@fontsource/exo-2" +import "./src/styles/preloader.scss" diff --git a/web/gatsby-ssr.js b/web/gatsby-ssr.js index f772f9cd..5b55d25a 100644 --- a/web/gatsby-ssr.js +++ b/web/gatsby-ssr.js @@ -1,7 +1,8 @@ -import * as React from "react" +import * as React from "react"; +import loadingSVG from "./src/assets/svg/bouncing-circles.svg" -export const onRenderBody = ({ setHeadComponents }) => { +export const onRenderBody = ({ setHeadComponents, setPreBodyComponents, setBodyAttributes, setPostBodyComponents }) => { setHeadComponents([ { type="font/woff" crossOrigin="anonymous" />, - ]); -}; \ No newline at end of file + + ]) + setPreBodyComponents([ +
+ +
+ ]) + setBodyAttributes({ + className: "preloader_active" + }) + setPostBodyComponents([ +