Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions blocks/multiplatform/kmp-apps/kmp-apps.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
@import "@jetbrains/kotlin-web-site-ui/out/components/breakpoints-v2/media.pcss";

.section {
padding-block: 72px;
}

.wrapper {
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: column;
border-radius: 32px;
background: radial-gradient(209.86% 112.09% at 79.02% 95.72%, #7A0072 0%, #540263 18.17%, #2D0454 36.35%, #20023C 68.17%, #120024 100%);
height: 312px;
padding: 32px 0 0 0;
overflow: hidden;
text-align: center;
box-sizing: border-box;

@media (--ktl-ms-min) {
height: 360px;
}

@media (--ktl-ml-min) {
height: 576px;
padding: 64px 64px 0 64px;
}

@media (--ktl-ts-min) {
height: 534px;
}

@media (--ktl-tl-min) {
height: 386px;
text-align: left;
flex-direction: row;
padding: 0 64px;
}
}

.title {
max-width: 244px;
margin: 0;
padding: 0;

@media (--ktl-ms-min) {
max-width: 360px;
}

@media (--ktl-ml-only) {
font-size: 28px;
line-height: 32px;
}

@media (--ktl-ml-min) {
max-width: 440px;
}

@media (--ktl-ts-min) {
max-width: 632px;
}

@media (--ktl-tl-min) {
max-width: 358px;
}

@media (--ktl-ds-min) {
max-width: 586px;
}

}

.imageWrapper {
position: relative;
width: 217px;

@media (--ktl-ml-min) {
width: 363px;
height: 386px;
}
}

.image {
display: block;
height: auto;
@media (--ktl-ds-min) {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: auto;
}
}
30 changes: 30 additions & 0 deletions blocks/multiplatform/kmp-apps/kmp-apps.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import cn from 'classnames';
import { createTextCn } from '@rescui/typography';
import Img from 'next/image';

import styles from './kmp-apps.module.css';
import kmpAppsImage from './images/kmp-apps.webp';

import { useMS } from '@jetbrains/kotlin-web-site-ui/out/components/breakpoints-v2';

export const KMPApps = () => {
const textCn = createTextCn('dark');
const isMS = useMS();

return (
<div id="kmp-apps" className={cn(styles.section, 'ktl-layout ktl-layout--center')}>
<div className={styles.wrapper}>
<h2 className={cn(textCn(isMS ? 'rs-h3' : 'rs-h2'), styles.title)}>
KMP presence among the top 10K apps doubled year over year.
</h2>
<div className={styles.imageWrapper}>
<Img
src={kmpAppsImage}
alt="KMP apps"
className={styles.image}
/>
</div>
</div>
</div>
);
};
2 changes: 2 additions & 0 deletions pages/multiplatform/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import '@jetbrains/kotlin-web-site-ui/out/components/layout-v2';

import { HeroBanner } from '../../blocks/multiplatform/hero';
import { ChooseShare } from '../../blocks/multiplatform/choose-share';
import { KMPApps } from '../../blocks/multiplatform/kmp-apps/kmp-apps';
import { FaqBlock } from '../../blocks/multiplatform/faq-block/faq-block';
import { CtaBlock } from '../../blocks/multiplatform/cta-block/cta-block';
import { CaseStudies } from '../../blocks/multiplatform/case-studies/grid';
Expand Down Expand Up @@ -56,6 +57,7 @@ export default function MultiplatformLanding() {
<CustomerLogos />
<ChooseShare />
<CoolVideos />
<KMPApps />
<CaseStudies />
<FaqBlock />
<CtaBlock url={GET_STARTED_URL} />
Expand Down