🎥 Make videos programmatically with React
fresh paint
Jonny Burgerf9e8ac0499d2
diff --git a/packages/docs/components/LambdaSplash/BuildApps.tsx b/packages/docs/components/LambdaSplash/BuildApps.tsxindex 7811e19659..5fb0808235 100644--- a/packages/docs/components/LambdaSplash/BuildApps.tsx+++ b/packages/docs/components/LambdaSplash/BuildApps.tsx@@ -1,4 +1,5 @@import React from "react";+import { BlueButton } from "../layout/Button";import { Spacer } from "../layout/Spacer";const panel: React.CSSProperties = {@@ -23,14 +24,42 @@ const row: React.CSSProperties = {flexDirection: "row",};+const flex: React.CSSProperties = {+ flex: 1,+};+const step: React.CSSProperties = {flex: 1,...panel,};+const list: React.CSSProperties = {+ listStyleType: "none",+ textAlign: "center",+ paddingLeft: 0,+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ fontWeight: 500,+};++const hr: React.CSSProperties = {+ width: 20,+ textAlign: "center",+ borderTop: 0,+ marginTop: 10,+ marginBottom: 10,+};+const stepTitle: React.CSSProperties = {textAlign: "center",- fontSize: "1.3em",+ fontSize: "1.6em",+ marginBottom: 0,+ color: "var(--ifm-color-primary)",+};++const docsButton: React.CSSProperties = {+ textDecoration: "none",};export const BuildApps: React.FC = () => {@@ -41,33 +70,92 @@ export const BuildApps: React.FC = () => {<div style={row}><div style={step}><h2 style={stepTitle}>Remotion</h2>- Write videos in React.- <ul>+ <strong style={center}>Write videos in React</strong>+ <br />+ <video src="/img/writeinreact.mp4" muted playsInline loop />+ <ul style={list}><li>Use the Web to create graphics</li>+ <hr style={hr} /><li>Consume user input and APIs</li>+ <hr style={hr} /><li>Render real MP4 videos</li></ul>+ <div style={{ flex: 1 }} />+ <div style={row}>+ <div style={flex}>+ <a style={docsButton} href="/">+ <BlueButton loading={false} fullWidth size="sm">+ Learn more+ </BlueButton>+ </a>+ </div>+ <Spacer />+ <Spacer />+ <div style={flex}>+ <a style={docsButton} href="/docs">+ <BlueButton loading={false} fullWidth size="sm">+ Read docs+ </BlueButton>+ </a>+ </div>+ </div></div><Spacer /><Spacer /><Spacer /><div style={step}><h2 style={stepTitle}>Remotion Player</h2>- Embeddable interactive videos- <ul>+ <strong style={center}>Embeddable interactive videos</strong>+ <ul style={list}><li>Preview videos in the browser</li>+ <hr style={hr} /><li>React to user input</li>+ <hr style={hr} />+ <li>Customize look and behavior</li></ul>+ <div style={{ flex: 1 }} />+ <div style={row}>+ <div style={flex}>+ <a style={docsButton} href="/player">+ <BlueButton loading={false} fullWidth size="sm">+ Learn more+ </BlueButton>+ </a>+ </div>+ <Spacer />+ <Spacer />+ <div style={flex}>+ <a style={docsButton} href="/docs/player">+ <BlueButton loading={false} fullWidth size="sm">+ Read docs+ </BlueButton>+ </a>+ </div>+ </div></div><Spacer /><Spacer /><Spacer /><div style={step}><h2 style={stepTitle}>Remotion Lambda</h2>- Render at scale- <ul>+ <strong style={center}> Render at scale</strong>+ <ul style={list}><li>Render videos in the cloud</li>+ <hr style={hr} />+ <li>Lorem ipsum</li>+ <hr style={hr} />+ <li>Lorem ipsum</li></ul>+ <div style={{ flex: 1 }} />+ <div style={row}>+ <div style={flex}>+ <a style={docsButton} href="/docs/lambda">+ <BlueButton loading={false} fullWidth size="sm">+ Read docs+ </BlueButton>+ </a>+ </div>+ </div></div></div><br />diff --git a/packages/docs/components/LambdaSplash/Easy.tsx b/packages/docs/components/LambdaSplash/Easy.tsxindex 37b4dc90ce..074a6e2c7e 100644--- a/packages/docs/components/LambdaSplash/Easy.tsx+++ b/packages/docs/components/LambdaSplash/Easy.tsx@@ -5,11 +5,13 @@ export const LambdaEasy: React.FC = () => {return (<div className={styles.row}><div className={styles.tile}>- <img- src="/img/mp4.png"- style={{- width: 110,- }}+ <video+ src="/img/npminstall.mp4"+ style={{}}+ loop+ muted+ playsInline+ autoPlay/></div><div className={styles.tile}>diff --git a/packages/docs/components/LambdaSplash/Fast.tsx b/packages/docs/components/LambdaSplash/Fast.tsxindex 7b02db854c..3035d75c7c 100644--- a/packages/docs/components/LambdaSplash/Fast.tsx+++ b/packages/docs/components/LambdaSplash/Fast.tsx@@ -1,17 +1,23 @@import React from "react";+import { Spacer } from "../layout/Spacer";import styles from "./fast.module.css";export const LambdaFast: React.FC = () => {return (<div className={styles.row}><div className={styles.tile}>- <img- src="/img/mp4.png"- style={{- width: 110,- }}+ <video+ src="/img/timelinesplit.mp4"+ style={{}}+ loop+ muted+ playsInline+ autoPlay/></div>+ <Spacer />+ <Spacer />+ <Spacer /><div className={styles.tile}><h2 className={styles.title}>Fast because <span className={styles.realgradient}>distributed</span>diff --git a/packages/docs/components/LambdaSplash/LambdaHeader.tsx b/packages/docs/components/LambdaSplash/LambdaHeader.tsxindex 786be1313d..faea1f1dfe 100644--- a/packages/docs/components/LambdaSplash/LambdaHeader.tsx+++ b/packages/docs/components/LambdaSplash/LambdaHeader.tsx@@ -2,6 +2,7 @@ import React from "react";import { PlayerPreview } from "./PlayerPreview";import styles from "./lambdaheader.module.css";import { BlueButton } from "../layout/Button";+import { LambdaLogo } from "./LambdaLogo";const DiscordLogo: React.FC = () => {return (@@ -25,6 +26,7 @@ export const LambdaHeader: React.FC = () => {return (<div className={styles.writeincss}><div style={{ flex: 1 }}>+ <LambdaLogo /><h1 className={styles.writeincsstitle}>Rendering. <br /> At scale.</h1>diff --git a/packages/docs/components/LambdaSplash/LambdaLogo.tsx b/packages/docs/components/LambdaSplash/LambdaLogo.tsxindex 1f55f31ce1..45753441de 100644--- a/packages/docs/components/LambdaSplash/LambdaLogo.tsx+++ b/packages/docs/components/LambdaSplash/LambdaLogo.tsx@@ -1,9 +1,9 @@import React from "react";const align: React.CSSProperties = {- textAlign: "center",fontWeight: "bold",- fontSize: 30,+ fontSize: 20,+ color: "var(--ifm-color-primary)",};export const LambdaLogo: React.FC = () => {diff --git a/packages/docs/components/LambdaSplash/easy.module.css b/packages/docs/components/LambdaSplash/easy.module.cssindex 7f1b8b40c5..93363a105e 100644--- a/packages/docs/components/LambdaSplash/easy.module.css+++ b/packages/docs/components/LambdaSplash/easy.module.css@@ -1,6 +1,7 @@.row {display: flex;flex-direction: row;+ align-items: center;}.tile {@@ -16,9 +17,7 @@}.realgradient {- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));- -webkit-text-fill-color: transparent;- -webkit-background-clip: text;+ color: rgb(66, 144, 245);}diff --git a/packages/docs/components/LambdaSplash/fast.module.css b/packages/docs/components/LambdaSplash/fast.module.cssindex 7f1b8b40c5..898c8925e3 100644--- a/packages/docs/components/LambdaSplash/fast.module.css+++ b/packages/docs/components/LambdaSplash/fast.module.css@@ -1,6 +1,7 @@.row {display: flex;flex-direction: row;+ align-items: center;}.tile {@@ -16,9 +17,7 @@}.realgradient {- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));- -webkit-text-fill-color: transparent;- -webkit-background-clip: text;+ color: rgb(66, 144, 245);}diff --git a/packages/docs/components/LambdaSplash/lambdaheader.module.css b/packages/docs/components/LambdaSplash/lambdaheader.module.cssindex b53ce6a761..6e2692f5bf 100644--- a/packages/docs/components/LambdaSplash/lambdaheader.module.css+++ b/packages/docs/components/LambdaSplash/lambdaheader.module.css@@ -1,6 +1,7 @@.writeincss {flex-direction: row;display: flex;+ align-items: center;}.writeincsstitle {diff --git a/packages/docs/components/LambdaSplash/rendertimes.module.css b/packages/docs/components/LambdaSplash/rendertimes.module.cssindex 10b8259b79..168d85e4d3 100644--- a/packages/docs/components/LambdaSplash/rendertimes.module.css+++ b/packages/docs/components/LambdaSplash/rendertimes.module.css@@ -12,10 +12,8 @@Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;font-weight: 800;line-height: 1;- -webkit-text-fill-color: transparent;font-size: 3em;- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));- -webkit-background-clip: text;+ color: rgb(66, 144, 245);}.stat p {diff --git a/packages/docs/components/LandingPage/editor.module.css b/packages/docs/components/LandingPage/editor.module.cssindex 651cb0ecb3..bb082825e7 100644--- a/packages/docs/components/LandingPage/editor.module.css+++ b/packages/docs/components/LandingPage/editor.module.css@@ -16,9 +16,7 @@}.mp4 {- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));- -webkit-text-fill-color: transparent;- -webkit-background-clip: text;+color: var(--ifm-color-primary)}@keyframes opacity {diff --git a/packages/docs/components/LandingPage/ifyouknowreact.module.css b/packages/docs/components/LandingPage/ifyouknowreact.module.cssindex c808073e13..c88b89c6b4 100644--- a/packages/docs/components/LandingPage/ifyouknowreact.module.css+++ b/packages/docs/components/LandingPage/ifyouknowreact.module.css@@ -16,9 +16,7 @@}.rea {- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));- -webkit-text-fill-color: transparent;- -webkit-background-clip: text;+color: var(--ifm-color-primary)}.aknow {diff --git a/packages/docs/components/LandingPage/parametrize.module.css b/packages/docs/components/LandingPage/parametrize.module.cssindex 424c768c00..6e3200c487 100644--- a/packages/docs/components/LandingPage/parametrize.module.css+++ b/packages/docs/components/LandingPage/parametrize.module.css@@ -22,9 +22,7 @@}.parametrizegradient {- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));- -webkit-text-fill-color: transparent;- -webkit-background-clip: text;+ color: var(--ifm-color-primary);}.parametrizeinput {diff --git a/packages/docs/components/LandingPage/pricing.module.css b/packages/docs/components/LandingPage/pricing.module.cssindex 9369f519b5..22497ce514 100644--- a/packages/docs/components/LandingPage/pricing.module.css+++ b/packages/docs/components/LandingPage/pricing.module.css@@ -7,9 +7,7 @@}.mp4 {- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));- -webkit-text-fill-color: transparent;- -webkit-background-clip: text;+ color: var(--ifm-color-primary);}.pricingcontainer {@@ -60,33 +58,16 @@}.freeprice {- background: linear-gradient(to right, #4290f5, #42e9f5);- -webkit-background-clip: text;- -moz-background-clip: text;- background-clip: text;- -webkit-text-fill-color: transparent;- -moz-text-fill-color: transparent;- text-fill-color: transparent;+ color: #4290f5;+}.gradientprice {- background: linear-gradient(to right, #e01d67, #79367a);- -webkit-background-clip: text;- -moz-background-clip: text;- background-clip: text;- -webkit-text-fill-color: transparent;- -moz-text-fill-color: transparent;- text-fill-color: transparent;+ color: #79367a}.orangeprice {- background: linear-gradient(to right, #f5ad43, #fd764a);- -webkit-background-clip: text;- -moz-background-clip: text;- background-clip: text;- -webkit-text-fill-color: transparent;- -moz-text-fill-color: transparent;- text-fill-color: transparent;+ color: #fd764a;}.portion {diff --git a/packages/docs/components/LandingPage/realvideos.module.css b/packages/docs/components/LandingPage/realvideos.module.cssindex 0b94d87c98..a72900dfcf 100644--- a/packages/docs/components/LandingPage/realvideos.module.css+++ b/packages/docs/components/LandingPage/realvideos.module.css@@ -14,9 +14,7 @@}.realgradient {- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));- -webkit-text-fill-color: transparent;- -webkit-background-clip: text;+ color: var(--ifm-color-primary);}.realmp4container {diff --git a/packages/docs/components/Player/features.module.css b/packages/docs/components/Player/features.module.cssindex d338dd3205..0762efa771 100644--- a/packages/docs/components/Player/features.module.css+++ b/packages/docs/components/Player/features.module.css@@ -7,9 +7,7 @@}.keyword {- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));- -webkit-text-fill-color: transparent;- -webkit-background-clip: text;+color: var(--ifm-color-primary)}.container {diff --git a/packages/docs/src/pages/lambda/index.tsx b/packages/docs/src/pages/lambda/index.tsxindex 76b9199d06..7ec40ef056 100644--- a/packages/docs/src/pages/lambda/index.tsx+++ b/packages/docs/src/pages/lambda/index.tsx@@ -33,8 +33,6 @@ export default () => {<div style={container}><br /><br />- <LambdaLogo />- <br /><LambdaHeader /><br /><br />diff --git a/packages/docs/static/img/npminstall.mp4 b/packages/docs/static/img/npminstall.mp4new file mode 100644index 0000000000..ce6b645205Binary files /dev/null and b/packages/docs/static/img/npminstall.mp4 differdiff --git a/packages/docs/static/img/timelinesplit.mp4 b/packages/docs/static/img/timelinesplit.mp4new file mode 100644index 0000000000..7da8cb66a7Binary files /dev/null and b/packages/docs/static/img/timelinesplit.mp4 differdiff --git a/packages/docs/static/img/writeinreact.mp4 b/packages/docs/static/img/writeinreact.mp4new file mode 100644index 0000000000..d6709fe0cfBinary files /dev/null and b/packages/docs/static/img/writeinreact.mp4 differ