您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

HoverImageCard.jsx 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import Image from 'next/image';
  2. import styles from './hover-image-card.module.css';
  3. const HoverImageCard = () => {
  4. return (
  5. <div className={styles.container}>
  6. <div className={styles.card}>
  7. <div className={styles.content}>
  8. <p>Next JS Path</p>
  9. <p>18-8-2022</p>
  10. <button className={styles.btn}>More Details</button>
  11. </div>
  12. {/*Change with Next Image*/}
  13. <Image src="/images/image-one.jpg" alt="text" />
  14. </div>
  15. <div className={styles.card}>
  16. <div className={styles.content}>
  17. <p>Text 1</p>
  18. <p>Text 2</p>
  19. <button className={styles.btn}>Button Text</button>
  20. </div>
  21. {/*Change with Next Image*/}
  22. <Image src="/images/image-one.jpg" alt="text" />
  23. </div>
  24. <div className={styles.card}>
  25. <div className={styles.content}>
  26. <p>Text 1</p>
  27. <p>Text 2</p>
  28. <button className={styles.btn}>Button Text</button>
  29. </div>
  30. {/*Change with Next Image*/}
  31. <Image src="/images/image-one.jpg" alt="text" />
  32. </div>
  33. </div>
  34. );
  35. };
  36. export default HoverImageCard;