feat: 콘텐츠 메인 - 새로운 콘텐츠, 큐레이션, 채널별 인기 콘텐츠, 시리즈 상세, 크리에이터 채널 콘텐츠 리스트
- 포인트 사용 가능 여부 표시
This commit is contained in:
		@@ -24,12 +24,23 @@ struct SeriesContentListItemView: View {
 | 
			
		||||
                    .cornerRadius(5.3)
 | 
			
		||||
                
 | 
			
		||||
                VStack(alignment: .leading, spacing: 2.7) {
 | 
			
		||||
                    Text(item.duration)
 | 
			
		||||
                        .font(.custom(Font.medium.rawValue, size: 10))
 | 
			
		||||
                        .foregroundColor(Color.gray77)
 | 
			
		||||
                        .padding(2.7)
 | 
			
		||||
                        .background(Color.gray22)
 | 
			
		||||
                        .cornerRadius(2.6)
 | 
			
		||||
                    HStack(spacing: 8) {
 | 
			
		||||
                        Text(item.duration)
 | 
			
		||||
                            .font(.custom(Font.medium.rawValue, size: 10))
 | 
			
		||||
                            .foregroundColor(Color.gray77)
 | 
			
		||||
                            .padding(2.7)
 | 
			
		||||
                            .background(Color.gray22)
 | 
			
		||||
                            .cornerRadius(2.6)
 | 
			
		||||
                        
 | 
			
		||||
                        if item.isPointAvailable {
 | 
			
		||||
                            Text("포인트")
 | 
			
		||||
                                .font(.custom(Font.medium.rawValue, size: 8))
 | 
			
		||||
                                .foregroundColor(.white)
 | 
			
		||||
                                .padding(2.6)
 | 
			
		||||
                                .background(Color(hex: "7849bc"))
 | 
			
		||||
                                .cornerRadius(2.6)
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    
 | 
			
		||||
                    Text(item.title)
 | 
			
		||||
                        .font(.custom(Font.medium.rawValue, size: 12))
 | 
			
		||||
@@ -91,7 +102,8 @@ struct SeriesContentListItemView: View {
 | 
			
		||||
            duration: "00:14:59",
 | 
			
		||||
            price: 0,
 | 
			
		||||
            isRented: false,
 | 
			
		||||
            isOwned: false
 | 
			
		||||
            isOwned: false,
 | 
			
		||||
            isPointAvailable: true
 | 
			
		||||
        )
 | 
			
		||||
    )
 | 
			
		||||
}
 | 
			
		||||
@@ -106,7 +118,8 @@ struct SeriesContentListItemView: View {
 | 
			
		||||
            duration: "00:14:59",
 | 
			
		||||
            price: 100,
 | 
			
		||||
            isRented: false,
 | 
			
		||||
            isOwned: false
 | 
			
		||||
            isOwned: false,
 | 
			
		||||
            isPointAvailable: true
 | 
			
		||||
        )
 | 
			
		||||
    )
 | 
			
		||||
}
 | 
			
		||||
@@ -121,7 +134,8 @@ struct SeriesContentListItemView: View {
 | 
			
		||||
            duration: "00:14:59",
 | 
			
		||||
            price: 200,
 | 
			
		||||
            isRented: true,
 | 
			
		||||
            isOwned: false
 | 
			
		||||
            isOwned: false,
 | 
			
		||||
            isPointAvailable: true
 | 
			
		||||
        )
 | 
			
		||||
    )
 | 
			
		||||
}
 | 
			
		||||
@@ -136,7 +150,8 @@ struct SeriesContentListItemView: View {
 | 
			
		||||
            duration: "00:14:59",
 | 
			
		||||
            price: 300,
 | 
			
		||||
            isRented: false,
 | 
			
		||||
            isOwned: true
 | 
			
		||||
            isOwned: true,
 | 
			
		||||
            isPointAvailable: true
 | 
			
		||||
        )
 | 
			
		||||
    )
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -21,4 +21,5 @@ struct GetSeriesContentListItem: Decodable {
 | 
			
		||||
    let price: Int
 | 
			
		||||
    let isRented: Bool
 | 
			
		||||
    let isOwned: Bool
 | 
			
		||||
    let isPointAvailable: Bool
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -72,7 +72,8 @@ struct SeriesDetailHomeView: View {
 | 
			
		||||
                duration: "00:14:59",
 | 
			
		||||
                price: 0,
 | 
			
		||||
                isRented: false,
 | 
			
		||||
                isOwned: false
 | 
			
		||||
                isOwned: false,
 | 
			
		||||
                isPointAvailable: true
 | 
			
		||||
            ),
 | 
			
		||||
            GetSeriesContentListItem(
 | 
			
		||||
                contentId: 2,
 | 
			
		||||
@@ -82,7 +83,8 @@ struct SeriesDetailHomeView: View {
 | 
			
		||||
                duration: "00:14:59",
 | 
			
		||||
                price: 100,
 | 
			
		||||
                isRented: false,
 | 
			
		||||
                isOwned: false
 | 
			
		||||
                isOwned: false,
 | 
			
		||||
                isPointAvailable: true
 | 
			
		||||
            ),
 | 
			
		||||
            GetSeriesContentListItem(
 | 
			
		||||
                contentId: 3,
 | 
			
		||||
@@ -92,7 +94,8 @@ struct SeriesDetailHomeView: View {
 | 
			
		||||
                duration: "00:14:59",
 | 
			
		||||
                price: 100,
 | 
			
		||||
                isRented: true,
 | 
			
		||||
                isOwned: false
 | 
			
		||||
                isOwned: false,
 | 
			
		||||
                isPointAvailable: true
 | 
			
		||||
            ),
 | 
			
		||||
            GetSeriesContentListItem(
 | 
			
		||||
                contentId: 4,
 | 
			
		||||
@@ -102,7 +105,8 @@ struct SeriesDetailHomeView: View {
 | 
			
		||||
                duration: "00:14:59",
 | 
			
		||||
                price: 100,
 | 
			
		||||
                isRented: false,
 | 
			
		||||
                isOwned: true
 | 
			
		||||
                isOwned: true,
 | 
			
		||||
                isPointAvailable: true
 | 
			
		||||
            )
 | 
			
		||||
        ]
 | 
			
		||||
    )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user