Skip to content

Commit 5c67c8d

Browse files
committed
fix: remove unnecessary github pages logo
1 parent dbef915 commit 5c67c8d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

composeApp/src/wasmJsMain/composeResources/drawable/githubpages.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

composeApp/src/wasmJsMain/kotlin/org/nsh07/nsh07/ui/homeScreen/HomeScreenContent.kt

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,20 @@ fun LazyListScope.mainContent(
190190
modifier = Modifier.clickable { uriHandler.openUri("https://www.jetbrains.com/compose-multiplatform/") }
191191
)
192192
Text(" in Kotlin. ", style = typography.bodyMedium, color = colorScheme.outline)
193-
Text("Deployed with ", style = typography.bodyMedium, color = colorScheme.outline)
194-
Icon(
195-
painterResource(Res.drawable.githubpages),
196-
null,
197-
modifier = Modifier
198-
.height(20.dp)
199-
.clickable { uriHandler.openUri("https://pages.github.com/") }
193+
Text(
194+
buildAnnotatedString {
195+
append("Deployed with ")
196+
withLink(
197+
LinkAnnotation.Url(
198+
url = "https://www.jetbrains.com/compose-multiplatform/",
199+
styles = TextLinkStyles(SpanStyle(color = colorScheme.onSurface))
200+
)
201+
) {
202+
append("GitHub Pages.")
203+
}
204+
},
205+
style = typography.bodyMedium,
206+
color = colorScheme.outline
200207
)
201208
Text(".", style = typography.bodyMedium, color = colorScheme.outline)
202209
}

0 commit comments

Comments
 (0)