@jetbrains/kotlin-web-site-ui 0.0.0-foundation-changes.1 → 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.
@@ -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
- :root {
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-module_wrapper_4ZjRD {
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-title_quxOl {
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-title_quxOl {
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-title_-P-R- {
23
+ .ktl-cta-block-module_main-title_r-947 {
242
24
  }
243
25
 
244
- .ktl-cta-block-module_content_UUzIO {
26
+ .ktl-cta-block-module_content_9up3O {
245
27
  margin-top: 32px;
246
28
  }
247
29
 
248
- .ktl-cta-block-module_buttons_j6Wcs {
30
+ .ktl-cta-block-module_buttons_TbaMj {
249
31
  margin-top: 32px;
250
32
  }
251
33
 
252
- .ktl-cta-block-module_buttons_j6Wcs button {
34
+ .ktl-cta-block-module_buttons_TbaMj button {
253
35
  margin-right: 16px;
254
36
  }
@@ -1,7 +1,30 @@
1
1
  import './index.css';
2
- import 'react';
3
- import 'classnames';
4
- import 'bem-cn-fast';
5
- import '@rescui/ui-contexts';
6
- import { CtaBlock } from './v1/cta-block.js';
7
- export { CtaBlock as default } from './v1/cta-block.js';
2
+ import React from 'react';
3
+ import styles from './cta-block.module.pcss.js';
4
+
5
+ const CtaBlock = ({
6
+ topTitle,
7
+ mainTitle,
8
+ children,
9
+ buttons
10
+ }) => {
11
+ return React.createElement("div", {
12
+ className: styles.wrapper
13
+ }, React.createElement("div", {
14
+ className: "ktl-container"
15
+ }, topTitle && React.createElement("div", {
16
+ className: styles.topTitle
17
+ }, React.createElement("div", {
18
+ className: "ktl-text-2 ktl-text-2_theme_dark"
19
+ }, topTitle)), React.createElement("div", {
20
+ className: styles.mainTitle
21
+ }, React.createElement("h2", {
22
+ className: "ktl-hero ktl-hero_theme_dark"
23
+ }, mainTitle)), children && React.createElement("div", {
24
+ className: styles.content
25
+ }, children), React.createElement("div", null), buttons && React.createElement("div", {
26
+ className: styles.buttons
27
+ }, buttons)));
28
+ };
29
+
30
+ export { CtaBlock };
@@ -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
+
@@ -0,0 +1,35 @@
1
+ import './index.css';
2
+ import React from 'react';
3
+ import cn from 'classnames';
4
+ import { useTextStyles } from '@jetbrains/kotlin-web-site-ui/out/components/typography';
5
+ import styles from './cta-block.module.pcss.js';
6
+
7
+ function CtaBlock({
8
+ className,
9
+ theme,
10
+ classTopTitle,
11
+ topTitle,
12
+ classMainTitle,
13
+ mainTitle,
14
+ classContent,
15
+ children,
16
+ classButtons,
17
+ buttons
18
+ }) {
19
+ const textCn = useTextStyles(theme || 'dark');
20
+ return React.createElement("div", {
21
+ className: cn(className, styles.wrapper)
22
+ }, React.createElement("div", {
23
+ className: cn(styles.layout, 'ktl-layout ktl-layout--center')
24
+ }, topTitle && React.createElement("div", {
25
+ className: cn(classTopTitle, styles.topTitle, textCn('ktl-text-3'))
26
+ }, topTitle), React.createElement("h2", {
27
+ className: cn(classMainTitle, styles.mainTitle, textCn('ktl-hero'))
28
+ }, mainTitle), children && React.createElement("div", {
29
+ className: cn(classContent, styles.content)
30
+ }, children), buttons && React.createElement("div", {
31
+ className: cn(classButtons, styles.buttons)
32
+ }, buttons)));
33
+ }
34
+
35
+ export { CtaBlock };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jetbrains/kotlin-web-site-ui",
3
3
  "description": "UI components for Kotlin web sites development",
4
- "version": "0.0.0-foundation-changes.1",
4
+ "version": "0.0.0-foundation-changes.3",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import styles from './cta-block.module.pcss.js';
3
-
4
- const CtaBlock = ({
5
- topTitle,
6
- mainTitle,
7
- children,
8
- buttons
9
- }) => {
10
- return React.createElement("div", {
11
- className: styles.wrapper
12
- }, React.createElement("div", {
13
- className: "ktl-container"
14
- }, topTitle && React.createElement("div", {
15
- className: styles.topTitle
16
- }, React.createElement("div", {
17
- className: "ktl-text-2 ktl-text-2_theme_dark"
18
- }, topTitle)), React.createElement("div", {
19
- className: styles.mainTitle
20
- }, React.createElement("h2", {
21
- className: "ktl-hero ktl-hero_theme_dark"
22
- }, mainTitle)), children && React.createElement("div", {
23
- className: styles.content
24
- }, children), React.createElement("div", null), buttons && React.createElement("div", {
25
- className: styles.buttons
26
- }, buttons)));
27
- };
28
-
29
- 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 };