Authored by biao

fix slider style issue

... ... @@ -9,7 +9,7 @@ const getContent = () => {
link: '/'
},
{
img: '//img10.static.yhbimg.com/yhb-img01/2016/06/28/11/015a86ade17dc6213bab85b2162adebcd6.jpg?imageView2/2/w/1150/h/450',
img: '//img10.static.yhbimg.com/yhb-img01/2016/06/23/13/01ebff30179db84975c42a4f3c8b1f4d44.jpg?imageView2/1/w/1150/h/450',
link: '/'
},
{
... ... @@ -17,6 +17,18 @@ const getContent = () => {
link: '/'
},
{
img: '//img10.static.yhbimg.com/yhb-img01/2016/06/23/13/01ebff30179db84975c42a4f3c8b1f4d44.jpg?imageView2/1/w/1150/h/450',
link: '/'
},
{
img: '//placehold.it/{width}x{height}',
link: '/'
},
{
img: '//img10.static.yhbimg.com/yhb-img01/2016/06/28/11/015a86ade17dc6213bab85b2162adebcd6.jpg?imageView2/2/w/1150/h/450',
link: '/'
},
{
img: '//img10.static.yhbimg.com/yhb-img01/2016/06/28/11/015a86ade17dc6213bab85b2162adebcd6.jpg?imageView2/2/w/1150/h/450',
link: '/'
},
... ...
... ... @@ -5,9 +5,9 @@
<li style="{{#if bgColor}}background:{{bgColor}}{{/if}}">
<a href="{{url}}" target= "_blank">
{{#if @first}}
<img src="{{image img 1150 450}}">
<img src="{{image img 1920 645}}">
{{^}}
<img class="lazy-img" data-original="{{image img 1150 450}}" alt="">
<img class="lazy-img" data-original="{{image img 1920 645}}" alt="">
{{/if}}
</a>
{{# tips}}
... ...
.home-page {
$sliderHeight: 450px;
$sliderHeight: 645px;
width: 1150px;
margin: 10px auto 0;
... ... @@ -21,7 +21,7 @@
.slide-wrapper {
position: relative;
height: 450px;
height: $sliderHeight;
overflow: hidden;
ul {
... ... @@ -60,7 +60,7 @@
}
.slide-container-placeholder {
height: 450px;
height: $sliderHeight;
width: 100%;
}
... ...