콘텐츠 메인 단편 탭

- 새로운 단편 전체보기 추가
This commit is contained in:
Yu Sung 2025-02-22 08:43:50 +09:00
parent 58258078c3
commit 77626f5fe8
2 changed files with 13 additions and 10 deletions

View File

@ -20,17 +20,16 @@ struct ContentNewAllView: View {
var body: some View { var body: some View {
NavigationView { NavigationView {
BaseView(isLoading: $viewModel.isLoading) { BaseView(isLoading: $viewModel.isLoading) {
VStack(alignment: .leading, spacing: 0) { VStack(alignment: .leading, spacing: 13.3) {
DetailNavigationBar(title: "새로운 콘텐츠") DetailNavigationBar(title: "새로운 단편")
Text("※ 최근 2주간 등록된 새로운 콘텐츠 입니다.") Text("※ 최근 2주간 등록된 새로운 단편 입니다.")
.font(.custom(Font.medium.rawValue, size: 14.7)) .font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "bbbbbb")) .foregroundColor(.graybb)
.padding(.horizontal, 13.3) .padding(.horizontal, 13.3)
.padding(.vertical, 8) .padding(.vertical, 8)
.frame(width: screenSize().width, alignment: .leading) .frame(width: screenSize().width, alignment: .leading)
.background(Color(hex: "222222")) .background(Color.gray22)
.padding(.top, 13.3)
ContentMainNewContentThemeView( ContentMainNewContentThemeView(
themes: viewModel.themeList, themes: viewModel.themeList,
@ -38,7 +37,8 @@ struct ContentNewAllView: View {
viewModel.selectedTheme = $0 viewModel.selectedTheme = $0
}, },
selectedTheme: $viewModel.selectedTheme selectedTheme: $viewModel.selectedTheme
).padding(.top, 13.3) )
.padding(.horizontal, 13.3)
HStack(spacing: 0) { HStack(spacing: 0) {
Text("전체") Text("전체")
@ -55,8 +55,7 @@ struct ContentNewAllView: View {
.foregroundColor(Color(hex: "e2e2e2")) .foregroundColor(Color(hex: "e2e2e2"))
.padding(.leading, 2) .padding(.leading, 2)
} }
.padding(.vertical, 13.3) .padding(.horizontal, 13.3)
.padding(.horizontal, 20)
ScrollView(.vertical, showsIndicators: false) { ScrollView(.vertical, showsIndicators: false) {
LazyVGrid(columns: columns, spacing: 32) { LazyVGrid(columns: columns, spacing: 32) {
@ -69,6 +68,7 @@ struct ContentNewAllView: View {
} }
} }
} }
.padding(.horizontal, 13.3)
} }
} }
.onAppear { .onAppear {

View File

@ -23,7 +23,10 @@ struct ContentMainTabContentView: View {
if !viewModel.contentThemeList.isEmpty { if !viewModel.contentThemeList.isEmpty {
ContentMainNewContentViewV2( ContentMainNewContentViewV2(
title: "새로운 단편", title: "새로운 단편",
onClickMore: {}, onClickMore: {
AppState.shared
.setAppStep(step: .newContentAll)
},
themeList: viewModel.contentThemeList, themeList: viewModel.contentThemeList,
contentList: viewModel.newContentList contentList: viewModel.newContentList
) { ) {