Use height for landing page logos

Using height means the browser can allocate space for the image before
it loads, so there’s no flash of movement
This commit is contained in:
Brett Sun 2016-01-12 15:06:43 +01:00
parent 315e5f0108
commit 5b2178eb7e
4 changed files with 6 additions and 4 deletions

View File

@ -30,7 +30,10 @@ let Vivi23Landing = React.createClass({
<div className="row">
<div className="col-xs-12">
<div className="row vivi23-landing--header">
<img className="vivi23-landing--header-logo" src={this.props.whitelabel.logo} />
<img
className="vivi23-landing--header-logo"
src={this.props.whitelabel.logo}
height="75" />
<div>
{getLangText('Artwork from the 23VIVI Marketplace is powered by') + ' '}
<span className="icon-ascribe-logo" />

View File

@ -30,7 +30,7 @@ let CylandLanding = React.createClass({
<div className="row">
<div className="col-xs-12">
<div className="row" style={{border: '1px solid #CCC', padding: '2em'}}>
<img src={this.props.whitelabel.logo} width="400px"/>
<img src={this.props.whitelabel.logo} height="115"/>
<div style={{marginTop: '1em'}}>
{getLangText('Submissions to Cyland Archive are powered by') + ' '}
<span>

View File

@ -29,7 +29,7 @@ let LumenusLanding = React.createClass({
<div className="row">
<div className="col-xs-12 wp-landing-wrapper">
<div className="row" style={{border: '1px solid #CCC', padding: '2em'}}>
<img src={this.props.whitelabel.logo} width="150px"/>
<img src={this.props.whitelabel.logo} height="150"/>
<div style={{marginTop: '1em'}}>
{getLangText('Artwork from the Lumenus Marketplace is powered by') + ' '}
<span>

View File

@ -34,7 +34,6 @@ $vivi23--highlight-color: #de2600;
.vivi23-landing--header-logo {
margin-top: 1em;
margin-bottom: 2em;
height: 75px;
}
}