🎥 Make videos programmatically with React
template-helloworld: Make title and logo editable in Studio
JonnyBurger80e447420cd5
diff --git a/packages/template-helloworld/src/HelloWorld.tsx b/packages/template-helloworld/src/HelloWorld.tsxindex 964ad6f8cb..c9cb6d7669 100644--- a/packages/template-helloworld/src/HelloWorld.tsx+++ b/packages/template-helloworld/src/HelloWorld.tsx@@ -12,15 +12,11 @@ import { Title } from "./HelloWorld/Title";export type HelloWorldProps = {readonly titleText: string;readonly titleColor: string;- readonly logoColor1: string;- readonly logoColor2: string;};export const HelloWorld: React.FC<HelloWorldProps> = ({titleText,titleColor,- logoColor1,- logoColor2,}) => {const frame = useCurrentFrame();const { durationInFrames, fps } = useVideoConfig();@@ -44,8 +40,8 @@ export const HelloWorld: React.FC<HelloWorldProps> = ({<Logoname="Remotion logo"premountFor={fps}- logoColor1={logoColor1}- logoColor2={logoColor2}+ logoColor1="#91EAE4"+ logoColor2="#86A8E7"style={{translate: interpolate(frame, [25, 55], ["0px 0px", "0px -150px"], {easing: Easing.spring({ damping: 100 }),diff --git a/packages/template-helloworld/src/Root.tsx b/packages/template-helloworld/src/Root.tsxindex 3672ed0710..3de2c529f4 100644--- a/packages/template-helloworld/src/Root.tsx+++ b/packages/template-helloworld/src/Root.tsx@@ -22,8 +22,6 @@ export const RemotionRoot: React.FC = () => {defaultProps={{titleText: "Welcome to Remotion",titleColor: "#000000",- logoColor1: "#91EAE4",- logoColor2: "#86A8E7",}}/>