fix: 메인 홈
- 콘텐츠 업로드 버튼 추가
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user