🎥 Make videos programmatically with React
import {useColorMode} from '@docusaurus/theme-common';
import '@remotion/promo-pages/dist/Homepage.css';
import {NewLanding} from '@remotion/promo-pages/dist/Homepage.js';
import '@remotion/promo-pages/dist/tailwind.css';
import Layout from '@theme/Layout';
import React from 'react';
if (
typeof window !== 'undefined' &&
window.location?.origin?.includes('convert.remotion.dev')
) {
window.location.href = 'https://remotion.dev/convert';
}
const Inner: React.FC = () => {
const {colorMode, setColorMode} = useColorMode();
return (
<NewLanding
colorMode={colorMode}
setColorMode={setColorMode}
experimental={false}
/>
);
};
const Homepage: React.FC = () => {
return (
<Layout>
<Inner />
</Layout>
);
};
export default Homepage;