🎥 Make videos programmatically with React
launch next app
Jonny Burger89e78b1cee63
diff --git a/packages/create-video/src/templates.tsx b/packages/create-video/src/templates.tsxindex f761db4f0d..18038c3196 100644--- a/packages/create-video/src/templates.tsx+++ b/packages/create-video/src/templates.tsx@@ -49,24 +49,6 @@ function truthy<T>(value: T): value is Truthy<T> {return Boolean(value);}-const nextTemplate: Template = {- homePageLabel: 'Next.js',- shortName: 'Next.js',- org: 'remotion-dev',- repoName: 'template-next',- 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. Our recommended choice for people who want to build a video generation app.',- promoVideo: {- width: 1280,- height: 720,- muxId: 'RufnZIJZh6L1MAaeG02jnXuM9pK96tNuHRxmXHbWqCBI',- },- cliId: 'next',- type: 'video',- defaultBranch: 'main',-};-// Note that this page is statically analyzed by extract-articles.mjsexport const FEATURED_TEMPLATES: Template[] = [{@@ -86,7 +68,23 @@ export const FEATURED_TEMPLATES: Template[] = [type: 'video' as const,defaultBranch: 'main',},- nextTemplate,+ {+ homePageLabel: 'Next.js',+ shortName: 'Next.js',+ org: 'remotion-dev',+ repoName: 'template-next',+ description: 'SaaS template for video generation apps',+ longerDescription:+ 'A SaaS starter kit which has the Remotion Player and rendering via Remotion Lambda built-in. Our recommended choice for people who want to build an app that can generate videos.',+ promoVideo: {+ width: 1280,+ height: 720,+ muxId: 'RufnZIJZh6L1MAaeG02jnXuM9pK96tNuHRxmXHbWqCBI',+ },+ cliId: 'next' as const,+ type: 'video' as const,+ defaultBranch: 'main',+ },{homePageLabel: 'Blank',shortName: 'Blank',diff --git a/packages/docs/docs/resources.md b/packages/docs/docs/resources.mdindex c74e9b6ee1..539db9d5db 100644--- a/packages/docs/docs/resources.md+++ b/packages/docs/docs/resources.md@@ -21,7 +21,7 @@ This list tries to compile all templates, libraries, building blocks and example## SaaS starter Kits-- [Remix template](https://github.com/florentpergoud/remotion-remix-template)+- [Remix template](https://github.com/remotion-dev/remotion-remix-template)- [Next.js template](https://github.com/remotion-dev/template-next)## Integrationsdiff --git a/packages/docs/src/components/ChooseTemplate.tsx b/packages/docs/src/components/ChooseTemplate.tsxindex 694b3fce12..2740db2015 100644--- a/packages/docs/src/components/ChooseTemplate.tsx+++ b/packages/docs/src/components/ChooseTemplate.tsx@@ -2,8 +2,8 @@ import Link from "@docusaurus/Link";import { CreateVideoInternals } from "create-video";import React from "react";-import { MoreTemplatesButton } from "./ArrowRight";import { IconForTemplate } from "./IconForTemplate";+import { MoreTemplatesButton } from "./MoreTemplatesButton";import { TemplateIcon } from "./TemplateIcon";export const ChooseTemplate: React.FC = () => {@@ -38,7 +38,11 @@ export const ChooseTemplate: React.FC = () => {{CreateVideoInternals.FEATURED_TEMPLATES.slice(0, 4).map((template) => {return (- <Link key={template.cliId} to={`/templates/${template.cliId}`}>+ <Link+ key={template.cliId}+ style={{ textDecoration: "none" }}+ to={`/templates/${template.cliId}`}+ ><TemplateIcon label={template.homePageLabel}><IconForTemplate scale={0.7} template={template} /></TemplateIcon>diff --git a/packages/docs/src/components/ArrowRight.tsx b/packages/docs/src/components/MoreTemplatesButton.tsxsimilarity index 100%rename from packages/docs/src/components/ArrowRight.tsxrename to packages/docs/src/components/MoreTemplatesButton.tsxdiff --git a/packages/docs/src/components/TemplateIcon.tsx b/packages/docs/src/components/TemplateIcon.tsxindex ae54463188..14e64f5bd7 100644--- a/packages/docs/src/components/TemplateIcon.tsx+++ b/packages/docs/src/components/TemplateIcon.tsx@@ -18,6 +18,7 @@ const outer: React.CSSProperties = {color: "var(--ifm-font-color-base)",cursor: "pointer",filter: "drop-shadow(0px 0px 4px var(--background))",+ textDecoration: "none",};const labelStyle: React.CSSProperties = {@@ -31,9 +32,9 @@ export const TemplateIcon: React.FC<{const mobileLayout = useMobileLayout();return (- <a style={outer}>+ <span style={outer}><div style={icon}>{children}</div>{mobileLayout ? null : <div style={labelStyle}>{label}</div>}- </a>+ </span>);};