@@ -19,7 +19,6 @@ import {
1919import hero from '../../../assets/images/hero-ide-home.png' ;
2020
2121import BoxAnimation from './BoxAnimation' ;
22- import { applyParallax } from '../../../utils/parallax' ;
2322
2423export default ( ) => {
2524 const [ boxes , setBoxes ] = useState ( [ ] ) ;
@@ -106,13 +105,6 @@ export default () => {
106105
107106 const ideRef = useRef ( ) ;
108107
109- useEffect ( ( ) => {
110- applyParallax ( ideRef . current , {
111- speed : 2 ,
112- center : true ,
113- } ) ;
114- } , [ ] ) ;
115-
116108 return (
117109 < HeroWrapper >
118110 < BoxAnimation boxes = { boxes } showPlane = { showPlane } />
@@ -151,32 +143,41 @@ export default () => {
151143 </ motion . div >
152144 </ motion . div >
153145
154- < HeroBottom >
155- < div ref = { ideRef } >
156- < CountText >
157- < span style = { { fontWeight : 600 , color : 'white' } } >
158- { sandboxesCreatedCount } { ' ' }
159- </ span >
160- { sandboxesCreatedCount === 1 ? 'sandbox' : 'sandboxes' } created
161- since you opened this page
162- </ CountText >
163-
164- < div style = { { position : 'relative' } } >
165- < StyledEditorLink
166- href = "/s/m7q0r29nn9"
167- target = "_blank"
168- rel = "noreferrer noopener"
169- >
170- < InspiredText >
171- Inspired by the sandboxes created by drcmda
172- </ InspiredText >
173- Open Sandbox
174- </ StyledEditorLink >
175-
176- < HeroImage alt = "editor with project open" src = { hero } />
146+ < motion . div
147+ initial = { { opacity : 0 , y : 40 } }
148+ animate = { { opacity : 1 , y : 0 } }
149+ transition = { {
150+ duration : 0.5 ,
151+ delay : 0.3 ,
152+ } }
153+ >
154+ < HeroBottom >
155+ < div ref = { ideRef } >
156+ < CountText >
157+ < span style = { { fontWeight : 600 , color : 'white' } } >
158+ { sandboxesCreatedCount } { ' ' }
159+ </ span >
160+ { sandboxesCreatedCount === 1 ? 'sandbox' : 'sandboxes' } created
161+ since you opened this page
162+ </ CountText >
163+
164+ < div style = { { position : 'relative' } } >
165+ < StyledEditorLink
166+ href = "/s/m7q0r29nn9"
167+ target = "_blank"
168+ rel = "noreferrer noopener"
169+ >
170+ < InspiredText >
171+ Inspired by the sandboxes created by drcmda
172+ </ InspiredText >
173+ Open Sandbox
174+ </ StyledEditorLink >
175+
176+ < HeroImage alt = "editor with project open" src = { hero } />
177+ </ div >
177178 </ div >
178- </ div >
179- </ HeroBottom >
179+ </ HeroBottom >
180+ </ motion . div >
180181
181182 < Border />
182183 </ HeroWrapper >
0 commit comments