fix: 메인 홈

- 콘텐츠 업로드 버튼 추가
This commit is contained in:
Yu Sung
2025-07-15 05:06:29 +09:00
parent 97c34dd33b
commit b8f679d233
2 changed files with 25 additions and 1 deletions

View File

@@ -37,10 +37,14 @@ struct HomeLiveItemView: View {
Text(item.creatorNickname)
.font(.custom(Font.preRegular.rawValue, size: 18))
.foregroundColor(.white)
.lineLimit(2)
.truncationMode(.tail)
Text(item.title)
.font(.custom(Font.preRegular.rawValue, size: 16))
.foregroundColor(Color(hex: "B0BEC5"))
.lineLimit(2)
.truncationMode(.tail)
}
}
.padding(.horizontal, 14)
@@ -64,7 +68,7 @@ struct HomeLiveItemView: View {
HomeLiveItemView(
item: GetRoomListResponse(
roomId: 1,
title: "네네코 마사로",
title: "네네코 마사로네네코 마사로네네코 마사로네네코 마사로",
content: "테스트",
beginDateTime: "2025-08-10 15:00:00",
numberOfParticipate: 1,

View File

@@ -287,6 +287,26 @@ struct HomeTabView: View {
.padding(.vertical, 24)
}
}
if role == MemberRole.CREATOR.rawValue {
HStack(spacing: 5) {
Image("ic_thumb_play")
.resizable()
.frame(width: 20, height: 20)
Text("콘텐츠 업로드")
.font(.custom(Font.preBold.rawValue, size: 13.3))
.foregroundColor(.white)
}
.padding(13.3)
.background(Color(hex: "3bb9f1"))
.cornerRadius(44)
.padding(.trailing, 16.7)
.padding(.bottom, 16.7)
.onTapGesture {
AppState.shared.setAppStep(step: .createContent)
}
}
}
.onAppear {
viewModel.fetchData()