Skip to content

Commit

Permalink
[Fix] #15 - 시작 화면 버튼 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
513sojin committed Apr 28, 2023
1 parent db6c059 commit 2dfb490
Showing 1 changed file with 12 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,12 @@ class StartViewController: BaseViewController {
$0.image = Image.teamLogoImg
}

let startButton = UIButton().then {
$0.setTitle("카세티 보러 떠나기", for: .normal)
$0.titleLabel?.textColor = .white
$0.titleLabel!.font = .systemFont(ofSize: 24, weight: .thin)
$0.setUnderline()
let startButton = RoundButton(title: "카세티 보러 떠나기", titleColor: .black, backColor: .white, round: 35).then {
$0.configureFont(font: .systemFont(ofSize: 20, weight: .light))
}

let goToFinalButton = UIButton().then {
$0.setTitle("다른 카세티 확인하기", for: .normal)
$0.titleLabel?.textColor = .white
$0.titleLabel!.font = .systemFont(ofSize: 24, weight: .thin)
$0.setUnderline()
let goToFinalButton = RoundButton(title: "다른 카세티 확인하기", titleColor: .black, backColor: .white, round: 35).then {
$0.configureFont(font: .systemFont(ofSize: 20, weight: .light))
}

override func viewDidLoad() {
Expand All @@ -59,20 +53,20 @@ class StartViewController: BaseViewController {
$0.width.equalTo(412.adjustedWidth)
$0.height.equalTo(380.adjustedWidth)
$0.centerX.equalToSuperview()
$0.top.equalToSuperview().offset(370.adjustedHeight)
$0.top.equalToSuperview().offset(223.adjustedHeight)
}

startButton.snp.makeConstraints {
$0.width.equalTo(188)
$0.height.equalTo(50)
$0.top.equalTo(logoImg.snp.bottom).offset(20)
$0.width.equalTo(275)
$0.height.equalTo(72)
$0.top.equalTo(logoImg.snp.bottom).offset(238)
$0.centerX.equalToSuperview()
}

goToFinalButton.snp.makeConstraints {
$0.width.equalTo(208)
$0.height.equalTo(50)
$0.top.equalTo(startButton.snp.bottom).offset(15)
$0.width.equalTo(275)
$0.height.equalTo(72)
$0.top.equalTo(startButton.snp.bottom).offset(20)
$0.centerX.equalToSuperview()
}
}
Expand Down Expand Up @@ -110,7 +104,7 @@ class StartViewController: BaseViewController {
}

func setButtonAnimation() {
UIView.animate(withDuration: 4, animations: {
UIView.animate(withDuration: 3, animations: {
self.startButton.alpha = 1
self.goToFinalButton.alpha = 1
})
Expand Down

0 comments on commit 2dfb490

Please sign in to comment.