diff --git a/src/app/page.tsx b/src/app/page.tsx index 5c14a16..e26fc25 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -5,6 +5,8 @@ import { useState, useEffect, useRef} from 'react'; import NavigationBar from "@/components/navigation/navbar"; import AboutSection from "@/components/aboutsection/about"; import TechSection from "@/components/techsection/tech"; +import ProjectsSection from '@/components/projectsection/project'; + // Design Utility import MouseHoverCircle from "@/components/utilities/mousecirclehover"; @@ -15,6 +17,7 @@ export default function Home() { // Here we're going to declare separate section ref on each section to behave indepedently const aboutSectionRef = useRef(null); const techSectionRef = useRef(null); + const projectSectionRef = useRef(null); // Now we use useEffect to observe each sections intersct with users view useEffect(() => { @@ -30,11 +33,12 @@ export default function Home() { } }); }, - { rootMargin: "-50px", threshold: 0.2 } + { rootMargin: "0px", threshold: 0.2 } ); const aboutSection = aboutSectionRef.current; const techSection = techSectionRef.current; + const projectSection = projectSectionRef.current; if (aboutSection) { observer.observe(aboutSection); @@ -42,6 +46,9 @@ export default function Home() { if (techSection) { observer.observe(techSection); } + if (projectSection) { + observer.observe(projectSection); + } return () => { if (aboutSection) { @@ -50,6 +57,9 @@ export default function Home() { if (techSection) { observer.unobserve(techSection); } + if (projectSection) { + observer.unobserve(projectSection); + } }; }, []); return ( @@ -66,6 +76,8 @@ export default function Home() { {/* TechSection Section Components */} + +
I'm building my personal website right now. Thanks for visiting and check back soon!
diff --git a/src/components/navigation/navbar.tsx b/src/components/navigation/navbar.tsx index ffd0392..46a6818 100644 --- a/src/components/navigation/navbar.tsx +++ b/src/components/navigation/navbar.tsx @@ -61,7 +61,7 @@ const NavigationBar = (props: NavigationProps) => { return ( -