feat(creator-profile): 후원 랭킹 섹션, 팬 Talk 섹션 UI 변경
This commit is contained in:
@@ -26,42 +26,36 @@ struct UserProfileFanTalkView: View {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
HStack(spacing: 0) {
|
||||
Text("팬 Talk")
|
||||
.font(.custom(Font.bold.rawValue, size: 16.7))
|
||||
.foregroundColor(Color.grayee)
|
||||
.font(.custom(Font.preBold.rawValue, size: 26))
|
||||
.foregroundColor(Color.white)
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("전체보기")
|
||||
.font(.custom(Font.light.rawValue, size: 11.3))
|
||||
.foregroundColor(Color.graybb)
|
||||
.font(.custom(Font.preLight.rawValue, size: 14))
|
||||
.foregroundColor(Color(hex: "78909C"))
|
||||
.onTapGesture {
|
||||
AppState.shared.setAppStep(step: .userProfileFanTalkAll(userId: userId))
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 13.3)
|
||||
.padding(.horizontal, 24)
|
||||
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
VStack(alignment: .leading, spacing: 20) {
|
||||
HStack(spacing: 6.7) {
|
||||
Text("응원")
|
||||
.font(.custom(Font.medium.rawValue, size: 14.7))
|
||||
.font(.custom(Font.preMedium.rawValue, size: 16))
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
Text("\(cheers.totalCount)")
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.font(.custom(Font.preMedium.rawValue, size: 14))
|
||||
.foregroundColor(Color.gray77)
|
||||
}
|
||||
.padding(.top, 20)
|
||||
|
||||
Rectangle()
|
||||
.frame(height: 1)
|
||||
.foregroundColor(Color.gray90.opacity(0.5))
|
||||
.padding(.top, 13.3)
|
||||
|
||||
HStack(spacing: 0) {
|
||||
TextField("응원댓글을 입력하세요", text: $cheersContent)
|
||||
.autocapitalization(.none)
|
||||
.disableAutocorrection(true)
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.font(.custom(Font.preMedium.rawValue, size: 14))
|
||||
.foregroundColor(Color.grayee)
|
||||
.accentColor(Color.button)
|
||||
.keyboardType(.default)
|
||||
@@ -86,12 +80,6 @@ struct UserProfileFanTalkView: View {
|
||||
.strokeBorder(lineWidth: 1)
|
||||
.foregroundColor(Color.button)
|
||||
)
|
||||
.padding(.top, 13.3)
|
||||
|
||||
Rectangle()
|
||||
.frame(height: 1)
|
||||
.foregroundColor(Color.gray90.opacity(0.5))
|
||||
.padding(.top, 13.3)
|
||||
|
||||
VStack(spacing: 20) {
|
||||
if viewModel.cheersTotalCount > 0 {
|
||||
@@ -122,18 +110,19 @@ struct UserProfileFanTalkView: View {
|
||||
}
|
||||
} else {
|
||||
Text("응원이 없습니다.\n\n처음으로 응원을 해보세요!")
|
||||
.font(.custom(Font.light.rawValue, size: 13.3))
|
||||
.font(.custom(Font.preLight.rawValue, size: 13.3))
|
||||
.foregroundColor(Color.graybb)
|
||||
.multilineTextAlignment(.center)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.padding(.vertical, 60)
|
||||
.frame(width: screenSize().width - 26.7)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.horizontal, 24)
|
||||
}
|
||||
}
|
||||
.padding(.top, 20)
|
||||
}
|
||||
.frame(width: screenSize().width - 26.7)
|
||||
.padding(.horizontal, 13.3)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.horizontal, 24)
|
||||
.padding(.top, 20)
|
||||
}
|
||||
.onTapGesture { hideKeyboard() }
|
||||
.onAppear {
|
||||
|
||||
Reference in New Issue
Block a user