🎥 Make videos programmatically with React
apply prettier formatting
Jonny Burger1efaf47bf739
diff --git a/.vscode/settings.json b/.vscode/settings.jsonindex 0715ae71d9..38b2132112 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -3,5 +3,6 @@"editor.codeActionsOnSave": {"source.organizeImports": false,"source.fixAll": true- }+ },+ "editor.defaultFormatter": "esbenp.prettier-vscode"}diff --git a/packages/docs/src/components/AlsoAvailableAsVideo.tsx b/packages/docs/src/components/AlsoAvailableAsVideo.tsxindex 7292ba19b7..2d3d68f8e1 100644--- a/packages/docs/src/components/AlsoAvailableAsVideo.tsx+++ b/packages/docs/src/components/AlsoAvailableAsVideo.tsx@@ -79,7 +79,10 @@ export const AlsoAvailableAsVideo: React.FC<{xmlns="http://www.w3.org/2000/svg"viewBox="0 0 512 512">- <path fill="currentcolor" d="M512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9V344c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z" />+ <path+ fill="currentcolor"+ d="M512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9V344c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"+ /></svg><div style={right}><div style={wouldYouRather}>diff --git a/packages/docs/src/components/CommandCopyButton.tsx b/packages/docs/src/components/CommandCopyButton.tsxindex 1006bf953d..f33f8a4fce 100644--- a/packages/docs/src/components/CommandCopyButton.tsx+++ b/packages/docs/src/components/CommandCopyButton.tsx@@ -11,7 +11,10 @@ export const CommandCopyButton: React.FC<{height: 20,}}>- <path fill="currentColor" d="M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z" />+ <path+ fill="currentColor"+ d="M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"+ /></svg>) : (<svgdiff --git a/packages/docs/src/css/custom.css b/packages/docs/src/css/custom.cssindex c30eddb3ca..c1792e881e 100644--- a/packages/docs/src/css/custom.css+++ b/packages/docs/src/css/custom.css@@ -163,7 +163,6 @@ code {font-size: 60px;}-@media screen and (max-width: 996px) {.row-on-desktop {display: block;@@ -172,9 +171,8 @@ code {.big-title-on-desktop {font-size: 36px;}-+.only-desktop {display: none;}}-diff --git a/packages/docs/src/data/experts.tsx b/packages/docs/src/data/experts.tsxindex d3513536ae..5175e9fc2e 100644--- a/packages/docs/src/data/experts.tsx+++ b/packages/docs/src/data/experts.tsx@@ -243,8 +243,9 @@ export const experts: Expert[] = [<a target={"_blank"} href="https://www.romrif.com/">Romrif.com</a>- ! <br />- I build Websites & Videos with Remotion. I'm alway interested in the latest Tech and love building stuff. Feel free to contact me - I'm available for hire.+ ! <br />I build Websites & Videos with Remotion. I'm alway+ interested in the latest Tech and love building stuff. Feel free to+ contact me - I'm available for hire.</div>),},@@ -263,15 +264,18 @@ export const experts: Expert[] = [I made:{" "}<a target={"_blank"} href="https://www.dataflics.com/">DataFlics- </a> and{" "}+ </a>{" "}+ and{" "}<a target={"_blank"} href="https://nerdy.finance/">Nerdy Finance</a>- ! This is my personal website: <a target={"_blank"} href="https://www.lorenzobertolini.com/">+ ! This is my personal website:{" "}+ <a target={"_blank"} href="https://www.lorenzobertolini.com/">Lorenzo Bertolini</a><br />- Reach out to me for data-driven video generation, data visualization, and web app prototyping with React.js and d3.js.+ Reach out to me for data-driven video generation, data visualization,+ and web app prototyping with React.js and d3.js.</div>),},@@ -286,16 +290,23 @@ export const experts: Expert[] = [email: "[email protected]",since: new Date("2023-03-17").getTime(),description: (- <div>- <p>- I made:{" "}- <a target={"_blank"} href="https://social-video-generator.vercel.app/">- Social Video Generator- </a>- , with Mickaël Alves- </p>- <p><a href="https://blog.slashgear.dev/" target={"_blank"}>Personal website</a></p>- </div>+ <div>+ <p>+ I made:{" "}+ <a+ target={"_blank"}+ href="https://social-video-generator.vercel.app/"+ >+ Social Video Generator+ </a>+ , with Mickaël Alves+ </p>+ <p>+ <a href="https://blog.slashgear.dev/" target={"_blank"}>+ Personal website+ </a>+ </p>+ </div>),},{@@ -309,16 +320,23 @@ export const experts: Expert[] = [email: "[email protected]",since: new Date("2023-03-17").getTime(),description: (- <div>- <p>- I made:{" "}- <a target={"_blank"} href="https://social-video-generator.vercel.app/">- Social Video Generator- </a>- , with Antoine Caron- </p>- <p><a href="https://cruuzazul.dev/" target={"_blank"}>Personal website</a></p>- </div>+ <div>+ <p>+ I made:{" "}+ <a+ target={"_blank"}+ href="https://social-video-generator.vercel.app/"+ >+ Social Video Generator+ </a>+ , with Antoine Caron+ </p>+ <p>+ <a href="https://cruuzazul.dev/" target={"_blank"}>+ Personal website+ </a>+ </p>+ </div>),},];diff --git a/packages/docs/src/data/showcase-videos.tsx b/packages/docs/src/data/showcase-videos.tsxindex 7228e02376..1e68fbd56f 100644--- a/packages/docs/src/data/showcase-videos.tsx+++ b/packages/docs/src/data/showcase-videos.tsx@@ -1298,87 +1298,88 @@ export const showcaseVideos: ShowcaseVideo[] = [},},{- title: "JavaScript Code Execution demo",- type: "mux_video",- muxId: "psJ32DSTQqeLaZYhBC5sa3HH7gkzwt7HinQsHela01OA",- description: "In this video I had explained how Javascript code gets executed. I had made this video completely using Remotion and ReactJS.",- height: 720,- width: 1280,- submittedOn: new Date("12-25-2022"),- links: [- {- type: "source_code",- url: "https://github.com/AmitNemade/remotion-javascript-demo",- },- ],- author: {- "url": "https://www.linkedin.com/in/amitnemade/?lipi=urn%3Ali%3Apage%3Ad_flagship3_pulse_read%3BLMVZoM6pQPu27qXFUtwi4Q%3D%3D",- "name": "Amit Nemade"- }- },- {- title: "Stocks Year in Review",- type: "mux_video",- muxId: "tswSoVoFUjryYX8702phE801Fv00VwtB018cIy3a25fNo01c",- description: "Enter a stock ticker to see how the stock performed in 2022. Powered by the Polygon Stock API.",- height: 1194,- width: 2048,- submittedOn: new Date("01-02-2023"),- links: [- {- type: "website",- url: "https://polygon.io/2022",- }- ],- author: {- "url": "https://polygon.io",- "name": "Polygon.io"- }- },- {- title: "The Eudaimonia Machine: The Ultimate Productivity Hack?",- type: "mux_video",- muxId: "LEKN01a35v01OK2vyVxE00LJhm13JtRzJSnTrJjVYQeQtw",- description: "This explainer video on the Eudaimonia Machine (featured in Cal Newport's 'Deep Work') was made completely with Remotion.",- height: 1080,- width: 1920,- submittedOn: new Date("01-29-2023"),- links: [- {- type: "source_code",- url: "https://github.com/brenjamin/eudaimonia-machine-video",- },- {- type: "video",- url: "https://www.youtube.com/watch?v=IyRB3SbGnaY&list=PLliaWoyhTnjF6oQFYjviMGY4zAJHZHS2M",- },- ],- author: {- "url": "https://www.linkedin.com/in/benjamin-brophy/",- "name": "Ben Brophy"- }-},- {- title: "TVFoodMaps Tik Tok",- type: "mux_video",- muxId: "5ON0000Gg9ov1z01in02jC02k2xjltp01xg3h9CVfymANi01iE",- description: "Video generated from TVFoodMaps lists",- height: 1920,- width: 1080,- submittedOn: new Date("02-11-2023"),- links: [-- {- type: "website",- url: "https://www.tvfoodmaps.com",- },-- ],- author: {- "url": "https://twitter.com/tvfoodmaps",- "name": "TVFoodMaps"- }-},+ title: "JavaScript Code Execution demo",+ type: "mux_video",+ muxId: "psJ32DSTQqeLaZYhBC5sa3HH7gkzwt7HinQsHela01OA",+ description:+ "In this video I had explained how Javascript code gets executed. I had made this video completely using Remotion and ReactJS.",+ height: 720,+ width: 1280,+ submittedOn: new Date("12-25-2022"),+ links: [+ {+ type: "source_code",+ url: "https://github.com/AmitNemade/remotion-javascript-demo",+ },+ ],+ author: {+ url: "https://www.linkedin.com/in/amitnemade/?lipi=urn%3Ali%3Apage%3Ad_flagship3_pulse_read%3BLMVZoM6pQPu27qXFUtwi4Q%3D%3D",+ name: "Amit Nemade",+ },+ },+ {+ title: "Stocks Year in Review",+ type: "mux_video",+ muxId: "tswSoVoFUjryYX8702phE801Fv00VwtB018cIy3a25fNo01c",+ description:+ "Enter a stock ticker to see how the stock performed in 2022. Powered by the Polygon Stock API.",+ height: 1194,+ width: 2048,+ submittedOn: new Date("01-02-2023"),+ links: [+ {+ type: "website",+ url: "https://polygon.io/2022",+ },+ ],+ author: {+ url: "https://polygon.io",+ name: "Polygon.io",+ },+ },+ {+ title: "The Eudaimonia Machine: The Ultimate Productivity Hack?",+ type: "mux_video",+ muxId: "LEKN01a35v01OK2vyVxE00LJhm13JtRzJSnTrJjVYQeQtw",+ description:+ "This explainer video on the Eudaimonia Machine (featured in Cal Newport's 'Deep Work') was made completely with Remotion.",+ height: 1080,+ width: 1920,+ submittedOn: new Date("01-29-2023"),+ links: [+ {+ type: "source_code",+ url: "https://github.com/brenjamin/eudaimonia-machine-video",+ },+ {+ type: "video",+ url: "https://www.youtube.com/watch?v=IyRB3SbGnaY&list=PLliaWoyhTnjF6oQFYjviMGY4zAJHZHS2M",+ },+ ],+ author: {+ url: "https://www.linkedin.com/in/benjamin-brophy/",+ name: "Ben Brophy",+ },+ },+ {+ title: "TVFoodMaps Tik Tok",+ type: "mux_video",+ muxId: "5ON0000Gg9ov1z01in02jC02k2xjltp01xg3h9CVfymANi01iE",+ description: "Video generated from TVFoodMaps lists",+ height: 1920,+ width: 1080,+ submittedOn: new Date("02-11-2023"),+ links: [+ {+ type: "website",+ url: "https://www.tvfoodmaps.com",+ },+ ],+ author: {+ url: "https://twitter.com/tvfoodmaps",+ name: "TVFoodMaps",+ },+ },];const dateString = (date: Date) =>diff --git a/packages/docs/src/pages/experts/experts.module.css b/packages/docs/src/pages/experts/experts.module.cssindex 980f90a1c1..6c546fa238 100644--- a/packages/docs/src/pages/experts/experts.module.css+++ b/packages/docs/src/pages/experts/experts.module.css@@ -30,7 +30,6 @@background-color: var(--ifm-navbar-background-color);}-.profile {height: 200px;border-radius: 100px;diff --git a/packages/docs/src/pages/templates/styles.module.css b/packages/docs/src/pages/templates/styles.module.cssindex 975e30bf22..54474d3da9 100644--- a/packages/docs/src/pages/templates/styles.module.css+++ b/packages/docs/src/pages/templates/styles.module.css@@ -25,10 +25,9 @@padding: 14px;}.item:hover {- border: 1px solid var(--ifm-color-emphasis-500);+ border: 1px solid var(--ifm-color-emphasis-500);}-@media (max-width: 1000px) {.grid {grid-template-columns: 1fr 1fr;