-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,077 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
SOPT-iOS/Projects/Features/HomeFeature/Sources/Cells/Announcements/Empty.swift
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
SOPT-iOS/Projects/Features/HomeFeature/Sources/Cells/CoffeeChat/Empty.swift
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
SOPT-iOS/Projects/Features/HomeFeature/Sources/Cells/SocialLinks/Empty.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
SOPT-iOS/Projects/Features/SoptlogFeature/Interface/Sources/Empty.swift
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
SOPT-iOS/Projects/Features/SoptlogFeature/Interface/Sources/SoptlogFeatureBuildable.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// SoptlogFeatureBuildable.swift | ||
// SoptlogFeature | ||
// | ||
// Created by 강윤서 on 11/25/24. | ||
// Copyright © 2024 SOPT-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public protocol SoptlogFeatureBuildable { | ||
func makeSoptlog() -> SoptlogPresentable | ||
} |
19 changes: 19 additions & 0 deletions
19
SOPT-iOS/Projects/Features/SoptlogFeature/Interface/Sources/SoptlogPresentable.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// SoptlogPresentable.swift | ||
// SoptlogFeature | ||
// | ||
// Created by 강윤서 on 11/25/24. | ||
// Copyright © 2024 SOPT-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import BaseFeatureDependency | ||
import Core | ||
|
||
public protocol SoptlogViewControllable: ViewControllable { } | ||
public protocol SoptlogCoordinatable { | ||
|
||
} | ||
public typealias SoptlogViewModelType = ViewModelType & SoptlogCoordinatable | ||
public typealias SoptlogPresentable = (vc: SoptlogViewControllable, vm: any SoptlogViewModelType) |
8 changes: 0 additions & 8 deletions
8
SOPT-iOS/Projects/Features/SoptlogFeature/Sources/Empty.swift
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
...s/Features/SoptlogFeature/Sources/SoptlogScene/Cell/AppServiceSectionBackgroundView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// AppServiceSectionBackgroundView.swift | ||
// SoptlogFeature | ||
// | ||
// Created by 강윤서 on 11/26/24. | ||
// Copyright © 2024 SOPT-iOS. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
import DSKit | ||
|
||
final class AppServiceSectionBackgroundView: UICollectionReusableView { | ||
|
||
// MARK: - init | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
setUI() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
} | ||
|
||
// MARK: - UI & Layout | ||
|
||
extension AppServiceSectionBackgroundView { | ||
private func setUI() { | ||
self.backgroundColor = DSKitAsset.Colors.gray800.color | ||
self.layer.cornerRadius = 12 | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
SOPT-iOS/Projects/Features/SoptlogFeature/Sources/SoptlogScene/Cell/EditProfileCVC.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// EditProfileCVC.swift | ||
// SoptlogFeature | ||
// | ||
// Created by 강윤서 on 11/26/24. | ||
// Copyright © 2024 SOPT-iOS. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
import Core | ||
import DSKit | ||
|
||
final class EditProfileCVC: UICollectionViewCell { | ||
|
||
// MARK: - UI Components | ||
|
||
private let editProfileButton = AppOutlinedButton(title: I18N.Soptlog.editProfile) | ||
.chageTextColor(textColor: DSKitAsset.Colors.gray100.color) | ||
.chageOutlinedColor(outlinedColor: DSKitAsset.Colors.gray100.color) | ||
|
||
// MARK: - init | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
setUI() | ||
setLayout() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
} | ||
|
||
// MARK: - UI & Layout | ||
|
||
extension EditProfileCVC { | ||
private func setUI() { | ||
contentView.backgroundColor = .clear | ||
} | ||
|
||
private func setLayout() { | ||
contentView.addSubviews(editProfileButton) | ||
|
||
editProfileButton.snp.makeConstraints { make in | ||
make.edges.equalToSuperview() | ||
} | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
SOPT-iOS/Projects/Features/SoptlogFeature/Sources/SoptlogScene/Cell/IntroduceCVC.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// | ||
// IntroduceCVC.swift | ||
// SoptlogFeature | ||
// | ||
// Created by 강윤서 on 11/26/24. | ||
// Copyright © 2024 SOPT-iOS. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
import Core | ||
import DSKit | ||
|
||
final class IntroduceCVC: UICollectionViewCell { | ||
|
||
// MARK: - UI Components | ||
|
||
private let introduceLabel = UILabel().then { | ||
$0.text = I18N.Soptlog.enrollIntroduce | ||
$0.font = DSKitFontFamily.Suit.medium.font(size: 14) | ||
$0.textColor = DSKitAsset.Colors.gray100.color | ||
} | ||
|
||
// MARK: - init | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
setUI() | ||
setLayout() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
} | ||
|
||
// MARK: - UI & Layout | ||
|
||
extension IntroduceCVC { | ||
private func setUI() { | ||
contentView.backgroundColor = DSKitAsset.Colors.gray800.color | ||
contentView.layer.cornerRadius = 8 | ||
} | ||
|
||
private func setLayout() { | ||
contentView.addSubviews(introduceLabel) | ||
|
||
introduceLabel.snp.makeConstraints { make in | ||
make.center.equalToSuperview() | ||
} | ||
} | ||
} | ||
|
||
// MARK: - Methods | ||
|
||
extension IntroduceCVC { | ||
func configureCell(_ text: String) { | ||
introduceLabel.text = text | ||
} | ||
} |
95 changes: 95 additions & 0 deletions
95
SOPT-iOS/Projects/Features/SoptlogFeature/Sources/SoptlogScene/Cell/SoptlogAlarmCVC.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// | ||
// SoptlogAlarmCVC.swift | ||
// SoptlogFeature | ||
// | ||
// Created by 강윤서 on 11/26/24. | ||
// Copyright © 2024 SOPT-iOS. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
import Core | ||
import DSKit | ||
|
||
final class SoptlogAlarmCVC: UICollectionViewCell { | ||
|
||
// MARK: - UI Components | ||
|
||
private let serviceImageView = UIImageView() | ||
|
||
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.textColor = DSKitAsset.Colors.gray200.color | ||
$0.font = DSKitFontFamily.Suit.semiBold.font(size: 12) | ||
} | ||
|
||
private let arrowImageview = UIImageView().then { | ||
$0.image = DSKitAsset.Assets.chevronRight.image | ||
.withTintColor(DSKitAsset.Colors.gray200.color) | ||
} | ||
|
||
// MARK: - init | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
setUI() | ||
setLayout() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
} | ||
|
||
// MARK: - UI & Layout | ||
|
||
extension SoptlogAlarmCVC { | ||
private func setUI() { | ||
contentView.backgroundColor = DSKitAsset.Colors.gray800.color | ||
serviceImageView.image = DSKitAsset.Assets.soptampLogo.image | ||
} | ||
|
||
private func setLayout() { | ||
contentView.addSubviews(serviceImageView, titleLabel, subTitleLabel, arrowImageview) | ||
|
||
serviceImageView.snp.makeConstraints { make in | ||
make.leading.equalToSuperview().inset(20) | ||
make.centerY.equalToSuperview() | ||
make.size.equalTo(60) | ||
} | ||
|
||
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) | ||
} | ||
} | ||
} | ||
|
||
// MARK: - Methods | ||
|
||
extension SoptlogAlarmCVC { | ||
func configureCell(model: SoptlogAlarmInfo) { | ||
self.titleLabel.text = model.title | ||
self.serviceImageView.setImage(with: model.imageURL) | ||
self.subTitleLabel.text = model.subTitle | ||
} | ||
} |
Oops, something went wrong.