@doyourjob/gravity-ui-page-constructor 5.31.142-dev.2 → 5.31.142-dev.4
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/build/cjs/blocks/Benchmark/Benchmark.css +4 -0
- package/build/cjs/blocks/Benchmark/Benchmark.js +1 -1
- package/build/cjs/blocks/Benchmark/schema.d.ts +1 -145
- package/build/cjs/blocks/Benchmark/schema.js +3 -1
- package/build/cjs/blocks/Benefits/Benefits.css +76 -0
- package/build/cjs/blocks/Benefits/Benefits.d.ts +3 -0
- package/build/cjs/blocks/Benefits/Benefits.js +49 -0
- package/build/cjs/blocks/Benefits/BenefitsCard/BenefitsCard.css +32 -0
- package/build/cjs/blocks/Benefits/BenefitsCard/BenefitsCard.d.ts +3 -0
- package/build/cjs/blocks/Benefits/BenefitsCard/BenefitsCard.js +17 -0
- package/build/cjs/blocks/Benefits/BenefitsLabel/BenefitsLabel.css +30 -0
- package/build/cjs/blocks/Benefits/BenefitsLabel/BenefitsLabel.d.ts +6 -0
- package/build/cjs/blocks/Benefits/BenefitsLabel/BenefitsLabel.js +15 -0
- package/build/cjs/blocks/Benefits/schema.d.ts +95 -0
- package/build/cjs/blocks/Benefits/schema.js +51 -0
- package/build/cjs/blocks/HeaderMinify/Button/Button.css +2 -1
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.css +13 -3
- package/build/cjs/blocks/LogoRotator/LogoRotator.css +21 -0
- package/build/cjs/blocks/LogoRotator/LogoRotator.js +7 -6
- package/build/cjs/blocks/LogoRotator/schema.d.ts +3 -138
- package/build/cjs/blocks/LogoRotator/schema.js +3 -1
- package/build/cjs/blocks/index.d.ts +1 -0
- package/build/cjs/blocks/index.js +3 -1
- package/build/cjs/blocks/validators.d.ts +1 -0
- package/build/cjs/blocks/validators.js +1 -0
- package/build/cjs/constructor-items.d.ts +1 -0
- package/build/cjs/constructor-items.js +1 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +37 -3
- package/build/cjs/models/constructor-items/blocks.js +1 -0
- package/build/cjs/schema/constants.d.ts +1 -1
- package/build/cjs/schema/constants.js +2 -1
- package/build/cjs/schema/validators/blocks.d.ts +1 -0
- package/build/cjs/schema/validators/blocks.js +1 -0
- package/build/cjs/text-transform/config.js +4 -0
- package/build/esm/blocks/Benchmark/Benchmark.css +4 -0
- package/build/esm/blocks/Benchmark/Benchmark.js +2 -2
- package/build/esm/blocks/Benchmark/schema.d.ts +1 -145
- package/build/esm/blocks/Benchmark/schema.js +4 -2
- package/build/esm/blocks/Benefits/Benefits.css +76 -0
- package/build/esm/blocks/Benefits/Benefits.d.ts +4 -0
- package/build/esm/blocks/Benefits/Benefits.js +45 -0
- package/build/esm/blocks/Benefits/BenefitsCard/BenefitsCard.css +32 -0
- package/build/esm/blocks/Benefits/BenefitsCard/BenefitsCard.d.ts +4 -0
- package/build/esm/blocks/Benefits/BenefitsCard/BenefitsCard.js +13 -0
- package/build/esm/blocks/Benefits/BenefitsLabel/BenefitsLabel.css +30 -0
- package/build/esm/blocks/Benefits/BenefitsLabel/BenefitsLabel.d.ts +7 -0
- package/build/esm/blocks/Benefits/BenefitsLabel/BenefitsLabel.js +11 -0
- package/build/esm/blocks/Benefits/schema.d.ts +95 -0
- package/build/esm/blocks/Benefits/schema.js +48 -0
- package/build/esm/blocks/HeaderMinify/Button/Button.css +2 -1
- package/build/esm/blocks/HeaderMinify/HeaderMinify.css +13 -3
- package/build/esm/blocks/LogoRotator/LogoRotator.css +21 -0
- package/build/esm/blocks/LogoRotator/LogoRotator.js +7 -6
- package/build/esm/blocks/LogoRotator/schema.d.ts +3 -138
- package/build/esm/blocks/LogoRotator/schema.js +4 -2
- package/build/esm/blocks/index.d.ts +1 -0
- package/build/esm/blocks/index.js +1 -0
- package/build/esm/blocks/validators.d.ts +1 -0
- package/build/esm/blocks/validators.js +1 -0
- package/build/esm/constructor-items.d.ts +1 -0
- package/build/esm/constructor-items.js +2 -1
- package/build/esm/models/constructor-items/blocks.d.ts +37 -3
- package/build/esm/models/constructor-items/blocks.js +1 -0
- package/build/esm/schema/constants.d.ts +1 -1
- package/build/esm/schema/constants.js +3 -2
- package/build/esm/schema/validators/blocks.d.ts +1 -0
- package/build/esm/schema/validators/blocks.js +1 -0
- package/build/esm/text-transform/config.js +4 -0
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +37 -3
- package/server/models/constructor-items/blocks.js +1 -0
- package/server/text-transform/config.js +4 -0
- package/widget/index.js +1 -1
|
@@ -12,7 +12,7 @@ const Benchmark = ({ title, data, duration, animated }) => {
|
|
|
12
12
|
const [playNumbers, setPlayNumbers] = (0, react_1.useState)(false);
|
|
13
13
|
const handleOnAnimateStart = (0, react_1.useCallback)(() => setPlayNumbers(true), []);
|
|
14
14
|
return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated, onAnimateStart: handleOnAnimateStart },
|
|
15
|
-
title && react_1.default.createElement(
|
|
15
|
+
title && react_1.default.createElement("div", { className: b('title') }, title),
|
|
16
16
|
react_1.default.createElement(grid_1.Grid, { className: b('content') },
|
|
17
17
|
react_1.default.createElement(grid_1.Row, null, data.map((column, columnIndex) => (react_1.default.createElement(grid_1.Col, { key: columnIndex, sizes: column.sizes || defaultSizes, className: b('wrap') },
|
|
18
18
|
column.title && (react_1.default.createElement(uikit_1.Text, { variant: "header-2", className: b('wrap-title') }, column.title)),
|
|
@@ -4,151 +4,7 @@ export declare const BenchmarkBlock: {
|
|
|
4
4
|
required: string[];
|
|
5
5
|
properties: {
|
|
6
6
|
title: {
|
|
7
|
-
|
|
8
|
-
type: string;
|
|
9
|
-
optionName: string;
|
|
10
|
-
} | {
|
|
11
|
-
optionName: string;
|
|
12
|
-
type: string;
|
|
13
|
-
additionalProperties: boolean;
|
|
14
|
-
required: string[];
|
|
15
|
-
properties: {
|
|
16
|
-
text: {
|
|
17
|
-
type: string;
|
|
18
|
-
contentType: string;
|
|
19
|
-
};
|
|
20
|
-
link: {
|
|
21
|
-
type: string;
|
|
22
|
-
additionalProperties: boolean;
|
|
23
|
-
required: string[];
|
|
24
|
-
properties: {
|
|
25
|
-
text: {
|
|
26
|
-
type: string;
|
|
27
|
-
contentType: string;
|
|
28
|
-
};
|
|
29
|
-
url: {
|
|
30
|
-
type: string;
|
|
31
|
-
};
|
|
32
|
-
urlTitle: {
|
|
33
|
-
type: string;
|
|
34
|
-
};
|
|
35
|
-
arrow: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
theme: {
|
|
39
|
-
type: string;
|
|
40
|
-
enum: string[];
|
|
41
|
-
};
|
|
42
|
-
textSize: {
|
|
43
|
-
type: string;
|
|
44
|
-
enum: string[];
|
|
45
|
-
};
|
|
46
|
-
target: {
|
|
47
|
-
type: string;
|
|
48
|
-
enum: string[];
|
|
49
|
-
};
|
|
50
|
-
analyticsEvents: {
|
|
51
|
-
oneOf: ({
|
|
52
|
-
optionName: string;
|
|
53
|
-
type: string;
|
|
54
|
-
additionalProperties: {
|
|
55
|
-
type: string;
|
|
56
|
-
};
|
|
57
|
-
required: string[];
|
|
58
|
-
properties: {
|
|
59
|
-
name: {
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
type: {
|
|
63
|
-
type: string;
|
|
64
|
-
};
|
|
65
|
-
counters: {
|
|
66
|
-
type: string;
|
|
67
|
-
additionalProperties: boolean;
|
|
68
|
-
required: never[];
|
|
69
|
-
properties: {
|
|
70
|
-
include: {
|
|
71
|
-
type: string;
|
|
72
|
-
items: {
|
|
73
|
-
type: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
exclude: {
|
|
77
|
-
type: string;
|
|
78
|
-
items: {
|
|
79
|
-
type: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
context: {
|
|
85
|
-
type: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
items?: undefined;
|
|
89
|
-
} | {
|
|
90
|
-
type: string;
|
|
91
|
-
items: {
|
|
92
|
-
type: string;
|
|
93
|
-
additionalProperties: {
|
|
94
|
-
type: string;
|
|
95
|
-
};
|
|
96
|
-
required: string[];
|
|
97
|
-
properties: {
|
|
98
|
-
name: {
|
|
99
|
-
type: string;
|
|
100
|
-
};
|
|
101
|
-
type: {
|
|
102
|
-
type: string;
|
|
103
|
-
};
|
|
104
|
-
counters: {
|
|
105
|
-
type: string;
|
|
106
|
-
additionalProperties: boolean;
|
|
107
|
-
required: never[];
|
|
108
|
-
properties: {
|
|
109
|
-
include: {
|
|
110
|
-
type: string;
|
|
111
|
-
items: {
|
|
112
|
-
type: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
exclude: {
|
|
116
|
-
type: string;
|
|
117
|
-
items: {
|
|
118
|
-
type: string;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
context: {
|
|
124
|
-
type: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
optionName: string;
|
|
129
|
-
})[];
|
|
130
|
-
};
|
|
131
|
-
type: {};
|
|
132
|
-
when: {
|
|
133
|
-
type: string;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
textSize: {
|
|
138
|
-
type: string;
|
|
139
|
-
enum: string[];
|
|
140
|
-
};
|
|
141
|
-
url: {
|
|
142
|
-
type: string;
|
|
143
|
-
};
|
|
144
|
-
urlTitle: {
|
|
145
|
-
type: string;
|
|
146
|
-
};
|
|
147
|
-
resetMargin: {
|
|
148
|
-
type: string;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
})[];
|
|
7
|
+
type: string;
|
|
152
8
|
};
|
|
153
9
|
duration: {
|
|
154
10
|
type: string;
|
|
@@ -6,7 +6,9 @@ exports.BenchmarkBlock = {
|
|
|
6
6
|
'benchmark-block': {
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
required: ['data'],
|
|
9
|
-
properties: Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), { title:
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), { title: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
}, duration: {
|
|
10
12
|
type: 'number',
|
|
11
13
|
}, data: {
|
|
12
14
|
type: 'array',
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-benefits-block {
|
|
4
|
+
position: relative;
|
|
5
|
+
z-index: 0;
|
|
6
|
+
--local-base-color: #001a2b;
|
|
7
|
+
--local-bg-color: #ffffff;
|
|
8
|
+
}
|
|
9
|
+
.pc-benefits-block_theme_dark {
|
|
10
|
+
--local-base-color: #ffffff;
|
|
11
|
+
--local-bg-color: #001a2b;
|
|
12
|
+
}
|
|
13
|
+
.pc-benefits-block__background {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 0;
|
|
16
|
+
left: -27px;
|
|
17
|
+
right: -27px;
|
|
18
|
+
bottom: 0;
|
|
19
|
+
z-index: -1;
|
|
20
|
+
border-radius: 24px;
|
|
21
|
+
}
|
|
22
|
+
.pc-benefits-block__header {
|
|
23
|
+
padding-top: 48px;
|
|
24
|
+
margin-bottom: 32px;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: 16px;
|
|
28
|
+
}
|
|
29
|
+
.pc-benefits-block__title {
|
|
30
|
+
color: var(--local-base-color);
|
|
31
|
+
font-size: 48px;
|
|
32
|
+
line-height: 52px;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
text-align: center;
|
|
35
|
+
}
|
|
36
|
+
.pc-benefits-block__title > span {
|
|
37
|
+
color: var(--local-accent-color);
|
|
38
|
+
}
|
|
39
|
+
.pc-benefits-block__text {
|
|
40
|
+
color: var(--local-base-color);
|
|
41
|
+
font-size: 24px;
|
|
42
|
+
line-height: 28px;
|
|
43
|
+
text-align: center;
|
|
44
|
+
opacity: 0.6;
|
|
45
|
+
}
|
|
46
|
+
.pc-benefits-block__text p {
|
|
47
|
+
margin: 0;
|
|
48
|
+
}
|
|
49
|
+
.pc-benefits-block__cards {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-wrap: wrap;
|
|
52
|
+
gap: 16px;
|
|
53
|
+
padding-bottom: 64px;
|
|
54
|
+
}
|
|
55
|
+
.pc-benefits-block__labels {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
gap: 16px;
|
|
59
|
+
padding-top: 16px;
|
|
60
|
+
padding-bottom: 16px;
|
|
61
|
+
}
|
|
62
|
+
.pc-benefits-block__images {
|
|
63
|
+
display: grid;
|
|
64
|
+
grid-template-columns: repeat(12, 1fr);
|
|
65
|
+
grid-auto-rows: 300px;
|
|
66
|
+
gap: 12px;
|
|
67
|
+
padding-top: 12px;
|
|
68
|
+
padding-bottom: 27px;
|
|
69
|
+
}
|
|
70
|
+
.pc-benefits-block__image {
|
|
71
|
+
display: block;
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 100%;
|
|
74
|
+
object-fit: cover;
|
|
75
|
+
border-radius: 24px;
|
|
76
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BenefitsBlock = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
const components_1 = require("../../components");
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
const BenefitsCard_1 = tslib_1.__importDefault(require("./BenefitsCard/BenefitsCard"));
|
|
9
|
+
const BenefitsLabel_1 = tslib_1.__importDefault(require("./BenefitsLabel/BenefitsLabel"));
|
|
10
|
+
const b = (0, utils_1.block)('benefits-block');
|
|
11
|
+
const BenefitsBlock = (props) => {
|
|
12
|
+
const { titleOne, postTitleOne, textOne, titleTwo, postTitleTwo, textTwo, background, cards, items, theme, accentColor, time, } = props;
|
|
13
|
+
const [activeIndex, setActiveIndex] = (0, react_1.useState)(0);
|
|
14
|
+
const data = items === null || items === void 0 ? void 0 : items[activeIndex];
|
|
15
|
+
(0, react_1.useEffect)(() => {
|
|
16
|
+
const interval = setInterval(() => {
|
|
17
|
+
if (items === null || items === void 0 ? void 0 : items.length) {
|
|
18
|
+
setActiveIndex((prev) => (prev + 1) % items.length);
|
|
19
|
+
}
|
|
20
|
+
}, time || 2000);
|
|
21
|
+
return () => clearInterval(interval);
|
|
22
|
+
}, [items === null || items === void 0 ? void 0 : items.length, time]);
|
|
23
|
+
const styles = (0, react_1.useMemo)(() => accentColor
|
|
24
|
+
? {
|
|
25
|
+
['--local-accent-color']: accentColor,
|
|
26
|
+
}
|
|
27
|
+
: {}, [accentColor]);
|
|
28
|
+
return (react_1.default.createElement("div", { className: b({ theme }), style: styles },
|
|
29
|
+
react_1.default.createElement("div", { className: b('background'), style: { background } }),
|
|
30
|
+
(titleOne || postTitleOne || textOne) && (react_1.default.createElement("div", { className: b('header') },
|
|
31
|
+
(titleOne || postTitleOne) && (react_1.default.createElement("div", { className: b('title') },
|
|
32
|
+
titleOne,
|
|
33
|
+
react_1.default.createElement("span", null, postTitleOne))),
|
|
34
|
+
textOne && react_1.default.createElement(components_1.HTML, { className: b('text') }, textOne))),
|
|
35
|
+
Boolean(cards === null || cards === void 0 ? void 0 : cards.length) && (react_1.default.createElement("div", { className: b('cards') }, cards === null || cards === void 0 ? void 0 : cards.map((card, index) => (react_1.default.createElement(BenefitsCard_1.default, Object.assign({ key: index }, card)))))),
|
|
36
|
+
(titleTwo || postTitleTwo || textTwo) && (react_1.default.createElement("div", { className: b('header') },
|
|
37
|
+
(titleTwo || postTitleTwo) && (react_1.default.createElement("div", { className: b('title') },
|
|
38
|
+
titleTwo,
|
|
39
|
+
react_1.default.createElement("span", null, postTitleTwo))),
|
|
40
|
+
textTwo && react_1.default.createElement(components_1.HTML, { className: b('text') }, textTwo))),
|
|
41
|
+
Boolean(items === null || items === void 0 ? void 0 : items.length) && (react_1.default.createElement("div", { className: b('labels') }, items === null || items === void 0 ? void 0 : items.map((item, index) => (react_1.default.createElement(BenefitsLabel_1.default, Object.assign({ key: index }, item, { active: index === activeIndex })))))),
|
|
42
|
+
data && (react_1.default.createElement("div", { className: b('images') }, data.images.map((image, index) => (react_1.default.createElement("div", { key: index, style: {
|
|
43
|
+
gridColumn: `span ${data.columns[index]}`,
|
|
44
|
+
gridRow: `span ${data.rows[index]}`,
|
|
45
|
+
} },
|
|
46
|
+
react_1.default.createElement(components_1.ImageBase, { className: b('image'), src: image }))))))));
|
|
47
|
+
};
|
|
48
|
+
exports.BenefitsBlock = BenefitsBlock;
|
|
49
|
+
exports.default = exports.BenefitsBlock;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-benefits-card {
|
|
4
|
+
background-color: rgba(31, 47, 61, 0.3);
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 8px;
|
|
8
|
+
padding: 32px;
|
|
9
|
+
min-height: 360px;
|
|
10
|
+
min-width: 270px;
|
|
11
|
+
border-radius: 24px;
|
|
12
|
+
flex: 1;
|
|
13
|
+
}
|
|
14
|
+
.pc-benefits-card__icon {
|
|
15
|
+
display: block;
|
|
16
|
+
width: 64px;
|
|
17
|
+
height: 64px;
|
|
18
|
+
object-fit: contain;
|
|
19
|
+
margin-bottom: 24px;
|
|
20
|
+
}
|
|
21
|
+
.pc-benefits-card__title {
|
|
22
|
+
font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
|
|
23
|
+
line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
|
|
24
|
+
color: var(--local-accent-color);
|
|
25
|
+
letter-spacing: 0.01em;
|
|
26
|
+
}
|
|
27
|
+
.pc-benefits-card__text {
|
|
28
|
+
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
29
|
+
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
30
|
+
color: var(--local-base-color);
|
|
31
|
+
opacity: 0.8;
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BenefitsCard = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const components_1 = require("../../../components");
|
|
7
|
+
const utils_1 = require("../../../utils");
|
|
8
|
+
const b = (0, utils_1.block)('benefits-card');
|
|
9
|
+
const BenefitsCard = (props) => {
|
|
10
|
+
const { icon, title, text } = props;
|
|
11
|
+
return (react_1.default.createElement("div", { className: b() },
|
|
12
|
+
react_1.default.createElement(components_1.ImageBase, { className: b('icon'), src: icon }),
|
|
13
|
+
react_1.default.createElement("div", { className: b('title') }, title),
|
|
14
|
+
react_1.default.createElement("div", { className: b('text') }, text)));
|
|
15
|
+
};
|
|
16
|
+
exports.BenefitsCard = BenefitsCard;
|
|
17
|
+
exports.default = exports.BenefitsCard;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-benefits-label {
|
|
4
|
+
background-color: rgba(31, 47, 61, 0.3);
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 8px;
|
|
8
|
+
padding: 32px;
|
|
9
|
+
min-height: 158px;
|
|
10
|
+
min-width: 270px;
|
|
11
|
+
border-radius: 24px;
|
|
12
|
+
flex: 1;
|
|
13
|
+
border: 1px solid transparent;
|
|
14
|
+
}
|
|
15
|
+
.pc-benefits-label_active {
|
|
16
|
+
border: 1px solid var(--local-accent-color);
|
|
17
|
+
}
|
|
18
|
+
.pc-benefits-label__title {
|
|
19
|
+
font-size: var(--g-text-display-2-font-size, var(--pc-text-display-2-font-size));
|
|
20
|
+
line-height: var(--g-text-display-2-line-height, var(--pc-text-display-2-line-height));
|
|
21
|
+
color: var(--local-accent-color);
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
.pc-benefits-label__text {
|
|
25
|
+
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
26
|
+
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
27
|
+
color: var(--local-base-color);
|
|
28
|
+
opacity: 0.8;
|
|
29
|
+
text-align: center;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BenefitsLabel = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const b = (0, utils_1.block)('benefits-label');
|
|
8
|
+
const BenefitsLabel = (props) => {
|
|
9
|
+
const { title, text, active } = props;
|
|
10
|
+
return (react_1.default.createElement("div", { className: b({ active }) },
|
|
11
|
+
react_1.default.createElement("div", { className: b('title') }, title),
|
|
12
|
+
react_1.default.createElement("div", { className: b('text') }, text)));
|
|
13
|
+
};
|
|
14
|
+
exports.BenefitsLabel = BenefitsLabel;
|
|
15
|
+
exports.default = exports.BenefitsLabel;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare const BenefitsBlock: {
|
|
2
|
+
'benefits-block': {
|
|
3
|
+
additionalProperties: boolean;
|
|
4
|
+
required: boolean;
|
|
5
|
+
properties: {
|
|
6
|
+
titleOne: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
postTitleOne: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
textOne: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
titleTwo: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
postTitleTwo: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
textTwo: {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
background: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
cards: {
|
|
28
|
+
type: string;
|
|
29
|
+
items: {
|
|
30
|
+
additionalProperties: boolean;
|
|
31
|
+
required: string[];
|
|
32
|
+
properties: {
|
|
33
|
+
icon: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
title: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
text: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
items: {
|
|
46
|
+
type: string;
|
|
47
|
+
items: {
|
|
48
|
+
type: string;
|
|
49
|
+
additionalProperties: boolean;
|
|
50
|
+
required: string[];
|
|
51
|
+
properties: {
|
|
52
|
+
title: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
text: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
images: {
|
|
59
|
+
type: string;
|
|
60
|
+
items: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
columns: {
|
|
65
|
+
type: string;
|
|
66
|
+
items: {
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
rows: {
|
|
71
|
+
type: string;
|
|
72
|
+
items: {
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
theme: {
|
|
80
|
+
type: string;
|
|
81
|
+
enum: string[];
|
|
82
|
+
};
|
|
83
|
+
accentColor: {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
time: {
|
|
87
|
+
type: string;
|
|
88
|
+
};
|
|
89
|
+
type: {};
|
|
90
|
+
when: {
|
|
91
|
+
type: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BenefitsBlock = void 0;
|
|
4
|
+
const common_1 = require("../../schema/validators/common");
|
|
5
|
+
exports.BenefitsBlock = {
|
|
6
|
+
'benefits-block': {
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
required: false,
|
|
9
|
+
properties: Object.assign(Object.assign({}, common_1.BaseProps), { titleOne: { type: 'string' }, postTitleOne: { type: 'string' }, textOne: { type: 'string' }, titleTwo: { type: 'string' }, postTitleTwo: { type: 'string' }, textTwo: { type: 'string' }, background: { type: 'string' }, cards: {
|
|
10
|
+
type: 'array',
|
|
11
|
+
items: {
|
|
12
|
+
additionalProperties: false,
|
|
13
|
+
required: ['icon', 'title', 'text'],
|
|
14
|
+
properties: {
|
|
15
|
+
icon: { type: 'string' },
|
|
16
|
+
title: { type: 'string' },
|
|
17
|
+
text: { type: 'string' },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
}, items: {
|
|
21
|
+
type: 'array',
|
|
22
|
+
items: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
additionalProperties: false,
|
|
25
|
+
required: ['title', 'text'],
|
|
26
|
+
properties: {
|
|
27
|
+
title: { type: 'string' },
|
|
28
|
+
text: { type: 'string' },
|
|
29
|
+
images: {
|
|
30
|
+
type: 'array',
|
|
31
|
+
items: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
columns: {
|
|
36
|
+
type: 'array',
|
|
37
|
+
items: {
|
|
38
|
+
type: 'number',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
rows: {
|
|
42
|
+
type: 'array',
|
|
43
|
+
items: {
|
|
44
|
+
type: 'number',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
}, theme: common_1.ThemeProps, accentColor: { type: 'string' }, time: { type: 'number' } }),
|
|
50
|
+
},
|
|
51
|
+
};
|
|
@@ -8,10 +8,11 @@ unpredictable css rules order in build */
|
|
|
8
8
|
border-radius: 16px;
|
|
9
9
|
background: #001a2b;
|
|
10
10
|
color: #ffffff;
|
|
11
|
+
height: 61px;
|
|
11
12
|
font-size: 24px;
|
|
12
13
|
line-height: 24px;
|
|
13
14
|
font-weight: 500;
|
|
14
|
-
letter-spacing: 0.
|
|
15
|
+
letter-spacing: 0.03em;
|
|
15
16
|
text-decoration: none;
|
|
16
17
|
transition: opacity 0.3s ease;
|
|
17
18
|
}
|
|
@@ -7,18 +7,27 @@ unpredictable css rules order in build */
|
|
|
7
7
|
position: relative;
|
|
8
8
|
z-index: 1;
|
|
9
9
|
color: #001a2b;
|
|
10
|
-
padding-top:
|
|
11
|
-
padding-bottom:
|
|
10
|
+
padding-top: 186px;
|
|
11
|
+
padding-bottom: 186px;
|
|
12
12
|
text-align: center;
|
|
13
13
|
}
|
|
14
14
|
.pc-header-minify-block__title {
|
|
15
15
|
font-size: 128px;
|
|
16
16
|
font-weight: 700;
|
|
17
17
|
line-height: 102px;
|
|
18
|
-
letter-spacing: -0.02em;
|
|
19
18
|
margin: 0;
|
|
20
19
|
position: relative;
|
|
21
20
|
}
|
|
21
|
+
.pc-header-minify-block__title.pc-header-minify-block__title {
|
|
22
|
+
letter-spacing: -0.014em;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (max-width: 769px) {
|
|
26
|
+
.pc-header-minify-block__title {
|
|
27
|
+
font-size: 48px;
|
|
28
|
+
line-height: 52px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
22
31
|
.pc-header-minify-block__description {
|
|
23
32
|
margin-top: 24px;
|
|
24
33
|
position: relative;
|
|
@@ -28,6 +37,7 @@ unpredictable css rules order in build */
|
|
|
28
37
|
.pc-header-minify-block__description .yfm {
|
|
29
38
|
font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
|
|
30
39
|
line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
|
|
40
|
+
font-weight: 600;
|
|
31
41
|
}
|
|
32
42
|
.pc-header-minify-block__buttons {
|
|
33
43
|
position: relative;
|
|
@@ -22,6 +22,9 @@ unpredictable css rules order in build */
|
|
|
22
22
|
.pc-logo-rotator-block__title {
|
|
23
23
|
margin-bottom: 48px;
|
|
24
24
|
text-align: center;
|
|
25
|
+
font-size: 48px;
|
|
26
|
+
line-height: 52px;
|
|
27
|
+
font-weight: 600;
|
|
25
28
|
}
|
|
26
29
|
.pc-logo-rotator-block__items {
|
|
27
30
|
display: flex;
|
|
@@ -48,4 +51,22 @@ unpredictable css rules order in build */
|
|
|
48
51
|
width: 100%;
|
|
49
52
|
height: 100%;
|
|
50
53
|
object-fit: contain;
|
|
54
|
+
}
|
|
55
|
+
.pc-logo-rotator-block__row-items {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
padding-top: 16px;
|
|
59
|
+
padding-bottom: 16px;
|
|
60
|
+
gap: 46px 16px;
|
|
61
|
+
}
|
|
62
|
+
.pc-logo-rotator-block__row-item {
|
|
63
|
+
display: block;
|
|
64
|
+
height: 36px;
|
|
65
|
+
min-width: 160px;
|
|
66
|
+
flex: 1;
|
|
67
|
+
transition: opacity 0.5s ease 0.1s;
|
|
68
|
+
opacity: 1;
|
|
69
|
+
}
|
|
70
|
+
.pc-logo-rotator-block__row-item_hidden {
|
|
71
|
+
opacity: 0;
|
|
51
72
|
}
|