Skip to content

Commit

Permalink
improve discover page
Browse files Browse the repository at this point in the history
  • Loading branch information
benkaiser committed Jan 26, 2019
1 parent db2ea83 commit 47308b6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 23 deletions.
54 changes: 35 additions & 19 deletions src/js/views/intro.jsx
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);
}
}
9 changes: 5 additions & 4 deletions src/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ body, html {
flex-shrink: 0;
}

.displayFlex {
display: flex;
}

.dropdownContainer {
position: absolute;

Expand Down Expand Up @@ -114,10 +118,6 @@ body, html {
height: 100%;
}

.introPanel {
height: 200px;
}

.introPanelTitle {
.fa {
font-size: 40px
Expand All @@ -126,6 +126,7 @@ body, html {
.titleSpan {
font-size: 30px;
margin-left: 10px;
vertical-align: text-bottom;
}
}

Expand Down

0 comments on commit 47308b6

Please sign in to comment.