diff --git a/components/Artist/Artist.jsx b/components/Artist/Artist.jsx new file mode 100644 index 0000000..b5588de --- /dev/null +++ b/components/Artist/Artist.jsx @@ -0,0 +1,25 @@ +import Image from "next/image"; +import React from "react"; + +const Artist = ({ img, name, count }) => { + return ( +
+
+ {name} +
+ +
+

{name}

+

{count}

+
+
+ ); +}; + +export default Artist; diff --git a/components/TopArtists/TopArtists.jsx b/components/TopArtists/TopArtists.jsx index 406ae7b..4797d46 100644 --- a/components/TopArtists/TopArtists.jsx +++ b/components/TopArtists/TopArtists.jsx @@ -2,6 +2,7 @@ import Image from "next/image"; import Link from "next/link"; import React from "react"; import { artists } from "../../data/data"; +import Artist from "../Artist/Artist"; const TopArtists = () => { return ( @@ -15,25 +16,7 @@ const TopArtists = () => {
{artists.map((artist) => ( -
-
- {artist.name} -
- -
-

{artist.name}

-

{artist.count}

-
-
+ ))}