updates
This commit is contained in:
parent
30fb78c4ff
commit
fafa7f010e
@ -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 }) => {
|
||||
<meta name="keywords" content="UI/UX designer, Full Stack Web Developer, Web/graphic/motion designer, React Developer, NextJS developer, Node JS developer, Javascript Developer, Linux Ubuntu, DevOps, Nginx, MySQL developer, Freelancer" />
|
||||
</Head>
|
||||
|
||||
<div id='page-loader' className='fixed w-screen h-screen bg-black flex items-center justify-center top-0 left-0' style={ { zIndex: 2000 } }>
|
||||
{/* <div id='page-loader' className='fixed w-screen h-screen bg-black flex items-center justify-center top-0 left-0' style={ { zIndex: 2000 } }>
|
||||
<span className='text-xl'>Tben Loading ...</span>
|
||||
</div>
|
||||
</div> */}
|
||||
|
||||
{ readyState &&
|
||||
<div id='main-content-wrapper' style={ { opacity: 0 } }>
|
||||
<GeneralHeader />
|
||||
<main>
|
||||
{ children }
|
||||
</main>
|
||||
<GeneralFooter />
|
||||
</div>
|
||||
}
|
||||
<div id='main-content-wrapper' style={ { opacity: 0 } }>
|
||||
<GeneralHeader />
|
||||
<main>
|
||||
{ children }
|
||||
</main>
|
||||
<GeneralFooter />
|
||||
</div>
|
||||
|
||||
</Fragment>
|
||||
)
|
||||
|
6
next.config.js
Normal file
6
next.config.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
reactStrictMode: true,
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user