Browse Source

Update the `web-landing` example with a link to `Compose for Desktop` landing page

pull/642/head 0.4.0-build188
Oleksandr Karpovich 4 years ago
parent
commit
be66d9e822
  1. 18
      examples/web_landing/src/jsMain/kotlin/com/sample/content/JoinUs.kt

18
examples/web_landing/src/jsMain/kotlin/com/sample/content/JoinUs.kt

@ -4,6 +4,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.web.attributes.ATarget import androidx.compose.web.attributes.ATarget
import androidx.compose.web.attributes.target import androidx.compose.web.attributes.target
import androidx.compose.web.elements.* import androidx.compose.web.elements.*
import androidx.compose.web.css.*
import com.sample.components.ContainerInSection import com.sample.components.ContainerInSection
import com.sample.style.* import com.sample.style.*
@ -16,8 +17,25 @@ fun JoinUs() {
Div(attrs = { Div(attrs = {
classes(WtCols.wtCol9, WtCols.wtColMd11, WtCols.wtColSm12) classes(WtCols.wtCol9, WtCols.wtColMd11, WtCols.wtColSm12)
}) { }) {
P(attrs = { P(attrs = {
classes(WtTexts.wtSubtitle2) classes(WtTexts.wtSubtitle2)
}) {
Text("Interested in Compose for other platforms?")
P {
Text("Have a look at ")
A(href = "https://www.jetbrains.com/lp/compose/", attrs = {
classes(WtTexts.wtLink)
target(ATarget.Blank)
}) {
Text("Compose for Desktop")
}
}
}
P(attrs = {
classes(WtTexts.wtSubtitle2, WtOffsets.wtTopOffset24)
}) { }) {
Text("Feel free to join the ") Text("Feel free to join the ")
LinkToSlack( LinkToSlack(

Loading…
Cancel
Save