Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5e80c5a
[ui]: GroupDoneScreen 구현 완료 및 기본 카드 아이템 코드 수정 (#44)
rbqks529 Jul 10, 2025
8270464
[ui]: 내 모임방 화면에서 데이터가 없을 때의 UI 추가 구현 (#44)
rbqks529 Jul 11, 2025
7d28c5b
[ui]: 기존의 이름 검색 form 높이 수정 및 연관된 코드 수정 (#44)
rbqks529 Jul 11, 2025
8e8172a
[ui]: 모임 페이지의 검색창의 onclick 추가 및 장르 칩 버튼 row 수정 (#44)
rbqks529 Jul 11, 2025
7c03786
[ui]: 검색창 화면 구현 완료 (#44)
rbqks529 Jul 11, 2025
f3066c3
[ui]: string 추출 및 기존의 카드 아이템을 더 범용성 있게 수정 완료 (#44)
rbqks529 Jul 11, 2025
5d95b59
[ui]: 기존의 카드 아이템 스타일 수정 (#44)
rbqks529 Jul 11, 2025
bd2eadf
[ui]: 비밀번호 입력 창 및 스크린 추가 (#44)
rbqks529 Jul 11, 2025
5998e84
[ui]: 배경 이미지 추가 (#44)
rbqks529 Jul 11, 2025
4ce9962
[ui]: GroupRoomScreen의 버튼에 따른 로직 추가 구현 (#44)
rbqks529 Jul 12, 2025
6ec09d2
[ui]: GroupPager의 예외처리 화면 추가 (#44)
rbqks529 Jul 12, 2025
2d6511f
[ui]: GroupSearchScreen 예외 처리 화면 추가 (#44)
rbqks529 Jul 12, 2025
65043d9
[ui]: GroupMyScreen 예외 처리 화면 수정 (#44)
rbqks529 Jul 12, 2025
57730b4
[ui]: 기타 패딩 수정 (#44)
rbqks529 Jul 12, 2025
a62aceb
[ui]: 모임 검색 화면 3단계로 화면 나누어지게 구현 (#44)
rbqks529 Jul 15, 2025
c10ba03
[ui]: 북 커버에 비밀방 표시 구현 완료 (#44)
rbqks529 Jul 15, 2025
93f91bb
[ui]: 북 커버에 비밀방 표시 구현 완료 (#44)
rbqks529 Jul 15, 2025
d98df3e
[refactor]: 기타(주석, preview) 수정 (#44)
rbqks529 Jul 15, 2025
f90a225
[refactor]: PR에 맞게 기타 코드 수정 (#44)
rbqks529 Jul 16, 2025
906d4cd
[refactor]: GroupSearchScreen의 컴포넌트 분리 및 간결화 (#44)
rbqks529 Jul 16, 2025
32fe0b3
[refactor]: import 수정 및 포커스 해제 되게 수정 완료 (#44)
rbqks529 Jul 16, 2025
6fbe256
[refactor]: import 수정 (#44)
rbqks529 Jul 16, 2025
15964b4
[refactor]: LazyColumn으로 수정 (#44)
rbqks529 Jul 16, 2025
c01329c
[chore]: 불필요한 주석 제거 (#44)
rbqks529 Jul 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 158 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,30 @@ import com.texthip.thip.ui.theme.ThipTheme.typography
fun GenreChipButton(
modifier: Modifier = Modifier,
text: String,
onClick: () -> Unit = { }
onClick: () -> Unit = {},
onCloseClick: () -> Unit = {}
) {
Box(
modifier = modifier
.border(
width = 1.dp,
color = colors.White,
color = colors.Grey02,
shape = RoundedCornerShape(20.dp)
)
.background(color = Color.Transparent, shape = RoundedCornerShape(12.dp))
.padding(top = 4.dp, bottom = 4.dp, end = 8.dp, start = 12.dp)
.padding(top = 8.dp, bottom = 8.dp, end = 8.dp, start = 12.dp)
.clickable {
onClick()
},
contentAlignment = Alignment.Center,
) {
Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(2.dp),
horizontalArrangement = Arrangement.spacedBy(4.dp),
) {
Text(
text = text,
color = colors.White,
color = colors.Grey01,
style = typography.info_r400_s12,
)
Icon(
Expand All @@ -60,6 +61,9 @@ fun GenreChipButton(
tint = Color.Unspecified,
modifier = Modifier
.size(20.dp)
.clickable {
onCloseClick()
}
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.texthip.thip.ui.theme.ThipTheme

@Composable
fun GenreChipRow(
Expand All @@ -22,7 +23,13 @@ fun GenreChipRow(
text = genre,
isFilled = true,
isSelected = selectedIndex == idx,
onClick = { onSelect(idx) }
onClick = {
if (selectedIndex == idx) {
onSelect(-1)
} else {
onSelect(idx)
}
}
)
if (idx < genres.size - 1) {
Spacer(modifier = modifier)
Expand All @@ -31,12 +38,14 @@ fun GenreChipRow(
}
}

@Preview(showBackground = true, backgroundColor = 0xFF000000, widthDp = 360)
@Preview()
@Composable
fun PreviewGenreChipRow() {
GenreChipRow(
genres = listOf("문학", "과학·IT", "사회과학", "인문학", "예술"),
selectedIndex = 0,
onSelect = {}
)
ThipTheme {
GenreChipRow(
genres = listOf("문학", "과학·IT", "사회과학", "인문학", "예술"),
selectedIndex = 0,
onSelect = {}
)
}
}
47 changes: 31 additions & 16 deletions app/src/main/java/com/texthip/thip/ui/common/cards/CardItemRoom.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fun CardItemRoom(
participants: Int,
maxParticipants: Int,
isRecruiting: Boolean,
endDate: Int,
endDate: Int? = null,
imageRes: Int? = R.drawable.bookcover_sample,
hasBorder: Boolean = false,
onClick: () -> Unit = {}
Expand Down Expand Up @@ -91,9 +91,11 @@ fun CardItemRoom(
Spacer(modifier = Modifier.width(16.dp))

Column(
modifier = Modifier.fillMaxWidth()
modifier = Modifier
.fillMaxWidth()
.height(107.dp),
verticalArrangement = Arrangement.Center
) {
Spacer(modifier = Modifier.height(16.dp))
Text(
text = title,
color = colors.White,
Expand Down Expand Up @@ -139,7 +141,10 @@ fun CardItemRoom(
verticalAlignment = Alignment.CenterVertically
) {
Text(
text = stringResource(R.string.card_item_participant, participants),
text = stringResource(
R.string.card_item_participating_count,
participants
),
style = typography.menu_sb600_s12,
color = colors.White
)
Expand All @@ -153,20 +158,22 @@ fun CardItemRoom(
}
}
}
Spacer(modifier = Modifier.height(5.dp))
endDate?.let {
Spacer(modifier = Modifier.height(5.dp))

Text(
text = stringResource(
R.string.card_item_end_date,
endDate
) + if (isRecruiting) stringResource(
R.string.card_item_end
) else stringResource(R.string.card_item_finish),
Text(
text = stringResource(
R.string.card_item_end_date,
endDate
) + if (isRecruiting) stringResource(
R.string.card_item_end
) else stringResource(R.string.card_item_finish),

color = if (isRecruiting) colors.Red else colors.Grey01,
style = typography.menu_sb600_s12_h20,
maxLines = 1
)
color = if (isRecruiting) colors.Red else colors.Grey01,
style = typography.menu_sb600_s12_h20,
maxLines = 1
)
}
}
}
}
Expand Down Expand Up @@ -213,6 +220,14 @@ fun CardItemRoomPreview() {
imageRes = R.drawable.bookcover_sample,
hasBorder = true
)
CardItemRoom(
title = "모임방 이름입니다. 모임방 이름입니다.",
participants = 22,
maxParticipants = 30,
isRecruiting = false,
imageRes = R.drawable.bookcover_sample,
hasBorder = true
)
}
}
}
Loading