From fafa7f010e67b59a76a00d648693849f6f476771 Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Fri, 3 Jun 2022 20:54:06 +0100 Subject: [PATCH] updates --- layouts/general_layout/GeneralLayout.jsx | 62 ++++++++++++------------ next.config.js | 6 +++ 2 files changed, 36 insertions(+), 32 deletions(-) create mode 100644 next.config.js diff --git a/layouts/general_layout/GeneralLayout.jsx b/layouts/general_layout/GeneralLayout.jsx index b28dc45..9d88532 100644 --- a/layouts/general_layout/GeneralLayout.jsx +++ b/layouts/general_layout/GeneralLayout.jsx @@ -32,31 +32,31 @@ const GeneralLayout = ({ children, pageName }) => { // }] // }); - window.addEventListener("load", () => { - setReadyState(true); + // window.addEventListener("load", () => { + // }) + // setReadyState(true); - document.querySelectorAll("nav a").forEach((link) => { - let locationRegex = new RegExp(`${window.location.pathname}.*?`); - if (link.pathname === window.location.pathname) { - link.classList.add("active-page"); - } - }); + document.querySelectorAll("nav a").forEach((link) => { + let locationRegex = new RegExp(`${window.location.pathname}.*?`); + if (link.pathname === window.location.pathname) { + link.classList.add("active-page"); + } + }); - gsap.to("#main-content-wrapper", { - opacity: 1, - duration: 2, - delay: 1 - }) + // gsap.to("#main-content-wrapper", { + // opacity: 1, + // duration: 2, + // delay: 1 + // }) - gsap.to("#page-loader", { - opacity: 0, - duration: 0.5, - delay: 1, - pointerEvents: "none" - }) - - threeJsAnimations(); + gsap.to("#page-loader", { + opacity: 0, + duration: 0.5, + delay: 1, + pointerEvents: "none" }) + + threeJsAnimations(); }, []) @@ -66,19 +66,17 @@ const GeneralLayout = ({ children, pageName }) => { -
+ {/*
Tben Loading ... -
+
*/} - { readyState && -
- -
- { children } -
- -
- } +
+ +
+ { children } +
+ +
) diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..c1607e2 --- /dev/null +++ b/next.config.js @@ -0,0 +1,6 @@ +module.exports = { + reactStrictMode: true, + eslint: { + ignoreDuringBuilds: true, + }, +};