@gravity-ui/page-constructor 3.4.0 → 3.5.0
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/CHANGELOG.md +12 -0
- package/build/cjs/editor/components/ControlPanel/ControlPanel.js +2 -1
- package/build/cjs/editor/components/Layout/Layout.css +3 -0
- package/build/cjs/editor/data/templates/banner-block.json +25 -0
- package/build/cjs/editor/data/templates/card-layout-block.json +39 -0
- package/build/cjs/editor/data/templates/companies-block.json +20 -0
- package/build/cjs/editor/data/templates/content-layout-block.json +56 -0
- package/build/cjs/editor/data/templates/extended-features-block.json +56 -0
- package/build/cjs/editor/data/templates/filter-block.json +62 -0
- package/build/cjs/editor/data/templates/header-block.json +19 -0
- package/build/cjs/editor/data/templates/header-slider-block.json +69 -0
- package/build/cjs/editor/data/templates/icons-block.json +32 -0
- package/build/cjs/editor/data/templates/info-block.json +40 -0
- package/build/cjs/editor/data/templates/link-table-block.json +10 -0
- package/build/cjs/editor/data/templates/map-block.json +48 -0
- package/build/cjs/editor/data/templates/media-block.json +15 -0
- package/build/cjs/editor/data/templates/preview-block.json +38 -0
- package/build/cjs/editor/data/templates/promo-features-block.json +52 -0
- package/build/cjs/editor/data/templates/questions-block.json +105 -0
- package/build/cjs/editor/data/templates/security-block.json +36 -0
- package/build/cjs/editor/data/templates/share-block.json +6 -0
- package/build/cjs/editor/data/templates/simple-block.json +7 -0
- package/build/cjs/editor/data/templates/slider-block.json +46 -0
- package/build/cjs/editor/data/templates/table-block.json +18 -0
- package/build/cjs/editor/data/templates/tabs-block.json +90 -0
- package/build/esm/editor/components/ControlPanel/ControlPanel.js +2 -1
- package/build/esm/editor/components/Layout/Layout.css +3 -0
- package/build/esm/editor/data/templates/banner-block.json +25 -0
- package/build/esm/editor/data/templates/card-layout-block.json +39 -0
- package/build/esm/editor/data/templates/companies-block.json +20 -0
- package/build/esm/editor/data/templates/content-layout-block.json +56 -0
- package/build/esm/editor/data/templates/extended-features-block.json +56 -0
- package/build/esm/editor/data/templates/filter-block.json +62 -0
- package/build/esm/editor/data/templates/header-block.json +19 -0
- package/build/esm/editor/data/templates/header-slider-block.json +69 -0
- package/build/esm/editor/data/templates/icons-block.json +32 -0
- package/build/esm/editor/data/templates/info-block.json +40 -0
- package/build/esm/editor/data/templates/link-table-block.json +10 -0
- package/build/esm/editor/data/templates/map-block.json +48 -0
- package/build/esm/editor/data/templates/media-block.json +15 -0
- package/build/esm/editor/data/templates/preview-block.json +38 -0
- package/build/esm/editor/data/templates/promo-features-block.json +52 -0
- package/build/esm/editor/data/templates/questions-block.json +105 -0
- package/build/esm/editor/data/templates/security-block.json +36 -0
- package/build/esm/editor/data/templates/share-block.json +6 -0
- package/build/esm/editor/data/templates/simple-block.json +7 -0
- package/build/esm/editor/data/templates/slider-block.json +46 -0
- package/build/esm/editor/data/templates/table-block.json +18 -0
- package/build/esm/editor/data/templates/tabs-block.json +90 -0
- package/package.json +36 -5
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "questions-block",
|
|
4
|
+
"title": "Lorem ipsum",
|
|
5
|
+
"text": "<p>Dolor sit amet, consectetur adipiscing elit <a href=\"https://example.com\">sed do eiusmod</a> tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> ",
|
|
6
|
+
"additionalInfo": "<p>Dolor sit amet <a href=\"https://example.com\">consectetur adipiscing</a>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> ",
|
|
7
|
+
"links": [
|
|
8
|
+
{
|
|
9
|
+
"url": "/security",
|
|
10
|
+
"text": "Learn more",
|
|
11
|
+
"theme": "normal",
|
|
12
|
+
"arrow": true
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"buttons": [
|
|
16
|
+
{
|
|
17
|
+
"text": "Button\r",
|
|
18
|
+
"theme": "action",
|
|
19
|
+
"url": "https://example.com"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"items": [
|
|
23
|
+
{
|
|
24
|
+
"title": "Lorem ipsum dolor sit amet 0",
|
|
25
|
+
"text": "<p>Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> ",
|
|
26
|
+
"link": {
|
|
27
|
+
"url": "#",
|
|
28
|
+
"text": "Documentation",
|
|
29
|
+
"theme": "normal",
|
|
30
|
+
"arrow": true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"title": "Ut enim ad minim veniam, quis nostrud exercitation ullamco? 1",
|
|
35
|
+
"text": "<p>laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> ",
|
|
36
|
+
"link": {
|
|
37
|
+
"url": "#",
|
|
38
|
+
"text": "Documentation",
|
|
39
|
+
"theme": "normal",
|
|
40
|
+
"arrow": true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"title": "Lorem ipsum dolor sit amet 2",
|
|
45
|
+
"text": "<p>Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> ",
|
|
46
|
+
"link": {
|
|
47
|
+
"url": "#",
|
|
48
|
+
"text": "Documentation",
|
|
49
|
+
"theme": "normal",
|
|
50
|
+
"arrow": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "Ut enim ad minim veniam, quis nostrud exercitation ullamco? 3",
|
|
55
|
+
"text": "<p>laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> ",
|
|
56
|
+
"link": {
|
|
57
|
+
"url": "#",
|
|
58
|
+
"text": "Documentation",
|
|
59
|
+
"theme": "normal",
|
|
60
|
+
"arrow": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"title": "Lorem ipsum dolor sit amet 4",
|
|
65
|
+
"text": "<p>Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> ",
|
|
66
|
+
"link": {
|
|
67
|
+
"url": "#",
|
|
68
|
+
"text": "Documentation",
|
|
69
|
+
"theme": "normal",
|
|
70
|
+
"arrow": true
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"title": "Ut enim ad minim veniam, quis nostrud exercitation ullamco? 5",
|
|
75
|
+
"text": "<p>laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> ",
|
|
76
|
+
"link": {
|
|
77
|
+
"url": "#",
|
|
78
|
+
"text": "Documentation",
|
|
79
|
+
"theme": "normal",
|
|
80
|
+
"arrow": true
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"title": "Lorem ipsum dolor sit amet 6",
|
|
85
|
+
"text": "<p>Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> ",
|
|
86
|
+
"link": {
|
|
87
|
+
"url": "#",
|
|
88
|
+
"text": "Documentation",
|
|
89
|
+
"theme": "normal",
|
|
90
|
+
"arrow": true
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"title": "Ut enim ad minim veniam, quis nostrud exercitation ullamco? 7",
|
|
95
|
+
"text": "<p>laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> ",
|
|
96
|
+
"link": {
|
|
97
|
+
"url": "#",
|
|
98
|
+
"text": "Documentation",
|
|
99
|
+
"theme": "normal",
|
|
100
|
+
"arrow": true
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "security-block",
|
|
4
|
+
"title": "Lorem ipsum dolor sit amet",
|
|
5
|
+
"media": {
|
|
6
|
+
"youtube": "0Qd3T6skprA"
|
|
7
|
+
},
|
|
8
|
+
"theme": "dark",
|
|
9
|
+
"points": [
|
|
10
|
+
{
|
|
11
|
+
"img": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_1_dark.svg",
|
|
12
|
+
"text": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.",
|
|
13
|
+
"link": {
|
|
14
|
+
"text": "Learn more",
|
|
15
|
+
"url": "https://example.com"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"img": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_2_dark.svg",
|
|
20
|
+
"text": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.",
|
|
21
|
+
"link": {
|
|
22
|
+
"text": "Learn more",
|
|
23
|
+
"url": "https://example.com"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"img": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_3_dark.svg",
|
|
28
|
+
"text": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.",
|
|
29
|
+
"link": {
|
|
30
|
+
"text": "Certificates and standards",
|
|
31
|
+
"url": "https://example.com"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "slider-block",
|
|
4
|
+
"title": {
|
|
5
|
+
"text": "Slider",
|
|
6
|
+
"url": "https://example.com"
|
|
7
|
+
},
|
|
8
|
+
"children": [
|
|
9
|
+
{
|
|
10
|
+
"type": "basic-card",
|
|
11
|
+
"url": "https://example.com",
|
|
12
|
+
"title": "Lorem ipsum dolor sit amet",
|
|
13
|
+
"text": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
14
|
+
"icon": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_1_light.svg"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "basic-card",
|
|
18
|
+
"url": "https://example.com",
|
|
19
|
+
"title": "Lorem ipsum dolor sit amet",
|
|
20
|
+
"text": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
21
|
+
"icon": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_2_light.svg"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "basic-card",
|
|
25
|
+
"url": "https://example.com",
|
|
26
|
+
"title": "Lorem ipsum dolor sit amet",
|
|
27
|
+
"text": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
28
|
+
"icon": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_3_light.svg"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "basic-card",
|
|
32
|
+
"url": "https://example.com",
|
|
33
|
+
"title": "Lorem ipsum dolor sit amet",
|
|
34
|
+
"text": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
35
|
+
"icon": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_4_light.svg"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "basic-card",
|
|
39
|
+
"url": "https://example.com",
|
|
40
|
+
"title": "Lorem ipsum dolor sit amet",
|
|
41
|
+
"text": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
42
|
+
"icon": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_1_light.svg"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "table-block",
|
|
4
|
+
"title": "Lorem ipsum dolor sit amet",
|
|
5
|
+
"table": {
|
|
6
|
+
"content": [
|
|
7
|
+
["Lorem", "ipsum 1", "dolor 2", "sit 3"],
|
|
8
|
+
["Lorem 1", "0", "0", "0"],
|
|
9
|
+
["Lorem 2", "0", "0", "1"],
|
|
10
|
+
["Lorem 3", "0", "0", "1"],
|
|
11
|
+
["Lorem 4", "0", "1", "1"],
|
|
12
|
+
["Lorem 5", "1", "1", "1"]
|
|
13
|
+
],
|
|
14
|
+
"legend": ["ipsum 1", "ipsum 2"],
|
|
15
|
+
"justify": ["start", "center", "center", "center"]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "tabs-block",
|
|
4
|
+
"title": {
|
|
5
|
+
"text": "Lorem ipsum"
|
|
6
|
+
},
|
|
7
|
+
"items": [
|
|
8
|
+
{
|
|
9
|
+
"tabName": "Dolor sit amet",
|
|
10
|
+
"title": "Lorem ipsum dolor sit amet",
|
|
11
|
+
"text": "**Ut enim ad minim veniam** [quis nostrud](https://example.com) exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
12
|
+
"buttons": [
|
|
13
|
+
{
|
|
14
|
+
"text": "Button",
|
|
15
|
+
"theme": "action",
|
|
16
|
+
"url": "https://example.com"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"text": "Button",
|
|
20
|
+
"theme": "outlined",
|
|
21
|
+
"url": "https://example.com"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"image": {
|
|
25
|
+
"light": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_white.png",
|
|
26
|
+
"dark": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_dark.png"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"tabName": "Lorem ipsum",
|
|
31
|
+
"title": "Lorem ipsum",
|
|
32
|
+
"media": {
|
|
33
|
+
"light": {
|
|
34
|
+
"video": {
|
|
35
|
+
"src": [
|
|
36
|
+
"https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/video_8-12_light.webm",
|
|
37
|
+
"https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/video_8-12_light.mp4",
|
|
38
|
+
"https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/video_8-12_light.png"
|
|
39
|
+
],
|
|
40
|
+
"loop": {
|
|
41
|
+
"start": 0
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_white.png"
|
|
45
|
+
},
|
|
46
|
+
"dark": {
|
|
47
|
+
"video": {
|
|
48
|
+
"src": [
|
|
49
|
+
"https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/video_8-12_dark.webm",
|
|
50
|
+
"https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/video_8-12_dark.mp4",
|
|
51
|
+
"https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/video_8-12_dark.png"
|
|
52
|
+
],
|
|
53
|
+
"loop": {
|
|
54
|
+
"start": 0
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_dark.png"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"caption": "Dolor sit amet",
|
|
61
|
+
"text": "* Ut enim ad minim veniam\n* Ut enim ad minim veniam",
|
|
62
|
+
"links": [
|
|
63
|
+
{
|
|
64
|
+
"url": "https://example.com",
|
|
65
|
+
"text": "Link",
|
|
66
|
+
"theme": "normal",
|
|
67
|
+
"arrow": true
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"tabName": "Consectetur adipiscing elit",
|
|
73
|
+
"title": "Consectetur adipiscing elit",
|
|
74
|
+
"additionalInfo": "Duis aute irure dolor in [reprehenderit](https://example.com) n voluptate velit esse cillum dolore eu fugiat nulla pariatur.",
|
|
75
|
+
"media": {
|
|
76
|
+
"light": {
|
|
77
|
+
"youtube": "https://youtu.be/0Qd3T6skprA",
|
|
78
|
+
"previewImg": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/video_8-12_light.png"
|
|
79
|
+
},
|
|
80
|
+
"dark": {
|
|
81
|
+
"youtube": "https://youtu.be/0Qd3T6skprA",
|
|
82
|
+
"previewImg": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/video_8-12_dark.png"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"caption": "Consectetur adipiscing elit",
|
|
86
|
+
"text": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -17,6 +17,7 @@ const ControlPanel = ({ viewMode = ViewModeItem.Edititng, onViewModeChange, clas
|
|
|
17
17
|
React.createElement(RadioButton, { className: b('radio-button'), value: viewMode, onUpdate: (value) => onViewModeChange(value) }, Object.values(ViewModeItem).map((item) => {
|
|
18
18
|
const Icon = ControlPanelViewModeIcons[item];
|
|
19
19
|
return (React.createElement(RadioButton.Option, { key: item, value: item },
|
|
20
|
-
React.createElement(
|
|
20
|
+
React.createElement("span", { className: b('icon') },
|
|
21
|
+
React.createElement(Icon, { width: ICON_SIZE, height: ICON_SIZE }))));
|
|
21
22
|
})))));
|
|
22
23
|
export default ControlPanel;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"theme": "light",
|
|
4
|
+
"type": "banner-block",
|
|
5
|
+
"title": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
|
|
6
|
+
"subtitle": "<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> ",
|
|
7
|
+
"image": {
|
|
8
|
+
"light": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_light.png",
|
|
9
|
+
"dark": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_dark.png"
|
|
10
|
+
},
|
|
11
|
+
"disableCompress": true,
|
|
12
|
+
"color": {
|
|
13
|
+
"light": "#EFF2F8",
|
|
14
|
+
"dark": "#262626"
|
|
15
|
+
},
|
|
16
|
+
"button": {
|
|
17
|
+
"text": "Learn more",
|
|
18
|
+
"url": "https://example.com"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"meta": {
|
|
22
|
+
"title": "Banner",
|
|
23
|
+
"description": "This is banner block"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "card-layout-block",
|
|
4
|
+
"title": "Card Layout",
|
|
5
|
+
"description": "Three cards in a row on the desktop, two cards in a row on a tablet, one card in a row on a mobile phone.",
|
|
6
|
+
"children": [
|
|
7
|
+
{
|
|
8
|
+
"type": "layout-item",
|
|
9
|
+
"media": {
|
|
10
|
+
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img-mini_4-12_light.png"
|
|
11
|
+
},
|
|
12
|
+
"content": {
|
|
13
|
+
"title": "Lorem ipsum",
|
|
14
|
+
"text": "Dolor sit amet"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "layout-item",
|
|
19
|
+
"media": {
|
|
20
|
+
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img-mini_4-12_light.png"
|
|
21
|
+
},
|
|
22
|
+
"content": {
|
|
23
|
+
"title": "Lorem ipsum",
|
|
24
|
+
"text": "Dolor sit amet"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "layout-item",
|
|
29
|
+
"media": {
|
|
30
|
+
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img-mini_4-12_light.png"
|
|
31
|
+
},
|
|
32
|
+
"content": {
|
|
33
|
+
"title": "Lorem ipsum",
|
|
34
|
+
"text": "Dolor sit amet"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "companies-block",
|
|
4
|
+
"title": "Page constructor",
|
|
5
|
+
"images": {
|
|
6
|
+
"light": {
|
|
7
|
+
"desktop": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/logo-svg_12-12_desktop_light.svg",
|
|
8
|
+
"tablet": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/logo-svg_12-12_tablet_light.svg",
|
|
9
|
+
"mobile": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/logo-svg_12-12_mobile_light.svg",
|
|
10
|
+
"alt": "Page constructor"
|
|
11
|
+
},
|
|
12
|
+
"dark": {
|
|
13
|
+
"desktop": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/logo-svg_12-12_desktop_dark.svg",
|
|
14
|
+
"tablet": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/logo-svg_12-12_tablet_dark.svg",
|
|
15
|
+
"mobile": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/logo-svg_12-12_mobile_dark.svg",
|
|
16
|
+
"alt": "Page constructor"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "content-layout-block",
|
|
4
|
+
"additionalInfo": "Duis aute irure dolor in [reprehenderit](https://example.com) n voluptate velit esse cillum dolore eu fugiat nulla pariatur.",
|
|
5
|
+
"textContent": {
|
|
6
|
+
"title": "Lorem ipsum dolor sit amet",
|
|
7
|
+
"text": "**Ut enim ad minim veniam** [quis nostrud](https://example.com) exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
8
|
+
"buttons": [
|
|
9
|
+
{
|
|
10
|
+
"text": "Button\r",
|
|
11
|
+
"theme": "action",
|
|
12
|
+
"url": "https://example.com"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"text": "Button",
|
|
16
|
+
"theme": "outlined",
|
|
17
|
+
"url": "https://example.com"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"links": [
|
|
21
|
+
{
|
|
22
|
+
"url": "https://example.com",
|
|
23
|
+
"text": "Link",
|
|
24
|
+
"theme": "normal",
|
|
25
|
+
"arrow": true
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"fileContent": [
|
|
30
|
+
{
|
|
31
|
+
"href": "https://example.xls",
|
|
32
|
+
"text": "File xls"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"href": "https://example.fig",
|
|
36
|
+
"text": "File PNG, JPG, and SVG format"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"href": "https://example.pdf",
|
|
40
|
+
"text": "Pdf file"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"href": "https://example.zip",
|
|
44
|
+
"text": "Archive file"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"href": "https://example.doc",
|
|
48
|
+
"text": "Microsoft Word document"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"href": "https://example.ppt",
|
|
52
|
+
"text": "PPT file"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "extended-features-block",
|
|
4
|
+
"title": {
|
|
5
|
+
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
|
|
6
|
+
"textSize": "m"
|
|
7
|
+
},
|
|
8
|
+
"items": [
|
|
9
|
+
{
|
|
10
|
+
"title": "Sed do eiusmod tempor incididunt",
|
|
11
|
+
"text": "Ut enim ad minim veniam [quis nostrud](https://example.com) ullamco laboris nisi ut aliquip ex ea commodo consequat.",
|
|
12
|
+
"icon": {
|
|
13
|
+
"light": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_1_light.svg",
|
|
14
|
+
"dark": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_1_dark.svg"
|
|
15
|
+
},
|
|
16
|
+
"additionalInfo": "Duis aute irure dolor in [reprehenderit](https://example.com) n voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"title": "Sed do eiusmod tempor",
|
|
20
|
+
"text": "Ut enim ad minim veniam [quis nostrud](https://example.com) ullamco laboris nisi ut aliquip ex ea commodo consequat.",
|
|
21
|
+
"icon": {
|
|
22
|
+
"light": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_2_light.svg",
|
|
23
|
+
"dark": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_2_dark.svg"
|
|
24
|
+
},
|
|
25
|
+
"buttons": [
|
|
26
|
+
{
|
|
27
|
+
"text": "Button",
|
|
28
|
+
"theme": "action",
|
|
29
|
+
"url": "https://example.com"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"text": "Button",
|
|
33
|
+
"theme": "outlined",
|
|
34
|
+
"url": "https://example.com"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"title": "Sed do eiusmod tempor incididunt",
|
|
40
|
+
"text": "Ut enim ad minim veniam [quis nostrud](https://example.com) ullamco laboris nisi ut aliquip ex ea commodo consequat.",
|
|
41
|
+
"icon": {
|
|
42
|
+
"light": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_3_light.svg",
|
|
43
|
+
"dark": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_3_dark.svg"
|
|
44
|
+
},
|
|
45
|
+
"links": [
|
|
46
|
+
{
|
|
47
|
+
"text": "Go",
|
|
48
|
+
"url": "#",
|
|
49
|
+
"arrow": true,
|
|
50
|
+
"theme": "normal"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "filter-block",
|
|
4
|
+
"title": "Card Layout",
|
|
5
|
+
"description": "Three cards in a row on the desktop, two cards in a row on a tablet, one card in a row on a mobile phone.",
|
|
6
|
+
"tags": [
|
|
7
|
+
{
|
|
8
|
+
"id": "one",
|
|
9
|
+
"label": "First very long label"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "two",
|
|
13
|
+
"label": "Second very long label"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "three",
|
|
17
|
+
"label": "Third very long label"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"items": [
|
|
21
|
+
{
|
|
22
|
+
"card": {
|
|
23
|
+
"type": "layout-item",
|
|
24
|
+
"media": {
|
|
25
|
+
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img-mini_4-12_light.png"
|
|
26
|
+
},
|
|
27
|
+
"content": {
|
|
28
|
+
"title": "Lorem ipsum",
|
|
29
|
+
"text": "Dolor sit amet"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"tags": ["one"]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"card": {
|
|
36
|
+
"type": "layout-item",
|
|
37
|
+
"media": {
|
|
38
|
+
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img-mini_4-12_light.png"
|
|
39
|
+
},
|
|
40
|
+
"content": {
|
|
41
|
+
"title": "Lorem ipsum",
|
|
42
|
+
"text": "Dolor sit amet"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"tags": ["two"]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"card": {
|
|
49
|
+
"type": "layout-item",
|
|
50
|
+
"media": {
|
|
51
|
+
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img-mini_4-12_light.png"
|
|
52
|
+
},
|
|
53
|
+
"content": {
|
|
54
|
+
"title": "Lorem ipsum",
|
|
55
|
+
"text": "Dolor sit amet"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"tags": ["three"]
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": {
|
|
3
|
+
"type": "header-block",
|
|
4
|
+
"title": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
|
|
5
|
+
"description": "**Ut enim ad minim veniam** [quis nostrud](https://example.com) exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.",
|
|
6
|
+
"buttons": [
|
|
7
|
+
{
|
|
8
|
+
"text": "Button\r",
|
|
9
|
+
"theme": "action",
|
|
10
|
+
"url": "https://example.com"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"text": "Button",
|
|
14
|
+
"theme": "outlined",
|
|
15
|
+
"url": "https://example.com"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|