-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from Aman-Mandal/artist-comp
made seperate artist component
- Loading branch information
Showing
2 changed files
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Image from "next/image"; | ||
import React from "react"; | ||
|
||
const Artist = ({ img, name, count }) => { | ||
return ( | ||
<div className="flex flex-col items-center gap-2 hover:scale-105"> | ||
<div className="rounded-md w-max h-max overflow-hidden mx-2 cursor-pointer z-10"> | ||
<Image | ||
src={img} | ||
alt={name} | ||
width={150} | ||
height={150} | ||
className="rounded-md w-full object-top" | ||
/> | ||
</div> | ||
|
||
<div className="flex-col items-center text-center"> | ||
<p className="text-gray-200 text-md">{name}</p> | ||
<p className="swatch_text-primary text-xs">{count}</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Artist; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters