Skip to content

Commit

Permalink
[Fix] #442 - 디자인 변경 사항 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
yungu0010 committed Nov 28, 2024
1 parent cc62db7 commit 339c4f5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class AppServiceSectionBackgroundView: UICollectionReusableView {

extension AppServiceSectionBackgroundView {
private func setUI() {
self.backgroundColor = DSKitAsset.Colors.gray700.color
self.backgroundColor = DSKitAsset.Colors.gray800.color
self.layer.cornerRadius = 12
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,20 @@ final class SoptlogAlarmCVC: UICollectionViewCell {

private let titleLabel = UILabel().then {
$0.text = "차은우님, 잊지 말아야 할 말을 듣게 될 거예요"
$0.numberOfLines = 1
$0.textColor = DSKitAsset.Colors.white.color
$0.font = DSKitFontFamily.Suit.bold.font(size: 18)
}

private let subTitleLabel = UILabel().then {
$0.text = "오늘의 솝마디 >"
$0.text = "오늘의 솝마디"
$0.textColor = DSKitAsset.Colors.gray200.color
$0.font = DSKitFontFamily.Suit.semiBold.font(size: 12)
}

private let labelStackView = UIStackView().then {
$0.axis = .vertical
$0.spacing = 2
private let arrowImageview = UIImageView().then {
$0.image = DSKitAsset.Assets.chevronRight.image
.withTintColor(DSKitAsset.Colors.gray200.color)
}

// MARK: - init
Expand All @@ -40,7 +41,6 @@ final class SoptlogAlarmCVC: UICollectionViewCell {
super.init(frame: frame)
setUI()
setLayout()
setStackView()
}

required init?(coder: NSCoder) {
Expand All @@ -53,25 +53,34 @@ final class SoptlogAlarmCVC: UICollectionViewCell {
extension SoptlogAlarmCVC {
private func setUI() {
contentView.backgroundColor = DSKitAsset.Colors.gray800.color
serviceImageView.image = DSKitAsset.Assets.soptampLogo.image
}

private func setLayout() {
contentView.addSubviews(serviceImageView, labelStackView)
contentView.addSubviews(serviceImageView, titleLabel, subTitleLabel, arrowImageview)

serviceImageView.snp.makeConstraints { make in
make.leading.equalToSuperview().inset(20)
make.centerY.equalToSuperview()
make.size.equalTo(60)
}

labelStackView.snp.makeConstraints { make in
make.leading.equalTo(serviceImageView.snp.trailing).offset(14)
make.centerY.equalToSuperview()
titleLabel.snp.makeConstraints { make in
make.top.equalToSuperview().inset(19)
make.trailing.equalToSuperview().inset(20)
make.leading.equalTo(serviceImageView.snp.trailing).offset(14)
}

subTitleLabel.snp.makeConstraints { make in
make.top.equalTo(titleLabel.snp.bottom).offset(2)
make.leading.equalTo(titleLabel.snp.leading)
}

arrowImageview.snp.makeConstraints { make in
make.size.equalTo(16)
make.top.equalTo(subTitleLabel.snp.top)
make.leading.equalTo(subTitleLabel.snp.trailing)
}
}

private func setStackView() {
labelStackView.addArrangedSubviews(titleLabel, subTitleLabel)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ extension SoptlogVC {
self.collectionView.register(SoptlogHeaderView.self,
forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader,
withReuseIdentifier: SoptlogHeaderView.className)
self.collectionView.register(IntroduceButtonCVC.self,
forCellWithReuseIdentifier: IntroduceButtonCVC.className)
self.collectionView.register(IntroduceCVC.self,
forCellWithReuseIdentifier: IntroduceCVC.className)
self.collectionView.register(SoptlogAppServiceCVC.self,
forCellWithReuseIdentifier: SoptlogAppServiceCVC.className)
self.collectionView.register(EditProfileCVC.self,
Expand Down Expand Up @@ -141,8 +141,8 @@ extension SoptlogVC: UICollectionViewDataSource {
case .introduce:
/// 한 줄 소개
guard let introduceCell = collectionView.dequeueReusableCell(
withReuseIdentifier: IntroduceButtonCVC.className,
for: indexPath) as? IntroduceButtonCVC else { return UICollectionViewCell() }
withReuseIdentifier: IntroduceCVC.className,
for: indexPath) as? IntroduceCVC else { return UICollectionViewCell() }
return introduceCell

case .appService:
Expand Down

0 comments on commit 339c4f5

Please sign in to comment.