-
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
61 changed files
with
814 additions
and
1,606 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 |
---|---|---|
@@ -1,25 +1,5 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import {Provider} from 'react-redux'; | ||
import {Router, IndexRoute, Route, hashHistory} from 'react-router'; | ||
import Landing from './components/landing/landing-container'; | ||
import Application from './components/application/application-container'; | ||
import Feed from './components/feed/feed-container'; | ||
import Discover from './components/discover/discover-container'; | ||
import {syncHistoryWithStore} from 'react-router-redux'; | ||
import store from './store'; | ||
import App from 'components/app'; | ||
|
||
ReactDOM.render( | ||
<div> | ||
<Provider store={store}> | ||
<Router history={syncHistoryWithStore(hashHistory, store)}> | ||
<Route path="/" component={Landing} /> | ||
<Route path="/app" component={Application}> | ||
<IndexRoute component={Feed} /> | ||
<Route path="/app/discover" component={Discover} /> | ||
</Route> | ||
</Router> | ||
</Provider> | ||
</div>, | ||
document.getElementById('root') | ||
); | ||
ReactDOM.render(<App/>, document.getElementById('app')); |
8 changes: 6 additions & 2 deletions
8
src/components/application/_theme.scss → src/components/app/_theme.scss
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,13 +1,17 @@ | ||
$backgroundColor: #e5e5e5; | ||
$primaryColor: #2F80ED; | ||
$secondaryTextColor: #727272; | ||
|
||
$darkPrimaryColor: #303f9f; | ||
$primaryColor: #3f51b5; | ||
$lightPrimaryColor: #c5cae9; | ||
$textColor: #fff; | ||
$accentColor: #ff4081; | ||
$primaryTextColor: #212121; | ||
$secondaryTextColor: #727272; | ||
$dividerColor: #b6b6b6; | ||
$errorColor: #f44336; | ||
|
||
@mixin shadow($elevation) { | ||
box-shadow: 0px 2px $elevation rgba(0, 0, 0, .26); | ||
} | ||
|
||
$transformCurve: cubic-bezier(0.4, 0.0, 0.2, 1); |
7 changes: 4 additions & 3 deletions
7
src/components/application/application.scss → src/components/app/app.scss
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,16 +1,17 @@ | ||
@import './_theme.scss'; | ||
|
||
:global { | ||
body { | ||
padding: 0; | ||
margin: 0; | ||
font-family: 'Roboto'; | ||
font-size: 16px; | ||
background-color: rgba(0, 0, 0, .1); | ||
background-color: $backgroundColor; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
} | ||
|
||
.root { | ||
display: flex; | ||
justify-content: space-between; | ||
height: calc(100vh - 60px); | ||
height: 100vh; | ||
} |
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,17 @@ | ||
import React from 'react'; | ||
import {Provider} from 'react-redux'; | ||
import Sidebar from 'components/sidebar'; | ||
import Player from 'components/player'; | ||
import store from '../../store'; | ||
import styles from './app.scss'; | ||
|
||
export default class Application extends React.PureComponent { | ||
render() { | ||
return <Provider store={store}> | ||
<main className={styles.root}> | ||
<Sidebar/> | ||
<Player/> | ||
</main> | ||
</Provider>; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React, {PropTypes} from 'react'; | ||
import cn from 'classnames'; | ||
import Avatar from 'components/ui/avatar'; | ||
import styles from './channels.scss'; | ||
|
||
export default class Channel extends React.PureComponent { | ||
static propTypes = { | ||
id: PropTypes.string.isRequired, | ||
name: PropTypes.string.isRequired, | ||
image: PropTypes.string, | ||
isEnabled: PropTypes.bool.isRequired, | ||
isLoading: PropTypes.bool.isRequired, | ||
hasUpdates: PropTypes.bool, | ||
onToggle: PropTypes.func.isRequired, | ||
} | ||
|
||
render() { | ||
const {name, image, isEnabled} = this.props; | ||
|
||
return ( | ||
<li className={cn(styles.channel, {[styles.channelEnabled]: isEnabled})} onClick={this._toggle}> | ||
<Avatar url={image} className={styles.avatar} /> | ||
{name} | ||
</li> | ||
); | ||
} | ||
|
||
_toggle = () => { | ||
this.props.onToggle(this.props); | ||
} | ||
} |
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,37 @@ | ||
@import '../app/_theme.scss'; | ||
|
||
.root { | ||
padding: 0; | ||
margin: 8px 0; | ||
list-style-type: none; | ||
} | ||
|
||
.channel { | ||
height: 36px; | ||
padding: 6px 8px; | ||
margin: 0; | ||
line-height: 24px; | ||
font-size: 13px; | ||
box-sizing: border-box; | ||
cursor: pointer; | ||
|
||
&:hover { | ||
background-color: rgba(#efefef, .5); | ||
} | ||
|
||
&Enabled { | ||
color: $primaryColor; | ||
|
||
.avatar { | ||
box-shadow: 0 0 0 2px $primaryColor; | ||
} | ||
} | ||
} | ||
|
||
.avatar { | ||
width: 24px; | ||
height: 24px; | ||
margin-right: 8px; | ||
float: left; | ||
background-color: #efefef; | ||
} |
Oops, something went wrong.