Browse Source

Update the links in compose-web landing page (#2451)

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
with_kotlin_1.8.255-SNAPSHOT
Oleksandr Karpovich 2 years ago committed by GitHub
parent
commit
04c49a729a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples/web-landing/gradle.properties
  2. 2
      examples/web-landing/src/jsMain/kotlin/com/sample/content/AboutComposeWebLibsSection.kt
  3. 10
      examples/web-landing/src/jsMain/kotlin/com/sample/content/GetStartedSection.kt
  4. 4
      examples/web-landing/src/jsMain/kotlin/com/sample/content/JoinUs.kt

4
examples/web-landing/gradle.properties

@ -1,3 +1,3 @@
kotlin.code.style=official
kotlin.version=1.7.10
compose.version=1.2.0
kotlin.version=1.7.20
compose.version=1.2.1-rc03

2
examples/web-landing/src/jsMain/kotlin/com/sample/content/AboutComposeWebLibsSection.kt

@ -95,7 +95,7 @@ fun ComposeWebLibraries() {
A(attrs = {
classes(WtTexts.wtButton, WtTexts.wtButtonThemeLight, WtOffsets.wtTopOffset48, WtOffsets.wtTopOffsetSm24)
target(ATarget.Blank)
}, href = "https://github.com/JetBrains/compose-jb/blob/master/FEATURES.md#features-currently-available-in-compose-for-web") {
}, href = "https://github.com/jetbrains/compose-jb#compose-for-web") {
Text("See all features")
}
}

10
examples/web-landing/src/jsMain/kotlin/com/sample/content/GetStartedSection.kt

@ -37,16 +37,16 @@ private fun getCards(): List<GetStartedCardPresentation> {
)
),
GetStartedCardPresentation(
title = "Falling Balls app example",
content = "This example demonstrates the use of multiplatform widgets – sharing user interface code between Compose for Desktop and Web.",
title = "Compose Bird",
content = "A simple game built using the most basic Composable DOM API",
links = listOf(
LinkOnCard(
linkText = "Explore the source code",
linkUrl = "https://github.com/JetBrains/compose-jb/tree/master/examples/falling-balls-web"
linkUrl = "https://github.com/JetBrains/compose-jb/tree/master/examples/web-compose-bird"
),
LinkOnCard(
linkText = "Play",
linkUrl = "https://falling-balls.ui.pages.jetbrains.team/"
linkUrl = "https://compose-bird.ui.pages.jetbrains/"
)
)
)
@ -104,4 +104,4 @@ fun GetStarted() {
}
}
}
}
}

4
examples/web-landing/src/jsMain/kotlin/com/sample/content/JoinUs.kt

@ -39,12 +39,12 @@ fun JoinUs() {
}) {
Text("Feel free to join the ")
LinkToSlack(
url = "https://kotlinlang.slack.com/archives/C01F2HV7868",
url = "https://slack-chats.kotlinlang.org/c/compose-web",
text = "#compose-web"
)
Text(" channel on Kotlin Slack to discuss Compose for Web, or ")
LinkToSlack(
url = "https://kotlinlang.slack.com/archives/CJLTWPH7S",
url = "https://slack-chats.kotlinlang.org/c/compose",
text = "#compose"
)
Text(" for general Compose discussions")

Loading…
Cancel
Save