feat: Integrate Remotion for video generation, add video compositions, and adapt ContactForm for Remotion compatibility.
Some checks failed
Build & Deploy Mintel Blog / build-and-deploy (push) Failing after 2m19s

This commit is contained in:
2026-02-01 12:55:01 +01:00
parent 76b6b2ca03
commit 2113055a90
21 changed files with 6045 additions and 141 deletions

34
video/Root.tsx Normal file
View File

@@ -0,0 +1,34 @@
import { Composition } from 'remotion';
import { ContactFormShowcase } from './compositions/ContactFormShowcase';
import { ButtonShowcase } from './compositions/ButtonShowcase';
import './style.css';
if (typeof window !== 'undefined') {
(window as any).isRemotion = true;
}
export const RemotionRoot: React.FC = () => {
return (
<>
<Composition
id="ContactFormShowcase"
component={ContactFormShowcase}
durationInFrames={900}
fps={60}
width={1080}
height={1350}
/>
<Composition
id="ButtonShowcase"
component={ButtonShowcase}
durationInFrames={300} // 60fps * 5s
fps={60}
width={1080}
height={1350} // 4:5 aspect ratio for LinkedIn/social
defaultProps={{
text: "Let's work together",
}}
/>
</>
);
};