Artist component (ongoing)
This commit is contained in:
parent
456fae63c9
commit
7c9139f2ee
5 changed files with 897 additions and 6 deletions
17
src/components/Artist.jsx
Normal file
17
src/components/Artist.jsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
import React from 'react'
|
||||
|
||||
function Artist({ props }) {
|
||||
return (
|
||||
<div className='artist'>
|
||||
{props.images.length > 0 && (
|
||||
<img src={props.images[0].url} style={{height:150}} />
|
||||
)}
|
||||
<p>{props.name}</p>
|
||||
<p>Popularity: {Math.floor(props.popularity/20)}</p>
|
||||
<p>Followers: {props.followers.total}</p>
|
||||
<p>Id: {props.id}</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Artist
|
Loading…
Add table
Add a link
Reference in a new issue