@@ -17,7 +17,6 @@ const PortfolioMain = () => {
17
17
18
18
const [ isScrolled , setIsScrolled ] = useState ( false ) ;
19
19
20
- // Create refs for each section
21
20
const introRef = useRef < HTMLDivElement > ( null ) ;
22
21
const helloRef = useRef < HTMLDivElement > ( null ) ;
23
22
const projectRef = useRef < HTMLDivElement > ( null ) ;
@@ -31,7 +30,6 @@ const PortfolioMain = () => {
31
30
return ( ) => window . removeEventListener ( 'scroll' , updateScroll ) ;
32
31
} , [ ] ) ;
33
32
34
-
35
33
const handleScroll = ( ref : MutableRefObject < HTMLDivElement | null > ) => {
36
34
ref . current ?. scrollIntoView ( { behavior : 'smooth' } ) ;
37
35
} ;
@@ -65,24 +63,24 @@ const PortfolioMain = () => {
65
63
/>
66
64
</ motion . div >
67
65
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 " >
70
68
< IntroSection />
71
- </ div >
72
69
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 >
75
73
</ div >
76
74
77
- < div ref = { helloRef } className = "w-full flex justify-center" >
75
+ < div ref = { helloRef } className = "w-full flex justify-center min-h-screen " >
78
76
< HelloSection />
79
77
</ div >
80
78
81
- < div ref = { projectRef } className = "w-full flex justify-center" >
79
+ < div ref = { projectRef } className = "w-full flex justify-center min-h-screen " >
82
80
< ProjectSection />
83
81
</ div >
84
82
85
- < div ref = { contactRef } className = "w-full flex justify-center" >
83
+ < div ref = { contactRef } className = "w-full flex justify-center min-h-[100px] " >
86
84
< ContactSection />
87
85
</ div >
88
86
</ main >
0 commit comments