오픈 예정 콘텐츠 상세

- 댓글 창, 좋아요, 공유, 후원 버튼 숨김
This commit is contained in:
Yu Sung 2024-04-02 14:49:48 +09:00
parent 2f96ad1321
commit e77a068a8e
2 changed files with 49 additions and 47 deletions

View File

@ -67,7 +67,7 @@ struct ContentDetailInfoView: View {
.foregroundColor(
orderType == .KEEP ?
Color(hex: "b1ef2c") :
Color(hex: "9970ff")
Color.button
)
.padding(.horizontal, 5.3)
.padding(.vertical, 3.3)
@ -82,7 +82,7 @@ struct ContentDetailInfoView: View {
Text(audioContent.title)
.font(.custom(Font.bold.rawValue, size: 16.7))
.foregroundColor(Color(hex: "d2d2d2"))
.foregroundColor(Color.grayd2)
.lineSpacing(5)
.multilineTextAlignment(.leading)
.fixedSize(horizontal: false, vertical: true)
@ -90,6 +90,7 @@ struct ContentDetailInfoView: View {
}
.padding(.top, 13.3)
if !audioContent.contentUrl.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty && audioContent.releaseDate == nil {
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 8) {
HStack(spacing: 4) {
@ -101,7 +102,7 @@ struct ContentDetailInfoView: View {
Text("\(audioContent.likeCount)")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "d2d2d2"))
.foregroundColor(Color.grayd2)
}
.padding(.horizontal, 13.3)
.padding(.vertical, 5.3)
@ -114,7 +115,7 @@ struct ContentDetailInfoView: View {
Text("공유")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "d2d2d2"))
.foregroundColor(Color.grayd2)
}
.padding(.horizontal, 13.3)
.padding(.vertical, 5.3)
@ -130,7 +131,7 @@ struct ContentDetailInfoView: View {
Text("후원")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "d2d2d2"))
.foregroundColor(Color.grayd2)
}
.padding(.horizontal, 13.3)
.padding(.vertical, 5.3)
@ -141,6 +142,7 @@ struct ContentDetailInfoView: View {
}
}
.padding(.top, 13.3)
}
if let totalContentCount = audioContent.totalContentCount, let remainingContentCount = audioContent.remainingContentCount {
ContentDetailInfoLimitedEditionView(
@ -155,13 +157,13 @@ struct ContentDetailInfoView: View {
if audioContent.tag.count > 0 {
Text(audioContent.tag)
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "9970ff"))
.foregroundColor(Color.button)
.frame(maxWidth: .infinity, alignment: .leading)
}
Text(audioContent.detail)
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "777777"))
.foregroundColor(Color.gray77)
.lineLimit(isExpandDescription ? nil : 3)
.lineSpacing(5)
.frame(maxWidth: .infinity, alignment: .leading)
@ -173,7 +175,7 @@ struct ContentDetailInfoView: View {
HStack(spacing: 0) {
Text("미리듣기 중입니다.\n콘텐츠 구매 후 전체를 감상해 보세요.")
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "bbbbbb"))
.foregroundColor(Color.graybb)
.lineSpacing(5)
Spacer()
@ -187,7 +189,7 @@ struct ContentDetailInfoView: View {
.overlay(
RoundedRectangle(cornerRadius: 5.3)
.stroke(lineWidth: 1)
.foregroundColor(Color(hex: "9970ff"))
.foregroundColor(Color.button)
)
}
}

View File

@ -132,7 +132,7 @@ struct ContentDetailView: View {
}
}
if audioContent.isCommentAvailable {
if audioContent.isCommentAvailable && !audioContent.contentUrl.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty && audioContent.releaseDate == nil {
ContentDetailCommentView(
commentCount: audioContent.commentCount,
commentList: audioContent.commentList,