diff --git a/src/components/FeaturedAlbums/FeaturedAlbums.jsx b/src/components/FeaturedAlbums/FeaturedAlbums.jsx new file mode 100644 index 0000000..77f12a7 --- /dev/null +++ b/src/components/FeaturedAlbums/FeaturedAlbums.jsx @@ -0,0 +1,57 @@ +import { useRef } from 'react' +import { motion, useInView } from 'framer-motion' +import AlbumCard3D from './AlbumCard3D' +import { albums } from '../../data/mockData' + +export default function FeaturedAlbums({ onPlay, currentTrack }) { + const ref = useRef() + const inView = useInView(ref, { once: true, margin: '-80px' }) + + return ( +
+
+
+ +
+

Collection

+

+ Featured Albums +

+

+ Hand-picked records defining the sound of this moment. +

+
+ + View All + + + + +
+ +
+ {albums.map((album, i) => ( + + + + ))} +
+
+
+ ) +}