feat: 메인 라이브

- 지금 라이브 중 UI 적용
This commit is contained in:
Yu Sung
2025-07-22 01:46:04 +09:00
parent 7518ac7957
commit 9f39f24da8
3 changed files with 103 additions and 112 deletions

View File

@@ -21,28 +21,28 @@ struct SectionLiveNowView: View {
LazyVStack(spacing: 13.3) {
HStack(spacing: 0) {
Text("지금 ")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "eeeeee"))
.font(.custom(Font.preBold.rawValue, size: 24))
.foregroundColor(.button)
Text("라이브중")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "ff5c49"))
.font(.custom(Font.preBold.rawValue, size: 24))
.foregroundColor(.white)
Spacer()
if items.count > 0 {
Text("전체보기")
.font(.custom(Font.light.rawValue, size: 11.3))
.foregroundColor(Color(hex: "bbbbbb"))
.font(.custom(Font.preRegular.rawValue, size: 14))
.foregroundColor(Color(hex: "78909C"))
.onTapGesture { AppState.shared.setAppStep(step: .liveNowAll(onClickParticipant: onClickParticipant)) }
}
}
.padding(.horizontal, 13.3)
.frame(width: screenSize().width)
.padding(.horizontal, 24)
.frame(maxWidth: .infinity)
if items.count > 0 {
ScrollView(.horizontal, showsIndicators: false) {
HStack(alignment: .top, spacing: 10) {
HStack(alignment: .top, spacing: 16) {
ForEach(items, id: \.self) { item in
LiveNowItemView(item: item)
.contentShape(Rectangle())
@@ -68,7 +68,7 @@ struct SectionLiveNowView: View {
}
}
}
.padding(.horizontal, 13.3)
.padding(.horizontal, 24)
}
} else {
VStack(spacing: 0) {
@@ -85,8 +85,9 @@ struct SectionLiveNowView: View {
.padding(.vertical, 8)
}
.padding(.vertical, 16.7)
.frame(width: screenSize().width - 26.7)
.frame(maxWidth: .infinity)
.background(Color(hex: "13181b"))
.padding(.horizontal, 24)
.cornerRadius(4.7)
}
@@ -104,7 +105,7 @@ struct SectionLiveNowView: View {
RoundedRectangle(cornerRadius: 26.7)
.stroke(Color.gray90, lineWidth: 1)
)
.padding(.horizontal, 13.3)
.padding(.horizontal, 24)
.onTapGesture {
onClickRefresh()
}