diff --git a/src/components/ArtistSpotlight/ArtistSpotlight.jsx b/src/components/ArtistSpotlight/ArtistSpotlight.jsx new file mode 100644 index 0000000..d4aa586 --- /dev/null +++ b/src/components/ArtistSpotlight/ArtistSpotlight.jsx @@ -0,0 +1,100 @@ +import { useRef } from 'react' +import { motion, useInView } from 'framer-motion' +import ArtistParticles from './ArtistParticles' +import { artists } from '../../data/mockData' + +export default function ArtistSpotlight() { + const artist = artists[0] + const ref = useRef() + const inView = useInView(ref, { once: true, margin: '-100px' }) + + return ( +
+
+ + {/* Particle field */} +
+ +
+ + {/* Gradient fade left */} +
+
+ +
+
+ {/* Text */} + +

Artist Spotlight

+

+ {artist.name} +

+

{artist.genre}

+

{artist.bio}

+ + {/* Stats */} +
+ {[ + [artist.followers, 'Followers'], + ['48', 'Tracks'], + ['6', 'Albums'], + ].map(([val, label], i) => ( +
+

{val}

+

{label}

+
+ ))} +
+ +
+ + Follow Artist + + + Play Discography + +
+
+ + {/* Artist image */} + +
+ {artist.name} +
+ {/* Gold corner accents */} +
+
+
+
+
+ +
+
+
+ ) +}