🎥 Make videos programmatically with React
alright
Jonny Burger92fa61d3d330
diff --git a/packages/promo-pages/public/img/logo-small.png b/packages/promo-pages/public/img/logo-small.pngnew file mode 100644index 0000000000..40f696dc2cBinary files /dev/null and b/packages/promo-pages/public/img/logo-small.png differdiff --git a/packages/promo-pages/src/components/Homepage.tsx b/packages/promo-pages/src/components/Homepage.tsxindex 8102ff7b06..34a9a544f8 100644--- a/packages/promo-pages/src/components/Homepage.tsx+++ b/packages/promo-pages/src/components/Homepage.tsx@@ -8,7 +8,6 @@ import {Demo} from './homepage/Demo';import {LightningFastEditor} from './homepage/Editor';import EvaluateRemotionSection from './homepage/EvaluateRemotion';import {IfYouKnowReact} from './homepage/IfYouKnowReact';-import styles from './homepage/landing.module.css';import {ColorModeProvider} from './homepage/layout/use-color-mode';import {NewsletterButton} from './homepage/NewsletterButton';import {Pricing} from './homepage/Pricing';@@ -28,7 +27,7 @@ const NewLanding: React.FC = () => {<br /><br /><br />- <div className={styles.content}>+ <div className="max-w-[500px] lg:max-w-[1000px] m-auto pl-5 pr-5"><WriteInReact /><br /><IfYouKnowReact />diff --git a/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx b/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsxindex 84786ef552..3609f48c64 100644--- a/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx+++ b/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx@@ -2,7 +2,6 @@import {getLength} from '@remotion/paths';import React, {useEffect} from 'react';-import styles from './bg-anim.module.css';const rx = 0.2;const ry = 0.45;@@ -53,9 +52,9 @@ export const BackgroundAnimation: React.FC = () => {}, [css]);return (- <div className={styles.bganimcontainer}>+ <div className="absolute w-full h-full left-[50%] ml-[-50%] min-w-0 lg:m-auto lg:relative lg:min-w-[700px] lg:max-w-[1200px] lg:ml-auto lg:left-auto pointer-events-none"><svg- className={styles.svg}+ className="translate-y-[-30%] lg:translate-y-[-50%]"viewBox="0 0 1 1"style={{width: '100%',@@ -68,7 +67,7 @@ export const BackgroundAnimation: React.FC = () => {fill="none"stroke="var(--ifm-color-primary)"strokeLinecap="round"- className={styles.p}+ className="stroke-[0.04] lg:stroke-[0.035]"style={{transformOrigin: 'center center',transform: `rotate(120deg)`,@@ -82,7 +81,7 @@ export const BackgroundAnimation: React.FC = () => {stroke="var(--ifm-color-primary)"strokeLinecap="round"strokeWidth={strokeWidth}- className={styles.p}+ className="stroke-[0.04] lg:stroke-[0.035]"style={{transformOrigin: 'center center',transform: `rotate(0deg)`,@@ -96,7 +95,7 @@ export const BackgroundAnimation: React.FC = () => {stroke="var(--ifm-color-primary)"strokeLinecap="round"strokeWidth={strokeWidth}- className={styles.p}+ className="stroke-[0.04] lg:stroke-[0.035]"style={{transformOrigin: 'center center',transform: `rotate(240deg)`,diff --git a/packages/promo-pages/src/components/homepage/CodeExample.tsx b/packages/promo-pages/src/components/homepage/CodeExample.tsxindex 2d386a9822..9b8a025fd1 100644--- a/packages/promo-pages/src/components/homepage/CodeExample.tsx+++ b/packages/promo-pages/src/components/homepage/CodeExample.tsx@@ -79,7 +79,7 @@ export const CodeExample: React.FC = () => {<div>{tab === 'code' && (<div style={container}>- <img src="/img/code-sample-new.png" />+ <img src="/img/code-sample-new.png" className="w-full" /></div>)}{tab === 'preview' && <Preview />}diff --git a/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsx b/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsxindex 3fc66a3f25..57846d8672 100644--- a/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsx+++ b/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsx@@ -54,7 +54,7 @@ const EvaluateRemotionSection: React.FC = () => {href="https://cal.com/remotion/evaluate"style={{textDecoration: 'none'}}>- <BlueButton size="sm" fullWidth={false} loading={false}>+ <BlueButton size="sm" loading={false}>Schedule a call</BlueButton></a>@@ -72,7 +72,7 @@ const EvaluateRemotionSection: React.FC = () => {href="/experts"style={{textDecoration: 'none'}}>- <BlueButton size="sm" fullWidth={false} loading={false}>+ <BlueButton size="sm" loading={false}>Remotion Experts</BlueButton></a>diff --git a/packages/promo-pages/src/components/homepage/IfYouKnowReact.tsx b/packages/promo-pages/src/components/homepage/IfYouKnowReact.tsxindex aa2a3fc6b0..cb374b1322 100644--- a/packages/promo-pages/src/components/homepage/IfYouKnowReact.tsx+++ b/packages/promo-pages/src/components/homepage/IfYouKnowReact.tsx@@ -1,28 +1,25 @@import React from 'react';import {CodeExample} from './CodeExample';-import styles from './ifyouknowreact.module.css';import {BlueButton} from './layout/Button';-import {Spacer} from './Spacer';export const IfYouKnowReact: React.FC = () => {return (- <div className={styles.ifyouknowrow}>+ <div className="flex flex-col-reverse lg:flex-row text-left lg:text-right justify-start lg:justify-end items-start lg:items-center"><CodeExample />- <div style={{width: 40}} />- <div>- <h2 className={styles.ifyouknowtitle}>- Leverage <span className={styles.rea}>React</span> <br />+ <div className="h-10 lg:w-10" />+ <div className="lg:text-right">+ <h2 className="text-4xl font-brand">+ Leverage <span className="text-brand">React</span> <br />to express yourself.</h2>- <p>+ <p className="leading-relaxed">Remotion gives you the tools for video creation, <br /> but the rulesof React stay the same. <br /></p>Learn the fundamentals in just a few minutes.- <Spacer />- <Spacer />- <a className={styles.aknow} href="/docs/the-fundamentals">- <BlueButton size="sm" fullWidth={false} loading={false}>+ <div className="h-7" />+ <a className="no-underline inline-block" href="/docs/the-fundamentals">+ <BlueButton size="sm" loading={false}>Learn Remotion</BlueButton></a>diff --git a/packages/promo-pages/src/components/homepage/bg-anim.module.css b/packages/promo-pages/src/components/homepage/bg-anim.module.cssdeleted file mode 100644index 06e1e473fb..0000000000--- a/packages/promo-pages/src/components/homepage/bg-anim.module.css+++ /dev/null@@ -1,38 +0,0 @@-.bganimcontainer {- width: 100%;- max-width: 1200px;- min-width: 700px;- margin: auto;- position: relative;-}--@media screen and (max-width: 700px) {- .bganimcontainer {- position: absolute;- width: 100%;- height: 100%;- left: 50%;- margin-left: -50%;- min-width: 0;- }-}--.svg {- transform: translateY(-50%);-}--@media screen and (max-width: 900px) {- .svg {- transform: translateY(-30%);- }-}--.p {- stroke-width: 0.035;-}--@media screen and (max-width: 900px) {- .p {- stroke-width: 0.04;- }-}diff --git a/packages/promo-pages/src/components/homepage/ifyouknowreact.module.css b/packages/promo-pages/src/components/homepage/ifyouknowreact.module.cssdeleted file mode 100644index 2f1e63ee74..0000000000--- a/packages/promo-pages/src/components/homepage/ifyouknowreact.module.css+++ /dev/null@@ -1,38 +0,0 @@-.ifyouknowrow {- display: flex;- flex-direction: row;- text-align: right;- justify-content: flex-end;- align-items: center;-}--.ifyouknowtitle {- font-size: 2.5em;- font-weight: 700;- line-height: 1.1;- text-align: right;-}--.rea {- color: var(--ifm-color-primary);-}--.aknow {- text-decoration: none !important;- display: inline-block;-}--@media screen and (max-width: 900px) {- .ifyouknowrow {- flex-direction: column-reverse;- text-align: left;- justify-content: flex-start;- align-items: flex-start;- }- .ifyouknowtitle {- text-align: left;- }- .aknow {- margin-bottom: 80px;- }-}diff --git a/packages/promo-pages/src/components/homepage/landing.module.css b/packages/promo-pages/src/components/homepage/landing.module.cssdeleted file mode 100644index ae0be9f69b..0000000000--- a/packages/promo-pages/src/components/homepage/landing.module.css+++ /dev/null@@ -1,11 +0,0 @@-.content {- max-width: 1000px;- margin: auto;- padding-left: 20px;- padding-right: 20px;-}-@media (max-width: 900px) {- .content {- max-width: 500px;- }-}