ecomlab-components-next 0.1.257 → 0.1.260

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.
Files changed (36) hide show
  1. package/dist/components/Buttons/ButtonBasicV2/ButtonBasicV2.js +12 -39
  2. package/dist/components/Buttons/ButtonBasicV2/ButtonBasicV2.scss +44 -36
  3. package/dist/components/ConstructorComponents/ArticlesBlockV2/ArticlesBlockV2.module.scss +99 -181
  4. package/dist/components/ConstructorComponents/BlocksInfoV2/BlocksInfoV2.js +24 -33
  5. package/dist/components/ConstructorComponents/BlocksInfoV2/BlocksInfoV2.scss +208 -194
  6. package/dist/components/ConstructorComponents/CardsServicesV2/CardsServicesV2.js +10 -7
  7. package/dist/components/ConstructorComponents/CardsServicesV2/CardsServicesV2.scss +114 -145
  8. package/dist/components/ConstructorComponents/CardsV2/CardsV2.js +10 -11
  9. package/dist/components/ConstructorComponents/CardsV2/CardsV2.scss +162 -158
  10. package/dist/components/ConstructorComponents/CardsWithButton/CardsWithButton.js +8 -8
  11. package/dist/components/ConstructorComponents/CardsWithButton/CardsWithButton.scss +33 -54
  12. package/dist/components/ConstructorComponents/ClientsAboutUsV2/ClientsAboutUsV2.js +22 -35
  13. package/dist/components/ConstructorComponents/ClientsAboutUsV2/ClientsAboutUsV2.scss +68 -193
  14. package/dist/components/ConstructorComponents/FeaturesGridV2/FeaturesGridV2.js +24 -15
  15. package/dist/components/ConstructorComponents/FeaturesGridV2/FeaturesGridV2.scss +145 -110
  16. package/dist/components/ConstructorComponents/FormV2/FormV2.js +12 -7
  17. package/dist/components/ConstructorComponents/FormV2/FormV2.scss +28 -43
  18. package/dist/components/ConstructorComponents/HeaderV2/HeaderV2.js +1 -1
  19. package/dist/components/ConstructorComponents/LogosStrip/LogosStrip.js +9 -9
  20. package/dist/components/ConstructorComponents/LogosStrip/LogosStrip.scss +30 -43
  21. package/dist/components/ConstructorComponents/MarqueImgsV2/MarqueImgsV2.scss +1 -1
  22. package/dist/components/ConstructorComponents/PhoneBlockV2/PhoneBlockV2.js +15 -11
  23. package/dist/components/ConstructorComponents/PhoneBlockV2/PhoneBlockV2.scss +56 -115
  24. package/dist/components/ConstructorComponents/PointsListV2/PointsListV2.scss +56 -42
  25. package/dist/components/ConstructorComponents/QuestionsV2/QuestionsV2.js +12 -12
  26. package/dist/components/ConstructorComponents/QuestionsV2/QuestionsV2.scss +47 -45
  27. package/dist/components/ConstructorComponents/ServicesSectionV2/ServicesSectionV2.js +5 -3
  28. package/dist/components/ConstructorComponents/SmartReplies/SmartReplies.js +9 -4
  29. package/dist/components/ConstructorComponents/SmartReplies/SmartReplies.scss +35 -57
  30. package/dist/components/ConstructorComponents/StatisticCardV2/StatisticCardV2.js +5 -9
  31. package/dist/components/ConstructorComponents/StatisticCardV2/StatisticCardV2.module.scss +46 -83
  32. package/dist/components/ConstructorComponents/StepsV2/StepsV2.js +25 -27
  33. package/dist/components/ConstructorComponents/StepsV2/StepsV2.module.scss +156 -185
  34. package/dist/components/ConstructorComponents/VideoBlockV2/VideoBlockV2.scss +26 -28
  35. package/dist/components/ConstructorComponents/variables.scss +1 -1
  36. package/package.json +1 -1
@@ -1,48 +1,47 @@
1
1
  @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
2
2
  @import '../variables.scss';
3
3
 
4
- .clients-about-us-v2 {
5
- padding: 96px 48px;
6
- background: #FFFFFF;
7
-
8
- * {
4
+ .clients-about-v2 {
5
+ font-family: 'Manrope', sans-serif;
6
+ background: $white;
7
+ width: 100%;
8
+ padding: 96px 40px;
9
+
10
+ * {
9
11
  font-family: 'Manrope', 'Golos Text', sans-serif !important;
10
12
  }
11
-
12
- // Заголовок секции
13
+
13
14
  &__title {
14
15
  font-size: 30px;
15
16
  font-weight: 800;
16
17
  letter-spacing: -0.5px;
17
18
  text-align: center;
18
19
  margin-bottom: 16px;
19
- color: #1A1A2E;
20
+ color: $text;
20
21
  }
21
-
22
- // Блок с цитатой
22
+
23
23
  &__header {
24
24
  text-align: center;
25
25
  max-width: 800px;
26
26
  margin: 0 auto 48px;
27
27
  }
28
-
28
+
29
29
  &__blockquote {
30
30
  font-size: 18px;
31
31
  font-weight: 600;
32
32
  line-height: 1.4;
33
- color: #1A1A2E;
33
+ color: $text;
34
34
  margin-bottom: 12px;
35
35
  quotes: none;
36
36
  }
37
-
37
+
38
38
  &__cite {
39
39
  font-size: 14px;
40
- color: #6B7280;
40
+ color: $muted;
41
41
  font-style: normal;
42
42
  display: block;
43
43
  }
44
-
45
- // Карточки
44
+
46
45
  &__cards {
47
46
  max-width: 1280px;
48
47
  margin: 0 auto;
@@ -50,263 +49,139 @@
50
49
  grid-template-columns: repeat(2, 1fr);
51
50
  gap: 24px;
52
51
  }
53
-
52
+
54
53
  &__card {
55
- background: #F7F8FC;
54
+ background: $bg;
56
55
  border-radius: 20px;
57
56
  padding: 32px;
58
- border: 1px solid #E5E7EB;
57
+ border: 1px solid $border;
59
58
  transition: transform 0.2s ease, box-shadow 0.2s ease;
60
59
  display: flex;
61
60
  flex-direction: column;
62
-
61
+
63
62
  &:hover {
64
63
  transform: translateY(-4px);
65
64
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
66
65
  }
67
-
68
- &--dark {
69
- background: linear-gradient(135deg, #1A1A2E 0%, #064E3B 100%);
66
+
67
+ &_dark {
68
+ background: linear-gradient(135deg, $text 0%, $green-forest 100%);
70
69
  border: none;
71
-
72
- .clients-about-us-v2__card-title {
73
- color: #FFFFFF;
70
+
71
+ .clients-about-v2__card-title {
72
+ color: $white;
74
73
  }
75
-
76
- .clients-about-us-v2__card-description {
74
+
75
+ .clients-about-v2__description {
77
76
  color: rgba(255, 255, 255, 0.8);
78
77
  }
79
78
  }
80
79
  }
81
-
80
+
82
81
  &__card-title {
83
82
  font-size: 20px;
84
83
  font-weight: 700;
85
84
  margin-bottom: 20px;
86
- color: #1A1A2E;
85
+ color: $text;
87
86
  }
88
-
89
- &__card-description {
87
+
88
+ &__description {
90
89
  font-size: 14px;
91
90
  line-height: 1.6;
92
91
  color: #4B5563;
93
92
  margin-bottom: 28px;
94
93
  flex: 1;
95
-
94
+
96
95
  br {
97
96
  display: block;
98
97
  content: "";
99
98
  margin-top: 4px;
100
99
  }
101
100
  }
102
-
103
- // Кнопки
104
- &__card-btn {
105
- display: inline-flex;
106
- align-items: center;
107
- justify-content: center;
108
- gap: 8px;
109
- padding: 12px 24px;
110
- border-radius: 10px;
111
- font-size: 14px;
112
- font-weight: 600;
113
- cursor: pointer;
114
- transition: all 0.2s ease;
115
- font-family: 'Manrope', sans-serif;
116
- width: fit-content;
117
- min-width: 160px;
118
-
119
- &--green {
120
- background: #059669;
121
- color: #FFFFFF;
122
- border: none;
123
-
124
- &:hover {
125
- background: #047857;
126
- transform: translateY(-2px);
127
- box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
128
- }
129
- }
130
-
131
- &--outline {
132
- background: transparent;
133
- color: #059669;
134
- border: 1.5px solid #059669;
135
-
136
- &:hover {
137
- background: #D1FAE5;
138
- transform: translateY(-2px);
139
- }
101
+
102
+ @keyframes fadeUp {
103
+ from {
104
+ opacity: 0;
105
+ transform: translateY(24px);
140
106
  }
141
-
142
- &:active {
107
+
108
+ to {
109
+ opacity: 1;
143
110
  transform: translateY(0);
144
111
  }
145
112
  }
146
113
  }
147
114
 
148
- // ========== МОБИЛЬНАЯ АДАПТАЦИЯ ==========
115
+ // Планшет (до 1100px)
116
+ @media (max-width: 1100px) {
117
+ .clients-about-v2 {
118
+ padding: 72px 24px;
119
+
120
+ &__title {
121
+ font-size: 26px;
122
+ }
149
123
 
150
- @media (max-width: 900px) {
151
- .clients-about-us-v2 {
152
- padding: 70px 32px;
153
-
154
124
  &__cards {
155
125
  gap: 20px;
156
126
  }
157
-
127
+
158
128
  &__card {
159
129
  padding: 28px;
160
130
  }
161
-
131
+
162
132
  &__card-title {
163
133
  font-size: 18px;
164
134
  }
165
-
166
- &__card-description {
135
+
136
+ &__description {
167
137
  font-size: 13px;
168
138
  }
169
139
  }
170
140
  }
171
141
 
142
+ // Мобильная версия (до 768px)
172
143
  @media (max-width: 768px) {
173
- .clients-about-us-v2 {
174
- padding: 60px 24px;
175
-
176
- &__title {
177
- font-size: 26px;
178
- }
179
-
180
- &__blockquote {
181
- font-size: 16px;
182
- }
183
-
144
+ .clients-about-v2 {
145
+
184
146
  &__cards {
185
147
  grid-template-columns: 1fr;
186
148
  gap: 24px;
187
149
  }
188
-
189
- &__card {
190
- padding: 28px 24px;
191
- }
192
-
193
- &__card-title {
194
- font-size: 18px;
195
- margin-bottom: 16px;
196
- }
197
-
198
- &__card-description {
199
- font-size: 13px;
200
- margin-bottom: 24px;
201
- }
202
-
203
- &__card-btn {
204
- padding: 10px 20px;
205
- font-size: 13px;
206
- min-width: 140px;
207
- }
208
150
  }
209
151
  }
210
152
 
211
- @media (max-width: 600px) {
212
- .clients-about-us-v2 {
213
- padding: 48px 20px;
214
-
215
- &__title {
216
- font-size: 24px;
217
- margin-bottom: 12px;
218
- }
219
-
220
- &__header {
221
- margin-bottom: 36px;
222
- }
223
-
224
- &__blockquote {
225
- font-size: 15px;
226
- }
227
-
228
- &__cite {
229
- font-size: 13px;
230
- }
231
-
232
- &__card {
233
- padding: 24px 20px;
234
- }
235
- }
236
- }
153
+ // Мобильная версия (до 430px)
154
+ @media (max-width: 430px) {
155
+ .clients-about-v2 {
156
+ padding: 40px 20px;
237
157
 
238
- @media (max-width: 480px) {
239
- .clients-about-us-v2 {
240
- padding: 40px 16px;
241
-
242
158
  &__title {
243
159
  font-size: 22px;
244
160
  }
245
-
161
+
246
162
  &__blockquote {
247
163
  font-size: 14px;
248
164
  }
249
-
250
- &__cards {
251
- gap: 20px;
252
- }
253
-
254
- &__card {
255
- padding: 20px 16px;
256
- border-radius: 16px;
257
- }
258
-
259
- &__card-title {
260
- font-size: 16px;
261
- margin-bottom: 14px;
262
- }
263
-
264
- &__card-description {
265
- font-size: 12px;
266
- line-height: 1.5;
267
- margin-bottom: 20px;
268
- }
269
-
270
- &__card-btn {
271
- padding: 10px 18px;
272
- font-size: 13px;
273
- min-width: 130px;
274
- width: 100%;
275
- }
276
- }
277
- }
278
165
 
279
- @media (max-width: 375px) {
280
- .clients-about-us-v2 {
281
- padding: 32px 12px;
282
-
283
- &__title {
284
- font-size: 20px;
285
- }
286
-
287
- &__blockquote {
288
- font-size: 13px;
289
- }
290
-
291
166
  &__cite {
292
167
  font-size: 12px;
293
168
  }
294
-
169
+
295
170
  &__card {
296
171
  padding: 18px 14px;
297
172
  }
298
-
173
+
299
174
  &__card-title {
300
175
  font-size: 15px;
301
176
  }
302
-
303
- &__card-description {
177
+
178
+ &__description {
304
179
  font-size: 12px;
305
180
  }
306
-
307
- &__card-btn {
308
- padding: 8px 16px;
309
- font-size: 12px;
181
+
182
+ &__button {
183
+ max-width: 100% !important;
184
+ width: 100% !important;
310
185
  }
311
186
  }
312
187
  }
@@ -23,21 +23,25 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
23
23
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
24
24
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
25
25
  var FeaturesGridV2 = function FeaturesGridV2(_ref) {
26
+ var _window;
26
27
  var _ref$list = _ref.list,
27
28
  list = _ref$list === void 0 ? [] : _ref$list,
28
29
  _ref$title = _ref.title,
29
30
  title = _ref$title === void 0 ? '' : _ref$title,
30
31
  _ref$description = _ref.description,
31
- description = _ref$description === void 0 ? '' : _ref$description;
32
+ description = _ref$description === void 0 ? '' : _ref$description,
33
+ _ref$linkMain = _ref.linkMain,
34
+ linkMain = _ref$linkMain === void 0 ? 'https://lk.ecomru.ru' : _ref$linkMain;
32
35
  var blocksRef = (0, _react.useRef)([]);
33
36
  var _useState = (0, _react.useState)(0),
34
37
  _useState2 = _slicedToArray(_useState, 2),
35
38
  maxHeight = _useState2[0],
36
39
  setMaxHeight = _useState2[1];
37
- var _useState3 = (0, _react.useState)(window.innerWidth),
40
+ var _useState3 = (0, _react.useState)(typeof window !== 'undefined' ? window.innerWidth : 0),
38
41
  _useState4 = _slicedToArray(_useState3, 2),
39
42
  windowWidth = _useState4[0],
40
43
  setWindowWidth = _useState4[1];
44
+ var current_query = (_window = window) === null || _window === void 0 || (_window = _window.location) === null || _window === void 0 ? void 0 : _window.search;
41
45
  var syncHeight = (0, _react.useCallback)(function () {
42
46
  var heights = blocksRef.current.filter(function (el) {
43
47
  return el && el.offsetHeight > 0;
@@ -62,32 +66,37 @@ var FeaturesGridV2 = function FeaturesGridV2(_ref) {
62
66
  return window.removeEventListener('resize', onResize);
63
67
  };
64
68
  }, [syncHeight]);
65
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("section", {
66
- className: "fg5"
69
+ return /*#__PURE__*/_react["default"].createElement("section", {
70
+ className: "features-grid-v2"
67
71
  }, /*#__PURE__*/_react["default"].createElement("div", {
68
- className: "fg5__inner"
72
+ className: "features-grid-v2__inner"
69
73
  }, /*#__PURE__*/_react["default"].createElement("div", {
70
- className: "fg5__header"
74
+ className: "features-grid-v2__header"
71
75
  }, /*#__PURE__*/_react["default"].createElement("div", {
72
- className: "fg5__header-left"
76
+ className: "features-grid-v2__header-left"
73
77
  }, title && /*#__PURE__*/_react["default"].createElement("h2", {
74
- className: "fg5__title"
78
+ className: "features-grid-v2__title"
75
79
  }, title), description && /*#__PURE__*/_react["default"].createElement("p", {
76
- className: "fg5__subtitle"
80
+ className: "features-grid-v2__subtitle"
77
81
  }, description)), /*#__PURE__*/_react["default"].createElement(_ButtonBasicV["default"], {
82
+ className: "features-grid-v2__btn",
78
83
  size: '52px',
79
84
  green: true,
80
- text: 'Попробовать бесплатно →'
85
+ onClick: function onClick() {
86
+ var _window2;
87
+ return (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.open("".concat(linkMain, "/auth").concat(current_query), '_blank');
88
+ },
89
+ text: 'Попробовать бесплатно'
81
90
  })), /*#__PURE__*/_react["default"].createElement("div", {
82
- className: "fg5__items"
91
+ className: "features-grid-v2__items"
83
92
  }, list === null || list === void 0 ? void 0 : list.map(function (_ref2, index) {
84
93
  var title = _ref2.title,
85
94
  description = _ref2.description;
86
95
  return /*#__PURE__*/_react["default"].createElement("div", {
87
96
  key: index,
88
- className: "fg5__card"
97
+ className: "features-grid-v2__card"
89
98
  }, /*#__PURE__*/_react["default"].createElement("div", {
90
- className: "fg5__card-heading",
99
+ className: "features-grid-v2__card-heading",
91
100
  ref: function ref(el) {
92
101
  blocksRef.current[index] = el;
93
102
  },
@@ -95,8 +104,8 @@ var FeaturesGridV2 = function FeaturesGridV2(_ref) {
95
104
  minHeight: windowWidth > 430 && maxHeight > 0 ? maxHeight : undefined
96
105
  }
97
106
  }, title), /*#__PURE__*/_react["default"].createElement("p", {
98
- className: "fg5__card-text"
107
+ className: "features-grid-v2__card-text"
99
108
  }, description));
100
- })))));
109
+ }))));
101
110
  };
102
111
  var _default = exports["default"] = /*#__PURE__*/_react["default"].memo(FeaturesGridV2);