Skip to content

🎥 Make videos programmatically with React

Fix UI bug on homepage's template section

MehmetAdemi55962b8f3a58
diff --git a/packages/create-video/src/templates.ts b/packages/create-video/src/templates.ts
index 7d99baca0c..d455d17f11 100644
--- a/packages/create-video/src/templates.ts
+++ b/packages/create-video/src/templates.ts
@@ -49,6 +49,7 @@ export type Template = {
defaultBranch: string;
featuredOnHomePage: string | null;
previewURL: string | null;
+ previewLabel: string | null;
templateInMonorepo: string;
allowEnableTailwind: boolean;
contributedBy: string | null;
@@ -80,6 +81,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: 'Blank',
previewURL: 'https://template-empty.vercel.app/?/MyComp',
+ previewLabel: null,
templateInMonorepo: 'template-blank',
allowEnableTailwind: true,
contributedBy: null,
@@ -104,6 +106,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: 'Hello World',
previewURL: 'https://remotion-helloworld.vercel.app/?/HelloWorld',
+ previewLabel: null,
templateInMonorepo: 'template-helloworld',
allowEnableTailwind: true,
contributedBy: null,
@@ -127,6 +130,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: 'Next.js',
previewURL: 'https://next.remotion.dev',
+ previewLabel: null,
templateInMonorepo: 'template-next-app',
allowEnableTailwind: false,
contributedBy: null,
@@ -150,6 +154,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: 'https://next.remotion.dev',
+ previewLabel: null,
templateInMonorepo: 'template-next-app-tailwind',
allowEnableTailwind: false,
contributedBy: null,
@@ -173,6 +178,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: 'https://next.remotion.dev',
+ previewLabel: null,
templateInMonorepo: 'template-next-pages',
allowEnableTailwind: false,
contributedBy: null,
@@ -197,6 +203,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-recorder',
allowEnableTailwind: false,
contributedBy: null,
@@ -218,8 +225,9 @@ export const FEATURED_TEMPLATES: Template[] = [
cliId: 'prompt-to-motion-graphics' as const,
type: 'image' as const,
defaultBranch: 'main',
- featuredOnHomePage: 'https://prompt-to-motion-graphics-saas.vercel.app',
- previewURL: null,
+ featuredOnHomePage: 'Prompt to Motion',
+ previewURL: 'https://prompt-to-motion-graphics-saas.vercel.app',
+ previewLabel: 'Live Demo',
templateInMonorepo: 'template-prompt-to-motion-graphics',
allowEnableTailwind: false,
contributedBy: 'ASchwad',
@@ -244,6 +252,7 @@ export const FEATURED_TEMPLATES: Template[] = [
featuredOnHomePage: null,
previewURL:
'https://template-helloworld-javascript.vercel.app/?/HelloWorld',
+ previewLabel: null,
templateInMonorepo: 'template-javascript',
allowEnableTailwind: true,
contributedBy: null,
@@ -267,6 +276,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-render-server',
allowEnableTailwind: false,
contributedBy: null,
@@ -290,6 +300,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: 'React Router',
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-react-router',
allowEnableTailwind: false,
contributedBy: null,
@@ -313,6 +324,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: 'https://template-three-remotion.vercel.app/',
+ previewLabel: null,
templateInMonorepo: 'template-three',
allowEnableTailwind: false,
contributedBy: null,
@@ -336,6 +348,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: 'https://template-still.vercel.app/?/PreviewCard',
+ previewLabel: null,
templateInMonorepo: 'template-still',
allowEnableTailwind: false,
contributedBy: null,
@@ -359,6 +372,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'master',
featuredOnHomePage: null,
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-tts-azure',
allowEnableTailwind: false,
contributedBy: null,
@@ -382,6 +396,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'master',
featuredOnHomePage: null,
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-tts-google',
allowEnableTailwind: false,
contributedBy: null,
@@ -405,6 +420,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: 'https://template-audiogram-1nrh.vercel.app',
+ previewLabel: null,
templateInMonorepo: 'template-audiogram',
allowEnableTailwind: true,
contributedBy: null,
@@ -428,6 +444,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-music-visualization',
allowEnableTailwind: true,
contributedBy: null,
@@ -451,6 +468,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-prompt-to-video',
allowEnableTailwind: true,
contributedBy: 'webmonch',
@@ -473,6 +491,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-skia',
allowEnableTailwind: false,
contributedBy: null,
@@ -501,6 +520,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-overlay',
allowEnableTailwind: true,
contributedBy: null,
@@ -527,6 +547,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: 'https://template-code-hike.vercel.app/',
+ previewLabel: null,
templateInMonorepo: 'template-code-hike',
allowEnableTailwind: false,
contributedBy: null,
@@ -550,6 +571,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-stargazer',
allowEnableTailwind: true,
contributedBy: 'pomber',
@@ -573,6 +595,7 @@ export const FEATURED_TEMPLATES: Template[] = [
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: null,
+ previewLabel: null,
templateInMonorepo: 'template-tiktok',
allowEnableTailwind: true,
contributedBy: null,
diff --git a/packages/promo-pages/src/components/template-modal-content.tsx b/packages/promo-pages/src/components/template-modal-content.tsx
index d7aa4d2248..d85f9e7470 100644
--- a/packages/promo-pages/src/components/template-modal-content.tsx
+++ b/packages/promo-pages/src/components/template-modal-content.tsx
@@ -427,11 +427,15 @@ export const TemplateModalContent: React.FC<{
<div className="w-6 h-9 mr-3 inline-flex items-center justify-center">
<PreviewIcon />
</div>
- See Preview{' '}
- <span className="whitespace-pre text-[var(--light-text-color)]">
- {' '}
- via Remotion Studio
- </span>
+ {template.previewLabel ?? (
+ <>
+ See Preview{' '}
+ <span className="whitespace-pre text-[var(--light-text-color)]">
+ {' '}
+ via Remotion Studio
+ </span>
+ </>
+ )}
</div>
</a>
)}