in ui-components/src/commonMain/kotlin/org/jetbrains/kotlinconf/ui/components/SpeakerCard.kt [29:63]
fun SpeakerCard(
name: String,
title: String,
photoUrl: String,
onClick: () -> Unit,
modifier: Modifier = Modifier,
nameHighlights: List<IntRange> = emptyList(),
titleHighlights: List<IntRange> = emptyList(),
) {
Row(
modifier = modifier
.clip(KotlinConfTheme.shapes.roundedCornerMd)
.clickable(onClick = onClick),
horizontalArrangement = Arrangement.spacedBy(12.dp),
verticalAlignment = Alignment.CenterVertically,
) {
SpeakerAvatar(
photoUrl = photoUrl,
modifier = Modifier.size(96.dp),
)
Column {
Text(
text = buildHighlightedString(name, nameHighlights),
style = KotlinConfTheme.typography.h3,
color = KotlinConfTheme.colors.primaryText,
)
Spacer(modifier = Modifier.size(6.dp))
Text(
text = buildHighlightedString(title, titleHighlights),
style = KotlinConfTheme.typography.text2,
color = KotlinConfTheme.colors.secondaryText,
)
}
}
}