From 1f15ebfee32045ccc6c492fd70b18220956a2a83 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Sat, 22 Feb 2025 09:06:06 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20ASMR=20=ED=83=AD=20-=20=EC=83=88=EB=A1=9C=EC=9A=B4?= =?UTF-8?q?=20ASMR=20=EC=A0=84=EC=B2=B4=EB=B3=B4=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/App/AppStep.swift | 2 + .../V2/Asmr/All/ContentMainAsmrAllView.swift | 75 +++++++++++++++++++ .../Main/V2/Asmr/ContentMainTabAsmrView.swift | 5 +- SodaLive/Sources/ContentView.swift | 3 + 4 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 SodaLive/Sources/Content/Main/V2/Asmr/All/ContentMainAsmrAllView.swift diff --git a/SodaLive/Sources/App/AppStep.swift b/SodaLive/Sources/App/AppStep.swift index 84dce26..568de4a 100644 --- a/SodaLive/Sources/App/AppStep.swift +++ b/SodaLive/Sources/App/AppStep.swift @@ -147,4 +147,6 @@ enum AppStep { case completedSeriesAll case newAlarmContentAll + + case newAsmrContentAll } diff --git a/SodaLive/Sources/Content/Main/V2/Asmr/All/ContentMainAsmrAllView.swift b/SodaLive/Sources/Content/Main/V2/Asmr/All/ContentMainAsmrAllView.swift new file mode 100644 index 0000000..1c0f612 --- /dev/null +++ b/SodaLive/Sources/Content/Main/V2/Asmr/All/ContentMainAsmrAllView.swift @@ -0,0 +1,75 @@ +// +// ContentMainAsmrAllView.swift +// SodaLive +// +// Created by klaus on 2/22/25. +// + +import SwiftUI + +struct ContentMainAsmrAllView: View { + + @StateObject var viewModel = ContentNewAllViewModel() + + let columns = [ + GridItem(.flexible(), alignment: .top), + GridItem(.flexible(), alignment: .top), + GridItem(.flexible(), alignment: .top) + ] + + var body: some View { + NavigationView { + BaseView(isLoading: $viewModel.isLoading) { + VStack(alignment: .leading, spacing: 13.3) { + DetailNavigationBar(title: "새로운 ASMR") + + Text("※ 최근 2주간 등록된 새로운 ASMR 입니다.") + .font(.custom(Font.medium.rawValue, size: 14.7)) + .foregroundColor(.graybb) + .padding(.horizontal, 13.3) + .padding(.vertical, 8) + .frame(width: screenSize().width, alignment: .leading) + .background(Color.gray22) + + HStack(spacing: 0) { + Text("전체") + .font(.custom(Font.medium.rawValue, size: 13.3)) + .foregroundColor(Color(hex: "e2e2e2")) + + Text("\(viewModel.totalCount)") + .font(.custom(Font.medium.rawValue, size: 13.3)) + .foregroundColor(Color(hex: "ff5c49")) + .padding(.leading, 8) + + Text("개") + .font(.custom(Font.medium.rawValue, size: 13.3)) + .foregroundColor(Color(hex: "e2e2e2")) + .padding(.leading, 2) + } + .padding(.horizontal, 13.3) + + ScrollView(.vertical, showsIndicators: false) { + LazyVGrid(columns: columns, spacing: 32) { + ForEach(0..