@@ -69,6 +69,10 @@ import AnimText from '@stateless/AnimText'
6969import SlideButton from '@stateless/SlideButton'
7070import firstImage from '@assets/images/88-300x160.jpg'
7171import secondImage from '@assets/images/2-300x160.jpg'
72+ import SpringPng from '@assets/images/spring.png'
73+ import HePng from '@assets/images/he.png'
74+ import SongPng from '@assets/images/song.png'
75+ import XuePng from '@assets/images/xue.png'
7276
7377import {
7478 oneApiChat ,
@@ -515,7 +519,8 @@ const Home = () => {
515519 < AutoLink text = "https://www.npmjs.com/package/react-animate-on-scroll https://www.npmjs.com/package/react-scroll https://github.com/wellyshen/react-cool-inview" />
516520 </ h3 >
517521 < ScrollAnimation >
518- < LazyLoadImage src = "https://picsum.photos/seed/picsum/300/160" alt = "Strawberries" />
522+ { /* <LazyLoadImage src="https://picsum.photos/seed/picsum/300/160" alt="Strawberries" /> */ }
523+ < LazyLoadImage src = { secondImage } alt = "Strawberries" />
519524 </ ScrollAnimation >
520525 </ section >
521526 { /* <section style={{ marginBottom: 40, fontSize: 36 }}>
@@ -548,38 +553,38 @@ const Home = () => {
548553 { /* <section style={{ marginBottom: 40 }}>
549554 <PinInput onChange={(value, index, values) => setPinValues(values)} values={pinValues} />
550555 </section> */ }
551- < section style = { { marginBottom : 40 } } >
556+ < section style = { { marginBottom : 40 , width : 360 , height : 200 , overflow : 'hidden' } } >
552557 < AnimateOnScreen . FadeIn >
553- < AvatarCard avatar = "https://picsum.photos/seed/picsum/300/160" text = "Hi, I'm a developer." />
558+ < AvatarCard avatar = { XuePng } text = "Hi, I'm a developer." />
554559 </ AnimateOnScreen . FadeIn >
555560 </ section >
556- < section style = { { marginBottom : 40 } } >
561+ < section style = { { marginBottom : 40 , width : 360 , height : 200 , overflow : 'hidden' } } >
557562 < AnimateOnScreen . FadeUp >
558563 < img
559- src = "https://picsum.photos/360/200.jpg"
564+ src = { SongPng }
560565 alt = ""
561566 style = { {
562567 maskImage : `linear-gradient(to top, transparent, black 20%, black 80%, transparent)` ,
563568 } }
564569 />
565570 </ AnimateOnScreen . FadeUp >
566571 </ section >
567- < section style = { { marginBottom : 40 , width : 360 , height : 200 } } >
572+ < section style = { { marginBottom : 40 , width : 360 , height : 200 , overflow : 'hidden' } } >
568573 < AnimateOnScreen . ScaleIn triggerOnce = { false } >
569574 < >
570- < img src = "https://picsum.photos/360/200/?blur=2" alt = "" />
575+ < img src = { SpringPng } alt = "" />
571576 < section className = { styles [ 'blend-me' ] } > Mix Blend Mode</ section >
572577 </ >
573578 </ AnimateOnScreen . ScaleIn >
574579 </ section >
575- < section style = { { marginBottom : 40 , width : 360 , height : 200 } } >
580+ < section style = { { marginBottom : 40 , width : 360 , height : 200 , overflow : 'hidden' } } >
576581 < AnimateOnScreen . DiyAnimation
577582 from = { { opacity : 0 , transform : 'translate(-100%, 0)' } }
578583 to = { { opacity : 1 , transform : 'translate(0, 0)' } }
579584 triggerOnce = { true }
580585 >
581586 < Zoom >
582- < img src = "https://picsum.photos/360/200.jpg" alt = "" />
587+ < img src = { HePng } alt = "" />
583588 </ Zoom >
584589 </ AnimateOnScreen . DiyAnimation >
585590 </ section >
@@ -638,29 +643,29 @@ const Home = () => {
638643 < p className = "text-9xl" > ✨</ p >
639644 </ ScratchToReveal >
640645 </ section >
641- < section style = { { marginBottom : 40 } } >
646+ < section style = { { margin : 20 } } >
642647 < AnimateRipple > Click Me</ AnimateRipple >
643648 </ section >
644649
645- < section style = { { marginBottom : 40 } } >
650+ < section style = { { margin : 20 } } >
646651 < section className = { styles . effect } > Hello CSS</ section >
647652 </ section >
648- < section style = { { marginBottom : 40 } } className = { styles . maskBox } >
653+ < section style = { { margin : 20 } } className = { styles . maskBox } >
649654 < section className = { styles . watermark } > water mark</ section >
650655 mask
651656 </ section >
652- < section style = { { marginBottom : 40 } } >
657+ < section style = { { margin : 20 } } >
653658 < button className = { styles [ 'button' ] } onClick = { fireConfetti } >
654659 < span className = { styles [ 'button-label' ] } > Click Me</ span >
655660 </ button >
656661 </ section >
657662
658- < section style = { { position : 'relative' , margin : '80px 0 160px 100px' } } >
663+ { /* <section style={{ position: 'relative', margin: '80px 0 160px 100px' }}>
659664 <div className={styles['circle-1']}></div>
660665 <div className={styles['circle-2']}></div>
661666 <div className={styles['circle-3']}></div>
662667 <div className={styles['circle-4']}></div>
663- </ section >
668+ </section> */ }
664669
665670 < section style = { { margin : 20 } } className = { styles . eHElAY } >
666671 Hi, React!
0 commit comments