loginview: ui: replace damus gradient with new login background

This commit is contained in:
ericholguin
2023-05-26 15:54:49 -06:00
committed by William Casarin
parent f99e311e58
commit 122d0e451e

View File

@@ -55,7 +55,6 @@ struct LoginView: View {
var body: some View {
ZStack(alignment: .top) {
DamusGradient()
if accepted {
NavigationLink(destination: CreateAccountView(), isActive: $create_account) {
EmptyView()
@@ -112,6 +111,13 @@ struct LoginView: View {
}
.padding()
}
.background(
Image("login-header")
.resizable()
.frame(maxWidth: .infinity, maxHeight: 350, alignment: .center)
.ignoresSafeArea(),
alignment: .top
)
.onAppear {
credential_handler.check_credentials()
}