mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
link to about page on welcome screen
This commit is contained in:
parent
da95b9a400
commit
35a40363f2
2 changed files with 8 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ struct WelcomeView: View {
|
|||
@State private var showTermsLinks = false
|
||||
@State private var showTermsModal = false
|
||||
@State private var showPrivacyModal = false
|
||||
@State private var showAboutPage = false
|
||||
@State private var selectedEnvironment = AppEnvironment.initialAppEnvironment
|
||||
@State private var containerSize: CGSize = .zero
|
||||
|
||||
|
|
@ -42,7 +43,7 @@ struct WelcomeView: View {
|
|||
headlineText
|
||||
|
||||
Button(
|
||||
action: { print("learn more button tapped") },
|
||||
action: { showAboutPage = true },
|
||||
label: {
|
||||
HStack(spacing: 4) {
|
||||
Text("Learn more")
|
||||
|
|
@ -106,6 +107,11 @@ struct WelcomeView: View {
|
|||
BasicWebAppView.termsConditionsWebView(baseURL: dataService.appEnvironment.webAppBaseURL)
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $showAboutPage) {
|
||||
if let url = URL(string: "https://omnivore.app/about") {
|
||||
SafariView(url: url)
|
||||
}
|
||||
}
|
||||
.onTapGesture {
|
||||
showTermsLinks = true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ public struct GoogleAuthButton: View {
|
|||
Text(LocalText.googleAuthButton)
|
||||
.font(isMacApp ? .appCaption : .appTitleThree)
|
||||
.foregroundColor(.black)
|
||||
.fontWeight(Font.Weight.medium)
|
||||
}
|
||||
.frame(maxWidth: 300)
|
||||
.frame(height: isMacApp ? 30 : 54)
|
||||
|
|
|
|||
Loading…
Reference in a new issue