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, + }, +};