Skip to content

Commit 9a4da9c

Browse files
authored
Merge pull request #49 from KotlinFoundation/KTL-1238-main-page
KTL-1238, KTL-1240 feat: synced kotlinfoundation pages with design
2 parents 6a578ba + 4bbad18 commit 9a4da9c

32 files changed

+101
-81
lines changed

gatsby-browser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import './src/styles/global.css';
2+
import './src/styles/palette.css';

postcss.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module.exports = {
66
files: [
77
"node_modules/@rescui/typography/lib/mixins.pcss",
88
"node_modules/@jetbrains/kotlin-web-site-ui/out/components/breakpoints/media.pcss",
9-
"./src/components/Header/media.pcss"
9+
"./src/components/Header/media.pcss",
10+
"./src/styles/palette.css",
1011
]
1112
}),
1213
require('postcss-mixins'),
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
.br {
2-
@media (--ktl-mm) {
3-
display: none;
1+
.mainTitle {
2+
@media (--ktl-tm) {
3+
font-weight: 600;
4+
font-size: 20px;
5+
line-height: 28px;
6+
}
7+
}
8+
9+
.topTitle {
10+
@media (--ktl-ms) {
11+
font-weight: 400;
12+
font-size: 13px;
13+
line-height: 20px;
414
}
515
}

src/components/ContactUs/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import { CtaBlock } from '@jetbrains/kotlin-web-site-ui/out/components/cta-block-v2';
2-
2+
import cn from 'classnames';
33
import { Link } from '../Link';
4-
54
import * as styles from './contactUs.module.css';
65

76
const contactEmail = '[email protected]';
87

98
export function ContactUs() {
109
return (
1110
<CtaBlock
11+
classTopTitle={styles.topTitle}
1212
topTitle={
13-
<>
14-
Still have questions? <br className={styles.br} />
13+
<span>
14+
Still have questions? <br />
1515
Contact us!
16-
</>
16+
</span>
1717
}
18-
classMainTitle="ktf-h2 ktf-h3--ts"
18+
classMainTitle={cn('ktf-h2', 'ktf-h4--tm', 'ktf-h3--ts', styles.mainTitle)}
1919
mainTitle={
2020
<Link href={`mailto:${contactEmail}`} mode="clear">
2121
{contactEmail}

src/components/Grants/grants.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
justify-content: space-between;
3838
border-radius: 16px;
3939

40-
background: var(--ktl-light-grey);
40+
background: var(--kt-grey);
4141
padding: var(--ktl-box-section-s);
4242

4343
margin-left: calc(-1 * var(--ktf-grants-spacing));
@@ -69,7 +69,7 @@
6969
}
7070

7171
.actionDark {
72-
background: #19191c;
72+
background: var(--kt-bg-black);
7373
}
7474

7575
.button {

src/components/IntroBanner/introBanner.module.css

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@
99
'title image'
1010
'. image'
1111
'companies companies';
12+
margin-top: var(--ktl-box-page-l);
13+
margin-bottom: 0;
14+
padding-bottom: var(--ktl-box-page-l);
15+
border-bottom: 1px solid var(--rs-color-black-t20);
1216
}
1317

1418
.image {
1519
height: 400px;
1620
width: 400px;
1721
grid-area: image;
18-
margin-top: var(--ktl-box-page-m);
1922
}
2023

2124
.title {
@@ -28,7 +31,7 @@
2831
display: flex;
2932
flex-wrap: wrap;
3033
margin-left: -80px;
31-
margin-top: calc(var(--ktl-box-section-m) * -1);
34+
margin-top: -84px;
3235
}
3336

3437
.companiesGroup {
@@ -53,10 +56,10 @@
5356
}
5457

5558
.companyLink {
56-
display: inline-block;
57-
59+
display: block;
5860
font-size: 0;
5961
line-height: 0;
62+
6063
&,
6164
&:hover {
6265
text-decoration: none;
@@ -65,10 +68,15 @@
6568

6669
@media (--ktl-ds) {
6770
.title {
68-
margin-right: -70px;
71+
margin-right: -72px;
72+
}
73+
74+
.image {
75+
margin-top: 72px;
6976
}
7077

7178
.companies {
79+
margin-top: -12px;
7280
margin-left: calc(var(--ktl-box-section-l) * -1);
7381
}
7482

@@ -80,13 +88,14 @@
8088
@media (--ktl-tl) {
8189
.intro {
8290
display: block;
91+
padding-bottom: var(--ktl-box-page-m);
8392
margin-top: var(--ktl-box-page-m);
84-
margin-bottom: var(--ktl-box-page-m);
93+
margin-bottom: 0;
8594
}
8695

8796
.title {
88-
height: 242px;
89-
margin-top: 12px;
97+
height: 280px;
98+
margin-top: 8px;
9099
margin-right: 0;
91100
}
92101

@@ -107,7 +116,7 @@
107116

108117
@media (--ktl-tm) {
109118
.intro {
110-
margin-bottom: var(--ktl-box-section-l);
119+
padding-bottom: var(--ktl-box-section-l);
111120
}
112121

113122
.title {

src/components/JoinIntro/Opener/opener.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
.contact {
3131
display: inline-block;
32-
background: var(--rs-color-grey-10);
32+
background: var(--kt-grey);
3333
border-radius: 8px;
3434
margin: var(--ktl-box-section-l) 0 0;
3535
padding: var(--ktl-box-block-l) 18px;

src/components/JoinTiers/Tier/tier.module.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
display: flex;
33
flex-direction: column;
44
box-sizing: border-box;
5-
6-
background: #fff;
7-
box-shadow: 5px 2px 24px rgba(0, 0, 0, 0.1);
5+
background-color: #fff;
86
border-radius: 8px;
97
padding: var(--ktl-box-section-m) var(--ktl-box-section-s) var(--ktl-box-section-s);
108

src/components/JoinTiers/tiers.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.outer {
2-
background: var(--ktl-light-grey);
2+
background: var(--kt-grey);
33
}
44

55
.tiers {

src/components/JoinWantToLearn/wantToLearn.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.outter {
2-
background: var(--ktl-light-grey);
2+
background: var(--kt-grey);
33
padding-top: var(--ktf-fuild-spacing-xl);
44
overflow: hidden;
55
}

0 commit comments

Comments
 (0)