Login-Hinweis 'Kostenlos registrieren' + PWA-Install-Anleitung in Mehr

This commit is contained in:
rene 2026-05-30 11:28:05 +02:00
parent c01e3d6be7
commit fec7c79b05
2 changed files with 59 additions and 0 deletions

View file

@ -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 {