Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bobcat-su_full
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sergey
bobcat-su_full
Commits
4716c647
Commit
4716c647
authored
Nov 27, 2018
by
Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add slider
parent
8b3c5573
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
35 additions
and
4 deletions
+35
-4
gulpfile.js
gulpfile.js
+7
-1
swiper.css
src/css-common/swiper.css
+0
-0
background-min.jpg
src/img/nosprite/rastr/background-min.jpg
+0
-0
slide.jpg
src/img/nosprite/rastr/slide.jpg
+0
-0
slide.png
src/img/nosprite/rastr/slide.png
+0
-0
swiper.js
src/js-common/swiper.js
+0
-0
main-slider.js
src/js/main-slider.js
+11
-1
main-slider-common.scss
src/scss/main-slider/main-slider-common.scss
+7
-0
common-style.scss
src/scss/settings/common-style.scss
+1
-1
footer.html
src/template/common/footer.html
+2
-0
header.html
src/template/common/header.html
+1
-0
index.html
src/template/main-slider/index.html
+6
-1
No files found.
gulpfile.js
View file @
4716c647
...
...
@@ -23,6 +23,10 @@ gulp.task('browser-sync', function() {
}
});
});
gulp
.
task
(
'img:build'
,
function
()
{
return
gulp
.
src
(
'./src/img/nosprite/rastr/*.*'
)
.
pipe
(
gulp
.
dest
(
'./build/img/'
));
});
gulp
.
task
(
'fonts:build'
,
function
()
{
return
gulp
.
src
(
'./src/fonts/**/*.*'
)
...
...
@@ -129,6 +133,7 @@ gulp.task('watch', function() {
gulp
.
watch
(
'./src/fonts/**/*.*'
,
gulp
.
series
(
'fonts:build'
));
gulp
.
watch
(
'./src/js-common/**/*.*'
,
gulp
.
series
(
'js-common:build'
));
gulp
.
watch
(
'./src/css-common/**/*.*'
,
gulp
.
series
(
'css-common:build'
));
gulp
.
watch
(
'./src/img/nosprite/**/*.*'
,
gulp
.
series
(
'img:build'
));
});
...
...
@@ -147,7 +152,8 @@ gulp.task('default', gulp.series(
'sprite:svg'
,
'fonts:build'
,
'js-common:build'
,
'css-common:build'
'css-common:build'
,
'img:build'
),
gulp
.
parallel
(
'watch'
,
...
...
src/css-common/swiper.css
0 → 100644
View file @
4716c647
This diff is collapsed.
Click to expand it.
src/img/nosprite/rastr/background-min.jpg
0 → 100644
View file @
4716c647
704 KB
src/img/nosprite/rastr/slide.jpg
0 → 100644
View file @
4716c647
174 KB
src/img/nosprite/rastr/slide.png
0 → 100644
View file @
4716c647
This diff is collapsed.
Click to expand it.
src/js-common/swiper.js
0 → 100644
View file @
4716c647
This diff is collapsed.
Click to expand it.
src/js/main-slider.js
View file @
4716c647
'use strict'
;
(
function
()
{
document
.
addEventListener
(
'DOMContentLoaded'
,
function
()
{
var
mySwiperMP
=
new
Swiper
(
'.swiper-container'
,
{
direction
:
'horizontal'
,
loop
:
true
,
autoplay
:
{
delay
:
3000
,
grabCursor
:
true
},
});
});
})();
\ No newline at end of file
src/scss/main-slider/main-slider-common.scss
0 → 100644
View file @
4716c647
@import
"../settings/color"
;
.main-slider
{
background
:
radial-gradient
(
ellipse
at
center
,
rgba
(
255
,
255
,
255
,
0
)
0%
,
rgba
(
255
,
255
,
255
,
0
)
0%
,
rgba
(
0
,
0
,
0
,
0
.65
)
35%
,
#232021
80%
,
#232021
100%
)
,
url("/img/background-min.jpg")
no-repeat
;
background-size
:
cover
;
}
\ No newline at end of file
src/scss/settings/common-style.scss
View file @
4716c647
...
...
@@ -6,7 +6,7 @@ body{
margin
:
0
;
padding
:
0
;
font-family
:
'PT Sans'
,
serif
;
background
:
gray
;
background
:
#232021
;
}
.wrapper
{
...
...
src/template/common/footer.html
View file @
4716c647
<p>
sadasdasdad
</p>
</body>
<script
src=
"js/swiper.js"
></script>
<script
src=
"js/all.js"
></script>
</html>
\ No newline at end of file
src/template/common/header.html
View file @
4716c647
...
...
@@ -3,6 +3,7 @@
<head
lang=
"ru"
>
<meta
charset=
"UTF-8"
>
<title>
Bobcat SU
</title>
<link
rel=
"stylesheet"
href=
"css/swiper.css"
>
<link
rel=
"stylesheet"
href=
"css/style.css"
>
</head>
<body>
...
...
src/template/main-slider/index.html
View file @
4716c647
<div
class=
"main-slider"
>
<div
class=
"wrapper main-slider__wrapper"
>
dsfdsfsdf
<div
class=
"slider__main swiper-container"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"slider__main-item swiper-slide"
><a
href=
"#"
><img
src=
"img/slide.jpg"
></a></div>
</div>
</div>
</div>
</div>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment