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