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 }) => { -