Autoría | Ultima modificación | Ver Log |
//// IntroView.swift// twogetskills//// Created by Efrain Yanez Recanatini on 1/26/22.//import SwiftUIstruct IntroView: View {@Environment(\.openURL) var openURLprivate let colorTitle = UIColor(hex: Config.COLOR_TEXT_VIEW_TITLE)private let colorButtonIntroBackground = UIColor(hex: Config.COLOR_BUTTON_INTRO_BACKGROUND)private let colorButtonText = UIColor(hex: Config.COLOR_PRIMARY_DARK)private let colorWindowBackground = UIColor(hex: Config.COLOR_WINDOW_BACKGROUND)private let colorAppBar = UIColor(hex: Config.COLOR_APP_BAR)@State private var goToLogin : Bool = falsevar body: some View {VStack() {Spacer(minLength: 10)Text("¡Tómate tu tiempo para aprender!").font(.title3).foregroundColor(Color(colorTitle ?? .gray))Text("Comunicar fácilmente").font(.subheadline).foregroundColor(Color(colorTitle ?? .systemBlue)).padding(5)NavigationLink(destination: LoginView(),isActive: self.$goToLogin,label: {Text("")})Button(action: {self.goToLogin = true}, label: {Text("Empezar").frame(width: 200).font(.callout).padding(.vertical, 8.0).foregroundColor(.white).background(Color(colorButtonIntroBackground ?? .blue)).cornerRadius(10)})Spacer(minLength: 10)Button(action: {openURL(URL(string: "https://leaderslinked.com/signup")!)}, label: {Text("¿Ya tienes una cuenta? Registrarse").font(.caption).foregroundColor(Color(colorTitle ?? .white))}).padding()HStack() {Spacer()}}.edgesIgnoringSafeArea(/*@START_MENU_TOKEN@*/.all/*@END_MENU_TOKEN@*/).background(Color(colorWindowBackground ?? .gray)).navigationBarHidden(true).navigationBarBackButtonHidden(true)}}struct IntroView_Previews: PreviewProvider {static var previews: some View {IntroView()}}