Update OnboardingTrioView.swift
This commit is contained in:
@@ -12,32 +12,55 @@ struct OnboardingTrioView: View {
|
|||||||
@EnvironmentObject var navigationStack: NavigationStack
|
@EnvironmentObject var navigationStack: NavigationStack
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
TabView {
|
ZStack(alignment: .topLeading) {
|
||||||
OnboardingTemplateView(imgName: "undraw_through_the_park_lxnl", mainLeadingActText: "Be", mainHighlightedActText: "yourself", mainTrailingActText: "again.", subActText: "No more endless feeds, media, fomo, anxiety...focus on you and be more present.")
|
TabView {
|
||||||
|
OnboardingTemplateView(imgName: "undraw_through_the_park_lxnl", mainLeadingActText: "Be", mainHighlightedActText: "yourself", mainTrailingActText: "again.", subActText: "No more endless feeds, media, fomo, anxiety...focus on you and be more present.")
|
||||||
OnboardingTemplateView(imgName: "undraw_connection_b-38-q", mainLeadingActText: "Be picky about your ", mainHighlightedActText: "inner circle.", mainTrailingActText: "", subActText: "You are who you hang out with. We kept things minimal because less is more...and we care.")
|
|
||||||
|
OnboardingTemplateView(imgName: "undraw_connection_b-38-q", mainLeadingActText: "Be picky about your ", mainHighlightedActText: "inner circle.", mainTrailingActText: "", subActText: "You are who you hang out with. We kept things minimal because less is more...and we care.")
|
||||||
OnboardingTemplateView(imgName: "undraw_voice_assistant_nrv7", mainLeadingActText: "Buttery smooth convos with your ", mainHighlightedActText: "authentic voice.", mainTrailingActText: "", subActText: "Less screen time, no more meaningless texts. Start mindfully conversing without all of the noise.", bottomActArea: AnyView(
|
|
||||||
VStack {
|
OnboardingTemplateView(imgName: "undraw_voice_assistant_nrv7", mainLeadingActText: "Buttery smooth convos with your ", mainHighlightedActText: "authentic voice.", mainTrailingActText: "", subActText: "Less screen time, no more meaningless texts. Start mindfully conversing without all of the noise.", bottomActArea: AnyView(
|
||||||
Button {
|
VStack {
|
||||||
self.navigationStack.push(AddBasicInfoView())
|
Button {
|
||||||
} label: {
|
self.navigationStack.push(AddBasicInfoView())
|
||||||
Text("Start Your Detox")
|
} label: {
|
||||||
.bold()
|
Text("Start Your Detox")
|
||||||
.foregroundColor(NirvanaColor.white)
|
.bold()
|
||||||
.frame(maxWidth: .infinity)
|
.foregroundColor(NirvanaColor.white)
|
||||||
.padding(.vertical, 20)
|
.frame(maxWidth: .infinity)
|
||||||
.background(NirvanaColor.teal)
|
.padding(.vertical, 20)
|
||||||
.clipShape(Capsule())
|
.background(NirvanaColor.teal)
|
||||||
.shadow(radius:10)
|
.clipShape(Capsule())
|
||||||
}
|
.shadow(radius:10)
|
||||||
}.padding(.bottom, 30)
|
}
|
||||||
|
}.padding(.bottom, 30)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
}
|
||||||
|
.navigationBarHidden(true)
|
||||||
|
.tabViewStyle(.page(indexDisplayMode: .automatic))
|
||||||
|
.ignoresSafeArea(.all)
|
||||||
|
|
||||||
|
|
||||||
|
HStack(alignment: .center) {
|
||||||
|
Button {
|
||||||
|
self.navigationStack.pop()
|
||||||
|
} label: {
|
||||||
|
Label("back", systemImage:"chevron.left")
|
||||||
|
.labelStyle(.iconOnly)
|
||||||
|
.font(.title2)
|
||||||
|
}
|
||||||
|
|
||||||
|
Spacer()
|
||||||
|
|
||||||
|
Button {
|
||||||
|
|
||||||
|
} label: {
|
||||||
|
Text("Skip")
|
||||||
|
.foregroundColor(NirvanaColor.dimTeal)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.padding()
|
||||||
}
|
}
|
||||||
.navigationBarHidden(true)
|
|
||||||
.tabViewStyle(.page(indexDisplayMode: .automatic))
|
|
||||||
.ignoresSafeArea(.all)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user