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
0ce63eb8
Commit
0ce63eb8
authored
Jan 10, 2019
by
Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add gallery product
parent
111c74fc
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
99 additions
and
2 deletions
+99
-2
galley-item.png
src/img/nosprite/rastr/galley-item.png
+0
-0
product-main.png
src/img/nosprite/rastr/product-main.png
+0
-0
item.html
src/item.html
+3
-0
gallery-slider.js
src/js/gallery-slider.js
+20
-0
product-main.scss
src/scss/product-main/product-main.scss
+45
-0
color.scss
src/scss/settings/color.scss
+3
-2
index.html
src/template/product-main/index.html
+28
-0
No files found.
src/img/nosprite/rastr/galley-item.png
0 → 100644
View file @
0ce63eb8
36.1 KB
src/img/nosprite/rastr/product-main.png
0 → 100644
View file @
0ce63eb8
171 KB
src/item.html
View file @
0ce63eb8
...
@@ -6,4 +6,6 @@
...
@@ -6,4 +6,6 @@
//= template/product-title/index.html
//= template/product-title/index.html
//= template/product-main/index.html
//= template/common/footer.html
//= template/common/footer.html
\ No newline at end of file
src/js/gallery-slider.js
0 → 100644
View file @
0ce63eb8
'use strict'
;
(
function
()
{
var
gallery
=
document
.
querySelectorAll
(
'.product__gallery-item'
);
if
(
gallery
.
length
){
gallery
.
forEach
(
function
(
item
)
{
item
.
addEventListener
(
'click'
,
function
()
{
item
.
classList
.
toggle
(
'active'
);
})
})
}
document
.
addEventListener
(
'DOMContentLoaded'
,
function
()
{
var
mySwiperProduct
=
new
Swiper
(
'.product__gallery'
,
{
direction
:
'horizontal'
,
slidesPerView
:
3
,
loop
:
false
,
});
});
})();
\ No newline at end of file
src/scss/product-main/product-main.scss
0 → 100644
View file @
0ce63eb8
@import
"../settings/color"
;
.product__main
{
display
:
flex
;
justify-content
:
space-between
;
}
.product__main-bl
{
width
:
33%
;
}
.product__grey-title
{
background
:
$grey-product
;
padding
:
12px
;
font-weight
:
bold
;
color
:
rgba
(
black
,
.8
);
}
.product__main-image
{
margin
:
0
7px
;
img
{
width
:
100%
;
}
}
.product__gallery
{
overflow
:
hidden
;
}
.product__gallery-list
{
padding-left
:
0
;
list-style-type
:
none
;
display
:
flex
;
justify-content
:
space-between
;
}
.product__gallery-item
{
width
:
33%
;
height
:
124px
;
overflow
:
hidden
;
cursor
:
pointer
;
border
:
1px
solid
white
;
img
{
width
:
100%
;
}
}
.product__gallery-item.active
{
border
:
1px
solid
black
;
}
src/scss/settings/color.scss
View file @
0ce63eb8
...
@@ -6,4 +6,5 @@ $about-bg: #dfdfdf;
...
@@ -6,4 +6,5 @@ $about-bg: #dfdfdf;
$grey-text
:
#727272
;
$grey-text
:
#727272
;
$footer
:
#333333
;
$footer
:
#333333
;
$bg-slider
:
#c4c4c4
;
$bg-slider
:
#c4c4c4
;
$dark-text
:
#323232
;
$dark-text
:
#323232
;
\ No newline at end of file
$grey-product
:
#dfdfdf
;
\ No newline at end of file
src/template/product-main/index.html
0 → 100644
View file @
0ce63eb8
<div
class=
"wrapper product__main"
>
<div
class=
"product__main-bl product__main-gallery"
>
<div
class=
"product__gallery-title product__grey-title"
>
Фото
</div>
<div
class=
"product__gallery"
>
<ul
class=
"product__gallery-list swiper-wrapper"
>
<li
class=
"product__gallery-item swiper-slide"
>
<img
src=
"img/galley-item.png"
>
</li>
<li
class=
"product__gallery-item swiper-slide"
>
<img
src=
"img/galley-item.png"
>
</li>
<li
class=
"product__gallery-item swiper-slide"
>
<img
src=
"img/galley-item.png"
>
</li>
<li
class=
"product__gallery-item swiper-slide"
>
<img
src=
"img/galley-item.png"
>
</li>
</ul>
</div>
</div>
<div
class=
"product__main-bl product__main-image"
>
<img
src=
"img/product-main.png"
alt=
"Товар"
>
</div>
<div
class=
"product__main-bl"
>
<div
class=
"product__dop-title product__grey-title"
>
Навесное оборудование
</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