Skip to content

Commit 7e07c41

Browse files
authored
feat(landing): Multiplatform: add initial multiplatform landing page (#5189)
1 parent fdce145 commit 7e07c41

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed
2.32 MB
Loading

components/landing-layout/landing-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type NavigationProps = {
2424
currentTitle?: string;
2525
}
2626

27-
type LandingLayoutProps = {
27+
export type LandingLayoutProps = {
2828
title: string;
2929
description?: string;
3030
ogImageName?: string;

pages/multiplatform/index.tsx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { Button } from '@rescui/button';
2+
import { LandingLayout, LandingLayoutProps } from '../../components/landing-layout/landing-layout';
3+
4+
import {
5+
MULTIPLATFORM_MOBILE_TITLE,
6+
MULTIPLATFORM_MOBILE_URL
7+
} from '@jetbrains/kotlin-web-site-ui/out/components/header';
8+
9+
import styles from './multiplatform.module.css';
10+
11+
const TOP_MENU_ITEMS: LandingLayoutProps['topMenuItems'] = [];
12+
13+
export default function MultiplatformLanding() {
14+
return (
15+
<LandingLayout
16+
dataTestId={'multiplatform-landing'}
17+
title={'Kotlin Multiplatform – Build Cross-Platform Apps'}
18+
ogImageName={'multiplatform.png'}
19+
description={'Kotlin Multiplatform is a technology for reusing up to 100% of your code across Android, iOS, web, and desktop, with Compose Multiplatform for shared UIs.'}
20+
currentTitle={MULTIPLATFORM_MOBILE_TITLE}
21+
currentUrl={MULTIPLATFORM_MOBILE_URL}
22+
topMenuTitle={MULTIPLATFORM_MOBILE_TITLE}
23+
topMenuHomeUrl={MULTIPLATFORM_MOBILE_URL}
24+
topMenuItems={TOP_MENU_ITEMS}
25+
topMenuButton={<Button href={'#get-started'}>Get started</Button>}
26+
canonical={'https://kotlinlang.org/multiplatform/'}
27+
>
28+
<div className={styles.page}>
29+
!!!!!! MULTIPLATFORM PAGE IS UNDER CONSTRUCTION !!!!!!
30+
</div>
31+
</LandingLayout>
32+
);
33+
}

pages/multiplatform/multiplatform.module.css

Whitespace-only changes.

0 commit comments

Comments
 (0)