Phyks (Lucas Verney)
288039e732
* Build everything in `public/` folder, to serve only this and avoid issues with `publicPath` in webpack. * Moved some icons to FontAwesome and use spinning wheels from FontAwesome to indicate loading. * (Very) beginning of a webplayer.
128 lines
5.0 KiB
JavaScript
128 lines
5.0 KiB
JavaScript
import React, { Component } from "react";
|
|
import CSSModules from "react-css-modules";
|
|
import FontAwesome from "react-fontawesome";
|
|
|
|
import css from "../styles/Discover.scss";
|
|
|
|
export default class DiscoverCSS extends Component {
|
|
render () {
|
|
const artistsAlbumsSongsDropdown = (
|
|
<div className="btn-group">
|
|
<button type="button" className="btn btn-default dropdown-toggle" styleName="h2Title" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<span styleName="dashedUnderline">albums</span>
|
|
<span className="caret" styleName="caret"></span>
|
|
</button>
|
|
<ul className="dropdown-menu" styleName="dropdown-menu">
|
|
<li><a href="#" role="button">artists</a></li>
|
|
<li className="active"><a href="#" role="button">albums</a></li>
|
|
<li><a href="#" role="button">songs</a></li>
|
|
</ul>
|
|
</div>
|
|
);
|
|
const bobDylan = (
|
|
<div className="col-xs-4 col-sm-2">
|
|
<div className="text-center">
|
|
<a title="Aller à la page de l'artiste" href="#/artist/15">
|
|
<img src="" width="200" height="200" className="img-responsive img-circle art" alt="Bob Dylan"/>
|
|
</a>
|
|
<h4>
|
|
Bob Dylan
|
|
</h4>
|
|
</div>
|
|
</div>
|
|
);
|
|
return (
|
|
<div className="row">
|
|
<h2 styleName="noMarginTop">
|
|
<FontAwesome name="heart" aria-hidden="true" />
|
|
More { artistsAlbumsSongsDropdown } you might like
|
|
</h2>
|
|
|
|
<div className="col-xs-12">
|
|
<div className="row">
|
|
<div className="col-xs-4 col-sm-2 col-sm-offset-1">
|
|
<div className="text-center">
|
|
<a title="Aller à la page de l'artiste" href="#/artist/15">
|
|
<img src="" width="200" height="200" className="img-responsive img-circle art" alt="Bob Dylan"/>
|
|
</a>
|
|
<h4>
|
|
Bob Dylan
|
|
</h4>
|
|
</div>
|
|
</div>
|
|
{ bobDylan }
|
|
{ bobDylan }
|
|
{ bobDylan }
|
|
{ bobDylan }
|
|
</div>
|
|
<hr/>
|
|
</div>
|
|
|
|
|
|
<h2>
|
|
<FontAwesome name="thumbs-up" aria-hidden="true"/>
|
|
Popular { artistsAlbumsSongsDropdown }
|
|
</h2>
|
|
<div className="col-xs-12">
|
|
<div className="row">
|
|
<div className="col-xs-4 col-sm-2 col-sm-offset-1">
|
|
<div className="text-center">
|
|
<a title="Aller à la page de l'artiste" href="#/artist/15">
|
|
<img src="" width="200" height="200" className="img-responsive img-circle art" alt="Bob Dylan"/>
|
|
</a>
|
|
<h4>
|
|
Bob Dylan
|
|
</h4>
|
|
</div>
|
|
</div>
|
|
{ bobDylan }
|
|
{ bobDylan }
|
|
{ bobDylan }
|
|
{ bobDylan }
|
|
</div>
|
|
<hr/>
|
|
</div>
|
|
|
|
|
|
<h2>
|
|
<FontAwesome name="plus-square" aria-hidden="true" />
|
|
Recent additions
|
|
</h2>
|
|
<div className="col-xs-12">
|
|
<div className="row">
|
|
<div className="col-xs-4 col-sm-2 col-sm-offset-1">
|
|
<div className="text-center">
|
|
<a title="Aller à la page de l'artiste" href="#/artist/15">
|
|
<img src="" width="200" height="200" className="img-responsive img-circle art" alt="Bob Dylan"/>
|
|
</a>
|
|
<h4>
|
|
Bob Dylan
|
|
</h4>
|
|
</div>
|
|
</div>
|
|
{ bobDylan }
|
|
{ bobDylan }
|
|
{ bobDylan }
|
|
{ bobDylan }
|
|
</div>
|
|
<hr/>
|
|
</div>
|
|
|
|
|
|
<h2>
|
|
<FontAwesome name="volume-up" aria-hidden="true" />
|
|
Currently playing
|
|
</h2>
|
|
|
|
<table>
|
|
</table>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
DiscoverCSS.propTypes = {
|
|
};
|
|
|
|
export default CSSModules(DiscoverCSS, css);
|