diff --git a/src/components/video-editor/TutorialHelp.tsx b/src/components/video-editor/TutorialHelp.tsx new file mode 100644 index 0000000..35cad44 --- /dev/null +++ b/src/components/video-editor/TutorialHelp.tsx @@ -0,0 +1,145 @@ +import { + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "@/components/ui/dialog"; +import { Button } from "@/components/ui/button"; +import { HelpCircle, Scissors, ArrowRight } from "lucide-react"; + +export function TutorialHelp() { + return ( + + + + + + + + How Trimming Works + + + Understanding how to cut out unwanted parts of your video. + + +
+ {/* Explanation */} +
+

+ The Trim tool works by defining the segments you want to + remove. Any part + of the timeline that is + covered by a red + trim segment will be cut out when you export. +

+
+ {/* Visual Illustration */} +
+

+ Visual Example +

+
+ {/* Background track (Kept parts) */} +
+ {/* Solid line representing video */} +
+ {/* Removed Segment 1 */} +
+ + REMOVED + +
+ {/* Removed Segment 2 */} +
+ + REMOVED + +
+ {/* Labels for kept parts */} +
+ Kept +
+
+ Kept +
+
+ Kept +
+
+
+ + +
+ {/* Result */} +
+
+ + Part 1 + +
+
+ + Part 2 + +
+
+ + Part 3 + +
+ + Final Video + +
+
+ {/* Steps */} +
+
+
+ 1. Add Trim +
+

+ Press + T + or click the scissors icon to mark a section for removal. +

+
+
+
+ 2. Adjust +
+

+ Drag the edges of the red region to cover exactly what you want + to cut out. +

+
+
+
+
+
+ ); +} diff --git a/src/components/video-editor/timeline/TimelineEditor.tsx b/src/components/video-editor/timeline/TimelineEditor.tsx index 1cc56d7..e516cfc 100644 --- a/src/components/video-editor/timeline/TimelineEditor.tsx +++ b/src/components/video-editor/timeline/TimelineEditor.tsx @@ -19,6 +19,7 @@ import { } from "@/components/ui/dropdown-menu"; import { type AspectRatio, getAspectRatioLabel } from "@/utils/aspectRatioUtils"; import { formatShortcut } from "@/utils/platformUtils"; +import { TutorialHelp } from "../TutorialHelp"; const ZOOM_ROW_ID = "row-zoom"; const TRIM_ROW_ID = "row-trim"; @@ -907,6 +908,8 @@ export default function TimelineEditor({ ))} +
+