Skip to content

Commit

Permalink
Search youtube links
Browse files Browse the repository at this point in the history
  • Loading branch information
nishantdania committed Aug 12, 2020
1 parent da93ddb commit ea9f30c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/pages/mixtape.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ const Artists = styled.div`
line-height: 16px;
`

const StyledSpotifyLink = styled.a`
const StyledAudioLink = styled.a`
font-size: 12px;
text-decoration: underline;
text-transform: capitalize;
padding: 8px 0;
margin-right: 8px;
`

const Mixtape = ({ data }) => {
Expand All @@ -67,13 +68,20 @@ const Mixtape = ({ data }) => {
<Song key={Spotify_ID}>
<SongName>{Song_Name}</SongName>
<Artists>{Artist_Name_s_}</Artists>
<StyledSpotifyLink
<StyledAudioLink
target="_blank"
rel="noreferrer"
href={`spotify:track:${Spotify_ID}`}
>
Spotify
</StyledSpotifyLink>
</StyledAudioLink>
<StyledAudioLink
target="_blank"
rel="noreferrer"
href={`https://www.youtube.com/results?search_query=${Artist_Name_s_}+${Song_Name}`}
>
Youtube
</StyledAudioLink>
</Song>
)
},
Expand Down

0 comments on commit ea9f30c

Please sign in to comment.