Skip to content

Commit

Permalink
Merge pull request #78 from teamCA-PIN/feature/#73
Browse files Browse the repository at this point in the history
โšก CAFETI๋ทฐ, ์นดํŽ˜๋ฉ”๋‰ด ๋ทฐ ๋ ˆ์ด์•„์›ƒ ์ˆ˜์ •
  • Loading branch information
Kim-jisoo11 authored Jul 16, 2021
2 parents 461e93b + 0db434e commit bf76ce1
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ extension CafeMenuViewController {
$0.snp.makeConstraints {
$0.top.equalTo(self.menuallLabel.snp.bottom).offset(48)
$0.centerX.equalToSuperview()
$0.height.equalTo(650)
$0.width.equalTo(335)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(49*UIScreen.main.bounds.width/375)

}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ extension CAFETIResultViewController {
$0.setRounded(radius: 24.5)
$0.snp.makeConstraints {
$0.centerX.equalToSuperview()
$0.height.equalTo(49)
$0.width.equalTo(335)
$0.height.equalTo(49*UIScreen.main.bounds.width/375)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.bottom.equalTo(self.view.snp.bottom).offset(-34)
}
}
Expand All @@ -149,7 +149,6 @@ extension CAFETIResultViewController {

}
func setResultData() {
print(self.resultData)
self.resultImageView.imageFromUrl(self.resultData?.img, defaultImgPath: "https://capin.s3.ap-northeast-2.amazonaws.com/cafeti/Deer_coffee%402x.png")
self.CAFETIresultLabel.setupLabel(text: self.resultData?.type ?? "", color: .white, font: UIFont.notoSansKRMediumFont(fontSize: 16))
self.CAFETItitleLabel.setupLabel(text: self.resultData?.modifier ?? "", color: .subcolorBrown4, font: UIFont.notoSansKRMediumFont(fontSize: 26))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ extension CAFETITest21ViewController {
$0.top.equalTo(self.contentLabel.snp.bottom).offset(86)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -118,7 +119,8 @@ extension CAFETITest21ViewController {
$0.top.equalTo(self.questiononeButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -134,7 +136,8 @@ extension CAFETITest21ViewController {
$0.top.equalTo(self.questiontwoButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -148,9 +151,9 @@ extension CAFETITest21ViewController {
$0.backgroundColor = .clear
$0.snp.makeConstraints {
$0.centerX.equalToSuperview()
$0.bottom.equalTo(self.view.safeAreaLayoutGuide.snp.bottom).offset(-34)
$0.width.equalTo(318)
$0.height.equalTo(49)
$0.bottom.equalTo(self.view.snp.bottom).offset(-34)
$0.width.equalTo(UIScreen.main.bounds.width-58)
$0.height.equalTo(49*UIScreen.main.bounds.width/375)
}
}
}
Expand All @@ -161,12 +164,12 @@ extension CAFETITest21ViewController {
$0.backgroundColor = .gray2
$0.titleLabel?.font = UIFont.notoSansKRMediumFont(fontSize: 16)
$0.addTarget(self, action: #selector(self.backButtonClicked), for: .touchUpInside)
$0.setRounded(radius: 24.5)
$0.setRounded(radius: 25)
$0.snp.makeConstraints {
$0.top.equalTo(self.buttonContainerView.snp.top)
$0.bottom.equalTo(self.buttonContainerView.snp.bottom)
$0.leading.equalTo(self.buttonContainerView.snp.leading)
$0.width.equalTo(154)
$0.width.equalTo((UIScreen.main.bounds.width-68)/2)
}
}
}
Expand All @@ -177,12 +180,12 @@ extension CAFETITest21ViewController {
$0.backgroundColor = .subcolorBlue2
$0.titleLabel?.font = UIFont.notoSansKRMediumFont(fontSize: 16)
$0.addTarget(self, action: #selector(self.nextButtonClicked), for: .touchUpInside)
$0.setRounded(radius: 24.5)
$0.setRounded(radius: 25)
$0.snp.makeConstraints {
$0.top.equalTo(self.buttonContainerView.snp.top)
$0.bottom.equalTo(self.buttonContainerView.snp.bottom)
$0.trailing.equalTo(self.buttonContainerView.snp.trailing)
$0.width.equalTo(154)
$0.width.equalTo((UIScreen.main.bounds.width-68)/2)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ extension CAFETITest22ViewController {
$0.top.equalTo(self.contentLabel.snp.bottom).offset(86)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -118,7 +119,8 @@ extension CAFETITest22ViewController {
$0.top.equalTo(self.questiononeButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -134,7 +136,8 @@ extension CAFETITest22ViewController {
$0.top.equalTo(self.questiontwoButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -148,9 +151,9 @@ extension CAFETITest22ViewController {
$0.backgroundColor = .clear
$0.snp.makeConstraints {
$0.centerX.equalToSuperview()
$0.bottom.equalTo(self.view.safeAreaLayoutGuide.snp.bottom).offset(-34)
$0.width.equalTo(318)
$0.height.equalTo(49)
$0.bottom.equalTo(self.view.snp.bottom).offset(-34)
$0.width.equalTo(UIScreen.main.bounds.width-58)
$0.height.equalTo(49*UIScreen.main.bounds.width/375)
}
}
}
Expand All @@ -161,12 +164,12 @@ extension CAFETITest22ViewController {
$0.backgroundColor = .gray2
$0.titleLabel?.font = UIFont.notoSansKRMediumFont(fontSize: 16)
$0.addTarget(self, action: #selector(self.backButtonClicked), for: .touchUpInside)
$0.setRounded(radius: 24.5)
$0.setRounded(radius: 25)
$0.snp.makeConstraints {
$0.top.equalTo(self.buttonContainerView.snp.top)
$0.bottom.equalTo(self.buttonContainerView.snp.bottom)
$0.leading.equalTo(self.buttonContainerView.snp.leading)
$0.width.equalTo(154)
$0.width.equalTo((UIScreen.main.bounds.width-68)/2)
}
}
}
Expand All @@ -177,12 +180,12 @@ extension CAFETITest22ViewController {
$0.backgroundColor = .subcolorBlue2
$0.titleLabel?.font = UIFont.notoSansKRMediumFont(fontSize: 16)
$0.addTarget(self, action: #selector(self.nextButtonClicked), for: .touchUpInside)
$0.setRounded(radius: 24.5)
$0.setRounded(radius: 25)
$0.snp.makeConstraints {
$0.top.equalTo(self.buttonContainerView.snp.top)
$0.bottom.equalTo(self.buttonContainerView.snp.bottom)
$0.trailing.equalTo(self.buttonContainerView.snp.trailing)
$0.width.equalTo(154)
$0.width.equalTo((UIScreen.main.bounds.width-68)/2)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ extension CAFETITest3ViewController {
$0.top.equalTo(self.contentLabel.snp.bottom).offset(26)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -122,7 +123,8 @@ extension CAFETITest3ViewController {
$0.top.equalTo(self.questiononeButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -138,7 +140,8 @@ extension CAFETITest3ViewController {
$0.top.equalTo(self.questiontwoButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -154,7 +157,8 @@ extension CAFETITest3ViewController {
$0.top.equalTo(self.questionthreeButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -170,7 +174,8 @@ extension CAFETITest3ViewController {
$0.top.equalTo(self.questionfourthButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -186,9 +191,9 @@ extension CAFETITest3ViewController {
$0.backgroundColor = .clear
$0.snp.makeConstraints {
$0.centerX.equalToSuperview()
$0.bottom.equalTo(self.view.safeAreaLayoutGuide.snp.bottom).offset(-34)
$0.width.equalTo(318)
$0.height.equalTo(49)
$0.bottom.equalTo(self.view.snp.bottom).offset(-34)
$0.width.equalTo(UIScreen.main.bounds.width-58)
$0.height.equalTo(49*UIScreen.main.bounds.width/375)
}
}
}
Expand All @@ -199,12 +204,12 @@ extension CAFETITest3ViewController {
$0.backgroundColor = .gray2
$0.titleLabel?.font = UIFont.notoSansKRMediumFont(fontSize: 16)
$0.addTarget(self, action: #selector(self.backButtonClicked), for: .touchUpInside)
$0.setRounded(radius: 24.5)
$0.setRounded(radius: 25)
$0.snp.makeConstraints {
$0.top.equalTo(self.buttonContainerView.snp.top)
$0.bottom.equalTo(self.buttonContainerView.snp.bottom)
$0.leading.equalTo(self.buttonContainerView.snp.leading)
$0.width.equalTo(154)
$0.width.equalTo((UIScreen.main.bounds.width-68)/2)
}
}
}
Expand All @@ -215,12 +220,12 @@ extension CAFETITest3ViewController {
$0.backgroundColor = .subcolorBlue2
$0.titleLabel?.font = UIFont.notoSansKRMediumFont(fontSize: 16)
$0.addTarget(self, action: #selector(self.nextButtonClicked), for: .touchUpInside)
$0.setRounded(radius: 24.5)
$0.setRounded(radius: 25)
$0.snp.makeConstraints {
$0.top.equalTo(self.buttonContainerView.snp.top)
$0.bottom.equalTo(self.buttonContainerView.snp.bottom)
$0.trailing.equalTo(self.buttonContainerView.snp.trailing)
$0.width.equalTo(154)
$0.width.equalTo((UIScreen.main.bounds.width-68)/2)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ extension CAFETITest4ViewController {
$0.top.equalTo(self.contentLabel.snp.bottom).offset(56)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -125,7 +126,8 @@ extension CAFETITest4ViewController {
$0.top.equalTo(self.questiononeButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -141,7 +143,8 @@ extension CAFETITest4ViewController {
$0.top.equalTo(self.questiontwoButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -157,7 +160,8 @@ extension CAFETITest4ViewController {
$0.top.equalTo(self.questionthreeButton.snp.bottom).offset(10)
$0.centerX.equalToSuperview()
$0.leading.equalTo(self.view.snp.leading).offset(20)
$0.height.equalTo(50)
$0.width.equalTo(UIScreen.main.bounds.width-40)
$0.height.equalTo(50*UIScreen.main.bounds.width/335)
}
}
}
Expand All @@ -172,9 +176,9 @@ extension CAFETITest4ViewController {
$0.backgroundColor = .clear
$0.snp.makeConstraints {
$0.centerX.equalToSuperview()
$0.bottom.equalTo(self.view.safeAreaLayoutGuide.snp.bottom).offset(-34)
$0.width.equalTo(318)
$0.height.equalTo(49)
$0.bottom.equalTo(self.view.snp.bottom).offset(-34)
$0.width.equalTo(UIScreen.main.bounds.width-58)
$0.height.equalTo(49*UIScreen.main.bounds.width/375)
}
}
}
Expand All @@ -185,12 +189,12 @@ extension CAFETITest4ViewController {
$0.backgroundColor = .gray2
$0.titleLabel?.font = UIFont.notoSansKRMediumFont(fontSize: 16)
$0.addTarget(self, action: #selector(self.backButtonClicked), for: .touchUpInside)
$0.setRounded(radius: 24.5)
$0.setRounded(radius: 25)
$0.snp.makeConstraints {
$0.top.equalTo(self.buttonContainerView.snp.top)
$0.bottom.equalTo(self.buttonContainerView.snp.bottom)
$0.leading.equalTo(self.buttonContainerView.snp.leading)
$0.width.equalTo(154)
$0.width.equalTo((UIScreen.main.bounds.width-68)/2)
}
}
}
Expand All @@ -201,12 +205,12 @@ extension CAFETITest4ViewController {
$0.backgroundColor = .subcolorBlue2
$0.titleLabel?.font = UIFont.notoSansKRMediumFont(fontSize: 16)
$0.addTarget(self, action: #selector(self.nextButtonClicked), for: .touchUpInside)
$0.setRounded(radius: 24.5)
$0.setRounded(radius: 25)
$0.snp.makeConstraints {
$0.top.equalTo(self.buttonContainerView.snp.top)
$0.bottom.equalTo(self.buttonContainerView.snp.bottom)
$0.trailing.equalTo(self.buttonContainerView.snp.trailing)
$0.width.equalTo(154)
$0.width.equalTo((UIScreen.main.bounds.width-68)/2)
}
}
}
Expand Down
Loading

0 comments on commit bf76ce1

Please sign in to comment.