Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Jul 26, 2024
1 parent be8e73f commit 86b0e4e
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fun createSampleEventMapEvent(
isFavorite: Boolean = false,
) = EventMapEvent(
name = "ランチミートアップ",
roomName = "Arctic Fox",
roomName = "Iguana",
dateLabel = "DAY1",
isFavorite = isFavorite,
description = "様々なテーマごとに集まって、一緒にランチを食べながらお話ししましょう。席に限りがありますので、お弁当受け取り後お早めにお越しください。",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import io.github.droidkaigi.confsched.designsystem.theme.LocalRoomTheme
import io.github.droidkaigi.confsched.designsystem.theme.ProvideRoomTheme
import io.github.droidkaigi.confsched.model.EventMapEvent

@Composable
Expand All @@ -35,68 +36,70 @@ fun EventMapItem(
onClickFavorite: (eventMapEvent: EventMapEvent) -> Unit,
modifier: Modifier = Modifier,
) {
val green = LocalRoomTheme.current.primaryColor
val gray = Color(0xFFC5C7C4)
Column(
modifier = modifier
.border(1.dp, gray, RoundedCornerShape(5.dp))
.background(Color.Transparent, RoundedCornerShape(5.dp))
.clickable {
ProvideRoomTheme(eventMapEvent.roomName) {
val green = LocalRoomTheme.current.primaryColor
val gray = Color(0xFFC5C7C4)
Column(
modifier = modifier
.border(1.dp, gray, RoundedCornerShape(5.dp))
.background(Color.Transparent, RoundedCornerShape(5.dp))
.clickable {
// eventMapEvent.profileUrl?.let(onClick)
}
.padding(12.dp),
verticalArrangement = Arrangement.Top,
horizontalAlignment = Alignment.Start,
) {
Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Start,
}
.padding(12.dp),
verticalArrangement = Arrangement.Top,
horizontalAlignment = Alignment.Start,
) {
ToolTip(
text = eventMapEvent.roomName,
icon = Icons.Filled.Star,
color = green,
Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Start,
) {
ToolTip(
text = eventMapEvent.roomName,
icon = Icons.Filled.Star,
color = green,
)
Spacer(Modifier.width(4.dp))
ToolTip(
text = eventMapEvent.dateLabel,
color = Color(0xFFBFC9C2),
)
Spacer(Modifier.weight(1F))
Icon(
imageVector = Icons.Default.Star,
contentDescription = null,
modifier = Modifier.size(24.dp).clickable { onClickFavorite(eventMapEvent) },
tint = if (eventMapEvent.isFavorite) green else gray,
)
}
Spacer(Modifier.height(8.dp))
Text(
text = eventMapEvent.name,
fontSize = 17.sp,
lineHeight = 23.8.sp,
fontWeight = FontWeight.W600,
letterSpacing = 0.1.sp,
color = gray,
)
Spacer(Modifier.width(4.dp))
ToolTip(
text = eventMapEvent.dateLabel,
color = Color(0xFFBFC9C2),
Spacer(Modifier.height(8.dp))
Text(
text = eventMapEvent.description,
fontSize = 13.sp,
lineHeight = 20.sp,
fontWeight = FontWeight.W400,
letterSpacing = 0.25.sp,
color = Color.White.copy(alpha = 0.7F),
)
Spacer(Modifier.weight(1F))
Icon(
imageVector = Icons.Default.Star,
contentDescription = null,
modifier = Modifier.size(24.dp).clickable { onClickFavorite(eventMapEvent) },
tint = if (eventMapEvent.isFavorite) green else gray,
Spacer(Modifier.height(8.dp))
Text(
text = eventMapEvent.timeDuration,
fontSize = 11.sp,
lineHeight = 15.sp,
fontWeight = FontWeight.W600,
letterSpacing = 0.1.sp,
color = green,
)
}
Spacer(Modifier.height(8.dp))
Text(
text = eventMapEvent.name,
fontSize = 17.sp,
lineHeight = 23.8.sp,
fontWeight = FontWeight.W600,
letterSpacing = 0.1.sp,
color = gray,
)
Spacer(Modifier.height(8.dp))
Text(
text = eventMapEvent.description,
fontSize = 13.sp,
lineHeight = 20.sp,
fontWeight = FontWeight.W400,
letterSpacing = 0.25.sp,
color = Color.White.copy(alpha = 0.7F),
)
Spacer(Modifier.height(8.dp))
Text(
text = eventMapEvent.timeDuration,
fontSize = 11.sp,
lineHeight = 15.sp,
fontWeight = FontWeight.W600,
letterSpacing = 0.1.sp,
color = green,
)
}
}

Expand Down

0 comments on commit 86b0e4e

Please sign in to comment.