Skip to content

🎥 Make videos programmatically with React

added icon

Patric Salvisberg6f89582c604c
diff --git a/packages/create-video/src/templates.ts b/packages/create-video/src/templates.ts
index 03b7534b05..c351b61187 100644
--- a/packages/create-video/src/templates.ts
+++ b/packages/create-video/src/templates.ts
@@ -33,7 +33,8 @@ export type Template = {
| 'tts'
| 'audiogram'
| 'skia'
- | 'tailwind';
+ | 'tailwind'
+ | 'overlay';
defaultBranch: string;
} & DynamicTemplate;
@@ -207,4 +208,22 @@ export const FEATURED_TEMPLATES: Template[] = [
type: 'video',
defaultBranch: 'main',
},
+
+ {
+ homePageLabel: 'Overlay',
+ shortName: 'Overlay',
+ org: 'remotion-dev',
+ repoName: 'template-overlay',
+ description: 'TypeScript and Tailwind starter',
+ longerDescription:
+ 'A starter template to create overlays to use in conventional video editing software.',
+ promoVideo: {
+ muxId: 'OAe00WUpvsAyqAVSd4gehDCeWI81cI024RhTs9l2eB48w',
+ height: 720,
+ width: 1280,
+ },
+ cliId: 'overlay',
+ type: 'video',
+ defaultBranch: 'main',
+ },
];
diff --git a/packages/docs/src/components/ChooseTemplate.tsx b/packages/docs/src/components/ChooseTemplate.tsx
index 89eae518e0..63bfefc564 100644
--- a/packages/docs/src/components/ChooseTemplate.tsx
+++ b/packages/docs/src/components/ChooseTemplate.tsx
@@ -7,6 +7,7 @@ import { NavigateLeft, NavigateRight } from "./ArrowRight";
import { Blank } from "./icons/blank";
import { Cubes } from "./icons/cubes";
import { JSIcon } from "./icons/js";
+import { OverlayIcon } from "./icons/overlay";
import { RemixIcon } from "./icons/remix";
import { SkiaIcon } from "./icons/skia";
import { StillIcon } from "./icons/still";
@@ -120,6 +121,10 @@ const IconForTemplate: React.FC<{
);
}
+ if (template.homePageLabel === "Overlay") {
+ return <OverlayIcon style={{ height: 42 }} />;
+ }
+
return (
<Blank
style={{
diff --git a/packages/docs/src/components/icons/overlay.tsx b/packages/docs/src/components/icons/overlay.tsx
new file mode 100644
index 0000000000..b69b3f7ee0
--- /dev/null
+++ b/packages/docs/src/components/icons/overlay.tsx
@@ -0,0 +1,26 @@
+import type { SVGProps } from "react";
+import React from "react";
+
+export const OverlayIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
+ return (
+ <svg
+ width="576"
+ height="512"
+ viewBox="0 0 576 512"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ {...props}
+ >
+ <path
+ d="M251.1 407.9C274.5 418.7 301.5 418.7 324.9 407.9V407.8L476.9 337.6L530.1 362.2C538.6 366.1 544 374.6 544 384C544 393.4 538.6 401.9 530.1 405.8L311.5 506.8C296.6 513.7 279.4 513.7 264.5 506.8L45.9 405.8C37.4 401.9 32 393.4 32 384C32 374.6 37.4 366.1 45.9 362.2L99.1 337.7L251.1 407.9Z"
+ fill="currentcolor"
+ />
+ <path
+ d="M277.8 132.7L495.2 230.1C505.4 234.7 512 244.8 512 256C512 267.2 505.4 277.3 495.2 281.9L277.8 379.3C270.1 382.4 263.5 384 256 384C248.5 384 241 382.4 234.2 379.3L16.76 281.9C6.561 277.3 0.0003 267.2 0.0003 256C0.0003 244.8 6.561 234.7 16.76 230.1L234.2 132.7C241 129.6 248.5 128 256 128C263.5 128 270.1 129.6 277.8 132.7Z"
+ stroke="currentcolor"
+ transform="translate(32, -25)"
+ strokeWidth="36"
+ />
+ </svg>
+ );
+};