-
Notifications
You must be signed in to change notification settings - Fork 3
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
Design #16 기존 UIUX 추가
- Loading branch information
Showing
8 changed files
with
156 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
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
+8.55 KB
(120%)
...odeproj/project.xcworkspace/xcuserdata/hyunlee.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// DetailView.swift | ||
// Code Drop_Team 11 | ||
// | ||
// Created by Hyun Lee on 6/15/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct DetailView: View { | ||
var insight: Insight | ||
|
||
var body: some View { | ||
VStack { | ||
Text("인사이트") | ||
.multilineTextAlignment(.leading) | ||
.font(.title) | ||
.bold() | ||
Text(insight.title) | ||
.font(.largeTitle) | ||
.padding() | ||
Text(insight.detail) | ||
.font(.body) | ||
.padding() | ||
Spacer() | ||
|
||
Text("관련 자료") | ||
.multilineTextAlignment(.leading) | ||
.font(.title) | ||
.bold() | ||
Link(destination: URL(string: "https://www.naver.com" )!) { | ||
Text("Safari App으로 이동해서 보여주기") | ||
} | ||
.foregroundColor(.white) | ||
Spacer() | ||
|
||
} | ||
// .navigationBarTitleDisplayMode(.inline) | ||
} | ||
} | ||
|
||
#Preview { | ||
DetailView() | ||
} |
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,52 @@ | ||
// | ||
// HomeView.swift | ||
// Code Drop_Team 11 | ||
// | ||
// Created by Hyun Lee on 6/15/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
import SwiftUI | ||
|
||
struct HomeView: View { | ||
@State private var isShowingDetail = false | ||
|
||
var body: some View { | ||
NavigationView { | ||
VStack { | ||
Spacer() | ||
Image("Group 9") | ||
.resizable() | ||
.aspectRatio(contentMode: .fit) | ||
.frame(width: 150, height: 150) | ||
Text("업무를 시작해볼까요?") | ||
.foregroundColor(.white) | ||
Text("중간에 잠깐 쉬고 걷는 것은 효율에 도움이 돼요.") | ||
.foregroundColor(.white) | ||
Spacer() | ||
Button("시작하기") { | ||
self.isShowingDetail.toggle() | ||
} | ||
.padding() | ||
.foregroundColor(.white) | ||
.background(Color.green) | ||
.cornerRadius(8) | ||
.padding() | ||
|
||
// NavigationLink(destination: ListView(), isActive: $isShowingDetail) { | ||
// EmptyView() | ||
// } | ||
} | ||
.background(Color.black) | ||
.navigationTitle("6월 15일") | ||
.foregroundColor(.white) | ||
.frame(maxWidth: .infinity) | ||
.background(Color.black.edgesIgnoringSafeArea(.all)) | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
HomeView() | ||
} |
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,39 @@ | ||
// | ||
// ListView.swift | ||
// Code Drop_Team 11 | ||
// | ||
// Created by Hyun Lee on 6/15/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct ListView: View { | ||
var insights: [Insight] = [ | ||
Insight(title: "중요한 정보는 왼쪽 위에 배치하세요.", detail: "사람들의 시선은 왼쪽 위에서부터 시작됩니다. 가장 중요한 정보는 왼쪽 위에 배치하는 것이 UX적으로 좋습니다."), | ||
Insight(title: "중요한 정보는 왼쪽 위에 배치하세요.", detail: "사람들의 시선은 왼쪽 위에서부터 시작됩니다. 가장 중요한 정보는 왼쪽 위에 배치하는 것이 UX적으로 좋습니다."), | ||
Insight(title: "중요한 정보는 왼쪽 위에 배치하세요.", detail: "사람들의 시선은 왼쪽 위에서부터 시작됩니다. 가장 중요한 정보는 왼쪽 위에 배치하는 것이 UX적으로 좋습니다."), | ||
] | ||
|
||
var body: some View { | ||
NavigationStack { | ||
List { | ||
ForEach(insights) { insight in | ||
NavigationLink { | ||
DetailView(insight: insight) | ||
} label: { | ||
VStack { | ||
Text(insight.title) | ||
.bold() | ||
Text(insight.detail) | ||
} | ||
} | ||
|
||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
ListView() | ||
} |