Skip to content

Commit 290f11b

Browse files
committed
update homepage @1
1 parent 7b9aeda commit 290f11b

File tree

15 files changed

+6719
-39
lines changed

15 files changed

+6719
-39
lines changed

app/views/layouts/application.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
{{render_seo_tag}}
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<link href="https://fonts.googleapis.com/css?family=Montserrat|Source+Sans+Pro" rel="stylesheet">
78
<link rel="stylesheet" media="all" href="/dist/qor.css">
89
<script src="/vendors/jquery.js"></script>
910
</head>

app/views/widgets/slideshow.tmpl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
<ul class="slides">
33
{{range $slideImage := .Setting.SlideImages}}
44
<li>
5-
<div class="qor-slider__text"><p class="container">{{$slideImage.Title}}</p></div>
5+
<div class="qor-slider__texts">
6+
<div class="container">
7+
<h1 class="font_montserrat qor-slider__title animated fadeInDown">{{$slideImage.Title}}</h1>
8+
<h2 class="font_sourcesanspro qor-slider__subtitle animated fadeInDown">{{$slideImage.SubTitle}}</h2>
9+
<a class="font_sourcesanspro qor-slider__button" href="{{$slideImage.Link}}">{{$slideImage.Button}}</a>
10+
</div>
11+
</div>
612
<img src="{{$slideImage.Image}}" />
713
</li>
814
{{end}}
@@ -15,7 +21,8 @@
1521
$('.flexslider').flexslider({
1622
animation: 'slide',
1723
touch: true,
18-
directionNav: false
24+
directionNav: false,
25+
smoothHeight: true
1926
});
2027
})
2128
</script>

config/admin/widget.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ func initWidgets() {
158158

159159
type slideImage struct {
160160
Title string
161+
SubTitle string
162+
Button string
163+
Link string
161164
Image oss.OSS
162165
}
163166

gulpfile.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function adminTasks() {
3131
return gulp.src(styles.src)
3232
.pipe(plugins.sass())
3333
.pipe(plugins.csscomb())
34-
.pipe(plugins.minifyCss())
34+
.pipe(plugins.cleanCss())
3535
.pipe(gulp.dest(styles.dest));
3636
});
3737

0 commit comments

Comments
 (0)