🎥 Make videos programmatically with React
Adjust code examples and prompts folder structure
ASchwad05d57e2b41dd
diff --git a/packages/template-prompt-to-motion-graphics/src/app/code-examples/page.tsx b/packages/template-prompt-to-motion-graphics/src/app/code-examples/page.tsxindex 3e22ee92b4..ff63208222 100644--- a/packages/template-prompt-to-motion-graphics/src/app/code-examples/page.tsx+++ b/packages/template-prompt-to-motion-graphics/src/app/code-examples/page.tsx@@ -11,7 +11,7 @@ import {import Link from "next/link";import { useSearchParams, useRouter } from "next/navigation";import { ArrowLeft, PanelLeftClose, PanelLeft } from "lucide-react";-import { examples, getExampleById } from "../../templates";+import { examples, getExampleById } from "../../examples/code";import { useAnimationState } from "../../hooks/useAnimationState";import { CodeEditor } from "../../components/CodeEditor";import { AnimationPlayer } from "../../components/AnimationPlayer";diff --git a/packages/template-prompt-to-motion-graphics/src/app/generate/page.tsx b/packages/template-prompt-to-motion-graphics/src/app/generate/page.tsxindex af64ca69dc..33b7974f22 100644--- a/packages/template-prompt-to-motion-graphics/src/app/generate/page.tsx+++ b/packages/template-prompt-to-motion-graphics/src/app/generate/page.tsx@@ -12,7 +12,7 @@ import {type StreamPhase,type PromptInputRef,} from "../../components/PromptInput";-import { examples } from "../../templates";+import { examples } from "../../examples/code";import { useAnimationState } from "../../hooks/useAnimationState";function GeneratePageContent() {diff --git a/packages/template-prompt-to-motion-graphics/src/components/PromptInput.tsx b/packages/template-prompt-to-motion-graphics/src/components/PromptInput.tsxindex 4b3794578e..a0f0a057b7 100644--- a/packages/template-prompt-to-motion-graphics/src/components/PromptInput.tsx+++ b/packages/template-prompt-to-motion-graphics/src/components/PromptInput.tsx@@ -20,7 +20,7 @@ import {SelectValue,} from "@/components/ui/select";import { Button } from "@/components/ui/button";-import { examplePrompts } from "@/data/examplePrompts";+import { examplePrompts } from "@/examples/prompts";const iconMap: Record<string, LucideIcon> = {Type,diff --git a/packages/template-prompt-to-motion-graphics/src/templates/animated-shapes.ts b/packages/template-prompt-to-motion-graphics/src/examples/code/animated-shapes.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/templates/animated-shapes.tsrename to packages/template-prompt-to-motion-graphics/src/examples/code/animated-shapes.tsdiff --git a/packages/template-prompt-to-motion-graphics/src/templates/chat-messages.ts b/packages/template-prompt-to-motion-graphics/src/examples/code/chat-messages.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/templates/chat-messages.tsrename to packages/template-prompt-to-motion-graphics/src/examples/code/chat-messages.tsdiff --git a/packages/template-prompt-to-motion-graphics/src/templates/counter-animation.ts b/packages/template-prompt-to-motion-graphics/src/examples/code/counter-animation.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/templates/counter-animation.tsrename to packages/template-prompt-to-motion-graphics/src/examples/code/counter-animation.tsdiff --git a/packages/template-prompt-to-motion-graphics/src/templates/falling-spheres.ts b/packages/template-prompt-to-motion-graphics/src/examples/code/falling-spheres.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/templates/falling-spheres.tsrename to packages/template-prompt-to-motion-graphics/src/examples/code/falling-spheres.tsdiff --git a/packages/template-prompt-to-motion-graphics/src/templates/histogram.ts b/packages/template-prompt-to-motion-graphics/src/examples/code/histogram.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/templates/histogram.tsrename to packages/template-prompt-to-motion-graphics/src/examples/code/histogram.tsdiff --git a/packages/template-prompt-to-motion-graphics/src/templates/index.ts b/packages/template-prompt-to-motion-graphics/src/examples/code/index.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/templates/index.tsrename to packages/template-prompt-to-motion-graphics/src/examples/code/index.tsdiff --git a/packages/template-prompt-to-motion-graphics/src/templates/lottie-animation.ts b/packages/template-prompt-to-motion-graphics/src/examples/code/lottie-animation.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/templates/lottie-animation.tsrename to packages/template-prompt-to-motion-graphics/src/examples/code/lottie-animation.tsdiff --git a/packages/template-prompt-to-motion-graphics/src/templates/morphing-hexagons.ts b/packages/template-prompt-to-motion-graphics/src/examples/code/morphing-hexagons.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/templates/morphing-hexagons.tsrename to packages/template-prompt-to-motion-graphics/src/examples/code/morphing-hexagons.tsdiff --git a/packages/template-prompt-to-motion-graphics/src/templates/progress-bar.ts b/packages/template-prompt-to-motion-graphics/src/examples/code/progress-bar.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/templates/progress-bar.tsrename to packages/template-prompt-to-motion-graphics/src/examples/code/progress-bar.tsdiff --git a/packages/template-prompt-to-motion-graphics/src/templates/text-rotation.ts b/packages/template-prompt-to-motion-graphics/src/examples/code/text-rotation.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/templates/text-rotation.tsrename to packages/template-prompt-to-motion-graphics/src/examples/code/text-rotation.tsdiff --git a/packages/template-prompt-to-motion-graphics/src/data/examplePrompts.ts b/packages/template-prompt-to-motion-graphics/src/examples/prompts.tssimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/data/examplePrompts.tsrename to packages/template-prompt-to-motion-graphics/src/examples/prompts.ts