diff --git a/dist.zip b/dist.zip index bfd2bc9bb..c8862f27b 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/js/page/claim_code.js b/js/page/claim_code.js index 238c56b40..e8fdf72a2 100644 --- a/js/page/claim_code.js +++ b/js/page/claim_code.js @@ -79,7 +79,7 @@ var ClaimCodePage = React.createClass({
-
+
diff --git a/js/page/home.js b/js/page/home.js index 73bbcb384..850c065ca 100644 --- a/js/page/home.js +++ b/js/page/home.js @@ -118,13 +118,14 @@ var SearchResultRow = React.createClass({ var featuredContentItemStyle = { fontSize: '0.95em', marginBottom: '10px', + minHeight: '130px', }, featuredContentItemImgStyle = { maxHeight: '90px', + maxWidth: '126px', display: 'block', marginLeft: 'auto', marginRight: 'auto', marginTop: '5px', - float: 'left', }, featuredContentItemDescriptionStyle = { color: '#444', marginBottom: '5px', @@ -143,6 +144,7 @@ var FeaturedContentItem = React.createClass({ return { metadata: null, title: null, + amount: 0.0, }; }, componentWillMount: function() { @@ -152,6 +154,11 @@ var FeaturedContentItem = React.createClass({ title: metadata.title || ('lbry://' + this.props.name), }) }); + lbry.search(this.props.name, (results) => { + this.setState({ + amount: results[0].cost_est + }); + }); }, render: function() { if (this.state.metadata == null) { @@ -173,7 +180,7 @@ var FeaturedContentItem = React.createClass({ { ' ' } -
+
); @@ -189,17 +196,15 @@ var FeaturedContent = React.createClass({ return (

Featured content

-
- {/* When ready, change to one/two/three/four/five/six */} - - +
+ + +
+
+ + +
-
- - - -
-
); } }); @@ -268,7 +273,7 @@ var Discover = React.createClass({ { this.state.searching ? : null } { !this.state.searching && this.state.query && this.state.results.length ? : null } { !this.state.searching && this.state.query && !this.state.results.length ? : null } - {/* !this.state.query && !this.state.searching ? : null */} + { !this.state.query && !this.state.searching ? : null } ); }