@@ -6,24 +6,19 @@ import { useLayoutEffect, useRef } from 'react';
66import { initLandingPreviewAnimation } from '@/animations/landingGSAP' ;
77
88const LandingPreview = ( ) => {
9- const rootRef = useRef < HTMLDivElement > ( null ) ;
109 const titleRef = useRef < HTMLHeadingElement > ( null ) ;
1110 const contentRef = useRef < HTMLDivElement > ( null ) ;
1211
1312 useLayoutEffect ( ( ) => {
14- if ( ! rootRef . current || ! titleRef . current || ! contentRef . current ) return ;
13+ if ( ! titleRef . current || ! contentRef . current ) return ;
1514
1615 return initLandingPreviewAnimation ( {
17- rootEl : rootRef . current ,
1816 titleEl : titleRef . current ,
1917 contentContainerEl : contentRef . current ,
2018 } ) ;
2119 } , [ ] ) ;
2220 return (
23- < div
24- ref = { rootRef }
25- className = "mt-30 flex h-full flex-col items-center justify-center space-y-3 pt-50 pb-50 text-center"
26- >
21+ < div className = "mt-30 flex h-full flex-col items-center justify-center space-y-3 pt-50 pb-50 text-center" >
2722 < h1 ref = { titleRef } className = "text-4xl font-bold" >
2823 체계적인 학습으로
2924 </ h1 >
@@ -32,19 +27,17 @@ const LandingPreview = () => {
3227 className = "mx-20 mt-10 grid max-w-7xl grid-cols-1 items-start gap-10 lg:grid-cols-2 lg:gap-2"
3328 ref = { contentRef }
3429 >
35-
3630 < div className = "flex min-w-[355px] justify-center" >
3731 < FeatureContent />
3832 </ div >
3933
4034 < div className = "flex justify-center" >
4135 < Image
42- id = "fc-item"
4336 src = "/PreviewImage.png"
4437 alt = "DevFlow 미리보기"
4538 width = { 720 }
4639 height = { 400 }
47- className = "w-full max-w-[480px] min-w-[360px] object-contain md:max-w-[560px] lg:max-w-[640px] xl:max-w-[720px]"
40+ className = "fc-item w-full max-w-[480px] min-w-[360px] object-contain md:max-w-[560px] lg:max-w-[640px] xl:max-w-[720px]"
4841 />
4942 </ div >
5043 </ div >
0 commit comments