StartupGuideStepView.swift 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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(alignment: .leading, spacing: 20) {
  12. Text("Before you begin…")
  13. .font(.title.bold())
  14. .padding(.horizontal)
  15. VStack(alignment: .leading, spacing: 10) {
  16. BulletPoint(String(localized: "Take a deep breath — you've got this."))
  17. BulletPoint(String(localized: "There's no rush. Take all the time you need."))
  18. BulletPoint(String(localized: "Everything you enter here can be adjusted later in the app."))
  19. BulletPoint(String(localized: "Want a hand? You can open our full Startup Guide here:"))
  20. Button {
  21. openURL(URL(string: "https://triodocs.org/startup-guide")!)
  22. } label: {
  23. Text("https://triodocs.org/startup-guide")
  24. .padding(.horizontal, 12)
  25. .padding(.vertical, 8)
  26. .background(Color.blue.opacity(0.2))
  27. .cornerRadius(8)
  28. }
  29. .frame(maxWidth: .infinity, alignment: .center)
  30. .padding([.top, .horizontal])
  31. }.padding(.horizontal)
  32. HStack {
  33. Text("You can pause at any time. Just be aware: if you ")
  34. + Text("force quit").bold()
  35. + Text(" the app before finishing onboarding, ")
  36. + Text("your progress will not be saved.").bold()
  37. }
  38. .multilineTextAlignment(.leading)
  39. .padding(.horizontal)
  40. }
  41. }
  42. }