Skip to content

Commit

Permalink
๐Ÿงฉ :: ๋””์ž์ธ ๋ฐ ๋ฐฐ๋„ˆ ํ…์ŠคํŠธ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
cyj513 committed Oct 29, 2024
1 parent 907faae commit 296c2a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ import DesignSystem

final class BannerCollectionViewCell: BaseCollectionViewCell<FetchBannerEntity> {
static let identifier = "BannerCollectionViewCell"

private let currentYear = Date()
private let imageView = UIImageView().then {
$0.contentMode = .scaleAspectFill
$0.layer.cornerRadius = 16
$0.clipsToBounds = true
}
private let passTitleLabel = UILabel().then {
private lazy var passTitleLabel = UILabel().then {
$0.numberOfLines = 0
$0.setJobisText(
"9๊ธฐ ๋Œ€๋งˆ๊ณ \nํ•™์ƒ๋“ค์˜ ์ทจ์—…๋ฅ ",
"\(Int(currentYear.toStringFormat("yyyy"))! - 2016)๊ธฐ ๋Œ€๋งˆ๊ณ \nํ•™์ƒ๋“ค์˜ ์ทจ์—…๋ฅ ",
font: .headLine,
color: .GrayScale.gray90
)
Expand Down Expand Up @@ -113,8 +115,10 @@ final class BannerCollectionViewCell: BaseCollectionViewCell<FetchBannerEntity>

func totalPassAdapt(model: TotalPassStudentEntity) {
totalPassSetLayout()
let employmentRate = Double(model.passedCount) / Double(model.totalStudentCount) * 100.0
let passText = String(format: "%.1f", employmentRate)
passLabel.setJobisText(
"\(Int(Double(model.passedCount) / Double(model.totalStudentCount) * 100.0))%",
"\(passText)%",
font: .headLine,
color: .Primary.blue20
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class WinterInternDetailViewController: BaseViewController<WinterInternDe
$0.axis = .vertical
}
private let recruitmentPeriodLabel = RecruitmentDetailLabel(title: "๋ชจ์ง‘๊ธฐ๊ฐ„")
private let militaryServiceLabel = RecruitmentDetailLabel(title: "์‚ฐ์—… ๊ธฐ๋Šฅ ์š”์› ๊ทผ๋ฌด ์—ฌ๋ถ€")
private let fieldTypeDetailStackView = FieldTypeDetailStackView()
private let certificateLabel = RecruitmentDetailLabel(title: "์ž๊ฒฉ์ฆ")
private let recruitmentProcessLabel = RecruitmentDetailLabel(title: "์„ ๋ฐœ ์ ˆ์ฐจ")
Expand Down Expand Up @@ -137,7 +136,6 @@ public class WinterInternDetailViewController: BaseViewController<WinterInternDe
companyName: $0.companyName
)
recruitmentPeriodLabel.setSubTitle($0.period)
militaryServiceLabel.setSubTitle("๋ณ‘์—ญํŠน๋ก€ \($0.military ? "๊ฐ€๋Šฅ" : "๋ถˆ๊ฐ€๋Šฅ")")
certificateLabel.setSubTitle($0.requiredLicenses)
recruitmentProcessLabel.setSubTitle($0.hiringProgress)
requiredGradeLabel.setSubTitle($0.requiredGrade)
Expand Down

0 comments on commit 296c2a9

Please sign in to comment.