AcaMate_iOS/AcaMate/1. View/11. Intro & Login/LoginView.swift
2025-02-04 18:03:47 +09:00

94 lines
3.1 KiB
Swift

//
// LoginView.swift
// AcaMate
//
// Created by Sean Kim on 12/1/24.
//
import SwiftUI
struct LoginView: View {
@EnvironmentObject var alertController: AlertController
@Binding var naviState : NaviState
var body: some View {
VStack(spacing: 0) {
Image("Team_Icon")
.resizable()
.frame(maxWidth: 200, maxHeight: 200)
.frame(width: 200, height: 200)
.background(.white)
.border(.black)
.padding(.bottom, 84)
///
VStack(spacing: 16) {
Button {
// MARK: TO-DO
//
naviState.set(act: .MOVE, path: .Main)
} label: {
HStack(spacing: 24) {
Image("Kakao_Icon")
.resizable()
.frame(width: 32, height: 32)
Text("카카오 계정으로 시작하기")
.font(.nps(font: .regular, size: 16))
.foregroundStyle(Color(.Text.black))
}
.frame(maxWidth: .infinity)
.padding(12)
.background {
RoundedRectangle(cornerRadius: 12)
.foregroundStyle(Color(.Other.yellow))
}
}
.frame(maxWidth: .infinity)
/// KAKAO
Button {
// MARK: TO-DO
//
} label: {
HStack(spacing: 24) {
Image(systemName: "apple.logo")
.resizable()
.accentColor(Color(.Text.white))
.frame(width: 32, height: 32)
Text("애플 계정으로 시작하기")
.font(.nps(font: .regular, size: 16))
.foregroundStyle(Color(.Text.white))
}
.frame(maxWidth: .infinity)
.padding(12)
.background {
RoundedRectangle(cornerRadius: 12)
.foregroundStyle(Color(.Text.black))
}
}
.frame(maxWidth: .infinity)
/// APPLE
}
.padding([.leading,.trailing], 28)
///
//
// Button {
// alertController.alertData = SetAlertData().setTest()
// alertController.showAlert.toggle()
// // naviState.set(act: .MOVE,path: .Intro)
//
// } label: {
// Text("111111111")
// }
}
.fullDrawView(.Normal.normal)
}
}
//#Preview {
// LoginView()
//}