feat(creator-profile): 후원 랭킹 섹션, 팬 Talk 섹션 UI 변경

This commit is contained in:
Yu Sung
2025-10-17 09:22:00 +09:00
parent 788add773b
commit 39f744f925
3 changed files with 50 additions and 60 deletions

View File

@@ -31,9 +31,9 @@ struct UserProfileFanTalkCheersItemView: View {
HStack(alignment: .top, spacing: 6.7) {
KFImage(URL(string: cheersItem.profileUrl))
.cancelOnDisappear(true)
.downsampling(size: CGSize(width: 33.3, height: 33.3))
.downsampling(size: CGSize(width: 42, height: 42))
.resizable()
.frame(width: 33.3, height: 33.3)
.frame(width: 42, height: 42)
.clipShape(Circle())
.onTapGesture {
if UserDefaults.int(forKey: .userId) != cheersItem.memberId {
@@ -43,20 +43,20 @@ struct UserProfileFanTalkCheersItemView: View {
VStack(alignment: .leading, spacing: 0) {
Text("\(cheersItem.nickname)")
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color.gray90)
.font(.custom(Font.preBold.rawValue, size: 16))
.foregroundColor(Color.white)
Text("\(cheersItem.date)")
.font(.custom(Font.medium.rawValue, size: 10.7))
.foregroundColor(Color.gray55)
.padding(.top, 8.3)
.font(.custom(Font.preMedium.rawValue, size: 14))
.foregroundColor(Color(hex: "78909C"))
.padding(.top, 4)
if isModeModify {
HStack(spacing: 10) {
TextField("", text: $cheers)
.autocapitalization(.none)
.disableAutocorrection(true)
.font(.custom(Font.medium.rawValue, size: 13.3))
.font(.custom(Font.preMedium.rawValue, size: 14))
.foregroundColor(Color.grayee)
.padding(13.3)
.background(Color.gray23)
@@ -70,7 +70,7 @@ struct UserProfileFanTalkCheersItemView: View {
)
Text("수정")
.font(.custom(Font.bold.rawValue, size: 13.3))
.font(.custom(Font.preBold.rawValue, size: 14))
.foregroundColor(Color.white)
.padding(13.3)
.background(Color.button)
@@ -81,7 +81,7 @@ struct UserProfileFanTalkCheersItemView: View {
}
Text("취소")
.font(.custom(Font.bold.rawValue, size: 13.3))
.font(.custom(Font.preBold.rawValue, size: 14))
.foregroundColor(Color.button)
.padding(13.3)
.background(Color.gray22)
@@ -93,11 +93,11 @@ struct UserProfileFanTalkCheersItemView: View {
.padding(.top, 13.3)
} else {
Text("\(cheersItem.content)")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color.grayee)
.font(.custom(Font.preMedium.rawValue, size: 16))
.foregroundColor(Color(hex: "B0BEC5"))
.fixedSize(horizontal: false, vertical: true)
.lineSpacing(8)
.padding(.top, 13.3)
.padding(.top, 12)
}
if isShowInputReply {
@@ -105,7 +105,7 @@ struct UserProfileFanTalkCheersItemView: View {
TextField("응원댓글에 답글을 남겨보세요!", text: $replyContent)
.autocapitalization(.none)
.disableAutocorrection(true)
.font(.custom(Font.medium.rawValue, size: 13.3))
.font(.custom(Font.preMedium.rawValue, size: 14))
.foregroundColor(Color.grayee)
.padding(13.3)
.background(Color.gray23)
@@ -119,7 +119,7 @@ struct UserProfileFanTalkCheersItemView: View {
)
Text("등록")
.font(.custom(Font.bold.rawValue, size: 13.3))
.font(.custom(Font.preBold.rawValue, size: 14))
.foregroundColor(Color.white)
.padding(13.3)
.background(Color.button)
@@ -137,7 +137,7 @@ struct UserProfileFanTalkCheersItemView: View {
if cheersItem.replyList.count <= 0 {
if userId == UserDefaults.int(forKey: .userId) {
Text("답글쓰기")
.font(.custom(Font.medium.rawValue, size: 12))
.font(.custom(Font.preMedium.rawValue, size: 12))
.foregroundColor(Color.button)
.padding(.top, 18.3)
.onTapGesture {
@@ -148,7 +148,7 @@ struct UserProfileFanTalkCheersItemView: View {
let reply = cheersItem.replyList[0]
VStack(alignment: .leading, spacing: 8.3) {
Text(reply.content)
.font(.custom(Font.medium.rawValue, size: 12))
.font(.custom(Font.preMedium.rawValue, size: 12))
.foregroundColor(Color.white)
.frame(minWidth: 100)
.padding(.horizontal, 6.7)
@@ -160,12 +160,12 @@ struct UserProfileFanTalkCheersItemView: View {
HStack(spacing: 6.7) {
Text(reply.date)
.font(.custom(Font.medium.rawValue, size: 10.7))
.font(.custom(Font.preMedium.rawValue, size: 10.7))
.foregroundColor(Color.gray52)
if userId == UserDefaults.int(forKey: .userId) {
Text("답글 수정")
.font(.custom(Font.medium.rawValue, size: 10.7))
.font(.custom(Font.preMedium.rawValue, size: 12))
.foregroundColor(Color.button)
.onTapGesture {
self.replyContent = reply.content
@@ -197,7 +197,7 @@ struct UserProfileFanTalkCheersItemView: View {
VStack(spacing: 10) {
if cheersItem.memberId != UserDefaults.int(forKey: .userId) {
Text("신고하기")
.font(.custom(Font.medium.rawValue, size: 14))
.font(.custom(Font.preMedium.rawValue, size: 14))
.foregroundColor(Color.gray77)
.onTapGesture {
reportPopup(cheersItem.cheersId)
@@ -207,7 +207,7 @@ struct UserProfileFanTalkCheersItemView: View {
if cheersItem.memberId == UserDefaults.int(forKey: .userId) {
Text("수정")
.font(.custom(Font.medium.rawValue, size: 14))
.font(.custom(Font.preMedium.rawValue, size: 14))
.foregroundColor(Color.gray77)
.onTapGesture {
isModeModify = true
@@ -220,7 +220,7 @@ struct UserProfileFanTalkCheersItemView: View {
cheersItem.memberId == UserDefaults.int(forKey: .userId)
{
Text("삭제")
.font(.custom(Font.medium.rawValue, size: 14))
.font(.custom(Font.preMedium.rawValue, size: 14))
.foregroundColor(Color.gray77)
.onTapGesture {
onClickDelete(cheersItem.cheersId)