-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArtistCard.jsx
More file actions
34 lines (28 loc) · 974 Bytes
/
ArtistCard.jsx
File metadata and controls
34 lines (28 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from 'react'
import './artistCard.css'
import { artistList } from '../../config/congif'
const ArtistCard = ({setCurrentPage}) => {
return (
<div className='artistCardMainContainer'>
{
artistList.map((ele) => {
return (
<div onClick={()=>{
setCurrentPage("artistSpecificPage")
}} className="artistCard">
<img src={ele.img} alt="" />
<div className="textContainer">
<h1>{ele.name}</h1>
<p>Artist</p>
</div>
<span id='playButton'>
<svg data-encore-id="icon" role="img" aria-hidden="true" class="e-9800-icon e-9800-baseline" viewBox="0 0 24 24"><path d="m7.05 3.606 13.49 7.788a.7.7 0 0 1 0 1.212L7.05 20.394A.7.7 0 0 1 6 19.788V4.212a.7.7 0 0 1 1.05-.606z"></path></svg>
</span>
</div>
)
})
}
</div>
)
}
export default ArtistCard