diff --git a/VoiceInk/Views/Components/VideoCTAView.swift b/VoiceInk/Views/Components/VideoCTAView.swift deleted file mode 100644 index eba5660..0000000 --- a/VoiceInk/Views/Components/VideoCTAView.swift +++ /dev/null @@ -1,43 +0,0 @@ -import SwiftUI - -struct VideoCTAView: View { - let url: String - let subtitle: String - - var body: some View { - Link(destination: URL(string: url)!) { - HStack(spacing: 12) { - Image(systemName: "play.circle.fill") - .symbolRenderingMode(.hierarchical) - .font(.system(size: 24)) - .foregroundStyle(Color.blue) - - VStack(alignment: .leading, spacing: 2) { - Text("Watch how it works") - .font(.system(size: 15, weight: .semibold)) - .foregroundColor(.primary) - - Text(subtitle) - .font(.system(size: 13)) - .foregroundColor(.secondary) - } - - Spacer() - - Image(systemName: "chevron.right") - .font(.system(size: 14, weight: .medium)) - .foregroundColor(.secondary) - } - .padding(16) - .background( - RoundedRectangle(cornerRadius: 12) - .fill(Color(.windowBackgroundColor).opacity(0.9)) - ) - .overlay( - RoundedRectangle(cornerRadius: 12) - .stroke(Color.secondary.opacity(0.1), lineWidth: 1) - ) - } - .buttonStyle(.plain) - } -} \ No newline at end of file diff --git a/VoiceInk/Views/EnhancementSettingsView.swift b/VoiceInk/Views/EnhancementSettingsView.swift index c0bb301..eea2dc5 100644 --- a/VoiceInk/Views/EnhancementSettingsView.swift +++ b/VoiceInk/Views/EnhancementSettingsView.swift @@ -134,20 +134,23 @@ struct EnhancementSettingsView: View { var body: some View { ScrollView { VStack(spacing: 32) { - // Video CTA Section - VideoCTAView( - url: "https://dub.sh/promptmode", - subtitle: "Learn how to use AI enhancement modes" - ) - // Main Settings Sections VStack(spacing: 24) { // Enable/Disable Toggle Section VStack(alignment: .leading, spacing: 12) { HStack { VStack(alignment: .leading, spacing: 4) { - Text("Enable Enhancement") - .font(.headline) + HStack { + Text("Enable Enhancement") + .font(.headline) + + InfoTip( + title: "AI Enhancement", + message: "AI enhancement lets you transform transcriptions with different modes like summarize, rewrite, or translate. Configure app-specific settings in Power Mode.", + learnMoreURL: "https://www.youtube.com/@tryvoiceink/videos" + ) + } + Text("Turn on AI-powered enhancement features") .font(.caption) .foregroundColor(.secondary) diff --git a/VoiceInk/Views/PowerModeView.swift b/VoiceInk/Views/PowerModeView.swift index 646f674..f3ae399 100644 --- a/VoiceInk/Views/PowerModeView.swift +++ b/VoiceInk/Views/PowerModeView.swift @@ -349,17 +349,18 @@ struct PowerModeView: View { var body: some View { ScrollView { VStack(spacing: 32) { - // Video CTA Section - VideoCTAView( - url: "https://dub.sh/powermode", - subtitle: "See Power Mode in action" - ) - // Power Mode Toggle Section VStack(alignment: .leading, spacing: 16) { HStack { Text("Enable Power Mode") .font(.headline) + + InfoTip( + title: "Power Mode", + message: "Create app-specific or URL-specific configurations that automatically apply when using those apps or websites.", + learnMoreURL: "https://www.youtube.com/watch?v=cEepexxgf6Y&t=10s" + ) + Spacer() Toggle("", isOn: $powerModeManager.isPowerModeEnabled) .toggleStyle(SwitchToggleStyle(tint: .blue))