-
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.
Merge pull request #14 from Muzikie/5-implement-audio-streaming-logic
Implement audio streaming logic - Closes #5
- Loading branch information
Showing
35 changed files
with
337 additions
and
281 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* External dependencies */ | ||
import React from 'react'; | ||
import { useLocation } from 'react-router-dom'; | ||
|
||
/* Internal dependencies */ | ||
import ExtendedLogo from '../Logo/Extended'; | ||
import MainMenu from '../MainMenu'; | ||
|
||
const MainHeader = () => { | ||
const { pathname } = useLocation(); | ||
const pageType = pathname === '/login' || pathname === '/register' ? 'public' : 'private'; | ||
|
||
return ( | ||
<header className={`component mainHeader ${pageType}`}> | ||
<div className="container"> | ||
<ExtendedLogo /> | ||
<MainMenu /> | ||
</div> | ||
</header> | ||
); | ||
}; | ||
|
||
export default MainHeader; |
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 @@ | ||
.component.mainHeader { | ||
width: 100vw; | ||
height: 70px; | ||
padding: 20px 28px 0; | ||
box-sizing: border-box; | ||
|
||
& .container { | ||
display: flex; | ||
justify-content: space-between; | ||
flex-flow: row nowrap; | ||
align-items: center; | ||
} | ||
|
||
&.public { | ||
margin-bottom: -70px; | ||
} | ||
|
||
& .component.logo.extended { | ||
position: relative; | ||
z-index: 9; | ||
} | ||
} |
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,7 @@ | ||
import React from 'react'; | ||
|
||
const PlaceHolderImage = () => ( | ||
<span className="component imagePlaceHolder" /> | ||
); | ||
|
||
export default PlaceHolderImage; |
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
Oops, something went wrong.