-
Notifications
You must be signed in to change notification settings - Fork 4.3k
KTL-3868: Move KMP landing page - hero block #5193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
zoobestik
merged 7 commits into
ktl-3875-kmp-landing-page
from
ktl-3875-kmp-landing-page-layout
Dec 2, 2025
+249
−19
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5f91171
feat(landing): Multiplatform: implement a hero section and redesign page
zoobestik 6e70c33
feat(multiplatform): update landing layout and upgrade UI library to …
zoobestik 54c6437
feat(multiplatform): update Hero styles
zoobestik f31efe2
fix(multiplatform): adjust Hero subtitle spacing for consistent forma…
zoobestik d0f8fe3
fix(multiplatform): adjust Hero spacing with added gap for better ali…
zoobestik f8ff05d
feat(multiplatform): update Hero styles and dependencies for improved…
zoobestik 10ec632
feat(multiplatform): refactor Hero icons structure and update image s…
zoobestik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,146 @@ | ||
| @import "@jetbrains/kotlin-web-site-ui/out/components/breakpoints-v2/media.pcss"; | ||
|
|
||
| .wrapper { | ||
| position: relative; | ||
| z-index: 0; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
| .wrapper::before { | ||
| content: ''; | ||
| display: block; | ||
|
|
||
| background: radial-gradient(238.09% 60.02% at 49.98% 105.17%, rgba(177, 38, 235, 0.00) 0%, #260053 100%) center no-repeat; | ||
| filter: blur(200px); | ||
|
|
||
| height: 696px; | ||
| width: 826px; | ||
|
|
||
| position: absolute; | ||
| top: 36px; | ||
| left: 50%; | ||
| transform: translate(-50%, -50%); | ||
| z-index: -1; | ||
| } | ||
|
|
||
| .hero { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
|
|
||
| padding-block: 72px 96px; | ||
| } | ||
|
|
||
| .hero::before { | ||
| display: block; | ||
| content: ''; | ||
| background: url('/images/multiplatform/hero/logo.svg') no-repeat center; | ||
|
|
||
| height: 72px; | ||
| width: 72px; | ||
|
|
||
| @media (--ktl-ts-more) { | ||
| height: 96px; | ||
| width: 96px; | ||
| } | ||
| } | ||
|
|
||
| .title, .subtitle { | ||
| margin: 0; | ||
| padding: 0; | ||
| text-align: center; | ||
| } | ||
|
|
||
| .title { | ||
| padding-block: 24px; | ||
|
|
||
| @media (--ktl-ts-in) { | ||
| /* @mixin rs-hero-sm-*; */ | ||
| font-size: 42px; | ||
| line-height: 50px; | ||
| } | ||
| } | ||
|
|
||
| .subtitle { | ||
| @media (--ktl-ts-in) { | ||
| /* @mixin rs-subtitle-1-sm-* */ | ||
| font-size: 23px; | ||
| line-height: 30px; | ||
| } | ||
| } | ||
|
|
||
| .platforms { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| justify-content: center; | ||
|
|
||
| box-sizing: border-box; | ||
| gap: 18px 40px; | ||
| width: 100%; | ||
|
|
||
| margin: 0; | ||
| padding: 48px 0; | ||
| list-style: none; | ||
|
|
||
| --hero-item-src: ''; | ||
| } | ||
|
|
||
| .platform { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| gap: 8px; | ||
|
|
||
| line-height: 1.5; | ||
|
|
||
| @media (--ktl-ts-more) { | ||
| flex-basis: 80px; | ||
| } | ||
|
|
||
| @media (--ktl-ms-in) { | ||
| padding-inline: 14px; | ||
| } | ||
|
|
||
| &.android { | ||
| --hero-item-src: url('/images/multiplatform/hero/android.svg'); | ||
| } | ||
|
|
||
| &.ios { | ||
| --hero-item-src: url('/images/multiplatform/hero/ios.svg'); | ||
| } | ||
|
|
||
| &.web { | ||
| --hero-item-src: url('/images/multiplatform/hero/web.svg'); | ||
| } | ||
|
|
||
| &.desktop { | ||
| --hero-item-src: url('/images/multiplatform/hero/desktop.svg'); | ||
| } | ||
|
|
||
| &.server { | ||
| --hero-item-src: url('/images/multiplatform/hero/server.svg'); | ||
| } | ||
| } | ||
|
|
||
| .platform::before { | ||
| display: block; | ||
| content: ''; | ||
|
|
||
| background: var(--hero-item-src) no-repeat center; | ||
| background-size: 32px; | ||
| height: 32px; | ||
| width: 32px; | ||
|
|
||
| @media (--ktl-ts-more) { | ||
| background-size: 48px; | ||
| height: 48px; | ||
| width: 48px; | ||
| } | ||
| } | ||
|
|
||
| .button { | ||
| @media (--ktl-ms-in) { | ||
| width: 100%; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| import cn from 'classnames'; | ||
|
|
||
| import { useTextStyles } from '@rescui/typography'; | ||
| import { Button } from '@rescui/button'; | ||
|
|
||
| import { useML } from '@jetbrains/kotlin-web-site-ui/out/components/breakpoints-v2'; | ||
|
|
||
| import styles from './hero.module.css'; | ||
|
|
||
| const platforms = ['Android', 'iOS', 'Web', 'Desktop', 'Server'] as const; | ||
|
|
||
| export function HeroBanner({ url }: { url: string }) { | ||
| const isML = useML(); | ||
| const textCn = useTextStyles(); | ||
|
|
||
| return ( | ||
| <div className={styles.wrapper}> | ||
| <div className={cn(styles.hero, 'ktl-layout', 'ktl-layout--center')}> | ||
| <h1 className={cn(styles.title, textCn('rs-hero'))}>Kotlin Multiplatform</h1> | ||
| <p className={cn(styles.subtitle, textCn('rs-subtitle-1'))}> | ||
| Go cross‑platform without compromising performance, UX, or code quality | ||
| </p> | ||
| <ul className={styles.platforms}> | ||
| {platforms.map(title => { | ||
| const key = title.toLowerCase(); | ||
|
|
||
| return ( | ||
| <li key={key} | ||
| className={cn(styles.platform, styles[`${key}`], textCn(isML ? 'rs-h5' : 'rs-h4'))}> | ||
| {title} | ||
| </li> | ||
| ); | ||
| })} | ||
| </ul> | ||
| <Button className={cn(styles.button)} mode={'rock'} href={url} size={isML ? 'm' : 'l'}>Get | ||
| Started</Button> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
zoobestik marked this conversation as resolved.
Show resolved
Hide resolved
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to add
mixins.p.cssfrom rescui, but I see there is no way to getsmvalue if you are higher than640px. Ask for help.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to get font-size and line height, right?
Have you tried
@mixin rs-typography-hero-sm?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikpachoo where do you find it? I found: