🎥 Make videos programmatically with React
add to list of templates
Jonny Burger23fb2c3a081e
diff --git a/packages/create-video/src/templates.ts b/packages/create-video/src/templates.tsindex 6801f1ddcd..59cdaf6a7a 100644--- a/packages/create-video/src/templates.ts+++ b/packages/create-video/src/templates.ts@@ -36,6 +36,7 @@ export type Template = {| 'tts'| 'google-tts'| 'audiogram'+ | 'music-visualization'| 'skia'| 'overlay'| 'stargazer'@@ -309,6 +310,27 @@ export const FEATURED_TEMPLATES: Template[] = [templateInMonorepo: 'template-audiogram',allowEnableTailwind: true,},+ {+ homePageLabel: 'Music Visualization',+ shortName: 'Music Visualization',+ org: 'remotion-dev',+ repoName: 'template-music-visualization',+ description: 'Text and waveform visualization for podcasts',+ longerDescription:+ 'A template that turns music snippets into videos that can be posted on Social Media.',+ promoVideo: {+ muxId: '8msABU02zPeFOGdvUWChssvsLVJZgFNWGWaVKA9hNAlw',+ height: 1080,+ width: 1080,+ },+ cliId: 'music-visualization' as const,+ type: 'video' as const,+ defaultBranch: 'main',+ featuredOnHomePage: null,+ previewURL: null,+ templateInMonorepo: 'template-music-visualization',+ allowEnableTailwind: true,+ },{homePageLabel: 'Skia',shortName: 'Skia',diff --git a/packages/docs/docs/resources.mdx b/packages/docs/docs/resources.mdxindex 687e966679..def4b25543 100644--- a/packages/docs/docs/resources.mdx+++ b/packages/docs/docs/resources.mdx@@ -16,6 +16,7 @@ This list tries to compile all templates, libraries, building blocks and example- Text-to-Speech Template (Azure) ([Source code](https://github.com/FelippeChemello/Remotion-TTS-Example))- Text-to-Speech Template (Google) ([Source code](https://github.com/thecmdrunner/remotion-gtts-template))- Audiogram ([Source code](https://github.com/remotion-dev/template-audiogram))+- Music Visualization ([Source code](https://github.com/remotion-dev/template-music-visualization))- Skia ([Source code](https://github.com/remotion-dev/template-skia))- [Hello World Template with pull request video previews](https://github.com/stoat-dev/example-remotion)- [Library starter template with best practices](https://github.com/remotion-dev/library-starter)diff --git a/packages/docs/src/components/IconForTemplate.tsx b/packages/docs/src/components/IconForTemplate.tsxindex 0b5798d12e..bf9ae73dd4 100644--- a/packages/docs/src/components/IconForTemplate.tsx+++ b/packages/docs/src/components/IconForTemplate.tsx@@ -4,6 +4,7 @@ import {Blank} from './icons/blank';import {CodeHike} from './icons/code-hike';import {Cubes} from './icons/cubes';import {JSIcon} from './icons/js';+import {MusicIcon} from './icons/music';import {NextIcon} from './icons/next';import {OverlayIcon} from './icons/overlay';import {RemixIcon} from './icons/remix';@@ -110,6 +111,16 @@ export const IconForTemplate: React.FC<{);}+ if (template.cliId === 'music-visualization') {+ return (+ <MusicIcon+ style={{+ height: scale * 32,+ }}+ />+ );+ }+if (template.cliId === 'react-router') {return (<RemixIcondiff --git a/packages/docs/src/components/icons/music.tsx b/packages/docs/src/components/icons/music.tsxnew file mode 100644index 0000000000..91544c488b--- /dev/null+++ b/packages/docs/src/components/icons/music.tsx@@ -0,0 +1,10 @@+import type {SVGProps} from 'react';+import React from 'react';++export const MusicIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {+ return (+ <svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">+ <path d="M499.1 6.3c8.1 6 12.9 15.6 12.9 25.7l0 72 0 264c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6L448 147 192 223.8 192 432c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6L128 200l0-72c0-14.1 9.3-26.6 22.8-30.7l320-96c9.7-2.9 20.2-1.1 28.3 5z" />+ </svg>+ );+};diff --git a/packages/promo-pages/src/components/homepage/IconForTemplate.tsx b/packages/promo-pages/src/components/homepage/IconForTemplate.tsxindex 91a4ee0b47..5be39ffea5 100644--- a/packages/promo-pages/src/components/homepage/IconForTemplate.tsx+++ b/packages/promo-pages/src/components/homepage/IconForTemplate.tsx@@ -4,6 +4,7 @@ import {Blank} from '../icons/blank';import {CodeHike} from '../icons/code-hike';import {Cubes} from '../icons/cubes';import {JSIcon} from '../icons/js';+import {MusicIcon} from '../icons/music';import {NextIcon} from '../icons/next';import {OverlayIcon} from '../icons/overlay';import {ReactRouterIcon} from '../icons/remix';@@ -110,6 +111,16 @@ export const IconForTemplate: React.FC<{);}+ if (template.cliId === 'music-visualization') {+ return (+ <MusicIcon+ style={{+ height: scale * 32,+ }}+ />+ );+ }+if (template.cliId === 'react-router') {return (<ReactRouterIcondiff --git a/packages/promo-pages/src/components/icons/music.tsx b/packages/promo-pages/src/components/icons/music.tsxnew file mode 100644index 0000000000..0718619e76--- /dev/null+++ b/packages/promo-pages/src/components/icons/music.tsx@@ -0,0 +1,9 @@+import type {SVGProps} from 'react';++export const MusicIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {+ return (+ <svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">+ <path d="M499.1 6.3c8.1 6 12.9 15.6 12.9 25.7l0 72 0 264c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6L448 147 192 223.8 192 432c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6L128 200l0-72c0-14.1 9.3-26.6 22.8-30.7l320-96c9.7-2.9 20.2-1.1 28.3 5z" />+ </svg>+ );+};