Skip to content

🎥 Make videos programmatically with React

update icon

Jonny Burgerba7aefd4dce7
diff --git a/packages/create-video/src/templates.ts b/packages/create-video/src/templates.ts
index 36e84ee47b..46e311dd88 100644
--- a/packages/create-video/src/templates.ts
+++ b/packages/create-video/src/templates.ts
@@ -188,7 +188,7 @@ export const FEATURED_TEMPLATES: Template[] = [
shortName: 'React Router',
org: 'remotion-dev',
repoName: 'template-react-router',
- description: 'Remotion + React Router Starter Kit',
+ description: 'SaaS template for video generation apps',
longerDescription:
'A software-as-a-service starter kit which has the Remotion Player and rendering via Remotion Lambda built-in. Built with React Router 7.',
promoBanner: {
diff --git a/packages/docs/docs/preview.mdx b/packages/docs/docs/preview.mdx
index 336536d2b2..e090a10656 100644
--- a/packages/docs/docs/preview.mdx
+++ b/packages/docs/docs/preview.mdx
@@ -14,7 +14,7 @@ You can preview your video by starting the [Remotion Studio](/docs/studio):
defaultValue="Regular templates"
values={[
{ label: 'Regular templates', value: 'Regular templates', },
-{ label: 'Next.js and React Router 7 templates', value: 'Next.js and Remix templates', },
+{ label: 'Next.js and React Router 7 templates', value: 'Next.js and React Router templates', },
]
}>
<TabItem value="Regular templates">
@@ -25,7 +25,7 @@ npm run dev
</TabItem>
- <TabItem value="Next.js and Remix templates">
+ <TabItem value="Next.js and React Router templates">
```bash
npm run remotion
diff --git a/packages/docs/docs/studio-app.mdx b/packages/docs/docs/studio-app.mdx
index 690df833c0..0f84256f7f 100644
--- a/packages/docs/docs/studio-app.mdx
+++ b/packages/docs/docs/studio-app.mdx
@@ -35,8 +35,8 @@ no errors anymore.
<code>app/page.tsx</code>.
</li>
<li>
- <strong>In the Remix template:</strong> Under{' '}
- <code>app/routes/_index.tsx</code>.
+ <strong>In the React Router template:</strong> Under{' '}
+ <code>app/home.tsx</code>.
</li>
</ul>
diff --git a/packages/docs/docs/studio/studio.mdx b/packages/docs/docs/studio/studio.mdx
index e7c45cbaf1..b26b81e4cf 100644
--- a/packages/docs/docs/studio/studio.mdx
+++ b/packages/docs/docs/studio/studio.mdx
@@ -1,11 +1,11 @@
---
image: /generated/articles-docs-studio-studio.png
title: Starting the Studio
-crumb: "Timeline basics"
+crumb: 'Timeline basics'
---
-import Tabs from "@theme/Tabs";
-import TabItem from "@theme/TabItem";
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
Using the Remotion Studio, you can preview your video, and if a server is connected, even render the video.
@@ -64,7 +64,7 @@ You can start the Remotion Studio by running the following command in your termi
defaultValue="Regular templates"
values={[
{ label: 'Regular templates', value: 'Regular templates', },
-{ label: 'Next.js and React Router 7 templates', value: 'Next.js and Remix templates', },
+{ label: 'Next.js and React Router 7 templates', value: 'Next.js and React Router templates', },
]
}>
<TabItem value="Regular templates">
@@ -75,7 +75,7 @@ npm start
</TabItem>
- <TabItem value="Next.js and Remix templates">
+ <TabItem value="Next.js and React Router templates">
```bash
npm run remotion
diff --git a/packages/docs/docs/terminology/player.mdx b/packages/docs/docs/terminology/player.mdx
index 094a22590b..3ffea45254 100644
--- a/packages/docs/docs/terminology/player.mdx
+++ b/packages/docs/docs/terminology/player.mdx
@@ -1,11 +1,11 @@
---
image: /generated/articles-docs-terminology-player.png
title: Remotion Player
-crumb: "Terminology"
+crumb: 'Terminology'
---
The Remotion Player is the React component [`<Player>`](/docs/player) that can be embedded into a React app.
-It can be used by installing the [`@remotion/player`](https://npmjs.org/packages/@remotion/player) package into a React app (for example: Create React App, Next.JS, Remix, Vite).
+It can be used by installing the [`@remotion/player`](https://npmjs.org/packages/@remotion/player) package into a React app (for example: Create React App, Next.JS, Remix, React Router, Vite).
It is not the same as the [Remotion Studio](/docs/terminology/studio).
## See
diff --git a/packages/docs/src/components/icons/remix.tsx b/packages/docs/src/components/icons/remix.tsx
index f59d9854e9..f6fe0705ac 100644
--- a/packages/docs/src/components/icons/remix.tsx
+++ b/packages/docs/src/components/icons/remix.tsx
@@ -4,21 +4,24 @@ import React from 'react';
export const RemixIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
return (
<svg
- viewBox="0 0 800 800"
- fill="none"
+ width="800px"
+ height="800px"
+ viewBox="0 -58 256 256"
+ version="1.1"
xmlns="http://www.w3.org/2000/svg"
+ preserveAspectRatio="xMidYMid"
{...props}
>
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M621.609 552.632C626.649 617.449 626.649 647.833 626.649 681H476.823C476.823 673.776 476.952 667.167 477.082 660.466C477.488 639.634 477.911 617.911 474.538 574.041C470.082 509.814 442.451 495.543 391.645 495.543H346.633H156V378.687H398.776C462.951 378.687 495.04 359.146 495.04 307.408C495.04 261.915 462.951 234.347 398.776 234.347H156V120H425.516C570.802 120 643 188.686 643 298.405C643 380.471 592.194 433.993 523.562 442.913C581.498 454.509 615.369 487.514 621.609 552.632Z"
- fill="currentcolor"
- />
- <path
- d="M156 681V593H313.899C340.273 593 346 612.845 346 624.68V681H156Z"
- fill="currentcolor"
- />
+ <g>
+ <path
+ d="M78.0659341,92.5875806 C90.8837956,92.5875806 101.274726,82.1966508 101.274726,69.3787894 C101.274726,56.5609279 90.8837956,46.1699982 78.0659341,46.1699982 C65.2480726,46.1699982 54.8571429,56.5609279 54.8571429,69.3787894 C54.8571429,82.1966508 65.2480726,92.5875806 78.0659341,92.5875806 Z M23.2087913,139.005163 C36.0266526,139.005163 46.4175825,128.614233 46.4175825,115.796372 C46.4175825,102.97851 36.0266526,92.5875806 23.2087913,92.5875806 C10.3909298,92.5875806 0,102.97851 0,115.796372 C0,128.614233 10.3909298,139.005163 23.2087913,139.005163 Z M232.791209,139.005163 C245.60907,139.005163 256,128.614233 256,115.796372 C256,102.97851 245.60907,92.5875806 232.791209,92.5875806 C219.973347,92.5875806 209.582418,102.97851 209.582418,115.796372 C209.582418,128.614233 219.973347,139.005163 232.791209,139.005163 Z"
+ fill="currentcolor"
+ />
+ <path
+ d="M156.565464,70.3568084 C155.823426,62.6028163 155.445577,56.1490255 149.505494,51.6131676 C141.982638,45.8687002 133.461166,49.5960243 122.964463,45.8072968 C112.650326,43.3121427 105,34.1545727 105,23.2394367 C105,10.4046502 115.577888,0 128.626373,0 C138.29063,0 146.599638,5.70747659 150.259573,13.8825477 C155.861013,24.5221258 152.220489,35.3500418 159.258242,40.8041273 C167.591489,47.2621895 178.826167,42.5329154 191.362109,48.6517412 C195.390112,50.5026944 198.799584,53.4384578 201.202056,57.0769224 C203.604528,60.7153869 205,65.0565524 205,69.7183101 C205,80.633446 197.349674,89.7910161 187.035538,92.2861702 C176.538834,96.0748977 168.017363,92.3475736 160.494506,98.092041 C152.03503,104.551712 156.563892,115.358642 149.669352,126.774447 C145.756163,134.291567 137.802119,139.43662 128.626373,139.43662 C115.577888,139.43662 105,129.03197 105,116.197184 C105,106.873668 110.581887,98.832521 118.637891,95.1306146 C131.173833,89.0117889 142.408511,93.7410629 150.741758,87.2830007 C155.549106,83.5574243 156.565464,77.8102648 156.565464,70.3568084 Z"
+ fill="currentcolor"
+ />
+ </g>
</svg>
);
};
diff --git a/packages/promo-pages/src/components/homepage/IconForTemplate.tsx b/packages/promo-pages/src/components/homepage/IconForTemplate.tsx
index f2a9cb205b..91a4ee0b47 100644
--- a/packages/promo-pages/src/components/homepage/IconForTemplate.tsx
+++ b/packages/promo-pages/src/components/homepage/IconForTemplate.tsx
@@ -6,7 +6,7 @@ import {Cubes} from '../icons/cubes';
import {JSIcon} from '../icons/js';
import {NextIcon} from '../icons/next';
import {OverlayIcon} from '../icons/overlay';
-import {RemixIcon} from '../icons/remix';
+import {ReactRouterIcon} from '../icons/remix';
import {SkiaIcon} from '../icons/skia';
import {Stargazer} from '../icons/stargazer';
import {StillIcon} from '../icons/still';
@@ -112,7 +112,7 @@ export const IconForTemplate: React.FC<{
if (template.cliId === 'react-router') {
return (
- <RemixIcon
+ <ReactRouterIcon
style={{
height: scale * 32,
}}
diff --git a/packages/promo-pages/src/components/icons/remix.tsx b/packages/promo-pages/src/components/icons/remix.tsx
index f59d9854e9..37a579a48e 100644
--- a/packages/promo-pages/src/components/icons/remix.tsx
+++ b/packages/promo-pages/src/components/icons/remix.tsx
@@ -1,24 +1,27 @@
import type {SVGProps} from 'react';
import React from 'react';
-export const RemixIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
+export const ReactRouterIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
return (
<svg
- viewBox="0 0 800 800"
- fill="none"
xmlns="http://www.w3.org/2000/svg"
+ width="800px"
+ height="800px"
+ viewBox="0 -58 256 256"
+ version="1.1"
+ preserveAspectRatio="xMidYMid"
{...props}
>
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M621.609 552.632C626.649 617.449 626.649 647.833 626.649 681H476.823C476.823 673.776 476.952 667.167 477.082 660.466C477.488 639.634 477.911 617.911 474.538 574.041C470.082 509.814 442.451 495.543 391.645 495.543H346.633H156V378.687H398.776C462.951 378.687 495.04 359.146 495.04 307.408C495.04 261.915 462.951 234.347 398.776 234.347H156V120H425.516C570.802 120 643 188.686 643 298.405C643 380.471 592.194 433.993 523.562 442.913C581.498 454.509 615.369 487.514 621.609 552.632Z"
- fill="currentcolor"
- />
- <path
- d="M156 681V593H313.899C340.273 593 346 612.845 346 624.68V681H156Z"
- fill="currentcolor"
- />
+ <g>
+ <path
+ d="M78.0659341,92.5875806 C90.8837956,92.5875806 101.274726,82.1966508 101.274726,69.3787894 C101.274726,56.5609279 90.8837956,46.1699982 78.0659341,46.1699982 C65.2480726,46.1699982 54.8571429,56.5609279 54.8571429,69.3787894 C54.8571429,82.1966508 65.2480726,92.5875806 78.0659341,92.5875806 Z M23.2087913,139.005163 C36.0266526,139.005163 46.4175825,128.614233 46.4175825,115.796372 C46.4175825,102.97851 36.0266526,92.5875806 23.2087913,92.5875806 C10.3909298,92.5875806 0,102.97851 0,115.796372 C0,128.614233 10.3909298,139.005163 23.2087913,139.005163 Z M232.791209,139.005163 C245.60907,139.005163 256,128.614233 256,115.796372 C256,102.97851 245.60907,92.5875806 232.791209,92.5875806 C219.973347,92.5875806 209.582418,102.97851 209.582418,115.796372 C209.582418,128.614233 219.973347,139.005163 232.791209,139.005163 Z"
+ fill="#000000"
+ />
+ <path
+ d="M156.565464,70.3568084 C155.823426,62.6028163 155.445577,56.1490255 149.505494,51.6131676 C141.982638,45.8687002 133.461166,49.5960243 122.964463,45.8072968 C112.650326,43.3121427 105,34.1545727 105,23.2394367 C105,10.4046502 115.577888,0 128.626373,0 C138.29063,0 146.599638,5.70747659 150.259573,13.8825477 C155.861013,24.5221258 152.220489,35.3500418 159.258242,40.8041273 C167.591489,47.2621895 178.826167,42.5329154 191.362109,48.6517412 C195.390112,50.5026944 198.799584,53.4384578 201.202056,57.0769224 C203.604528,60.7153869 205,65.0565524 205,69.7183101 C205,80.633446 197.349674,89.7910161 187.035538,92.2861702 C176.538834,96.0748977 168.017363,92.3475736 160.494506,98.092041 C152.03503,104.551712 156.563892,115.358642 149.669352,126.774447 C145.756163,134.291567 137.802119,139.43662 128.626373,139.43662 C115.577888,139.43662 105,129.03197 105,116.197184 C105,106.873668 110.581887,98.832521 118.637891,95.1306146 C131.173833,89.0117889 142.408511,93.7410629 150.741758,87.2830007 C155.549106,83.5574243 156.565464,77.8102648 156.565464,70.3568084 Z"
+ fill="#D0021B"
+ />
+ </g>
</svg>
);
};
diff --git a/tsconfig.json b/tsconfig.json
index f4cb4f1fec..3220168b16 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -163,7 +163,7 @@
"path": "./packages/template-overlay"
},
{
- "path": "./packages/template-remix"
+ "path": "./packages/template-react-router"
},
{
"path": "./packages/template-tiktok"