-
Notifications
You must be signed in to change notification settings - Fork 97
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
2 changed files
with
40 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,73 @@ | ||
import * as React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { Col, Panel, Row } from 'react-bootstrap'; | ||
import { DropdownButton, Col, MenuItem, Panel, Row } from 'react-bootstrap'; | ||
|
||
export default class Intro extends React.Component { | ||
render() { | ||
return ( | ||
<div className='intro'> | ||
<div class="jumbotron"> | ||
<h1>Welcome to Stretto</h1> | ||
<p>Stretto is an open-source web-based music player</p> | ||
<p>Stretto is an <a href='https://github.com/benkaiser/stretto'>open-source</a> web-based music player</p> | ||
<DropdownButton | ||
bsStyle='primary' | ||
bsSize='large' | ||
title='Import to Stretto' | ||
id={`dropdown-import`} | ||
onSelect={this._onSelect.bind(this)} | ||
> | ||
<MenuItem eventKey="/spotify">From Spotify</MenuItem> | ||
<MenuItem eventKey="/add">From Youtube/Soundcloud</MenuItem> | ||
<MenuItem eventKey="/discover">From Top Charts</MenuItem> | ||
<MenuItem divider /> | ||
<MenuItem eventKey="/import">From last Stretto version</MenuItem> | ||
</DropdownButton> | ||
</div> | ||
<Row> | ||
<Col lg={4} md={6} sm={12}> | ||
<Panel className='introPanel' bsStyle="primary"> | ||
<Row className='displayFlex'> | ||
<Col className='displayFlex' lg={4} md={6} sm={12}> | ||
<Panel bsStyle="primary"> | ||
<Panel.Heading> | ||
<Panel.Title componentClass="h3" className='introPanelTitle'> | ||
<i className='fa fa-youtube' aria-hidden='true'></i> | ||
<span className='titleSpan'>Massive Library</span> | ||
<span className='titleSpan'>Millions of Songs</span> | ||
</Panel.Title> | ||
</Panel.Heading> | ||
<Panel.Body>Add to your library from youtube and soundcloud, millions of songs available</Panel.Body> | ||
<Panel.Body>Your music is backed by tracks from youtube and soundcloud, your library is unlimited</Panel.Body> | ||
</Panel> | ||
</Col> | ||
<Col lg={4} md={6} sm={12}> | ||
<Panel className='introPanel' bsStyle="primary"> | ||
<Col className='displayFlex' lg={4} md={6} sm={12}> | ||
<Panel bsStyle="primary"> | ||
<Panel.Heading> | ||
<Panel.Title componentClass="h3" className='introPanelTitle'> | ||
<i className='fa fa-headphones' aria-hidden='true'></i> | ||
<span className='titleSpan'>Unlimited Ad-Free Listening</span> | ||
<span className='titleSpan'>Listen Ad Free</span> | ||
</Panel.Title> | ||
</Panel.Heading> | ||
<Panel.Body> | ||
Listen to the music you love, uninterupted thanks to ad blockers ( | ||
<a target='_blank' href='https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en'>uBlock Origin Chrome</a> | ||
{' - '} | ||
<a target='_blank' href='https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/'>uBlock Origin Firefox</a> | ||
<a target='_blank' href='https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en'>Chrome</a> | ||
{' and '} | ||
<a target='_blank' href='https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/'>Firefox</a> | ||
). | ||
</Panel.Body> | ||
</Panel> | ||
</Col> | ||
<Col lg={4} md={6} sm={12}> | ||
<Panel className='introPanel' bsStyle="primary"> | ||
<Col className='displayFlex' lg={4} md={6} sm={12}> | ||
<Panel bsStyle="primary"> | ||
<Panel.Heading> | ||
<Panel.Title componentClass="h3" className='introPanelTitle'> | ||
<i className='fa fa-github' aria-hidden='true'></i> | ||
<span className='titleSpan'>Open Source</span> | ||
<i className='fa fa-music' aria-hidden='true'></i> | ||
<span className='titleSpan'>Discover New Music</span> | ||
</Panel.Title> | ||
</Panel.Heading> | ||
<Panel.Body>Built by members of the community in the open on <a href='https://github.com/benkaiser/stretto'>Github</a>.</Panel.Body> | ||
<Panel.Body>With access to the top hits from iTunes and Spotify, you can always find new music</Panel.Body> | ||
</Panel> | ||
</Col> | ||
</Row> | ||
</div> | ||
); | ||
} | ||
|
||
_onSelect(url) { | ||
this.props.history.push(url); | ||
} | ||
} |
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