make it clear the search box is not actually a search box

This commit is contained in:
Jeremy Kauffman 2016-07-26 09:19:54 -04:00
parent 1048f110da
commit a7ae10530e

View file

@ -1,9 +1,18 @@
var searchInputStyle = { var
width: '400px', searchContainerStyle = {
display: 'block', display: 'block',
marginBottom: '48px', marginBottom: '48px',
marginLeft: 'auto', marginLeft: 'auto',
marginRight: 'auto' marginRight: 'auto',
textAlign: 'center'
},
protocolLabelStyle = {
color: '#888',
fontSize: '0.9em',
marginRight: '2px'
},
searchInputStyle = {
width: '400px',
}, },
fetchResultsStyle = { fetchResultsStyle = {
color: '#888', color: '#888',
@ -320,8 +329,13 @@ var Discover = React.createClass({
console.log(this.state); console.log(this.state);
return ( return (
<main style={discoverMainStyle}> <main style={discoverMainStyle}>
<section><input type="search" style={searchInputStyle} onChange={this.onQueryChange} <section>
placeholder="Find movies, music, games, and more"/></section> <div style={searchContainerStyle}>
<span style={protocolLabelStyle}>lbry://</span>
<input type="search" style={searchInputStyle} onChange={this.onQueryChange}
placeholder="lbrydomainname"/>
</div>
</section>
{ this.state.searching ? <SearchActive /> : null } { this.state.searching ? <SearchActive /> : null }
{ !this.state.searching && this.state.query && this.state.results.length ? <SearchResults results={this.state.results} /> : null } { !this.state.searching && this.state.query && this.state.results.length ? <SearchResults results={this.state.results} /> : null }
{ !this.state.searching && this.state.query && !this.state.results.length ? <SearchNoResults query={this.state.query} /> : null } { !this.state.searching && this.state.query && !this.state.results.length ? <SearchNoResults query={this.state.query} /> : null }