ecomlab-components-next 0.1.293 → 0.1.295
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -229,7 +229,9 @@ var MainContainerTest = exports.MainContainerTest = function MainContainerTest()
|
|
|
229
229
|
}), /*#__PURE__*/_react["default"].createElement(_PointsListV["default"], {
|
|
230
230
|
list: point_list,
|
|
231
231
|
title: 'Возможности нашего сервиса',
|
|
232
|
-
|
|
232
|
+
columns: 5,
|
|
233
|
+
align: 'center',
|
|
234
|
+
violet: true
|
|
233
235
|
}), /*#__PURE__*/_react["default"].createElement(_LogosStrip["default"], null), /*#__PURE__*/_react["default"].createElement(_VideoBlockV["default"], {
|
|
234
236
|
src: "https://dl.ecomru.ru:9001/redactor-videos/ecomru_1.mp4"
|
|
235
237
|
}));
|
|
@@ -14,8 +14,17 @@ var PointsListV2 = function PointsListV2(_ref) {
|
|
|
14
14
|
var title = _ref.title,
|
|
15
15
|
list = _ref.list,
|
|
16
16
|
_ref$className = _ref.className,
|
|
17
|
-
className = _ref$className === void 0 ? '' : _ref$className
|
|
17
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
18
|
+
_ref$columns = _ref.columns,
|
|
19
|
+
columns = _ref$columns === void 0 ? 3 : _ref$columns,
|
|
20
|
+
align = _ref.align,
|
|
21
|
+
violet = _ref.violet;
|
|
18
22
|
(0, _useReveal["default"])();
|
|
23
|
+
|
|
24
|
+
// Создаем CSS-переменную для количества колонок
|
|
25
|
+
var gridStyle = {
|
|
26
|
+
'--columns': columns
|
|
27
|
+
};
|
|
19
28
|
return /*#__PURE__*/_react["default"].createElement("section", {
|
|
20
29
|
className: "points-list-v2"
|
|
21
30
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -23,7 +32,8 @@ var PointsListV2 = function PointsListV2(_ref) {
|
|
|
23
32
|
}, /*#__PURE__*/_react["default"].createElement("h2", {
|
|
24
33
|
className: "points-list-v2__title reveal"
|
|
25
34
|
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
26
|
-
className: "points-list-v2__content"
|
|
35
|
+
className: "points-list-v2__content",
|
|
36
|
+
style: gridStyle
|
|
27
37
|
}, list === null || list === void 0 ? void 0 : list.map(function (_ref2, index) {
|
|
28
38
|
var title = _ref2.title,
|
|
29
39
|
description = _ref2.description,
|
|
@@ -35,6 +45,9 @@ var PointsListV2 = function PointsListV2(_ref) {
|
|
|
35
45
|
'--index': index
|
|
36
46
|
}
|
|
37
47
|
}, icon && /*#__PURE__*/_react["default"].createElement("div", {
|
|
48
|
+
style: {
|
|
49
|
+
background: violet ? '#efe8fd' : ''
|
|
50
|
+
},
|
|
38
51
|
className: "points-list-v2__item-icon"
|
|
39
52
|
}, /*#__PURE__*/_react["default"].createElement(_image["default"], {
|
|
40
53
|
src: icon,
|
|
@@ -42,8 +55,14 @@ var PointsListV2 = function PointsListV2(_ref) {
|
|
|
42
55
|
width: 44,
|
|
43
56
|
height: 44
|
|
44
57
|
})), /*#__PURE__*/_react["default"].createElement("h4", {
|
|
58
|
+
style: {
|
|
59
|
+
textAlign: align ? align : ''
|
|
60
|
+
},
|
|
45
61
|
className: "points-list-v2__item-title"
|
|
46
62
|
}, title), /*#__PURE__*/_react["default"].createElement("p", {
|
|
63
|
+
style: {
|
|
64
|
+
textAlign: align ? align : ''
|
|
65
|
+
},
|
|
47
66
|
className: "points-list-v2__item-text"
|
|
48
67
|
}, description));
|
|
49
68
|
}))));
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
&__content {
|
|
29
29
|
display: grid;
|
|
30
|
-
grid-template-columns: repeat(3, 1fr);
|
|
30
|
+
grid-template-columns: repeat(var(--columns, 3), 1fr);
|
|
31
31
|
gap: 24px;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
@media (max-width: 900px) {
|
|
126
126
|
.points-list-v2 {
|
|
127
127
|
&__content {
|
|
128
|
-
grid-template-columns: repeat(2, 1fr);
|
|
128
|
+
grid-template-columns: repeat(2, 1fr) !important;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
.points-list-v2 {
|
|
135
135
|
|
|
136
136
|
&__content {
|
|
137
|
-
grid-template-columns: 1fr;
|
|
137
|
+
grid-template-columns: 1fr !important;
|
|
138
138
|
gap: 16px;
|
|
139
139
|
}
|
|
140
140
|
|