feat: 메인 홈
- 큐레이션 영역 UI 추가
This commit is contained in:
@@ -184,6 +184,39 @@ struct HomeTabView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !viewModel.curationList.isEmpty {
|
||||||
|
ForEach(0..<viewModel.curationList.count, id: \.self) { curationIndex in
|
||||||
|
let curation = viewModel.curationList[curationIndex]
|
||||||
|
VStack(alignment: .leading, spacing: 16) {
|
||||||
|
HStack(spacing: 0) {
|
||||||
|
Text(curation.title)
|
||||||
|
.font(.custom(Font.preBold.rawValue, size: 26))
|
||||||
|
.foregroundColor(.white)
|
||||||
|
}
|
||||||
|
.padding(.horizontal, 24)
|
||||||
|
|
||||||
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
|
HStack(spacing: 16) {
|
||||||
|
ForEach(0..<curation.items.count, id: \.self) { index in
|
||||||
|
let item = curation.items[index]
|
||||||
|
ContentItemView(
|
||||||
|
item: AudioContentMainItem(
|
||||||
|
contentId: item.contentId,
|
||||||
|
creatorId: item.creatorId,
|
||||||
|
title: item.title,
|
||||||
|
coverImageUrl: item.coverImageUrl,
|
||||||
|
creatorNickname: item.creatorNickname,
|
||||||
|
isPointAvailable: item.isPointAvailable
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.padding(.horizontal, 24)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Text("""
|
Text("""
|
||||||
- 회사명 : 주식회사 소다라이브
|
- 회사명 : 주식회사 소다라이브
|
||||||
|
|
||||||
@@ -201,7 +234,6 @@ struct HomeTabView: View {
|
|||||||
""")
|
""")
|
||||||
.font(.custom(Font.medium.rawValue, size: 11))
|
.font(.custom(Font.medium.rawValue, size: 11))
|
||||||
.foregroundColor(Color.gray77)
|
.foregroundColor(Color.gray77)
|
||||||
.padding(.top, 30)
|
|
||||||
.padding(.horizontal, 13.3)
|
.padding(.horizontal, 13.3)
|
||||||
}
|
}
|
||||||
.padding(.vertical, 24)
|
.padding(.vertical, 24)
|
||||||
|
|||||||
Reference in New Issue
Block a user