StartupGuideStepView.swift 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // StartupGuideStepView.swift
  3. // Trio
  4. //
  5. // Created by Cengiz Deniz on 06.04.25.
  6. //
  7. import SwiftUI
  8. struct StartupGuideStepView: View {
  9. @Environment(\.openURL) var openURL
  10. var body: some View {
  11. VStack(spacing: 20) {
  12. Text("Before you begin…")
  13. .font(.title.bold())
  14. VStack(alignment: .leading, spacing: 10) {
  15. BulletPoint(String(localized: "Take a deep breath — you've got this."))
  16. BulletPoint(String(localized: "There's no rush. Take all the time you need."))
  17. BulletPoint(String(localized: "Everything you enter here can be adjusted later in the app."))
  18. BulletPoint(String(localized: "Want a hand? You can open our full Startup Guide here:"))
  19. Button {
  20. openURL(URL(string: "https://triodocs.org/startup-guide")!)
  21. } label: {
  22. Text("https://triodocs.org/startup-guide")
  23. .padding(.horizontal, 12)
  24. .padding(.vertical, 8)
  25. .background(Color.blue.opacity(0.2))
  26. .cornerRadius(8)
  27. }
  28. .frame(maxWidth: .infinity, alignment: .center)
  29. .padding([.top, .horizontal])
  30. }.padding(.horizontal)
  31. HStack {
  32. Text("You can pause at any time. Just be aware: if you ")
  33. + Text("force quit").bold()
  34. + Text(" the app before finishing onboarding, ")
  35. + Text("your progress will not be saved.").bold()
  36. }
  37. .multilineTextAlignment(.leading)
  38. .padding(.horizontal)
  39. }
  40. }
  41. }