-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from Drink-Easy/HZOO
#82 Feat: New 홈화면 오토레이아웃 전까지
- Loading branch information
Showing
29 changed files
with
249 additions
and
243 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
Binary file modified
BIN
+47.3 KB
(140%)
...-EG/Drink-EG/Resources/Assets.xcassets/AdSampleImage/ad1.imageset/Group 415.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+134 KB
(130%)
.../Drink-EG/Resources/Assets.xcassets/AdSampleImage/ad1.imageset/Group [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+145 KB
(120%)
.../Drink-EG/Resources/Assets.xcassets/AdSampleImage/ad1.imageset/Group [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions
6
Drink-EG/Drink-EG/Resources/Assets.xcassets/AdSampleImage/ad2.imageset/Contents.json
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
Binary file modified
BIN
+17.9 KB
(140%)
Drink-EG/Drink-EG/Resources/Assets.xcassets/AdSampleImage/ad2.imageset/자막 중.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+58.9 KB
(140%)
Drink-EG/Drink-EG/Resources/Assets.xcassets/AdSampleImage/ad2.imageset/자막 중@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+109 KB
(140%)
Drink-EG/Drink-EG/Resources/Assets.xcassets/AdSampleImage/ad2.imageset/자막 중@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+72.8 KB
(150%)
...-EG/Drink-EG/Resources/Assets.xcassets/AdSampleImage/ad3.imageset/Group 416.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+226 KB
(140%)
.../Drink-EG/Resources/Assets.xcassets/AdSampleImage/ad3.imageset/Group [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+300 KB
(130%)
.../Drink-EG/Resources/Assets.xcassets/AdSampleImage/ad3.imageset/Group [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions
6
Drink-EG/Drink-EG/Resources/Assets.xcassets/Icon/icon_search.imageset/Contents.json
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
Binary file removed
BIN
-744 Bytes
...Drink-EG/Resources/Assets.xcassets/Icon/icon_search.imageset/ion_search (1).png
Binary file not shown.
Binary file removed
BIN
-1.02 KB
...Drink-EG/Resources/Assets.xcassets/Icon/icon_search.imageset/ion_search (2).png
Binary file not shown.
Binary file removed
BIN
-457 Bytes
...-EG/Drink-EG/Resources/Assets.xcassets/Icon/icon_search.imageset/ion_search.png
Binary file not shown.
Binary file added
BIN
+524 Bytes
Drink-EG/Drink-EG/Resources/Assets.xcassets/Icon/icon_search.imageset/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+927 Bytes
...k-EG/Drink-EG/Resources/Assets.xcassets/Icon/icon_search.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.22 KB
...k-EG/Drink-EG/Resources/Assets.xcassets/Icon/icon_search.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
Drink-EG/Drink-EG/Resources/Assets.xcassets/logoSample.imageset/Contents.json
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Rectangle 261.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "Rectangle [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "Rectangle [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+210 Bytes
Drink-EG/Drink-EG/Resources/Assets.xcassets/logoSample.imageset/Rectangle 261.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+333 Bytes
...-EG/Drink-EG/Resources/Assets.xcassets/logoSample.imageset/Rectangle [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+481 Bytes
...-EG/Drink-EG/Resources/Assets.xcassets/logoSample.imageset/Rectangle [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
// | ||
// TabBarShadow.swift | ||
// Drink-EG | ||
// | ||
// Created by 이현주 on 9/29/24. | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
extension CALayer { | ||
// Sketch 스타일의 그림자를 생성하는 유틸리티 함수 | ||
func applyShadow( | ||
color: UIColor = .black, | ||
alpha: Float = 0.5, | ||
x: CGFloat = 0, | ||
y: CGFloat = 2, | ||
blur: CGFloat = 4 | ||
) { | ||
shadowColor = color.cgColor | ||
shadowOpacity = alpha | ||
shadowOffset = CGSize(width: x, height: y) | ||
shadowRadius = blur / 2.0 | ||
} | ||
} | ||
|
||
extension UITabBar { | ||
// 기본 그림자 스타일을 초기화해야 커스텀 스타일을 적용할 수 있다. | ||
static func clearShadow() { | ||
UITabBar.appearance().shadowImage = UIImage() | ||
UITabBar.appearance().backgroundImage = UIImage() | ||
UITabBar.appearance().backgroundColor = UIColor.white | ||
} | ||
} |
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
58 changes: 58 additions & 0 deletions
58
Drink-EG/Drink-EG/Sources/Cells/Main/MenuCollectionViewCell.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,58 @@ | ||
// | ||
// MenuCollectionViewCell.swift | ||
// Drink-EG | ||
// | ||
// Created by 이현주 on 9/29/24. | ||
// | ||
|
||
import UIKit | ||
|
||
class MenuCollectionViewCell: UICollectionViewCell { | ||
|
||
private let menuImage: UIImageView = { | ||
let iv = UIImageView() | ||
iv.backgroundColor = UIColor(hex: "D9D9D9") | ||
return iv | ||
}() | ||
|
||
private let menuName: UILabel = { | ||
let l1 = UILabel() | ||
l1.font = .systemFont(ofSize: 12, weight: .regular) | ||
l1.textColor = .black | ||
l1.textAlignment = .center | ||
//l1.numberOfLines = 2 | ||
return l1 | ||
}() | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
|
||
setupUI() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
//레이아웃까지 | ||
private func setupUI() { | ||
self.contentView.addSubview(menuImage) | ||
self.contentView.addSubview(menuName) | ||
self.contentView.layer.cornerRadius = 5 | ||
self.contentView.layer.masksToBounds = true | ||
|
||
|
||
menuImage.snp.makeConstraints { make in | ||
make.edges.equalToSuperview() | ||
} | ||
|
||
menuName.snp.makeConstraints { make in | ||
make.leading.trailing.equalToSuperview().inset(5) | ||
make.bottom.equalToSuperview().inset(2) | ||
} | ||
} | ||
|
||
func configure(name: String) { | ||
menuName.text = name | ||
} | ||
} |
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
Oops, something went wrong.