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.
- package/dist/components/Buttons/ButtonBasicV2/ButtonBasicV2.js +12 -39
- package/dist/components/Buttons/ButtonBasicV2/ButtonBasicV2.scss +44 -36
- package/dist/components/ConstructorComponents/ArticlesBlockV2/ArticlesBlockV2.module.scss +99 -181
- package/dist/components/ConstructorComponents/BlocksInfoV2/BlocksInfoV2.js +24 -33
- package/dist/components/ConstructorComponents/BlocksInfoV2/BlocksInfoV2.scss +208 -194
- package/dist/components/ConstructorComponents/CardsServicesV2/CardsServicesV2.js +10 -7
- package/dist/components/ConstructorComponents/CardsServicesV2/CardsServicesV2.scss +114 -145
- package/dist/components/ConstructorComponents/CardsV2/CardsV2.js +10 -11
- package/dist/components/ConstructorComponents/CardsV2/CardsV2.scss +162 -158
- package/dist/components/ConstructorComponents/CardsWithButton/CardsWithButton.js +8 -8
- package/dist/components/ConstructorComponents/CardsWithButton/CardsWithButton.scss +33 -54
- package/dist/components/ConstructorComponents/ClientsAboutUsV2/ClientsAboutUsV2.js +22 -35
- package/dist/components/ConstructorComponents/ClientsAboutUsV2/ClientsAboutUsV2.scss +68 -193
- package/dist/components/ConstructorComponents/FeaturesGridV2/FeaturesGridV2.js +24 -15
- package/dist/components/ConstructorComponents/FeaturesGridV2/FeaturesGridV2.scss +145 -110
- package/dist/components/ConstructorComponents/FormV2/FormV2.js +12 -7
- package/dist/components/ConstructorComponents/FormV2/FormV2.scss +28 -43
- package/dist/components/ConstructorComponents/HeaderV2/HeaderV2.js +1 -1
- package/dist/components/ConstructorComponents/LogosStrip/LogosStrip.js +9 -9
- package/dist/components/ConstructorComponents/LogosStrip/LogosStrip.scss +30 -43
- package/dist/components/ConstructorComponents/MarqueImgsV2/MarqueImgsV2.scss +1 -1
- package/dist/components/ConstructorComponents/PhoneBlockV2/PhoneBlockV2.js +15 -11
- package/dist/components/ConstructorComponents/PhoneBlockV2/PhoneBlockV2.scss +56 -115
- package/dist/components/ConstructorComponents/PointsListV2/PointsListV2.scss +56 -42
- package/dist/components/ConstructorComponents/QuestionsV2/QuestionsV2.js +12 -12
- package/dist/components/ConstructorComponents/QuestionsV2/QuestionsV2.scss +47 -45
- package/dist/components/ConstructorComponents/ServicesSectionV2/ServicesSectionV2.js +5 -3
- package/dist/components/ConstructorComponents/SmartReplies/SmartReplies.js +9 -4
- package/dist/components/ConstructorComponents/SmartReplies/SmartReplies.scss +35 -57
- package/dist/components/ConstructorComponents/StatisticCardV2/StatisticCardV2.js +5 -9
- package/dist/components/ConstructorComponents/StatisticCardV2/StatisticCardV2.module.scss +46 -83
- package/dist/components/ConstructorComponents/StepsV2/StepsV2.js +25 -27
- package/dist/components/ConstructorComponents/StepsV2/StepsV2.module.scss +156 -185
- package/dist/components/ConstructorComponents/VideoBlockV2/VideoBlockV2.scss +26 -28
- package/dist/components/ConstructorComponents/variables.scss +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,9 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
18
|
var ButtonBasicV2 = function ButtonBasicV2(_ref) {
|
|
19
|
-
var
|
|
19
|
+
var _ref$className = _ref.className,
|
|
20
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
21
|
+
text = _ref.text,
|
|
20
22
|
_onClick = _ref.onClick,
|
|
21
23
|
_ref$width = _ref.width,
|
|
22
24
|
width = _ref$width === void 0 ? 210 : _ref$width,
|
|
@@ -27,58 +29,29 @@ var ButtonBasicV2 = function ButtonBasicV2(_ref) {
|
|
|
27
29
|
props = _ref.props,
|
|
28
30
|
maxWidth = _ref.maxWidth,
|
|
29
31
|
style = _ref.style,
|
|
30
|
-
_ref$blue = _ref.blue,
|
|
31
|
-
blue = _ref$blue === void 0 ? false : _ref$blue,
|
|
32
|
-
_ref$orange = _ref.orange,
|
|
33
|
-
orange = _ref$orange === void 0 ? false : _ref$orange,
|
|
34
|
-
_ref$red = _ref.red,
|
|
35
|
-
red = _ref$red === void 0 ? false : _ref$red,
|
|
36
32
|
_ref$green = _ref.green,
|
|
37
33
|
green = _ref$green === void 0 ? false : _ref$green,
|
|
38
|
-
_ref$whiteBlue = _ref.whiteBlue,
|
|
39
|
-
whiteBlue = _ref$whiteBlue === void 0 ? false : _ref$whiteBlue,
|
|
40
|
-
_ref$grey = _ref.grey,
|
|
41
|
-
grey = _ref$grey === void 0 ? false : _ref$grey,
|
|
42
|
-
_ref$violet = _ref.violet,
|
|
43
|
-
violet = _ref$violet === void 0 ? false : _ref$violet,
|
|
44
|
-
_ref$lilac = _ref.lilac,
|
|
45
|
-
lilac = _ref$lilac === void 0 ? false : _ref$lilac,
|
|
46
|
-
_ref$action = _ref.action,
|
|
47
|
-
action = _ref$action === void 0 ? false : _ref$action,
|
|
48
34
|
_ref$white = _ref.white,
|
|
49
|
-
white = _ref$white === void 0 ? false : _ref$white
|
|
50
|
-
_ref$whiteGreen = _ref.whiteGreen,
|
|
51
|
-
whiteGreen = _ref$whiteGreen === void 0 ? false : _ref$whiteGreen,
|
|
52
|
-
_ref$darkViolet = _ref.darkViolet,
|
|
53
|
-
darkViolet = _ref$darkViolet === void 0 ? false : _ref$darkViolet;
|
|
35
|
+
white = _ref$white === void 0 ? false : _ref$white;
|
|
54
36
|
// Если передан только "width" - то она становится статичной шириной, кнопка не расширяется и не сужается
|
|
55
37
|
// Если передана "minWidth" кнопка становится пластичной и тянется до with(наибольшей ширины), minWidt(наименьшей ширины)
|
|
56
38
|
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
59
|
-
if (
|
|
60
|
-
|
|
61
|
-
if (orange) return 'orange-btn2';
|
|
62
|
-
if (red) return 'red-btn2';
|
|
63
|
-
if (grey) return 'grey-btn2';
|
|
64
|
-
if (violet) return 'violet-btn2';
|
|
65
|
-
if (lilac) return 'lilac-btn2';
|
|
66
|
-
if (action) return 'action-btn2';
|
|
67
|
-
if (white) return 'white-btn2';
|
|
68
|
-
if (whiteGreen) return 'white-green-btn2';
|
|
69
|
-
if (darkViolet) return 'dark-violet-btn2';
|
|
39
|
+
var getColorClass = function getColorClass() {
|
|
40
|
+
if (green) return 'btn-basic-v2__green';
|
|
41
|
+
if (white) return 'btn-basic-v2__white';
|
|
42
|
+
return 'btn-basic-v2--violet';
|
|
70
43
|
};
|
|
71
44
|
return /*#__PURE__*/_react["default"].createElement("button", _extends({
|
|
72
|
-
className: "btn-
|
|
45
|
+
className: "btn-basic-v2 ".concat(getColorClass(), " ").concat(className),
|
|
73
46
|
disabled: disabled,
|
|
74
|
-
style: _objectSpread(
|
|
47
|
+
style: _objectSpread({
|
|
75
48
|
minWidth: minWidth ? minWidth : '',
|
|
76
49
|
width: width ? width : '',
|
|
77
50
|
maxWidth: maxWidth ? maxWidth : '',
|
|
78
51
|
height: size ? size : '40px'
|
|
79
|
-
},
|
|
52
|
+
}, style),
|
|
80
53
|
onClick: function onClick(e) {
|
|
81
|
-
return _onClick(e);
|
|
54
|
+
return _onClick && _onClick(e);
|
|
82
55
|
}
|
|
83
56
|
}, props), text);
|
|
84
57
|
};
|
|
@@ -1,55 +1,63 @@
|
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
|
|
2
2
|
@import '../../ConstructorComponents/variables.scss';
|
|
3
3
|
|
|
4
|
-
.btn-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
border-radius: 8px;
|
|
4
|
+
.btn-basic-v2 {
|
|
5
|
+
font-family: 'Manrope', sans-serif;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: 8px;
|
|
11
10
|
border: none;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
font-weight: 700;
|
|
15
|
-
min-width: 120px;
|
|
16
|
-
padding: 4px 8px;
|
|
11
|
+
border-radius: 10px;
|
|
12
|
+
font-weight: 600;
|
|
17
13
|
cursor: pointer;
|
|
14
|
+
transition: all 0.2s ease;
|
|
15
|
+
padding: 0 24px;
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
&:active {
|
|
18
|
+
transform: translateY(0);
|
|
21
19
|
}
|
|
22
|
-
}
|
|
23
20
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
&__green {
|
|
22
|
+
background: $green;
|
|
23
|
+
color: $white;
|
|
27
24
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
&:hover {
|
|
26
|
+
background: $green-dark;
|
|
27
|
+
transform: translateY(-2px);
|
|
28
|
+
box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
|
|
29
|
+
}
|
|
33
30
|
}
|
|
34
31
|
|
|
35
|
-
&
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
color: #ffffff;
|
|
40
|
-
-webkit-box-shadow: none;
|
|
41
|
-
-moz-box-shadow: none;
|
|
42
|
-
box-shadow: none;
|
|
32
|
+
&__white {
|
|
33
|
+
background: $white;
|
|
34
|
+
color: $green;
|
|
35
|
+
border: 1px solid $border;
|
|
43
36
|
|
|
44
37
|
&:hover {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
box-shadow: none;
|
|
38
|
+
background: $green-light-bg;
|
|
39
|
+
transform: translateY(-2px);
|
|
48
40
|
}
|
|
41
|
+
}
|
|
49
42
|
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
&:disabled {
|
|
44
|
+
opacity: 0.6;
|
|
45
|
+
cursor: not-allowed;
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
transform: none;
|
|
49
|
+
box-shadow: none;
|
|
52
50
|
}
|
|
51
|
+
}
|
|
53
52
|
|
|
53
|
+
@keyframes fadeUp {
|
|
54
|
+
from {
|
|
55
|
+
opacity: 0;
|
|
56
|
+
transform: translateY(24px);
|
|
57
|
+
}
|
|
58
|
+
to {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
transform: translateY(0);
|
|
61
|
+
}
|
|
54
62
|
}
|
|
55
63
|
}
|
|
@@ -3,212 +3,130 @@
|
|
|
3
3
|
|
|
4
4
|
.articles-v2 {
|
|
5
5
|
font-family: 'Manrope', sans-serif;
|
|
6
|
-
background:
|
|
6
|
+
background: $bg;
|
|
7
7
|
width: 100%;
|
|
8
|
-
padding: 96px
|
|
8
|
+
padding: 96px 40px;
|
|
9
9
|
|
|
10
|
-
* {
|
|
10
|
+
* {
|
|
11
11
|
font-family: 'Manrope', 'Golos Text', sans-serif !important;
|
|
12
12
|
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.articles-v2__inner {
|
|
16
|
-
max-width: 1280px;
|
|
17
|
-
margin: 0 auto;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
gap: 56px;
|
|
21
|
-
}
|
|
22
13
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.articles-v2__header-left {
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
gap: 12px;
|
|
33
|
-
align-items: center;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.articles-v2__title {
|
|
37
|
-
font-size: 30px;
|
|
38
|
-
font-weight: 800;
|
|
39
|
-
letter-spacing: -0.5px;
|
|
40
|
-
color: var(--text, #1A1A2E);
|
|
41
|
-
margin: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.articles-v2__subtitle {
|
|
45
|
-
font-size: 15px;
|
|
46
|
-
color: var(--muted, #6B7280);
|
|
47
|
-
line-height: 1.5;
|
|
48
|
-
max-width: 440px;
|
|
49
|
-
margin: 0;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* ── Grid (3 колонки, карточки переносятся) ── */
|
|
53
|
-
.articles-v2__grid {
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-wrap: wrap;
|
|
56
|
-
gap: 32px;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Карточки — фиксированная ширина, не сужаются */
|
|
61
|
-
.articles-v2__grid > * {
|
|
62
|
-
background: #fff;
|
|
63
|
-
border: 1px solid #E5E7EB;
|
|
64
|
-
border-radius: 20px;
|
|
65
|
-
padding: 32px 28px 36px;
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
69
|
-
border-top: 3px solid $green;
|
|
70
|
-
width: calc(33.333% - 22px);
|
|
71
|
-
min-width: 280px;
|
|
72
|
-
flex: 1 1 auto;
|
|
73
|
-
|
|
74
|
-
&:hover {
|
|
75
|
-
transform: translateY(-4px);
|
|
76
|
-
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
|
|
14
|
+
&__inner {
|
|
15
|
+
max-width: 1280px;
|
|
16
|
+
margin: 0 auto;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 56px;
|
|
77
20
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* ========== МОБИЛЬНАЯ ВЕРСТКА (перенос карточек) ========== */
|
|
81
21
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
padding: 72px 32px;
|
|
22
|
+
&__header {
|
|
23
|
+
text-align: center;
|
|
24
|
+
width: 100%;
|
|
86
25
|
}
|
|
87
26
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
27
|
+
&__header-left {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: 12px;
|
|
31
|
+
align-items: center;
|
|
91
32
|
}
|
|
92
33
|
|
|
93
|
-
|
|
94
|
-
font-size:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.articles-v2__grid {
|
|
102
|
-
gap: 24px;
|
|
34
|
+
&__title {
|
|
35
|
+
font-size: 30px;
|
|
36
|
+
font-weight: 800;
|
|
37
|
+
letter-spacing: -0.5px;
|
|
38
|
+
color: $text;
|
|
39
|
+
margin: 0;
|
|
103
40
|
}
|
|
104
|
-
}
|
|
105
41
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
.articles-v2__inner {
|
|
113
|
-
gap: 40px;
|
|
42
|
+
&__subtitle {
|
|
43
|
+
font-size: 15px;
|
|
44
|
+
color: $muted;
|
|
45
|
+
line-height: 1.5;
|
|
46
|
+
max-width: 440px;
|
|
47
|
+
margin: 0;
|
|
114
48
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
padding:
|
|
49
|
+
|
|
50
|
+
&__grid {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-wrap: wrap;
|
|
53
|
+
gap: 32px;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__grid > * {
|
|
58
|
+
background: $white;
|
|
59
|
+
border: 1px solid $border;
|
|
60
|
+
border-radius: 20px;
|
|
61
|
+
padding: 12px;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
65
|
+
border-top: 3px solid $green;
|
|
66
|
+
width: calc(33.333% - 22px);
|
|
67
|
+
min-width: 280px;
|
|
68
|
+
flex: 1 1 auto;
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
transform: translateY(-4px);
|
|
72
|
+
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@keyframes fadeUp {
|
|
77
|
+
from {
|
|
78
|
+
opacity: 0;
|
|
79
|
+
transform: translateY(24px);
|
|
80
|
+
}
|
|
81
|
+
to {
|
|
82
|
+
opacity: 1;
|
|
83
|
+
transform: translateY(0);
|
|
84
|
+
}
|
|
128
85
|
}
|
|
129
86
|
}
|
|
130
87
|
|
|
131
|
-
|
|
132
|
-
@media (max-width:
|
|
88
|
+
// Планшет (до 1100px)
|
|
89
|
+
@media (max-width: 1100px) {
|
|
133
90
|
.articles-v2 {
|
|
134
|
-
padding:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
max-width: 100%;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.articles-v2__grid {
|
|
151
|
-
gap: 16px;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.articles-v2__grid > * {
|
|
155
|
-
width: 100%;
|
|
156
|
-
min-width: auto;
|
|
157
|
-
padding: 20px 18px 24px;
|
|
91
|
+
padding: 72px 24px;
|
|
92
|
+
|
|
93
|
+
&__title {
|
|
94
|
+
font-size: 26px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&__subtitle {
|
|
98
|
+
font-size: 14px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&__grid {
|
|
102
|
+
gap: 24px;
|
|
103
|
+
}
|
|
158
104
|
}
|
|
159
105
|
}
|
|
160
106
|
|
|
161
|
-
|
|
162
|
-
@media (max-width:
|
|
107
|
+
// Планшет (до 1024px) - 2 колонки
|
|
108
|
+
@media (max-width: 1024px) {
|
|
163
109
|
.articles-v2 {
|
|
164
|
-
padding:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
.articles-v2__title {
|
|
172
|
-
font-size: 22px;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.articles-v2__subtitle {
|
|
176
|
-
font-size: 13px;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.articles-v2__grid {
|
|
180
|
-
gap: 14px;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.articles-v2__grid > * {
|
|
184
|
-
padding: 18px 16px 20px;
|
|
185
|
-
border-radius: 16px;
|
|
110
|
+
padding: 72px 24px;
|
|
111
|
+
|
|
112
|
+
&__grid > * {
|
|
113
|
+
width: calc(50% - 12px);
|
|
114
|
+
min-width: 260px;
|
|
115
|
+
}
|
|
186
116
|
}
|
|
187
117
|
}
|
|
188
118
|
|
|
189
|
-
|
|
190
|
-
@media (max-width:
|
|
119
|
+
// Мобильная версия (до 430px)
|
|
120
|
+
@media (max-width: 430px) {
|
|
191
121
|
.articles-v2 {
|
|
192
|
-
padding:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.articles-v2__subtitle {
|
|
204
|
-
font-size: 12px;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.articles-v2__grid {
|
|
208
|
-
gap: 12px;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.articles-v2__grid > * {
|
|
212
|
-
padding: 16px 14px 18px;
|
|
122
|
+
padding: 40px 20px;
|
|
123
|
+
|
|
124
|
+
&__title {
|
|
125
|
+
font-size: 22px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&__subtitle {
|
|
129
|
+
font-size: 13px;
|
|
130
|
+
}
|
|
213
131
|
}
|
|
214
132
|
}
|
|
@@ -95,7 +95,7 @@ var form_data_ECOMRU = [{
|
|
|
95
95
|
required: true
|
|
96
96
|
}];
|
|
97
97
|
var BlocksInfo = function BlocksInfo(_ref) {
|
|
98
|
-
var _window;
|
|
98
|
+
var _window, _window2;
|
|
99
99
|
var title = _ref.title,
|
|
100
100
|
subTitle = _ref.subTitle,
|
|
101
101
|
_ref$list = _ref.list,
|
|
@@ -108,15 +108,12 @@ var BlocksInfo = function BlocksInfo(_ref) {
|
|
|
108
108
|
isForm = _ref$isForm === void 0 ? false : _ref$isForm,
|
|
109
109
|
_ref$onClick = _ref.onClick,
|
|
110
110
|
onClick = _ref$onClick === void 0 ? null : _ref$onClick;
|
|
111
|
-
var
|
|
111
|
+
var current_query = (_window = window) === null || _window === void 0 || (_window = _window.location) === null || _window === void 0 ? void 0 : _window.search;
|
|
112
|
+
var currentUrl = (_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.location) === null || _window2 === void 0 ? void 0 : _window2.href;
|
|
113
|
+
var _useState = (0, _react.useState)(false),
|
|
112
114
|
_useState2 = _slicedToArray(_useState, 2),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
var currentUrl = (_window = window) === null || _window === void 0 || (_window = _window.location) === null || _window === void 0 ? void 0 : _window.href;
|
|
116
|
-
var _useState3 = (0, _react.useState)(false),
|
|
117
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
118
|
-
isModal = _useState4[0],
|
|
119
|
-
_setIsModal = _useState4[1];
|
|
115
|
+
isModal = _useState2[0],
|
|
116
|
+
_setIsModal = _useState2[1];
|
|
120
117
|
var currentProps = function currentProps() {
|
|
121
118
|
if (currentUrl !== null && currentUrl !== void 0 && currentUrl.includes('dotask.ru')) {
|
|
122
119
|
return {
|
|
@@ -140,15 +137,10 @@ var BlocksInfo = function BlocksInfo(_ref) {
|
|
|
140
137
|
} else if (onClick) {
|
|
141
138
|
onClick();
|
|
142
139
|
} else {
|
|
143
|
-
var
|
|
144
|
-
(
|
|
140
|
+
var _window3;
|
|
141
|
+
(_window3 = window) === null || _window3 === void 0 || _window3.open("".concat(linkMain, "/auth").concat(current_query), '_blank');
|
|
145
142
|
}
|
|
146
143
|
};
|
|
147
|
-
(0, _react.useEffect)(function () {
|
|
148
|
-
var _window3;
|
|
149
|
-
var currentUrl = (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.location) === null || _window3 === void 0 ? void 0 : _window3.href;
|
|
150
|
-
setRefPage("?ref_page=".concat(currentUrl));
|
|
151
|
-
}, []);
|
|
152
144
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isModal && /*#__PURE__*/_react["default"].createElement(_ModalBitrixForm["default"], _extends({
|
|
153
145
|
modal: true,
|
|
154
146
|
setIsModal: function setIsModal(e) {
|
|
@@ -156,15 +148,17 @@ var BlocksInfo = function BlocksInfo(_ref) {
|
|
|
156
148
|
},
|
|
157
149
|
formTitle: 'Желаемый способ связи'
|
|
158
150
|
}, currentProps())), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("section", {
|
|
159
|
-
className: "
|
|
151
|
+
className: "blocks-info-v2 ".concat(className)
|
|
160
152
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
161
|
-
className: "
|
|
162
|
-
}, (title || subTitle) && /*#__PURE__*/_react["default"].createElement("div",
|
|
163
|
-
className: "
|
|
153
|
+
className: "blocks-info-v2__inner"
|
|
154
|
+
}, (title || subTitle) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
+
className: "blocks-info-v2__header"
|
|
156
|
+
}, title && /*#__PURE__*/_react["default"].createElement("h2", {
|
|
157
|
+
className: "blocks-info-v2__title"
|
|
164
158
|
}, title), subTitle && /*#__PURE__*/_react["default"].createElement("p", {
|
|
165
|
-
className: "
|
|
159
|
+
className: "blocks-info-v2__subtitle"
|
|
166
160
|
}, subTitle)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
167
|
-
className: "
|
|
161
|
+
className: "blocks-info-v2__items"
|
|
168
162
|
}, list.map(function (_ref2, ind) {
|
|
169
163
|
var label = _ref2.label,
|
|
170
164
|
img = _ref2.img,
|
|
@@ -173,14 +167,11 @@ var BlocksInfo = function BlocksInfo(_ref) {
|
|
|
173
167
|
var isReverse = ind % 2 === 0;
|
|
174
168
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
169
|
key: label + ind,
|
|
176
|
-
className: "
|
|
177
|
-
style: {
|
|
178
|
-
flexDirection: isReverse ? 'row-reverse' : 'row'
|
|
179
|
-
}
|
|
170
|
+
className: "blocks-info-v2__item ".concat(isReverse ? 'blocks-info-v2__item_reverse' : 'blocks-info-v2__item_normal')
|
|
180
171
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
181
|
-
className: "
|
|
172
|
+
className: "blocks-info-v2__image-box"
|
|
182
173
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
183
|
-
className: "
|
|
174
|
+
className: "blocks-info-v2__image",
|
|
184
175
|
loading: "lazy",
|
|
185
176
|
decoding: "async",
|
|
186
177
|
src: img || 'https://dl.ecomru.ru:9001/dev-images/3_12.png',
|
|
@@ -188,17 +179,17 @@ var BlocksInfo = function BlocksInfo(_ref) {
|
|
|
188
179
|
}), !img && /*#__PURE__*/_react["default"].createElement("img", {
|
|
189
180
|
loading: "lazy",
|
|
190
181
|
decoding: "async",
|
|
191
|
-
className: "
|
|
182
|
+
className: "blocks-info-v2__image-dev",
|
|
192
183
|
src: "https://dl.ecomru.ru:9001/dev-images/frame_1321317238.png",
|
|
193
184
|
alt: ""
|
|
194
185
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
195
|
-
className: "
|
|
186
|
+
className: "blocks-info-v2__info"
|
|
196
187
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
197
|
-
className: "
|
|
188
|
+
className: "blocks-info-v2__badge"
|
|
198
189
|
}, "0", ind + 1), label && /*#__PURE__*/_react["default"].createElement("h3", {
|
|
199
|
-
className: "
|
|
190
|
+
className: "blocks-info-v2__card-title"
|
|
200
191
|
}, label), description && /*#__PURE__*/_react["default"].createElement("p", {
|
|
201
|
-
className: "
|
|
192
|
+
className: "blocks-info-v2__description"
|
|
202
193
|
}, description), /*#__PURE__*/_react["default"].createElement(_ButtonBasicV["default"], {
|
|
203
194
|
size: '52px',
|
|
204
195
|
green: true,
|