🎥 Make videos programmatically with React
design usage
Jonny Burger8c418e81e195
diff --git a/packages/docs/src/pages/design/index.tsx b/packages/docs/src/pages/design/index.tsxindex b21b424c40..392aada03d 100644--- a/packages/docs/src/pages/design/index.tsx+++ b/packages/docs/src/pages/design/index.tsx@@ -7,8 +7,11 @@ export default () => {return (<Layout><Head>- <title>Remotion | About</title>- <meta name="description" content="Remotion's story." />+ <title>Remotion | Design</title>+ <meta+ name="description"+ content="Example usage for @remotion/design components."+ /></Head><DesignPage /></Layout>diff --git a/packages/promo-pages/src/components/design.tsx b/packages/promo-pages/src/components/design.tsxindex 16fd53ec2d..157c3100f9 100644--- a/packages/promo-pages/src/components/design.tsx+++ b/packages/promo-pages/src/components/design.tsx@@ -2,7 +2,9 @@ import {Button,Card,Counter,+ InlineCode,Input,+ Link,Select,SelectContent,SelectItem,@@ -113,6 +115,48 @@ export const DesignPage: React.FC = () => {<Explainer>Circular</Explainer><Button className="rounded-full bg-brand w-12 h-12" /><div className="h-8" />+ <Explainer>Remove</Explainer>+ <Button+ className="hover:text-white hover:bg-warn transition-colors w-10 h-10 p-0 rounded-full"+ depth={0.5}+ >+ <svg+ width="16"+ height="16"+ viewBox="0 0 10 10"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d="M1 1L9 9M1 9L9 1"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ />+ </svg>+ </Button>+ <div className="h-8" />+ <Explainer>Remove (small)</Explainer>+ <Button+ className="hover:text-white hover:bg-warn transition-colors w-6 h-6 p-0 rounded-full"+ depth={0.5}+ >+ <svg+ width="10"+ height="10"+ viewBox="0 0 10 10"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d="M1 1L9 9M1 9L9 1"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ />+ </svg>+ </Button>+ <div className="h-8" /><h2 className="text-brand"><Counter /></h2><Countercount={count}@@ -152,6 +196,34 @@ export const DesignPage: React.FC = () => {<Textarea placeholder="Enter your message" /><br /><br />+ <h2 className="text-brand"><InlineCode /></h2>+ <p className="font-brand">+ Use <InlineCode>useCurrentFrame()</InlineCode> to get the current+ frame and <InlineCode>useVideoConfig()</InlineCode> to get the video+ configuration.+ </p>+ <br />+ <h2 className="text-brand"><Link /></h2>+ <p className="font-brand">+ See the{' '}+ <Link+ href="https://www.remotion.dev/docs"+ target="_blank"+ rel="noopener noreferrer"+ >+ Remotion documentation+ </Link>{' '}+ for more information. You can also wrap{' '}+ <Link+ href="https://www.remotion.dev/docs/use-current-frame"+ target="_blank"+ rel="noopener noreferrer"+ >+ <InlineCode>useCurrentFrame()</InlineCode>+ </Link>{' '}+ in a link.+ </p>+ <br /><br /><h1>Example form set</h1><br />