@jetbrains/kotlin-web-site-ui 0.0.0-foundation-changes.2 → 0.0.0-foundation-changes.3
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/out/components/cta-block/cta-block.module.pcss.js +8 -0
- package/out/components/cta-block/index.css +8 -226
- package/out/components/cta-block/{cta-block/v1/cta-block.js → index.js} +1 -0
- package/out/components/cta-block-v2/cta-block.module.pcss.js +9 -0
- package/out/components/cta-block-v2/index.css +25 -0
- package/out/components/{cta-block/cta-block/v2/cta-block.js → cta-block-v2/index.js} +2 -2
- package/package.json +1 -1
- package/out/components/cta-block/cta-block/cta-block.js +0 -22
- package/out/components/cta-block/cta-block/index.js +0 -6
- package/out/components/cta-block/cta-block/v1/cta-block.module.pcss.js +0 -8
- package/out/components/cta-block/cta-block/v2/cta-block.module.pcss.js +0 -9
- package/out/components/cta-block/typography/create-text-cn.js +0 -26
- package/out/components/cta-block/typography/hooks.js +0 -6
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"wrapper": "ktl-cta-block-module_wrapper_60Mug",
|
|
3
|
+
"topTitle": "ktl-cta-block-module_top-title_7p65f",
|
|
4
|
+
"mainTitle": "ktl-cta-block-module_main-title_r-947",
|
|
5
|
+
"content": "ktl-cta-block-module_content_9up3O",
|
|
6
|
+
"buttons": "ktl-cta-block-module_buttons_TbaMj"
|
|
7
|
+
};
|
|
8
|
+
export { styles as default };
|
|
@@ -1,254 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
--ktl-light-grey: #f4f4f4;
|
|
3
|
-
--ktl-dark-100: rgba(39, 40, 44, 1);
|
|
4
|
-
--ktl-dark-bg-hard: rgba(27, 27, 27, 1);
|
|
5
|
-
--ktl-icon-color-dark: rgba(39, 40, 44, 0.75);
|
|
6
|
-
--ktl-color-white-light: rgba(255, 255, 255, 0.75);
|
|
7
|
-
--ktl-transition-xfast: 100ms;
|
|
8
|
-
--ktl-transition-fast: 300ms;
|
|
9
|
-
--ktl-color-primary-light-theme: #7f52ff;
|
|
10
|
-
--ktl-color-dark-40: rgba(39, 40, 44, 0.4);
|
|
11
|
-
--ktl-light-text-hard: rgba(39, 40, 44, 1);
|
|
12
|
-
--ktl-light-dark-20: rgba(39, 40, 44, 0.2);
|
|
13
|
-
--ktl-divider-color: rgba(25, 25, 28, .2);
|
|
14
|
-
--ktl-overlay-z-index: 900;
|
|
15
|
-
--ktl-top-menu-z-index: 905;
|
|
16
|
-
--ktl-header-z-index: 906;
|
|
17
|
-
--ktl-mobile-dropdown-list-z-index: 907;
|
|
18
|
-
--ktl-header-height-mobile: 52px;
|
|
19
|
-
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
20
|
-
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:root {
|
|
24
|
-
--ktl-box-block-s: 4px;
|
|
25
|
-
--ktl-box-block-m: 8px;
|
|
26
|
-
--ktl-box-block-l: 16px;
|
|
27
|
-
|
|
28
|
-
--ktl-box-section-s: 24px;
|
|
29
|
-
--ktl-box-section-m: 32px;
|
|
30
|
-
--ktl-box-section-l: 48px;
|
|
31
|
-
|
|
32
|
-
--ktl-box-page-s: 64px;
|
|
33
|
-
--ktl-box-page-m: 72px;
|
|
34
|
-
--ktl-box-page-l: 96px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.ktl-hero {
|
|
38
|
-
font-family: var(--ktl-font-family-inter);
|
|
39
|
-
color: var(--ktl-light-text-hard);
|
|
40
|
-
font-weight: normal;
|
|
41
|
-
font-size: 42px;
|
|
42
|
-
line-height: 48px;
|
|
43
|
-
letter-spacing: -1px;
|
|
44
|
-
margin: 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.ktl-hero_theme_dark {
|
|
48
|
-
color: #fff;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@media (min-width: 1200px) {
|
|
52
|
-
|
|
53
|
-
.ktl-hero {
|
|
54
|
-
font-size: 64px;
|
|
55
|
-
line-height: 72px;
|
|
56
|
-
letter-spacing: -3px
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.ktl-h1 {
|
|
61
|
-
font-family: var(--ktl-font-family-inter);
|
|
62
|
-
color: var(--ktl-light-text-hard);
|
|
63
|
-
font-weight: normal;
|
|
64
|
-
font-size: 36px;
|
|
65
|
-
line-height: 44px;
|
|
66
|
-
letter-spacing: -1px;
|
|
67
|
-
margin: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ktl-h1_theme_dark {
|
|
71
|
-
color: #fff;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@media (min-width: 1200px) {
|
|
75
|
-
|
|
76
|
-
.ktl-h1 {
|
|
77
|
-
font-size: 43px;
|
|
78
|
-
line-height: 48px
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.ktl-h2 {
|
|
84
|
-
font-family: var(--ktl-font-family-inter);
|
|
85
|
-
color: var(--ktl-light-text-hard);
|
|
86
|
-
font-weight: 500;
|
|
87
|
-
font-size: 24px;
|
|
88
|
-
line-height: 32px;
|
|
89
|
-
letter-spacing: -0.5px;
|
|
90
|
-
margin: 0;
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.ktl-h2_theme_dark {
|
|
95
|
-
color: #fff;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@media (min-width: 1200px) {
|
|
99
|
-
|
|
100
|
-
.ktl-h2 {
|
|
101
|
-
font-size: 31px;
|
|
102
|
-
line-height: 40px
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.ktl-subtitle {
|
|
109
|
-
font-family: var(--ktl-font-family-inter);
|
|
110
|
-
color: var(--ktl-light-text-hard);
|
|
111
|
-
font-weight: normal;
|
|
112
|
-
font-size: 20px;
|
|
113
|
-
line-height: 32px;
|
|
114
|
-
margin: 0;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.ktl-subtitle_theme_dark {
|
|
118
|
-
color: #fff;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@media (min-width: 1200px) {
|
|
122
|
-
|
|
123
|
-
.ktl-subtitle {
|
|
124
|
-
font-size: 31px;
|
|
125
|
-
line-height: 40px
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.ktl-h3 {
|
|
130
|
-
font-family: var(--ktl-font-family-inter);
|
|
131
|
-
color: var(--ktl-light-text-hard);
|
|
132
|
-
font-weight: 600;
|
|
133
|
-
font-size: 20px;
|
|
134
|
-
line-height: 32px;
|
|
135
|
-
margin: 0;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.ktl-h3_theme_dark {
|
|
139
|
-
color: #fff;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.ktl-h4 {
|
|
143
|
-
font-family: var(--ktl-font-family-inter);
|
|
144
|
-
color: var(--ktl-light-text-hard);
|
|
145
|
-
font-weight: 600;
|
|
146
|
-
font-size: 16px;
|
|
147
|
-
line-height: 24px;
|
|
148
|
-
margin: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.ktl-h4_theme_dark {
|
|
152
|
-
color: #fff;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.ktl-text-1 {
|
|
156
|
-
font-family: var(--ktl-font-family-inter);
|
|
157
|
-
color: var(--ktl-light-text-hard);
|
|
158
|
-
font-weight: normal;
|
|
159
|
-
font-size: 20px;
|
|
160
|
-
line-height: 32px;
|
|
161
|
-
margin: 0;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.ktl-text-1_theme_dark {
|
|
165
|
-
color: #fff;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.ktl-text-2 {
|
|
169
|
-
font-family: var(--ktl-font-family-inter);
|
|
170
|
-
color: var(--ktl-light-text-hard);
|
|
171
|
-
font-weight: normal;
|
|
172
|
-
font-size: 16px;
|
|
173
|
-
line-height: 24px;
|
|
174
|
-
margin: 0;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.ktl-text-2_theme_dark {
|
|
178
|
-
color: #fff;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.ktl-text-3 {
|
|
182
|
-
font-family: var(--ktl-font-family-inter);
|
|
183
|
-
color: var(--ktl-light-text-hard);
|
|
184
|
-
font-weight: normal;
|
|
185
|
-
font-size: 13px;
|
|
186
|
-
line-height: 20px;
|
|
187
|
-
margin: 0;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.ktl-text-3_theme_dark {
|
|
191
|
-
color: #fff;
|
|
192
|
-
}
|
|
193
|
-
.ktl-cta-block-module_wrapper_pE-pv {
|
|
194
|
-
background: radial-gradient(
|
|
195
|
-
89.53% 145.96% at 0.34% 100.79%,
|
|
196
|
-
#EF4857 0%,
|
|
197
|
-
#DE4970 17.58%,
|
|
198
|
-
#B44DB0 50.31%,
|
|
199
|
-
#7F52FF 97.03%
|
|
200
|
-
);
|
|
201
|
-
|
|
202
|
-
padding: var(--ktl-box-page-m) 0;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.ktl-cta-block-module_top-title_8ly2n, .ktl-cta-block-module_main-title_iq1p4, .ktl-cta-block-module_content_QQ4PV, .ktl-cta-block-module_buttons_KPToV {
|
|
206
|
-
margin-bottom: var(--ktl-box-section-s);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.ktl-cta-block-module_layout_ExLIm .ktl-cta-block-module_top-title_8ly2n:last-child, .ktl-cta-block-module_layout_ExLIm .ktl-cta-block-module_main-title_iq1p4:last-child, .ktl-cta-block-module_layout_ExLIm .ktl-cta-block-module_content_QQ4PV:last-child, .ktl-cta-block-module_layout_ExLIm .ktl-cta-block-module_buttons_KPToV:last-child {
|
|
210
|
-
margin-bottom: 0;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.ktl-cta-block-module_top-title_8ly2n {
|
|
214
|
-
font-size: 16px;
|
|
215
|
-
line-height: 24px;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
.ktl-cta-block-module_wrapper_4ZjRD {
|
|
1
|
+
.ktl-cta-block-module_wrapper_60Mug {
|
|
220
2
|
background: radial-gradient(89.53% 145.96% at 0.34% 100.79%, #EF4857 0%, #DE4970 17.58%, #B44DB0 50.31%, #7F52FF 97.03%);
|
|
221
3
|
color: #fff;
|
|
222
4
|
padding: 32px 0;
|
|
223
5
|
}
|
|
224
|
-
@media (min-width: 768px) {.ktl-cta-block-
|
|
6
|
+
@media (min-width: 768px) {.ktl-cta-block-module_wrapper_60Mug {
|
|
225
7
|
padding: 48px 0
|
|
226
8
|
}
|
|
227
9
|
}
|
|
228
10
|
|
|
229
|
-
.ktl-cta-block-module_top-
|
|
11
|
+
.ktl-cta-block-module_top-title_7p65f {
|
|
230
12
|
max-width: 330px;
|
|
231
13
|
margin-bottom: 64px;
|
|
232
14
|
}
|
|
233
15
|
|
|
234
16
|
@media (min-width: 768px) {
|
|
235
17
|
|
|
236
|
-
.ktl-cta-block-module_top-
|
|
18
|
+
.ktl-cta-block-module_top-title_7p65f {
|
|
237
19
|
margin-bottom: 96px
|
|
238
20
|
}
|
|
239
21
|
}
|
|
240
22
|
|
|
241
|
-
.ktl-cta-block-module_main-
|
|
23
|
+
.ktl-cta-block-module_main-title_r-947 {
|
|
242
24
|
}
|
|
243
25
|
|
|
244
|
-
.ktl-cta-block-
|
|
26
|
+
.ktl-cta-block-module_content_9up3O {
|
|
245
27
|
margin-top: 32px;
|
|
246
28
|
}
|
|
247
29
|
|
|
248
|
-
.ktl-cta-block-
|
|
30
|
+
.ktl-cta-block-module_buttons_TbaMj {
|
|
249
31
|
margin-top: 32px;
|
|
250
32
|
}
|
|
251
33
|
|
|
252
|
-
.ktl-cta-block-
|
|
34
|
+
.ktl-cta-block-module_buttons_TbaMj button {
|
|
253
35
|
margin-right: 16px;
|
|
254
36
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"wrapper": "ktl-cta-block-module_wrapper_U-RIE",
|
|
3
|
+
"topTitle": "ktl-cta-block-module_top-title_ve70f",
|
|
4
|
+
"mainTitle": "ktl-cta-block-module_main-title_JbxBG",
|
|
5
|
+
"content": "ktl-cta-block-module_content_lCnnn",
|
|
6
|
+
"buttons": "ktl-cta-block-module_buttons_ObAIt",
|
|
7
|
+
"layout": "ktl-cta-block-module_layout_J-jWe"
|
|
8
|
+
};
|
|
9
|
+
export { styles as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.ktl-cta-block-module_wrapper_U-RIE {
|
|
2
|
+
background: radial-gradient(
|
|
3
|
+
89.53% 145.96% at 0.34% 100.79%,
|
|
4
|
+
#EF4857 0%,
|
|
5
|
+
#DE4970 17.58%,
|
|
6
|
+
#B44DB0 50.31%,
|
|
7
|
+
#7F52FF 97.03%
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
padding: var(--ktl-box-page-m) 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ktl-cta-block-module_top-title_ve70f, .ktl-cta-block-module_main-title_JbxBG, .ktl-cta-block-module_content_lCnnn, .ktl-cta-block-module_buttons_ObAIt {
|
|
14
|
+
margin-bottom: var(--ktl-box-section-s);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ktl-cta-block-module_layout_J-jWe .ktl-cta-block-module_top-title_ve70f:last-child, .ktl-cta-block-module_layout_J-jWe .ktl-cta-block-module_main-title_JbxBG:last-child, .ktl-cta-block-module_layout_J-jWe .ktl-cta-block-module_content_lCnnn:last-child, .ktl-cta-block-module_layout_J-jWe .ktl-cta-block-module_buttons_ObAIt:last-child {
|
|
18
|
+
margin-bottom: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ktl-cta-block-module_top-title_ve70f {
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
line-height: 24px;
|
|
24
|
+
}
|
|
25
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import './index.css';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import cn from 'classnames';
|
|
3
|
-
import '
|
|
4
|
-
import { useTextStyles } from '../../typography/hooks.js';
|
|
4
|
+
import { useTextStyles } from '@jetbrains/kotlin-web-site-ui/out/components/typography';
|
|
5
5
|
import styles from './cta-block.module.pcss.js';
|
|
6
6
|
|
|
7
7
|
function CtaBlock({
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CtaBlock as CtaBlock$1 } from './v2/cta-block.js';
|
|
3
|
-
|
|
4
|
-
function CtaBlock(props) {
|
|
5
|
-
if (props.adaptive !== 'layout') {
|
|
6
|
-
const {
|
|
7
|
-
adaptive,
|
|
8
|
-
...rest
|
|
9
|
-
} = props;
|
|
10
|
-
return React.createElement(CtaBlock$1, { ...rest
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const {
|
|
15
|
-
adaptive,
|
|
16
|
-
...rest
|
|
17
|
-
} = props;
|
|
18
|
-
return React.createElement(CtaBlock$1, { ...rest
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { CtaBlock };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var styles = {
|
|
2
|
-
"wrapper": "ktl-cta-block-module_wrapper_4ZjRD",
|
|
3
|
-
"topTitle": "ktl-cta-block-module_top-title_quxOl",
|
|
4
|
-
"mainTitle": "ktl-cta-block-module_main-title_-P-R-",
|
|
5
|
-
"content": "ktl-cta-block-module_content_UUzIO",
|
|
6
|
-
"buttons": "ktl-cta-block-module_buttons_j6Wcs"
|
|
7
|
-
};
|
|
8
|
-
export { styles as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var styles = {
|
|
2
|
-
"wrapper": "ktl-cta-block-module_wrapper_pE-pv",
|
|
3
|
-
"topTitle": "ktl-cta-block-module_top-title_8ly2n",
|
|
4
|
-
"mainTitle": "ktl-cta-block-module_main-title_iq1p4",
|
|
5
|
-
"content": "ktl-cta-block-module_content_QQ4PV",
|
|
6
|
-
"buttons": "ktl-cta-block-module_buttons_KPToV",
|
|
7
|
-
"layout": "ktl-cta-block-module_layout_ExLIm"
|
|
8
|
-
};
|
|
9
|
-
export { styles as default };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import bemCnFast from 'bem-cn-fast';
|
|
2
|
-
|
|
3
|
-
function createTextCn(theme) {
|
|
4
|
-
if (!theme) {
|
|
5
|
-
throw new TypeError('theme argument is required');
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function textCn(type = 'ktl-text-1', params = {
|
|
9
|
-
paragraphOffsetAuto: false,
|
|
10
|
-
hardness: undefined,
|
|
11
|
-
external: false,
|
|
12
|
-
mode: undefined
|
|
13
|
-
}) {
|
|
14
|
-
return bemCnFast(type)({
|
|
15
|
-
'paragraph-offset-auto': params.paragraphOffsetAuto,
|
|
16
|
-
hardness: params.hardness,
|
|
17
|
-
external: params.external,
|
|
18
|
-
mode: params.mode,
|
|
19
|
-
theme
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return textCn;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { createTextCn };
|