loginview: ui: replace damus gradient with new login background
This commit is contained in:
committed by
William Casarin
parent
f99e311e58
commit
122d0e451e
@@ -55,7 +55,6 @@ struct LoginView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack(alignment: .top) {
|
ZStack(alignment: .top) {
|
||||||
DamusGradient()
|
|
||||||
if accepted {
|
if accepted {
|
||||||
NavigationLink(destination: CreateAccountView(), isActive: $create_account) {
|
NavigationLink(destination: CreateAccountView(), isActive: $create_account) {
|
||||||
EmptyView()
|
EmptyView()
|
||||||
@@ -112,6 +111,13 @@ struct LoginView: View {
|
|||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
|
.background(
|
||||||
|
Image("login-header")
|
||||||
|
.resizable()
|
||||||
|
.frame(maxWidth: .infinity, maxHeight: 350, alignment: .center)
|
||||||
|
.ignoresSafeArea(),
|
||||||
|
alignment: .top
|
||||||
|
)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
credential_handler.check_credentials()
|
credential_handler.check_credentials()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user