크리에이터 채널 - 크리에이터 커뮤니티 영역 추가

This commit is contained in:
Yu Sung
2023-12-15 00:25:13 +09:00
parent 7d34a4e27a
commit c84f1042e3
10 changed files with 189 additions and 169 deletions

View File

@@ -0,0 +1,78 @@
//
// CreatorCommunityItemView.swift
// SodaLive
//
// Created by klaus on 2023/12/14.
//
import SwiftUI
struct CreatorCommunityItemView: View {
var body: some View {
VStack(alignment: .leading, spacing: 8) {
HStack(spacing: 11) {
Image("ic_place_holder")
.resizable()
.frame(width: 40, height: 40)
.clipShape(Circle())
Text("민하나")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "eeeeee"))
Spacer()
Text("1일")
.font(.custom(Font.light.rawValue, size: 13.3))
.foregroundColor(Color(hex: "777777"))
}
HStack(spacing: 0) {
Text("너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!")
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "bbbbbb"))
.fixedSize(horizontal: false, vertical: true)
.lineLimit(3)
Spacer()
Image("btn_plus_round_rect")
.resizable()
.frame(width: 53.3, height: 53.3)
.cornerRadius(4.7)
}
HStack(spacing: 13.3) {
HStack(spacing: 6) {
Image("ic_heart_777")
.resizable()
.frame(width: 13.3, height: 13.3)
Text("7,680")
.font(.custom(Font.medium.rawValue, size: 11))
.foregroundColor(Color(hex: "777777"))
}
HStack(spacing: 6) {
Image("ic_message_square_777")
.resizable()
.frame(width: 13.3, height: 13.3)
Text("150")
.font(.custom(Font.medium.rawValue, size: 11))
.foregroundColor(Color(hex: "777777"))
}
}
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(13.3)
.background(Color(hex: "222222"))
.cornerRadius(11)
}
}
struct CreatorCommunityItemView_Previews: PreviewProvider {
static var previews: some View {
CreatorCommunityItemView()
}
}

View File

@@ -0,0 +1,28 @@
//
// CreatorCommunityMoreItemView.swift
// SodaLive
//
// Created by klaus on 2023/12/14.
//
import SwiftUI
struct CreatorCommunityMoreItemView: View {
var body: some View {
VStack(spacing: 11) {
Image("btn_item_more")
.resizable()
.frame(width: 40, height: 40)
Text("더보기")
.font(.custom(Font.light.rawValue, size: 11))
.foregroundColor(Color(hex: "bbbbbb"))
}
}
}
struct CreatorCommunityMoreItemView_Previews: PreviewProvider {
static var previews: some View {
CreatorCommunityMoreItemView()
}
}

View File

@@ -0,0 +1,36 @@
//
// CreatorCommunityNoPostsItemView.swift
// SodaLive
//
// Created by klaus on 2023/12/14.
//
import SwiftUI
struct CreatorCommunityNoPostsItemView: View {
var body: some View {
VStack(spacing: 10.3) {
CreatorCommunityWriteItemView()
Text("게시물 등록")
.font(.custom(Font.bold.rawValue, size: 14.7))
.foregroundColor(Color(hex: "eeeeee"))
Text("게시 후에 게시물이 여기에 표시되고\n커뮤니티에 공개됩니다.")
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "777777"))
.fixedSize(horizontal: false, vertical: true)
.multilineTextAlignment(.center)
}
.padding(.vertical, 16.7)
.frame(maxWidth: .infinity)
.background(Color(hex: "222222"))
.cornerRadius(10.3)
}
}
struct CreatorCommunityNoPostsItemView_Previews: PreviewProvider {
static var previews: some View {
CreatorCommunityNoPostsItemView()
}
}

View File

@@ -0,0 +1,28 @@
//
// CreatorCommunityWriteItemView.swift
// SodaLive
//
// Created by klaus on 2023/12/14.
//
import SwiftUI
struct CreatorCommunityWriteItemView: View {
var body: some View {
Image("ic_make_message")
.padding(13)
.background(Color(hex: "333333"))
.cornerRadius(13.3)
.overlay(
RoundedRectangle(cornerRadius: 13.3)
.stroke(lineWidth: 1)
.foregroundColor(Color(hex: "555555"))
)
}
}
struct CreatorCommunityWriteItemView_Previews: PreviewProvider {
static var previews: some View {
CreatorCommunityWriteItemView()
}
}