feat: 메인 라이브

- 커뮤니티 신규 UI 사이즈 적용
This commit is contained in:
Yu Sung
2025-07-22 03:34:22 +09:00
parent a4663d0853
commit a744376847
8 changed files with 93 additions and 54 deletions

View File

@@ -12,17 +12,30 @@ struct SectionCommunityPostView: View {
let items: [GetCommunityPostListResponse]
var body: some View {
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 13.3) {
ForEach(0..<items.count, id: \.self) { index in
let item = items[index]
CreatorCommunityItemView(item: item)
.frame(width: 320)
.onTapGesture {
AppState.shared
.setAppStep(step: .creatorCommunityAll(creatorId: item.creatorId))
}
VStack(spacing: 16) {
HStack(spacing: 0) {
Text("커뮤니티")
.font(.custom(Font.preBold.rawValue, size: 24))
.foregroundColor(.button)
Spacer()
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal, 24)
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 16) {
ForEach(0..<items.count, id: \.self) { index in
let item = items[index]
CreatorCommunityItemView(item: item)
.frame(width: screenSize().width - 48)
.onTapGesture {
AppState.shared
.setAppStep(step: .creatorCommunityAll(creatorId: item.creatorId))
}
}
}
.padding(.horizontal, 24)
}
}
}