Add default thumbnails everywhere
This commit is contained in:
parent
5ae7bb4ac2
commit
a679c9944a
4 changed files with 13 additions and 4 deletions
9
dist/img/default-thumb.svg
vendored
Normal file
9
dist/img/default-thumb.svg
vendored
Normal 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 |
|
@ -96,7 +96,7 @@ var SearchResultRow = React.createClass({
|
|||
<section className={ 'card ' + (obscureNsfw ? 'card-obscured' : '') } onMouseEnter={this.handleMouseOver} onMouseLeave={this.handleMouseOut}>
|
||||
<div className="row-fluid card-content" style={searchRowStyle}>
|
||||
<div className="span3">
|
||||
<img src={this.props.imgUrl} alt={'Photo for ' + (this.props.title || this.props.name)} style={searchRowImgStyle} />
|
||||
<img src={this.props.imgUrl || '/img/default-thumb.svg'} alt={'Photo for ' + (this.props.title || this.props.name)} style={searchRowImgStyle} />
|
||||
</div>
|
||||
<div className="span9">
|
||||
<span style={searchRowCostStyle}>
|
||||
|
@ -174,7 +174,7 @@ var FeaturedContentItem = React.createClass({
|
|||
}
|
||||
|
||||
return (<div style={featuredContentItemContainerStyle}>
|
||||
<SearchResultRow name={this.props.name} title={this.state.title} imgUrl={this.state.metadata.thumbnail}
|
||||
<SearchResultRow name={this.props.name} title={this.state.title} imgUrl={this.state.metadata.thumbnail || '/img/default-thumb.svg'}
|
||||
description={this.state.metadata.description} cost={this.state.amount} nsfw={this.state.metadata.nsfw}
|
||||
available={this.state.available} />
|
||||
</div>);
|
||||
|
|
|
@ -98,7 +98,7 @@ var MyFilesRow = React.createClass({
|
|||
<section className="card">
|
||||
<div className="row-fluid">
|
||||
<div className="span3">
|
||||
{this.props.imgUrl ? <img src={this.props.imgUrl} alt={'Photo for ' + this.props.title} style={artStyle} /> : null}
|
||||
<img src={this.props.imgUrl || '/img/default-thumb.svg'} alt={'Photo for ' + this.props.title} style={artStyle} />
|
||||
</div>
|
||||
<div className="span8">
|
||||
<h3>{this.props.pending ? this.props.title : <a href={'/?show=' + this.props.lbryUri}>{this.props.title}</a>}</h3>
|
||||
|
|
|
@ -31,7 +31,7 @@ var FormatItem = React.createClass({
|
|||
return (
|
||||
<div className="row-fluid">
|
||||
<div className="span4">
|
||||
<img src={thumbnail} alt={'Photo for ' + title} style={formatItemImgStyle} />
|
||||
<img src={thumbnail || '/img/default-thumb.svg'} alt={'Photo for ' + title} style={formatItemImgStyle} />
|
||||
</div>
|
||||
<div className="span8">
|
||||
<p>{description}</p>
|
||||
|
|
Loading…
Add table
Reference in a new issue