🎥 Make videos programmatically with React
Docs: Remove example placeholders, keep one real example
Igor Samokhovetsd14b238afc2d
diff --git a/packages/docs/examples-sidebars.ts b/packages/docs/examples-sidebars.tsindex a66e65b9c1..2461dbc0e1 100644--- a/packages/docs/examples-sidebars.ts+++ b/packages/docs/examples-sidebars.ts@@ -11,89 +11,12 @@ const sidebars: SidebarsConfig = {'<hr style="margin-top: 4px; margin-bottom: 4px; border-bottom: none"/>',defaultStyle: true,},- {- type: 'category',- label: 'Maps',- link: {type: 'doc', id: 'maps/index'},- collapsed: false,- items: ['maps/mapbox-line-from-a-to-b', 'maps/3d-building'],- },- {- type: 'category',- label: 'Sport',- link: {type: 'doc', id: 'sport/index'},- collapsed: false,- items: ['sport/strava-visualization', 'sport/mapbox-athletes-eye-demo'],- },- {- type: 'category',- label: 'Storytelling',- link: {type: 'doc', id: 'storytelling/index'},- collapsed: false,- items: [- 'storytelling/paper-js-highlight',- 'storytelling/news-headline',- 'storytelling/bar-chart',- 'storytelling/pie-chart',- 'storytelling/number-wheel',- ],- },- {- type: 'category',- label: 'Audio',- link: {type: 'doc', id: 'audio/index'},- collapsed: false,- items: ['audio/music-visualizer', 'audio/audiogram'],- },- {- type: 'category',- label: 'Captions',- link: {type: 'doc', id: 'captions/index'},- collapsed: false,- items: ['captions/tiktok-style-captions', 'captions/lyrics-animation'],- },{type: 'category',label: 'Motion design system',link: {type: 'doc', id: 'motion-design-system/index'},collapsed: false,- items: [- 'motion-design-system/lower-third/index',- 'motion-design-system/code-example',- ],- },- {- type: 'category',- label: 'Effects',- link: {type: 'doc', id: 'effects/index'},- collapsed: false,- items: [- 'effects/greenscreen',- 'effects/wiggle',- 'effects/magnifier',- 'effects/sticker-peel',- ],- },- {- type: 'category',- label: 'WebGL',- link: {type: 'doc', id: 'webgl/index'},- collapsed: false,- items: ['webgl/chromatic-aberration'],- },- {- type: 'category',- label: '3D',- link: {type: 'doc', id: '3d/index'},- collapsed: false,- items: ['3d/spinning-object', '3d/video-texture'],- },- {- type: 'category',- label: 'Remotion best practices',- link: {type: 'doc', id: 'best-practices/index'},- collapsed: false,- items: ['best-practices/drag-and-drop', 'best-practices/jumpcuts-technique'],+ items: ['motion-design-system/lower-third/index'],},],};diff --git a/packages/docs/examples/3d/index.mdx b/packages/docs/examples/3d/index.mdxdeleted file mode 100644index 69d486501d..0000000000--- a/packages/docs/examples/3d/index.mdx+++ /dev/null@@ -1,11 +0,0 @@-----title: 3D-description: 3D examples for Remotion.------# 3D--Planned examples:--- Spinning object, for example a disco ball-- Video texturediff --git a/packages/docs/examples/3d/spinning-object.mdx b/packages/docs/examples/3d/spinning-object.mdxdeleted file mode 100644index 71e1e3a16b..0000000000--- a/packages/docs/examples/3d/spinning-object.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Spinning object-description: Animate a reusable spinning 3D object, such as a disco ball.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Spinning object--<PlannedExample category="3D" description="Animate a reusable spinning 3D object, such as a disco ball." />diff --git a/packages/docs/examples/3d/video-texture.mdx b/packages/docs/examples/3d/video-texture.mdxdeleted file mode 100644index a732d8c879..0000000000--- a/packages/docs/examples/3d/video-texture.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Video texture-description: Use video as a texture in a 3D scene.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Video texture--<PlannedExample category="3D" description="Use video as a texture in a 3D scene." />diff --git a/packages/docs/examples/audio/audiogram.mdx b/packages/docs/examples/audio/audiogram.mdxdeleted file mode 100644index 27c90719d6..0000000000--- a/packages/docs/examples/audio/audiogram.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Audiogram-description: Create a social-video audiogram layout with audio-reactive motion.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Audiogram--<PlannedExample category="Audio" description="Create a social-video audiogram layout with audio-reactive motion." />diff --git a/packages/docs/examples/audio/index.mdx b/packages/docs/examples/audio/index.mdxdeleted file mode 100644index 0eddfe103c..0000000000--- a/packages/docs/examples/audio/index.mdx+++ /dev/null@@ -1,11 +0,0 @@-----title: Audio-description: Audio-reactive Remotion examples.------# Audio--Planned examples:--- Music visualizer-- Audiogramdiff --git a/packages/docs/examples/audio/music-visualizer.mdx b/packages/docs/examples/audio/music-visualizer.mdxdeleted file mode 100644index ad3b3988a7..0000000000--- a/packages/docs/examples/audio/music-visualizer.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Music visualizer-description: Visualize audio amplitude or frequency data in a reusable graphic.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Music visualizer--<PlannedExample category="Audio" description="Visualize audio amplitude or frequency data in a reusable graphic." />diff --git a/packages/docs/examples/best-practices/drag-and-drop.mdx b/packages/docs/examples/best-practices/drag-and-drop.mdxdeleted file mode 100644index 2bc5c544fe..0000000000--- a/packages/docs/examples/best-practices/drag-and-drop.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Drag and drop-description: Demonstrate a useful drag-and-drop workflow for Remotion projects.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Drag and drop--<PlannedExample category="Remotion best practices" description="Demonstrate a useful drag-and-drop workflow for Remotion projects." />diff --git a/packages/docs/examples/best-practices/index.mdx b/packages/docs/examples/best-practices/index.mdxdeleted file mode 100644index ea037514b1..0000000000--- a/packages/docs/examples/best-practices/index.mdx+++ /dev/null@@ -1,11 +0,0 @@-----title: Remotion best practices-description: Best-practice examples for Remotion projects.------# Remotion best practices--Planned examples:--- Drag and drop-- Jumpcuts techniquediff --git a/packages/docs/examples/best-practices/jumpcuts-technique.mdx b/packages/docs/examples/best-practices/jumpcuts-technique.mdxdeleted file mode 100644index 90d3b7ad8b..0000000000--- a/packages/docs/examples/best-practices/jumpcuts-technique.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Jumpcuts technique-description: Show a practical jump-cut editing technique in Remotion.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Jumpcuts technique--<PlannedExample category="Remotion best practices" description="Show a practical jump-cut editing technique in Remotion." />diff --git a/packages/docs/examples/captions/index.mdx b/packages/docs/examples/captions/index.mdxdeleted file mode 100644index eb736d5ab6..0000000000--- a/packages/docs/examples/captions/index.mdx+++ /dev/null@@ -1,11 +0,0 @@-----title: Captions-description: Caption and lyrics animation examples for Remotion.------# Captions--Planned examples:--- TikTok-style captions-- Lyrics animationdiff --git a/packages/docs/examples/captions/lyrics-animation.mdx b/packages/docs/examples/captions/lyrics-animation.mdxdeleted file mode 100644index 670837774b..0000000000--- a/packages/docs/examples/captions/lyrics-animation.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Lyrics animation-description: Synchronize animated lyric text with audio.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Lyrics animation--<PlannedExample category="Captions" description="Synchronize animated lyric text with audio." />diff --git a/packages/docs/examples/captions/tiktok-style-captions.mdx b/packages/docs/examples/captions/tiktok-style-captions.mdxdeleted file mode 100644index 272fc12dcb..0000000000--- a/packages/docs/examples/captions/tiktok-style-captions.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: TikTok-style captions-description: Animate short-form captions with highlighted words.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# TikTok-style captions--<PlannedExample category="Captions" description="Animate short-form captions with highlighted words." />diff --git a/packages/docs/examples/effects/greenscreen.mdx b/packages/docs/examples/effects/greenscreen.mdxdeleted file mode 100644index 5d6489d6dc..0000000000--- a/packages/docs/examples/effects/greenscreen.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Greenscreen-description: Key out a green background for a composited video effect.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Greenscreen--<PlannedExample category="Effects" description="Key out a green background for a composited video effect." />diff --git a/packages/docs/examples/effects/index.mdx b/packages/docs/examples/effects/index.mdxdeleted file mode 100644index 1aa5970f9f..0000000000--- a/packages/docs/examples/effects/index.mdx+++ /dev/null@@ -1,13 +0,0 @@-----title: Effects-description: Visual effects examples for Remotion.------# Effects--Planned examples:--- Greenscreen-- Wiggle-- Magnifier-- Sticker peeldiff --git a/packages/docs/examples/effects/magnifier.mdx b/packages/docs/examples/effects/magnifier.mdxdeleted file mode 100644index 8c9a449d57..0000000000--- a/packages/docs/examples/effects/magnifier.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Magnifier-description: Magnify part of the frame to draw attention.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Magnifier--<PlannedExample category="Effects" description="Magnify part of the frame to draw attention." />diff --git a/packages/docs/examples/effects/sticker-peel.mdx b/packages/docs/examples/effects/sticker-peel.mdxdeleted file mode 100644index daabfe1af9..0000000000--- a/packages/docs/examples/effects/sticker-peel.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Sticker peel-description: Animate a sticker peeling away from the screen.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Sticker peel--<PlannedExample category="Effects" description="Animate a sticker peeling away from the screen." />diff --git a/packages/docs/examples/effects/wiggle.mdx b/packages/docs/examples/effects/wiggle.mdxdeleted file mode 100644index 074a8a93a3..0000000000--- a/packages/docs/examples/effects/wiggle.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Wiggle-description: Add organic wiggle motion to text or shapes.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Wiggle--<PlannedExample category="Effects" description="Add organic wiggle motion to text or shapes." />diff --git a/packages/docs/examples/maps/3d-building.mdx b/packages/docs/examples/maps/3d-building.mdxdeleted file mode 100644index 757e717772..0000000000--- a/packages/docs/examples/maps/3d-building.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: 3D building-description: Show a 3D building as a reusable map-based visual element.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# 3D building--<PlannedExample category="Maps" description="Show a 3D building as a reusable map-based visual element." />diff --git a/packages/docs/examples/maps/index.mdx b/packages/docs/examples/maps/index.mdxdeleted file mode 100644index c9f1e72ac1..0000000000--- a/packages/docs/examples/maps/index.mdx+++ /dev/null@@ -1,11 +0,0 @@-----title: Maps-description: Map-based Remotion examples.------# Maps--Planned examples:--- Mapbox line from A to B-- 3D buildingdiff --git a/packages/docs/examples/maps/mapbox-line-from-a-to-b.mdx b/packages/docs/examples/maps/mapbox-line-from-a-to-b.mdxdeleted file mode 100644index 25e4c9b088..0000000000--- a/packages/docs/examples/maps/mapbox-line-from-a-to-b.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Mapbox line from A to B-description: Animate a route line between two points on a map.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Mapbox line from A to B--<PlannedExample category="Maps" description="Animate a route line between two points on a map." />diff --git a/packages/docs/examples/motion-design-system/code-example.mdx b/packages/docs/examples/motion-design-system/code-example.mdxdeleted file mode 100644index 4d750a6c95..0000000000--- a/packages/docs/examples/motion-design-system/code-example.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Code example-description: Show a code snippet as a polished motion graphic.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Code example--<PlannedExample category="Motion design system" description="Show a code snippet as a polished motion graphic." />diff --git a/packages/docs/examples/motion-design-system/index.mdx b/packages/docs/examples/motion-design-system/index.mdxindex 0f838a3333..1a0d32d156 100644--- a/packages/docs/examples/motion-design-system/index.mdx+++ b/packages/docs/examples/motion-design-system/index.mdx@@ -5,7 +5,6 @@ description: Reusable motion design system examples for Remotion.# Motion design system-Planned examples:+Examples:-- Lower third-- Code example+- [Lower third](/examples/motion-design-system/lower-third/)diff --git a/packages/docs/examples/sport/index.mdx b/packages/docs/examples/sport/index.mdxdeleted file mode 100644index 5df3293408..0000000000--- a/packages/docs/examples/sport/index.mdx+++ /dev/null@@ -1,11 +0,0 @@-----title: Sport-description: Sports visualization examples for Remotion.------# Sport--Planned examples:--- Strava visualization-- Mapbox / Athlete's Eye demodiff --git a/packages/docs/examples/sport/mapbox-athletes-eye-demo.mdx b/packages/docs/examples/sport/mapbox-athletes-eye-demo.mdxdeleted file mode 100644index a3c3f6152f..0000000000--- a/packages/docs/examples/sport/mapbox-athletes-eye-demo.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Mapbox / Athlete's Eye demo-description: Show an athlete-centered map animation inspired by an Athlete's Eye view.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Mapbox / Athlete's Eye demo--<PlannedExample category="Sport" description="Show an athlete-centered map animation inspired by an Athlete's Eye view." />diff --git a/packages/docs/examples/sport/strava-visualization.mdx b/packages/docs/examples/sport/strava-visualization.mdxdeleted file mode 100644index 38c90c5d40..0000000000--- a/packages/docs/examples/sport/strava-visualization.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Strava visualization-description: Turn activity data into an animated sport visualization.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Strava visualization--<PlannedExample category="Sport" description="Turn activity data into an animated sport visualization." />diff --git a/packages/docs/examples/storytelling/bar-chart.mdx b/packages/docs/examples/storytelling/bar-chart.mdxdeleted file mode 100644index a1ac1a34b6..0000000000--- a/packages/docs/examples/storytelling/bar-chart.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Bar chart-description: Animate values in a simple chart that can be reused in explainers.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Bar chart--<PlannedExample category="Storytelling" description="Animate values in a simple chart that can be reused in explainers." />diff --git a/packages/docs/examples/storytelling/index.mdx b/packages/docs/examples/storytelling/index.mdxdeleted file mode 100644index 069f1cc430..0000000000--- a/packages/docs/examples/storytelling/index.mdx+++ /dev/null@@ -1,14 +0,0 @@-----title: Storytelling-description: Storytelling graphics examples for Remotion.------# Storytelling--Planned examples:--- Paper.js highlight-- News headline-- Bar chart-- Pie chart-- Number wheeldiff --git a/packages/docs/examples/storytelling/news-headline.mdx b/packages/docs/examples/storytelling/news-headline.mdxdeleted file mode 100644index 4b9f0b6781..0000000000--- a/packages/docs/examples/storytelling/news-headline.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: News headline-description: Animate a news-style headline for storytelling videos.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# News headline--<PlannedExample category="Storytelling" description="Animate a news-style headline for storytelling videos." />diff --git a/packages/docs/examples/storytelling/number-wheel.mdx b/packages/docs/examples/storytelling/number-wheel.mdxdeleted file mode 100644index 95746764fa..0000000000--- a/packages/docs/examples/storytelling/number-wheel.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Number wheel-description: Animate a changing number wheel for counters, stats, or rankings.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Number wheel--<PlannedExample category="Storytelling" description="Animate a changing number wheel for counters, stats, or rankings." />diff --git a/packages/docs/examples/storytelling/paper-js-highlight.mdx b/packages/docs/examples/storytelling/paper-js-highlight.mdxdeleted file mode 100644index 10b85473d4..0000000000--- a/packages/docs/examples/storytelling/paper-js-highlight.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Paper.js highlight-description: Highlight part of a scene with a hand-drawn or paper-like annotation.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Paper.js highlight--<PlannedExample category="Storytelling" description="Highlight part of a scene with a hand-drawn or paper-like annotation." />diff --git a/packages/docs/examples/storytelling/pie-chart.mdx b/packages/docs/examples/storytelling/pie-chart.mdxdeleted file mode 100644index a3afc4addc..0000000000--- a/packages/docs/examples/storytelling/pie-chart.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Pie chart-description: Animate a simple pie chart for visual storytelling.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Pie chart--<PlannedExample category="Storytelling" description="Animate a simple pie chart for visual storytelling." />diff --git a/packages/docs/examples/webgl/chromatic-aberration.mdx b/packages/docs/examples/webgl/chromatic-aberration.mdxdeleted file mode 100644index 510de99cfb..0000000000--- a/packages/docs/examples/webgl/chromatic-aberration.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Chromatic aberration-description: Apply a WebGL-style chromatic aberration effect.------import {PlannedExample} from '../../src/components/Examples/PlannedExample';--# Chromatic aberration--<PlannedExample category="WebGL" description="Apply a WebGL-style chromatic aberration effect." />diff --git a/packages/docs/examples/webgl/index.mdx b/packages/docs/examples/webgl/index.mdxdeleted file mode 100644index 48534e5ffb..0000000000--- a/packages/docs/examples/webgl/index.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: WebGL-description: WebGL examples for Remotion.------# WebGL--Planned examples:--- Chromatic aberrationdiff --git a/packages/docs/src/components/Examples/PlannedExample.tsx b/packages/docs/src/components/Examples/PlannedExample.tsxdeleted file mode 100644index 32f7d6f5ed..0000000000--- a/packages/docs/src/components/Examples/PlannedExample.tsx+++ /dev/null@@ -1,58 +0,0 @@-import React from 'react';--const container: React.CSSProperties = {- border: '1px solid var(--ifm-color-emphasis-300)',- borderRadius: 12,- padding: 16,- margin: '24px 0',- backgroundColor: 'var(--ifm-color-emphasis-100)',-};--const label: React.CSSProperties = {- fontWeight: 700,- marginBottom: 8,-};--export const PlannedExample: React.FC<{- readonly category: string;- readonly description: string;-}> = ({category, description}) => {- return (- <>- <p>{description}</p>-- <div style={container}>- <div style={label}>Planned example</div>- <div>- This page reserves a spot in the {category} category. The final- example should follow the shared example format.- </div>- </div>-- <h2>Preview</h2>- <p>- The implemented page should show a rendered preview, usually as a short- looping video or still image. It should not require the docs website to- bundle heavy example dependencies by default.- </p>-- <h2>Use it</h2>- <p>- The implemented page should provide a self-contained, copy-pastable- TypeScript React component where possible.- </p>-- <h2>Customize</h2>- <p>- The implemented page should explain the most important knobs, such as- timing, colors, text, dimensions, dependencies, or assets.- </p>-- <h2>Source</h2>- <p>- The implemented page should link to the source code and any required- assets.- </p>- </>- );-};