Revert "adding pods method of package managing"
This reverts commit 705203d7bd.
This commit is contained in:
@@ -1,56 +0,0 @@
|
||||
//
|
||||
// SignInView.swift
|
||||
// nirvana-ios
|
||||
//
|
||||
// Created by Arjun Patel on 12/13/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import Firebase
|
||||
import FirebaseAuthUI
|
||||
|
||||
/* ... */
|
||||
|
||||
FirebaseApp.configure()
|
||||
let authUI = FUIAuth.defaultAuthUI()
|
||||
// You need to adopt a FUIAuthDelegate protocol to receive callback
|
||||
authUI.delegate = self
|
||||
|
||||
struct SignInView: View {
|
||||
var body: some View {
|
||||
OnboardingTemplateView(hdrText: "Let's get started", imgName: "undraw_enter_uhqk", bottomActArea:
|
||||
AnyView(
|
||||
VStack(alignment: .center) {
|
||||
NavigationLink(destination: HomeView()) {
|
||||
Text("Sign Up")
|
||||
.bold()
|
||||
.foregroundColor(NirvanaColor.white)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.vertical, 20)
|
||||
.background(NirvanaColor.teal)
|
||||
.clipShape(Capsule())
|
||||
.shadow(radius:10)
|
||||
}
|
||||
|
||||
Button(
|
||||
action: {
|
||||
print("link to website learn more clicked")
|
||||
},
|
||||
label: {
|
||||
Text("Learn More")
|
||||
.bold()
|
||||
})
|
||||
|
||||
//learn more button to usenirvana.com
|
||||
}
|
||||
.padding(.top, 20)
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct SignInView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
SignInView()
|
||||
}
|
||||
}
|
||||
@@ -43,17 +43,13 @@ struct OnboardingTemplateView: View {
|
||||
HeaderView()
|
||||
|
||||
VStack {
|
||||
self.onboardingHeaderText
|
||||
|
||||
self.onboardingImageView
|
||||
|
||||
self.onboardingActionTextView
|
||||
|
||||
Spacer()
|
||||
|
||||
self.bottomActionArea
|
||||
}
|
||||
.padding(.horizontal, screenWidth * 0.1)
|
||||
.padding(screenWidth * 0.1)
|
||||
|
||||
Spacer()
|
||||
} //outermost vstack
|
||||
@@ -62,19 +58,6 @@ struct OnboardingTemplateView: View {
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
}
|
||||
|
||||
private var onboardingHeaderText: some View {
|
||||
ZStack {
|
||||
if (self.headerText != nil) {
|
||||
Text(self.headerText!)
|
||||
.font(.title)
|
||||
.fontWeight(.medium)
|
||||
.foregroundColor(NirvanaColor.teal)
|
||||
.multilineTextAlignment(.center)
|
||||
}
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
|
||||
private var onboardingImageView: some View {
|
||||
Image(self.imageName ?? "")
|
||||
.renderingMode(.original)
|
||||
@@ -113,7 +96,7 @@ struct OnboardingTemplateView: View {
|
||||
|
||||
struct OnboardingTemplateView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
OnboardingTemplateView(hdrText: "let's get started", imgName: "undraw_friendship_mni7", mainLeadingActText: "Your", mainHighlightedActText: "minimalist", mainTrailingActText: "social media.", subActText: "Tired of the rat race on the test of th4e best oadf the best?", bottomActArea: AnyView(
|
||||
OnboardingTemplateView(imgName: "undraw_friendship_mni7", mainLeadingActText: "Your", mainHighlightedActText: "minimalist", mainTrailingActText: "social media.", subActText: "Tired of the rat race on the test of th4e best oadf the best?", bottomActArea: AnyView(
|
||||
VStack(alignment: .center) {
|
||||
NavigationLink(destination: HomeView()) {
|
||||
Text("Start Your Detox")
|
||||
|
||||
Reference in New Issue
Block a user