Login-Hinweis 'Kostenlos registrieren' + PWA-Install-Anleitung in Mehr
This commit is contained in:
parent
c01e3d6be7
commit
fec7c79b05
2 changed files with 59 additions and 0 deletions
|
|
@ -66,10 +66,31 @@ struct LoginView: View {
|
|||
.foregroundStyle(.white)
|
||||
.disabled(auth.isLoggingIn || email.isEmpty || password.isEmpty)
|
||||
|
||||
registrationHint
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.padding(.horizontal, 28)
|
||||
}
|
||||
|
||||
private var registrationHint: some View {
|
||||
VStack(spacing: 6) {
|
||||
Text("Noch kein Account?")
|
||||
.font(.footnote)
|
||||
.foregroundStyle(.secondary)
|
||||
if let url = URL(string: "https://banyaro.app/#settings?tab=register") {
|
||||
Link(destination: url) {
|
||||
HStack(spacing: 6) {
|
||||
Text("Kostenlos bei banyaro.app registrieren")
|
||||
.font(.footnote.bold())
|
||||
Image(systemName: "arrow.up.right.square")
|
||||
.font(.caption)
|
||||
}
|
||||
.foregroundStyle(Color.accentColor)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue