fix thumbnail and font paths, add default thumbnail image

also remove reference to unused script (mimic.js) from index.html
This commit is contained in:
Jack 2016-03-21 12:04:46 -04:00
parent 443b4520c3
commit 279fc434c1
5 changed files with 16 additions and 8 deletions

9
dist/img/Free-speech-flag.svg vendored Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="480" height="288">
<rect fill="#09f911" width="96" height="288"/>
<rect fill="#029d74" width="96" height="288" x="96"/>
<rect fill="#e35bd8" width="96" height="288" x="192"/>
<rect fill="#4156c5" width="96" height="288" x="288"/>
<rect fill="#635688" width="96" height="288" x="384"/>
<text font-size="32" fill="white" font-family="Bitstream Vera Sans" x="388.1" y="269.3">+<tspan font-size="48">C0</tspan></text>
</svg>

After

Width:  |  Height:  |  Size: 507 B

1
dist/index.html vendored
View file

@ -20,7 +20,6 @@
<div id="canvas"></div> <div id="canvas"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-dom.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-dom.js"></script>
<script src="./js/mimic.js"></script>
<script src="./js/lbry.js"></script> <script src="./js/lbry.js"></script>
<script src="./js/gui.js"></script> <script src="./js/gui.js"></script>
</body> </body>

View file

@ -177,7 +177,7 @@ var SearchResults = React.createClass({
console.log('results'); console.log('results');
this.props.results.forEach(function(result) { this.props.results.forEach(function(result) {
rows.push( rows.push(
<SearchResultRow name={result.name} title={result.title} imgUrl={result.img} <SearchResultRow name={result.name} title={result.title} imgUrl={result.thumbnail}
description={result.description} cost_est={result.cost_est} /> description={result.description} cost_est={result.cost_est} />
); );
}); });
@ -191,7 +191,7 @@ var SearchResults = React.createClass({
}); });
var searchRowImgStyle = { var searchRowImgStyle = {
maxHeight: '200px', maxHeight: '100px',
display: 'block', display: 'block',
marginLeft: 'auto', marginLeft: 'auto',
marginRight: 'auto', marginRight: 'auto',
@ -304,8 +304,8 @@ var Discover = React.createClass({
<section><input type="search" style={searchInputStyle} onChange={this.onQueryChange} <section><input type="search" style={searchInputStyle} onChange={this.onQueryChange}
placeholder="Find movies, music, games, and more"/></section> placeholder="Find movies, music, games, and more"/></section>
{ this.state.searching ? <SearchActive /> : null } { this.state.searching ? <SearchActive /> : null }
{ !this.state.searching && this.state.result.length ? <SearchResults results={this.state.result} /> : null } { !this.state.searching && this.state.results.length ? <SearchResults results={this.state.results} /> : null }
{ !this.state.searching && !this.state.result.length && this.state.query ? <SearchNoResults query={this.state.query} /> : null } { !this.state.searching && !this.state.results.length && this.state.query ? <SearchNoResults query={this.state.query} /> : null }
</main> </main>
); );
} }

View file

@ -16,7 +16,7 @@ lbry.call = function (method, params, callback)
if (method_output.code !== 200) { if (method_output.code !== 200) {
throw new Error('Call to method ' + method + ' failed with message: ' + method_output.message); throw new Error('Call to method ' + method + ' failed with message: ' + method_output.message);
} }
console.log(method_output.result);
callback(method_output.result); callback(method_output.result);
}); });
xhr.open('POST', 'http://localhost:5279/lbryapi', true); xhr.open('POST', 'http://localhost:5279/lbryapi', true);

View file

@ -2,8 +2,8 @@
@font-face { @font-face {
font-family: 'FontAwesome'; font-family: 'FontAwesome';
src: url('/font/fontawesome-webfont.eot?v=4.3.0'); src: url('../font/fontawesome-webfont.eot?v=4.3.0');
src: url('/font/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('/font/fontawesome-webfont.woff2?v=4.3.0') format('woff2'), url('/font/fontawesome-webfont.woff?v=4.3.0') format('woff'), url('/font/fontawesome-webfont.ttf?v=4.3.0') format('truetype'), url('/font/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg'); src: url('../font/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('../font/fontawesome-webfont.woff2?v=4.3.0') format('woff2'), url('../font/fontawesome-webfont.woff?v=4.3.0') format('woff'), url('../font/fontawesome-webfont.ttf?v=4.3.0') format('truetype'), url('../font/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }