Skip to content

Commit

Permalink
Add footer to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Apr 19, 2016
1 parent ed4825b commit 546678c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"extract-text-webpack-plugin": "^1.0.1",
"ignore-styles": "^1.1.0",
"imports-loader": "^0.6.4",
"json-loader": "^0.5.4",
"karma": "^0.13.16",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^0.2.2",
Expand Down
9 changes: 9 additions & 0 deletions src/demo/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import './defaults.scss'
import './App.scss'
import './Range.scss'

import { version } from '../../package.json'
import ReactPlayer from '../ReactPlayer'
import Duration from './Duration'

Expand Down Expand Up @@ -74,6 +75,7 @@ export default class App extends Component {
vimeoConfig,
youtubeConfig
} = this.state
const SEPARATOR = ' · '

return (
<div className='app'>
Expand Down Expand Up @@ -219,6 +221,13 @@ export default class App extends Component {
</tr>
</tbody></table>
</section>
<footer className='footer'>
Version <strong>{version}</strong>
{SEPARATOR}
<a href='https://github.com/CookPete/react-player'>GitHub</a>
{SEPARATOR}
<a href='https://www.npmjs.com/package/react-player'>npm</a>
</footer>
</div>
)
}
Expand Down
4 changes: 4 additions & 0 deletions src/demo/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ $gutter-width: 10px;
.faded {
color: rgba($black, .5);
}

.footer {
margin: $gutter-width;
}
3 changes: 3 additions & 0 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ module.exports = {
path.join(__dirname, 'src'),
path.join(__dirname, 'test', 'karma')
]
}, {
test: /\.json$/,
loader: 'json'
}, {
test: /\.scss$/,
loader: 'style!css?sourceMap!sass?sourceMap',
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ module.exports = {
test: /\.js$/,
loader: 'babel',
include: path.join(__dirname, 'src')
}, {
test: /\.json$/,
loader: 'json'
}, {
test: /\.scss$/,
loader: ExtractTextPlugin.extract('style', 'css?sourceMap!sass?sourceMap'),
Expand Down

0 comments on commit 546678c

Please sign in to comment.