Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
e283f1eff9859b9b2992038c021cc4df7e514cfe
1 parent
481ecc85
fix slider style issue
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
apps/channel/models/index.js
apps/channel/views/partial/slider.hbs
public/scss/channel/_home.css
apps/channel/models/index.js
View file @
e283f1e
...
...
@@ -9,7 +9,7 @@ const getContent = () => {
link
:
'/'
},
{
img
:
'//img10.static.yhbimg.com/yhb-img01/2016/06/2
8/11/015a86ade17dc6213bab85b2162adebcd6.jpg?imageView2/2
/w/1150/h/450'
,
img
:
'//img10.static.yhbimg.com/yhb-img01/2016/06/2
3/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
:
'/'
},
...
...
apps/channel/views/partial/slider.hbs
View file @
e283f1e
...
...
@@ -5,9 +5,9 @@
<li
style=
"
{{#if
bgColor
}}
background:
{{
bgColor
}}{{/if}}
"
>
<a
href=
"
{{
url
}}
"
target=
"_blank"
>
{{#if
@first
}}
<img
src=
"
{{
image
img
1
150
450
}}
"
>
<img
src=
"
{{
image
img
1
920
645
}}
"
>
{{^}}
<img
class=
"lazy-img"
data-original=
"
{{
image
img
1
150
450
}}
"
alt=
""
>
<img
class=
"lazy-img"
data-original=
"
{{
image
img
1
920
645
}}
"
alt=
""
>
{{/if}}
</a>
{{#
tips
}}
...
...
public/scss/channel/_home.css
View file @
e283f1e
.home-page
{
$
sliderHeight
:
450
px
;
$
sliderHeight
:
645
px
;
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%
;
}
...
...
Please
register
or
login
to post a comment