WIP
This commit is contained in:
@@ -15,17 +15,16 @@ struct LoginView: View {
|
||||
|
||||
var body: some View {
|
||||
VStack {
|
||||
Text("Login")
|
||||
.font(.title)
|
||||
|
||||
TextField("Email", text: $email)
|
||||
.textContentType(.username)
|
||||
.autocapitalization(.none)
|
||||
.frame(height: 55)
|
||||
.textFieldStyle(PlainTextFieldStyle())
|
||||
.padding([.horizontal], 4)
|
||||
.overlay(RoundedRectangle(cornerRadius: 16).stroke(Color(uiColor: .clear))).background(Color(uiColor: .init(red: 200/255, green: 200/255, blue: 200/255, alpha: 0.2)))
|
||||
.overlay(RoundedRectangle(cornerRadius: 16).stroke(Color(uiColor: .clear))).background(Color(uiColor: .init(red: 255/255, green: 255/255, blue: 255/255, alpha: 1)))
|
||||
.cornerRadius(8)
|
||||
.padding(.top, 25)
|
||||
|
||||
|
||||
SecureField("Password", text: $password)
|
||||
.textContentType(.password)
|
||||
@@ -33,7 +32,7 @@ struct LoginView: View {
|
||||
.frame(height: 55)
|
||||
.textFieldStyle(PlainTextFieldStyle())
|
||||
.padding([.horizontal], 4)
|
||||
.overlay(RoundedRectangle(cornerRadius: 16).stroke(Color(uiColor: .clear))).background(Color(uiColor: .init(red: 200/255, green: 200/255, blue: 200/255, alpha: 0.2)))
|
||||
.overlay(RoundedRectangle(cornerRadius: 16).stroke(Color(uiColor: .clear))).background(Color(uiColor: .init(red: 255/255, green: 255/255, blue: 255/255, alpha: 1)))
|
||||
.cornerRadius(8)
|
||||
|
||||
Button("Login", action: {
|
||||
@@ -48,8 +47,12 @@ struct LoginView: View {
|
||||
.frame(maxWidth: .infinity)
|
||||
|
||||
Spacer()
|
||||
Image("launch_icon")
|
||||
Spacer()
|
||||
}
|
||||
.padding()
|
||||
.background(Color(UIColor(red: 157/255, green: 138/255, blue: 255/255, alpha: 1)))
|
||||
|
||||
}
|
||||
|
||||
func login() {
|
||||
|
||||
Reference in New Issue
Block a user