새로운 콘텐츠 전체보기 페이지 추가

This commit is contained in:
Yu Sung
2023-09-27 19:25:00 +09:00
parent 91cd3fe995
commit fd356451ae
12 changed files with 345 additions and 17 deletions

View File

@@ -13,9 +13,20 @@ struct ContentMainCurationItemView: View {
var body: some View {
VStack(alignment: .leading, spacing: 0) {
Text(item.title)
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "eeeeee"))
HStack(spacing: 0) {
Text(item.title)
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "eeeeee"))
Spacer()
Image("ic_forward")
.resizable()
.frame(width: 20, height: 20)
.onTapGesture {
}
}
Text(item.description)
.font(.custom(Font.medium.rawValue, size: 13))

View File

@@ -6,7 +6,6 @@
//
import SwiftUI
import GoogleMobileAds
struct ContentMainCurationView: View {
@@ -18,14 +17,6 @@ struct ContentMainCurationView: View {
let item = items[$0]
ContentMainCurationItemView(item: item)
.padding(.horizontal, 13.3)
if $0 % 3 == 2 {
BannerAdView(adUnitId: CURATION_BANNER_AD_UNIT_ID)
.frame(
width: screenSize().width,
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
)
}
}
}
}

View File

@@ -33,7 +33,11 @@ struct ContentMainNewContentThemeView: View {
.stroke(lineWidth: 0.5)
.foregroundColor(Color(hex: selectedTheme == theme ? "9970ff" : "eeeeee"))
)
.onTapGesture { selectTheme(theme) }
.onTapGesture {
if selectedTheme != theme {
selectTheme(theme)
}
}
}
}
}

View File

@@ -17,9 +17,20 @@ struct ContentMainNewContentView: View {
var body: some View {
VStack(alignment: .leading, spacing: 0) {
Text("새로운 콘텐츠")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "eeeeee"))
HStack(spacing: 0) {
Text("새로운 콘텐츠")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "eeeeee"))
Spacer()
Image("ic_forward")
.resizable()
.frame(width: 20, height: 20)
.onTapGesture {
AppState.shared.setAppStep(step: .newContentAll)
}
}
ContentMainNewContentThemeView(themes: themes, selectTheme: selectTheme, selectedTheme: $selectedTheme)
.padding(.vertical, 16.7)