forked from avvazana/Spoofify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
140 additions
and
51 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
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
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
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
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
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
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
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,44 @@ | ||
import React from 'react'; | ||
import { Link, NavLink, Redirect } from 'react-router-dom'; | ||
|
||
export default (props) => { | ||
return ( | ||
<nav className="nav-bar"> | ||
<div className="logo"> | ||
<img src={window.whiteLogoURL}></img> | ||
<h1>Spoofify</h1> | ||
</div> | ||
|
||
<div className="icon-holder"> | ||
<NavLink activeClassName="active-link" exact to ="/search/playlists"> | ||
<span> | ||
<img src={window.searchIcon}></img> | ||
<h2>Search</h2> | ||
</span> | ||
</NavLink> | ||
|
||
<br></br> | ||
|
||
<NavLink activeClassName="active-link" exact to ="/browse/playlists"> | ||
<span> | ||
<img src={window.homeIcon}></img> | ||
<h2>Home</h2> | ||
</span> | ||
</NavLink> | ||
|
||
<br></br> | ||
|
||
<NavLink activeClassName="active-link" exact to ="/collection/playlists"> | ||
<span> | ||
<img src={window.libraryIcon}></img> | ||
<h2>Your Library</h2> | ||
</span> | ||
</NavLink> | ||
</div> | ||
|
||
<div> | ||
<button className="logout" onClick={()=>props.logout()}>Logout</button> | ||
</div> | ||
</nav> | ||
); | ||
}; |
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,15 @@ | ||
// import React from 'react'; | ||
// | ||
// class PlaylistIndex extends React.Component { | ||
// | ||
// render(){ | ||
// const playlists = this.props.map(playlist => { | ||
// <PlaylistIndexItem playlist={playlist}/> | ||
// }); | ||
// <ul> | ||
// {playlists} | ||
// </ul> | ||
// } | ||
// } | ||
// | ||
// export default PlaylistIndex |
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import React from 'react'; | ||
|
||
const PlaylistIndexItem = ({ playlist }) => ( | ||
const PlaylistIndexItem = ({ playlist }) => ( | ||
<li className="playlist-index-item"> | ||
<audio controls> | ||
<source src={playlist.trackUrl} type="audio/mpeg"></source> | ||
</audio> | ||
<img src={playlist.photoUrl}></img> | ||
</li> | ||
); | ||
export default PlaylistIndexItem; | ||
|
||
|
||
export default PlaylistIndexItem; | ||
// <audio controls> | ||
// <source src={playlist.trackUrl} type="audio/mpeg"></source> | ||
// </audio> |
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