-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feat/#22 메인화면 최상단 바 추가
- Loading branch information
Showing
14 changed files
with
208 additions
and
2 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
21 changes: 21 additions & 0 deletions
21
NeflixCloneCoding/NeflixCloneCoding/Assets.xcassets/MainPoster.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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "스크린샷 2022-07-07 오후 9.53.45.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+271 KB
...xCloneCoding/Assets.xcassets/MainPoster.imageset/스크린샷 2022-07-07 오후 9.53.45.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
NeflixCloneCoding/NeflixCloneCoding/Assets.xcassets/MainTitle.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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "스크린샷 2022-07-07 오후 9.52.51.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.35 MB
...ixCloneCoding/Assets.xcassets/MainTitle.imageset/스크린샷 2022-07-07 오후 9.52.51.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
NeflixCloneCoding/NeflixCloneCoding/Assets.xcassets/netflix.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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "netflix.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+5.74 KB
NeflixCloneCoding/NeflixCloneCoding/Assets.xcassets/netflix.imageset/netflix.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
NeflixCloneCoding/NeflixCloneCoding/Assets.xcassets/pig.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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "pig.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+47.1 KB
NeflixCloneCoding/NeflixCloneCoding/Assets.xcassets/pig.imageset/pig.png
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
43 changes: 43 additions & 0 deletions
43
NeflixCloneCoding/NeflixCloneCoding/Main/NetflixMain.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,43 @@ | ||
// | ||
// NetflixMain.swift | ||
// NeflixCloneCoding | ||
// | ||
// Created by dohankim on 2022/07/07. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct NetflixMain: View { | ||
@State var iscategoryClicked = false | ||
var body: some View { | ||
ZStack{ | ||
Color.black | ||
ScrollView{ | ||
ZStack{ | ||
//main content 들어가야되는 부분 | ||
VStack{ | ||
Image("MainTitle") | ||
.resizable() | ||
.scaledToFill() | ||
.frame(width: UIScreen.main.bounds.width , height: UIScreen.main.bounds.height * 0.5, alignment: .center) | ||
|
||
} | ||
//상단바를 위한 스택 | ||
VStack{ | ||
TopContent(iscategoryClicked: $iscategoryClicked) | ||
Spacer() | ||
} | ||
} | ||
} | ||
|
||
|
||
} | ||
.ignoresSafeArea() | ||
} | ||
} | ||
|
||
struct NetflixMain_Previews: PreviewProvider { | ||
static var previews: some View { | ||
NetflixMain() | ||
} | ||
} |
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,59 @@ | ||
// | ||
// TopContent.swift | ||
// NeflixCloneCoding | ||
// | ||
// Created by dohankim on 2022/07/07. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct TopContent: View { | ||
@Binding var iscategoryClicked : Bool | ||
var body: some View { | ||
VStack(spacing : 0){ | ||
HStack{ | ||
Image("netflix") | ||
.resizable() | ||
.frame(width: 40, height: 40, alignment: .center) | ||
.padding() | ||
Spacer() | ||
Image(systemName: "airplayvideo") | ||
.foregroundColor(Color.white) | ||
.font(.title2) | ||
Image("pig") | ||
.resizable() | ||
.frame(width: 30, height: 30, alignment: .center) | ||
.clipShape(RoundedRectangle(cornerRadius: 10)) | ||
.padding() | ||
|
||
} | ||
.frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height * 0.13, alignment: .bottom) | ||
.background(.black.opacity(0.4)) | ||
HStack{ | ||
Spacer() | ||
Text("시리즈") | ||
.foregroundColor(.white) | ||
.padding() | ||
Spacer() | ||
Text("영화") | ||
.foregroundColor(.white) | ||
.padding() | ||
Spacer() | ||
Button{ | ||
iscategoryClicked.toggle() | ||
}label: { | ||
Text("카테고리") | ||
.foregroundColor(.white) | ||
Image(systemName: "arrowtriangle.down.fill") | ||
.foregroundColor(.white) | ||
} | ||
Spacer() | ||
} | ||
.frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height * 0.06, alignment: .leading) | ||
.background(.black.opacity(0.2)) | ||
|
||
} | ||
} | ||
} | ||
|
||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.