-
Notifications
You must be signed in to change notification settings - Fork 0
/
ContentView.swift
86 lines (59 loc) · 2.99 KB
/
ContentView.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import SwiftUI
struct ContentView: View {
@State private var currentStage = 0
let titleGradient = LinearGradient(colors: [.pink, .brown, .red], startPoint: .bottomLeading, endPoint: .topTrailing)
let backgroundGradient = LinearGradient(colors: [.indigo, .accentColor], startPoint: .topLeading, endPoint: .bottomTrailing)
@State private var animateGradient = false
var body: some View {
ZStack{
backgroundGradient
.ignoresSafeArea()
.hueRotation(.degrees(animateGradient ? 0 : 45))
.animation(.easeInOut(duration: 5.0).repeatForever(autoreverses: true), value: animateGradient)
.onAppear {
withAnimation {
animateGradient.toggle()
}
}
VStack {
Text("Welcome to Better Talk!")
.font(.largeTitle)
.fontWeight(.bold)
.foregroundStyle( titleGradient )
.padding()
Text("Presenting, Public Speaking and Communicating can be hard (and scary) but we're going to make it a bit easier")
.font(.title2)
.fontWeight(.bold)
.padding()
VStack{
Text("\(welcomeMessage())")
.font(.title2)
// .fontWeight(.bold)
.padding([.top,.leading,.trailing])
Text("Polish Up Those Fundamentals? or Dive Straight Into Practice?")
.font(.title3)
.fontWeight(.bold)
.padding()
HStack{
FundamentalsButtonView()
Image(systemName: "arrow.left.circle.fill")
Text("Please Pick One")
Image(systemName: "arrow.right.circle.fill")
PracticeButtonView()
}.padding()
}
}
.padding()
.glass(cornerRadius: 20.0)
}
}
private func welcomeMessage() -> String {
return """
This interactive playground is designed to help you enhance your public speaking and communication skills. Here's how you can use it:
- Explore the Voice Fundamentals: Learn about key elements like filler words, rate of speech, volume, pitch, and pauses.
- Practice Makes Perfect: Record your speech and get instant feedback on your speaking style.
- Customize Your Experience: Tailor the speech analysis to focus on specific areas you want to improve.
Dive in and start improving your speaking skills today!
"""
}
}