Skip to content

Commit

Permalink
Sidebar starts and started conf file tree
Browse files Browse the repository at this point in the history
  • Loading branch information
realxilliam committed Apr 9, 2024
1 parent 8358a1c commit c9eebf7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Start.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default function Start() {
<SimpleButton label="test 2" onClick={() => setStream(stream="https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8")} /> */}
<Log props={stream} />
<ReactPlayer className="react-player" width="100%" height="100vh" muted={false} playing={true} url={stream}/>
<SideBar videos={1} />
</div>
)
}
Expand All @@ -27,6 +28,22 @@ function SimpleButton(props) {
)
}

function SideBar({videos}) {

var heading = null

if (videos > 0) {
const noun = videos > 1 ? 'Channels' : 'Channel';
heading = videos + ' ' + noun;
}
return (
<div className='sidebar'>
<h2>{heading}</h2>

</div>
)
}

function Log(props) {
console.log({props})
}
1 change: 1 addition & 0 deletions src/confs/channels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
12 changes: 12 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,16 @@ body {

html, body {
overflow: hidden;
}

.sidebar{
width: 45vh;
height:100vh;
background: rgb(49, 48, 48);
/* border-radius: 15px; */
}

.react-player {
position: absolute;
z-index: -1
}

0 comments on commit c9eebf7

Please sign in to comment.