link to about page on welcome screen

This commit is contained in:
Satindar Dhillon 2022-06-01 10:49:00 -07:00
parent da95b9a400
commit 35a40363f2
2 changed files with 8 additions and 1 deletions

View file

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

View file

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