-
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.
updated to version 1.0.1 --new show, dj and comments added
- Loading branch information
Clint McMahon
committed
Jun 17, 2021
1 parent
eaf4833
commit 03ad010
Showing
16 changed files
with
15,877 additions
and
49 deletions.
There are no files selected for viewing
Binary file not shown.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 @@ | ||
import React from "react"; | ||
|
||
function Comment(props) { | ||
|
||
return ( | ||
<div className="text"> | ||
{props.comment ? props.comment : ""} | ||
</div> | ||
) | ||
} | ||
|
||
export default Comment; |
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,22 @@ | ||
import React from "react"; | ||
|
||
function Header(props) { | ||
let djText = ""; | ||
console.log(props.showDJs) | ||
if (props.showDJs) { | ||
djText = props.showDJs.map((item, i) => { | ||
let name = item; | ||
if (i !== 0) { | ||
name = "/" + name; | ||
} | ||
return name; | ||
}); | ||
} | ||
return ( | ||
<div className="title"> | ||
<a href="https://www.kexp.org/donate/" alt="Support the music">{props.showTitle ? props.showTitle : ""} {djText ? `with ${djText}` : ""}</a> | ||
</div> | ||
) | ||
} | ||
|
||
export default Header; |
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,83 @@ | ||
import React from "react"; | ||
import Thumbnail from "./Thumbnail"; | ||
import TrackInfo from "./TrackInfo"; | ||
import Comment from "./Comment"; | ||
import Header from "./Header"; | ||
import Skeleton from "react-loading-skeleton"; | ||
|
||
function NowPlaying(props) { | ||
let nowPlaying = props.nowPlaying; | ||
if (nowPlaying) { | ||
return ( | ||
<> | ||
<div className="header"> | ||
<Header showTitle={nowPlaying.showTitle} showDJs={nowPlaying.showDJs} /> | ||
</div> | ||
<div className="content"> | ||
<div className="left"> | ||
<Thumbnail | ||
thumbnailUri={nowPlaying.thumbnailUri} | ||
album={nowPlaying.album} | ||
/> | ||
</div> | ||
<div className="right"> | ||
<TrackInfo | ||
artist={nowPlaying.artist} | ||
song={nowPlaying.song} | ||
album={nowPlaying.album} | ||
playType={nowPlaying.playType} | ||
/> | ||
</div> | ||
</div> | ||
<div className="comment"> | ||
<Comment | ||
comment={nowPlaying.comment} | ||
/> | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
return ( | ||
<> | ||
<div className="header"> | ||
<Skeleton width={400} color={"#222222"} /> | ||
</div> | ||
<div className="content"> | ||
<div className="left"> | ||
<Thumbnail | ||
thumbnailUri={null} | ||
album={null} | ||
/> | ||
</div> | ||
<div className="right"> | ||
<div className="block"> | ||
<Skeleton width={100} /> | ||
</div> | ||
<div className="block"> | ||
<div className="label"> | ||
<Skeleton width={100} /> | ||
</div> | ||
|
||
</div> | ||
<div className="block"> | ||
<div className="label"> | ||
<Skeleton width={100} /> | ||
</div> | ||
|
||
</div> | ||
<div className="block"> | ||
<div className="label"> | ||
<Skeleton width={100} /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="comment"> | ||
<Skeleton width={400} /> | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default NowPlaying; |
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