@@ -17,7 +17,6 @@ const PortfolioMain = () => {
1717
1818 const [ isScrolled , setIsScrolled ] = useState ( false ) ;
1919
20- // Create refs for each section
2120 const introRef = useRef < HTMLDivElement > ( null ) ;
2221 const helloRef = useRef < HTMLDivElement > ( null ) ;
2322 const projectRef = useRef < HTMLDivElement > ( null ) ;
@@ -31,7 +30,6 @@ const PortfolioMain = () => {
3130 return ( ) => window . removeEventListener ( 'scroll' , updateScroll ) ;
3231 } , [ ] ) ;
3332
34-
3533 const handleScroll = ( ref : MutableRefObject < HTMLDivElement | null > ) => {
3634 ref . current ?. scrollIntoView ( { behavior : 'smooth' } ) ;
3735 } ;
@@ -65,24 +63,24 @@ const PortfolioMain = () => {
6563 />
6664 </ motion . div >
6765
68- < main className = "relative w-full min-h-screen " >
69- < div ref = { introRef } className = "w-full flex justify-center" >
66+ < main className = "relative w-full" >
67+ < div ref = { introRef } className = "w-full flex justify-center min-h-screen relative " >
7068 < IntroSection />
71- </ div >
7269
73- < div className = 'absolute bottom-0 w-full flex justify-center' >
74- < Scrolldown />
70+ < div className = 'absolute bottom-5 w-full flex justify-center' >
71+ < Scrolldown />
72+ </ div >
7573 </ div >
7674
77- < div ref = { helloRef } className = "w-full flex justify-center" >
75+ < div ref = { helloRef } className = "w-full flex justify-center min-h-screen " >
7876 < HelloSection />
7977 </ div >
8078
81- < div ref = { projectRef } className = "w-full flex justify-center" >
79+ < div ref = { projectRef } className = "w-full flex justify-center min-h-screen " >
8280 < ProjectSection />
8381 </ div >
8482
85- < div ref = { contactRef } className = "w-full flex justify-center" >
83+ < div ref = { contactRef } className = "w-full flex justify-center min-h-[100px] " >
8684 < ContactSection />
8785 </ div >
8886 </ main >
0 commit comments