File tree 1 file changed +28
-0
lines changed
src/components/Card/Horizontal
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import SectionHero from '~components/sectionHero'
3
+ import MusicData from '~data/tracks.json' ;
4
+ import { FaStepBackward , FaStepForward , FaPlay } from 'react-icons/fa' ;
5
+
6
+ const HorizontalMusicPlayer = ( ) => (
7
+ < SectionHero cssClasses = "l-cards--horizontal-music" >
8
+ { MusicData . slice ( 0 , 1 ) . map ( ( track ) => (
9
+ < div key = { track . id } className = "card card--music" >
10
+ < div className = "card__image" >
11
+ < img src = { "/tracks/" + track . id + ".jpg" } alt = { track . title } />
12
+ </ div >
13
+ < div className = "card__content" >
14
+ < header className = "card__header" >
15
+ < h2 className = "card__title" > { track . title } </ h2 >
16
+ </ header >
17
+ < p className = "card__subtitle" > { track . artist } </ p >
18
+ < ul className = "controls__list" >
19
+ < li className = "control__item" > < FaStepBackward /> </ li >
20
+ < li className = "control__item" > < FaPlay /> </ li >
21
+ < li className = "control__item" > < FaStepForward /> </ li >
22
+ </ ul >
23
+ </ div >
24
+ </ div >
25
+ ) ) }
26
+ </ SectionHero >
27
+ )
28
+ export default HorizontalMusicPlayer
You can’t perform that action at this time.
0 commit comments