Skip to content

🎥 Make videos programmatically with React

reformat docs

Jonny Burger53f9ba81ffae
diff --git a/.prettierrc.js b/.prettierrc.js
new file mode 100644
index 0000000000..7129f6a51c
--- /dev/null
+++ b/.prettierrc.js
@@ -0,0 +1,14 @@
+module.exports = {
+ singleQuote: true,
+ bracketSpacing: false,
+ useTabs: true,
+ overrides: [
+ {
+ files: ["*.yml"],
+ options: {
+ singleQuote: false,
+ },
+ },
+ ],
+ plugins: [require.resolve("prettier-plugin-organize-imports")],
+};
diff --git a/packages/docs/.prettierrc.js b/packages/docs/.prettierrc.js
deleted file mode 100644
index 079276c4e8..0000000000
--- a/packages/docs/.prettierrc.js
+++ /dev/null
@@ -1,15 +0,0 @@
-module.exports = {
- singleQuote: false,
- bracketSpacing: true,
- useTabs: false,
- tabWidth: 2,
- overrides: [
- {
- files: ["*.yml"],
- options: {
- singleQuote: false,
- },
- },
- ],
- plugins: [require.resolve("prettier-plugin-organize-imports")],
-};
diff --git a/packages/docs/src/components/AboutUsHeader.module.css b/packages/docs/src/components/AboutUsHeader.module.css
index 474dd45337..d2cef65dba 100644
--- a/packages/docs/src/components/AboutUsHeader.module.css
+++ b/packages/docs/src/components/AboutUsHeader.module.css
@@ -1,22 +1,22 @@
.writeincss {
- flex-direction: row;
- display: flex;
- align-items: center;
+ flex-direction: row;
+ display: flex;
+ align-items: center;
}
.writeincsstitle {
- font-size: 4em;
- font-family: GTPlanar;
- font-weight: 700;
- line-height: 1.2;
- max-width: 1000px;
+ font-size: 4em;
+ font-family: GTPlanar;
+ font-weight: 700;
+ line-height: 1.2;
+ max-width: 1000px;
}
@media screen and (max-width: 900px) {
- .writeincss {
- flex-direction: column;
- }
- .writeincsstitle {
- font-size: 3.5em;
- }
+ .writeincss {
+ flex-direction: column;
+ }
+ .writeincsstitle {
+ font-size: 3.5em;
+ }
}
diff --git a/packages/docs/src/components/AboutUsHeader.tsx b/packages/docs/src/components/AboutUsHeader.tsx
index 25296d90c7..749cf927d1 100644
--- a/packages/docs/src/components/AboutUsHeader.tsx
+++ b/packages/docs/src/components/AboutUsHeader.tsx
@@ -1,21 +1,21 @@
-import React from "react";
-import styles from "./AboutUsHeader.module.css";
+import React from 'react';
+import styles from './AboutUsHeader.module.css';
export const AboutUsHeader: React.FC = () => {
- return (
- <div className={styles.writeincss}>
- <div style={{ flex: 1 }}>
- <h1 className={styles.writeincsstitle}>
- The programmatic video dream.
- </h1>
- <p>
- Remotion was born from a desire to bring the benefits that we know
- from programming - composability, version control, parametrization -
- into video editing. Started as a side project, we are now a company in
- Zurich, Switzerland and are pushing to combine the powers of video
- editing and programming!
- </p>
- </div>
- </div>
- );
+ return (
+ <div className={styles.writeincss}>
+ <div style={{flex: 1}}>
+ <h1 className={styles.writeincsstitle}>
+ The programmatic video dream.
+ </h1>
+ <p>
+ Remotion was born from a desire to bring the benefits that we know
+ from programming - composability, version control, parametrization -
+ into video editing. Started as a side project, we are now a company in
+ Zurich, Switzerland and are pushing to combine the powers of video
+ editing and programming!
+ </p>
+ </div>
+ </div>
+ );
};
diff --git a/packages/docs/src/components/AlsoAvailableAsVideo.tsx b/packages/docs/src/components/AlsoAvailableAsVideo.tsx
index 2d3d68f8e1..3b84a3d51a 100644
--- a/packages/docs/src/components/AlsoAvailableAsVideo.tsx
+++ b/packages/docs/src/components/AlsoAvailableAsVideo.tsx
@@ -1,98 +1,98 @@
-import BrowserOnly from "@docusaurus/BrowserOnly";
-import React, { useCallback } from "react";
-import { VideoPlayerWithControls } from "./VideoPlayerWithControls";
+import BrowserOnly from '@docusaurus/BrowserOnly';
+import React, {useCallback} from 'react';
+import {VideoPlayerWithControls} from './VideoPlayerWithControls';
const link: React.CSSProperties = {
- color: "inherit",
- all: "unset",
- display: "block",
- cursor: "pointer",
- width: "100%",
+ color: 'inherit',
+ all: 'unset',
+ display: 'block',
+ cursor: 'pointer',
+ width: '100%',
};
const container: React.CSSProperties = {
- background: "var(--ifm-color-emphasis-100)",
- borderRadius: 10,
- overflow: "hidden",
- marginBottom: 30,
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
+ background: 'var(--ifm-color-emphasis-100)',
+ borderRadius: 10,
+ overflow: 'hidden',
+ marginBottom: 30,
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'center',
};
const right: React.CSSProperties = {
- padding: 16,
- lineHeight: 1.5,
- display: "flex",
- flex: 1,
- flexDirection: "column",
- justifyContent: "center",
+ padding: 16,
+ lineHeight: 1.5,
+ display: 'flex',
+ flex: 1,
+ flexDirection: 'column',
+ justifyContent: 'center',
};
const icon: React.CSSProperties = {
- height: 40,
- marginLeft: 20,
+ height: 40,
+ marginLeft: 20,
};
const wouldYouRather: React.CSSProperties = {
- fontSize: ".9em",
+ fontSize: '.9em',
};
export const AlsoAvailableAsVideo: React.FC<{
- minutes: number;
- playbackId: string;
- title: string;
- thumb: string;
-}> = ({ minutes, title, thumb, playbackId }) => {
- const [showVideo, setShowVideo] = React.useState(false);
+ minutes: number;
+ playbackId: string;
+ title: string;
+ thumb: string;
+}> = ({minutes, title, thumb, playbackId}) => {
+ const [showVideo, setShowVideo] = React.useState(false);
- const onClick = useCallback(() => {
- setShowVideo(true);
- }, []);
+ const onClick = useCallback(() => {
+ setShowVideo(true);
+ }, []);
- if (showVideo) {
- return (
- <div style={{ marginBottom: 30 }}>
- <BrowserOnly>
- {() => (
- <VideoPlayerWithControls
- playbackId={playbackId}
- poster={thumb}
- onError={(error) => {
- console.log(error);
- }}
- onLoaded={() => undefined}
- onSize={() => undefined}
- autoPlay
- />
- )}
- </BrowserOnly>
- </div>
- );
- }
+ if (showVideo) {
+ return (
+ <div style={{marginBottom: 30}}>
+ <BrowserOnly>
+ {() => (
+ <VideoPlayerWithControls
+ playbackId={playbackId}
+ poster={thumb}
+ onError={(error) => {
+ console.log(error);
+ }}
+ onLoaded={() => undefined}
+ onSize={() => undefined}
+ autoPlay
+ />
+ )}
+ </BrowserOnly>
+ </div>
+ );
+ }
- return (
- <button type="button" style={link} onClick={onClick}>
- <div style={container}>
- <svg
- style={icon}
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 512 512"
- >
- <path
- fill="currentcolor"
- d="M512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9V344c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"
- />
- </svg>
- <div style={right}>
- <div style={wouldYouRather}>
- Also available as a {minutes}min video
- </div>
- <div>
- <strong>{title}</strong>
- </div>
- </div>
- </div>
- </button>
- );
+ return (
+ <button type="button" style={link} onClick={onClick}>
+ <div style={container}>
+ <svg
+ style={icon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill="currentcolor"
+ d="M512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9V344c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"
+ />
+ </svg>
+ <div style={right}>
+ <div style={wouldYouRather}>
+ Also available as a {minutes}min video
+ </div>
+ <div>
+ <strong>{title}</strong>
+ </div>
+ </div>
+ </div>
+ </button>
+ );
};
diff --git a/packages/docs/src/components/AvailableFrom.tsx b/packages/docs/src/components/AvailableFrom.tsx
index c68e9ed0ae..13ecb248de 100644
--- a/packages/docs/src/components/AvailableFrom.tsx
+++ b/packages/docs/src/components/AvailableFrom.tsx
@@ -1,52 +1,52 @@
-import React from "react";
-import { NoReactInternals } from "remotion/no-react";
+import React from 'react';
+import {NoReactInternals} from 'remotion/no-react';
const link: React.CSSProperties = {
- textDecoration: "none",
- fontSize: 16,
- marginLeft: 8,
+ textDecoration: 'none',
+ fontSize: 16,
+ marginLeft: 8,
};
const label: React.CSSProperties = {
- fontSize: "0.9em",
- border: "1px solid var(--ifm-color-emphasis-300)",
- color: "var(--ifm-color-emphasis-600)",
- fontFamily: "GTPlanar",
- paddingLeft: 6,
- paddingRight: 6,
- borderRadius: 3,
- paddingTop: 2,
- paddingBottom: 2,
+ fontSize: '0.9em',
+ border: '1px solid var(--ifm-color-emphasis-300)',
+ color: 'var(--ifm-color-emphasis-600)',
+ fontFamily: 'GTPlanar',
+ paddingLeft: 6,
+ paddingRight: 6,
+ borderRadius: 3,
+ paddingTop: 2,
+ paddingBottom: 2,
};
export const AvailableFrom: React.FC<{
- readonly v: string;
-}> = ({ v }) => {
- if (!v) {
- throw new Error("v is required");
- }
+ readonly v: string;
+}> = ({v}) => {
+ if (!v) {
+ throw new Error('v is required');
+ }
- if (v.startsWith("v")) {
- throw new Error("do not include v");
- }
+ if (v.startsWith('v')) {
+ throw new Error('do not include v');
+ }
- return (
- <a
- target={"_blank"}
- style={link}
- href={`https://github.com/remotion-dev/remotion/releases/v${v}`}
- >
- <span style={label} title={`Added in v${v}`}>
- v{v}
- </span>
- </a>
- );
+ return (
+ <a
+ target={'_blank'}
+ style={link}
+ href={`https://github.com/remotion-dev/remotion/releases/v${v}`}
+ >
+ <span style={label} title={`Added in v${v}`}>
+ v{v}
+ </span>
+ </a>
+ );
};
export const MinNodeVersion: React.FC = () => {
- return <span>{NoReactInternals.MIN_NODE_VERSION}</span>;
+ return <span>{NoReactInternals.MIN_NODE_VERSION}</span>;
};
export const MinBunVersion: React.FC = () => {
- return <span>{NoReactInternals.MIN_BUN_VERSION}</span>;
+ return <span>{NoReactInternals.MIN_BUN_VERSION}</span>;
};
diff --git a/packages/docs/src/components/BackButton.tsx b/packages/docs/src/components/BackButton.tsx
index 8c2299d007..1d1aa629a1 100644
--- a/packages/docs/src/components/BackButton.tsx
+++ b/packages/docs/src/components/BackButton.tsx
@@ -1,38 +1,38 @@
-import React from "react";
+import React from 'react';
export const BackButton: React.FC<{
- color: string;
- text: string;
- link: string;
-}> = ({ color, text, link }) => {
- const backLink: React.CSSProperties = {
- color,
- fontFamily: "GTPlanar",
- fontWeight: 500,
- display: "inline-flex",
- justifyContent: "center",
- alignItems: "center",
- };
+ color: string;
+ text: string;
+ link: string;
+}> = ({color, text, link}) => {
+ const backLink: React.CSSProperties = {
+ color,
+ fontFamily: 'GTPlanar',
+ fontWeight: 500,
+ display: 'inline-flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ };
- const backIcon: React.CSSProperties = {
- height: 20,
- color,
- marginRight: 15,
- display: "inline-block",
- };
- return (
- <a style={backLink} href={link}>
- <svg
- style={backIcon}
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 448 512"
- >
- <path
- fill="currentcolor"
- d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"
- />
- </svg>{" "}
- {text}
- </a>
- );
+ const backIcon: React.CSSProperties = {
+ height: 20,
+ color,
+ marginRight: 15,
+ display: 'inline-block',
+ };
+ return (
+ <a style={backLink} href={link}>
+ <svg
+ style={backIcon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ >
+ <path
+ fill="currentcolor"
+ d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"
+ />
+ </svg>{' '}
+ {text}
+ </a>
+ );
};
diff --git a/packages/docs/src/components/ChooseTemplate.tsx b/packages/docs/src/components/ChooseTemplate.tsx
index 627526a074..41022396ad 100644
--- a/packages/docs/src/components/ChooseTemplate.tsx
+++ b/packages/docs/src/components/ChooseTemplate.tsx
@@ -1,58 +1,58 @@
-import Link from "@docusaurus/Link";
-import { CreateVideoInternals } from "create-video";
-import React from "react";
+import Link from '@docusaurus/Link';
+import {CreateVideoInternals} from 'create-video';
+import React from 'react';
-import { IconForTemplate } from "./IconForTemplate";
-import { MoreTemplatesButton } from "./MoreTemplatesButton";
-import { TemplateIcon } from "./TemplateIcon";
+import {IconForTemplate} from './IconForTemplate';
+import {MoreTemplatesButton} from './MoreTemplatesButton';
+import {TemplateIcon} from './TemplateIcon';
export const ChooseTemplate: React.FC = () => {
- return (
- <div
- style={{
- display: "flex",
- flexDirection: "column",
- }}
- >
- <div
- style={{
- position: "relative",
- textAlign: "center",
- }}
- >
- <div
- className="no-scroll-bar"
- style={{
- backgroundColor: "var(--background)",
- display: "inline-flex",
- flexDirection: "row",
- justifyContent: "space-around",
- boxShadow: "0 0 4px 0px var(--ifm-color-emphasis-200)",
- borderRadius: 50,
- alignItems: "center",
- padding: 8,
- width: "100%",
- maxWidth: "550px",
- }}
- >
- {CreateVideoInternals.FEATURED_TEMPLATES.filter(
- (f) => f.featuredOnHomePage,
- ).map((template) => {
- return (
- <Link
- key={template.cliId}
- style={{ textDecoration: "none" }}
- to={`/templates/${template.cliId}`}
- >
- <TemplateIcon label={template.featuredOnHomePage}>
- <IconForTemplate scale={0.7} template={template} />
- </TemplateIcon>
- </Link>
- );
- })}
- <MoreTemplatesButton />
- </div>
- </div>
- </div>
- );
+ return (
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'column',
+ }}
+ >
+ <div
+ style={{
+ position: 'relative',
+ textAlign: 'center',
+ }}
+ >
+ <div
+ className="no-scroll-bar"
+ style={{
+ backgroundColor: 'var(--background)',
+ display: 'inline-flex',
+ flexDirection: 'row',
+ justifyContent: 'space-around',
+ boxShadow: '0 0 4px 0px var(--ifm-color-emphasis-200)',
+ borderRadius: 50,
+ alignItems: 'center',
+ padding: 8,
+ width: '100%',
+ maxWidth: '550px',
+ }}
+ >
+ {CreateVideoInternals.FEATURED_TEMPLATES.filter(
+ (f) => f.featuredOnHomePage,
+ ).map((template) => {
+ return (
+ <Link
+ key={template.cliId}
+ style={{textDecoration: 'none'}}
+ to={`/templates/${template.cliId}`}
+ >
+ <TemplateIcon label={template.featuredOnHomePage}>
+ <IconForTemplate scale={0.7} template={template} />
+ </TemplateIcon>
+ </Link>
+ );
+ })}
+ <MoreTemplatesButton />
+ </div>
+ </div>
+ </div>
+ );
};
diff --git a/packages/docs/src/components/CommandCopyButton.tsx b/packages/docs/src/components/CommandCopyButton.tsx
index f33f8a4fce..39afb3c056 100644
--- a/packages/docs/src/components/CommandCopyButton.tsx
+++ b/packages/docs/src/components/CommandCopyButton.tsx
@@ -1,33 +1,33 @@
-import React from "react";
+import React from 'react';
export const CommandCopyButton: React.FC<{
- copied: boolean;
-}> = ({ copied }) => {
- return copied ? (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 448 512"
- style={{
- height: 20,
- }}
- >
- <path
- fill="currentColor"
- d="M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"
- />
- </svg>
- ) : (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 384 512"
- style={{
- height: 20,
- }}
- >
- <path
- fill="currentColor"
- d="M320 64h-49.61C262.1 27.48 230.7 0 192 0S121 27.48 113.6 64H64C28.65 64 0 92.66 0 128v320c0 35.34 28.65 64 64 64h256c35.35 0 64-28.66 64-64V128C384 92.66 355.3 64 320 64zM192 48c13.23 0 24 10.77 24 24S205.2 96 192 96S168 85.23 168 72S178.8 48 192 48zM336 448c0 8.82-7.178 16-16 16H64c-8.822 0-16-7.18-16-16V128c0-8.82 7.178-16 16-16h18.26C80.93 117.1 80 122.4 80 128v16C80 152.8 87.16 160 96 160h192c8.836 0 16-7.164 16-16V128c0-5.559-.9316-10.86-2.264-16H320c8.822 0 16 7.18 16 16V448z"
- />
- </svg>
- );
+ copied: boolean;
+}> = ({copied}) => {
+ return copied ? (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ style={{
+ height: 20,
+ }}
+ >
+ <path
+ fill="currentColor"
+ d="M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"
+ />
+ </svg>
+ ) : (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 384 512"
+ style={{
+ height: 20,
+ }}
+ >
+ <path
+ fill="currentColor"
+ d="M320 64h-49.61C262.1 27.48 230.7 0 192 0S121 27.48 113.6 64H64C28.65 64 0 92.66 0 128v320c0 35.34 28.65 64 64 64h256c35.35 0 64-28.66 64-64V128C384 92.66 355.3 64 320 64zM192 48c13.23 0 24 10.77 24 24S205.2 96 192 96S168 85.23 168 72S178.8 48 192 48zM336 448c0 8.82-7.178 16-16 16H64c-8.822 0-16-7.18-16-16V128c0-8.82 7.178-16 16-16h18.26C80.93 117.1 80 122.4 80 128v16C80 152.8 87.16 160 96 160h192c8.836 0 16-7.164 16-16V128c0-5.559-.9316-10.86-2.264-16H320c8.822 0 16 7.18 16 16V448z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/ContactUsHeader.module.css b/packages/docs/src/components/ContactUsHeader.module.css
index 474dd45337..d2cef65dba 100644
--- a/packages/docs/src/components/ContactUsHeader.module.css
+++ b/packages/docs/src/components/ContactUsHeader.module.css
@@ -1,22 +1,22 @@
.writeincss {
- flex-direction: row;
- display: flex;
- align-items: center;
+ flex-direction: row;
+ display: flex;
+ align-items: center;
}
.writeincsstitle {
- font-size: 4em;
- font-family: GTPlanar;
- font-weight: 700;
- line-height: 1.2;
- max-width: 1000px;
+ font-size: 4em;
+ font-family: GTPlanar;
+ font-weight: 700;
+ line-height: 1.2;
+ max-width: 1000px;
}
@media screen and (max-width: 900px) {
- .writeincss {
- flex-direction: column;
- }
- .writeincsstitle {
- font-size: 3.5em;
- }
+ .writeincss {
+ flex-direction: column;
+ }
+ .writeincsstitle {
+ font-size: 3.5em;
+ }
}
diff --git a/packages/docs/src/components/ContactUsHeader.tsx b/packages/docs/src/components/ContactUsHeader.tsx
index 618bcd9c29..38429b31de 100644
--- a/packages/docs/src/components/ContactUsHeader.tsx
+++ b/packages/docs/src/components/ContactUsHeader.tsx
@@ -1,23 +1,23 @@
-import React from "react";
-import styles from "./AboutUsHeader.module.css";
+import React from 'react';
+import styles from './AboutUsHeader.module.css';
export const ContactUsHeader: React.FC = () => {
- return (
- <div className={styles.writeincss}>
- <div style={{ flex: 1 }}>
- <h1 className={styles.writeincsstitle}>Contact us</h1>
- <p>
- We are here to help you with any questions you may have about
- licensing and to help you determine if Remotion is the right fit for
- your project.
- </p>
- <p>
- If you have specific requirements, please let us know via email.
- Alternatively, you can also schedule a video call with us and include
- your questions in the booking description. Please note that we do not
- provide technical support via email or evaluation call.
- </p>
- </div>
- </div>
- );
+ return (
+ <div className={styles.writeincss}>
+ <div style={{flex: 1}}>
+ <h1 className={styles.writeincsstitle}>Contact us</h1>
+ <p>
+ We are here to help you with any questions you may have about
+ licensing and to help you determine if Remotion is the right fit for
+ your project.
+ </p>
+ <p>
+ If you have specific requirements, please let us know via email.
+ Alternatively, you can also schedule a video call with us and include
+ your questions in the booking description. Please note that we do not
+ provide technical support via email or evaluation call.
+ </p>
+ </div>
+ </div>
+ );
};
diff --git a/packages/docs/src/components/Credits.tsx b/packages/docs/src/components/Credits.tsx
index 45d876192f..c2d56ffc4d 100644
--- a/packages/docs/src/components/Credits.tsx
+++ b/packages/docs/src/components/Credits.tsx
@@ -1,127 +1,127 @@
-import React from "react";
-import "./credits.css";
+import React from 'react';
+import './credits.css';
const cardContainerStyle: React.CSSProperties = {
- display: "flex",
- flexWrap: "wrap",
- justifyContent: "flex-start",
+ display: 'flex',
+ flexWrap: 'wrap',
+ justifyContent: 'flex-start',
};
const avatarStyle: React.CSSProperties = {
- width: 70,
- height: 70,
- borderRadius: "50%",
- marginRight: "20px",
- flexShrink: 0,
+ width: 70,
+ height: 70,
+ borderRadius: '50%',
+ marginRight: '20px',
+ flexShrink: 0,
};
const linkStyle: React.CSSProperties = {
- textDecoration: "none",
- fontSize: "0.9em",
- color: "#000000",
+ textDecoration: 'none',
+ fontSize: '0.9em',
+ color: '#000000',
};
interface Contributor {
- username: string;
- contribution: string;
+ username: string;
+ contribution: string;
}
interface CreditsProps {
- contributors: Contributor[];
+ contributors: Contributor[];
}
const ContributorComp: React.FC<{
- contributor: Contributor;
-}> = ({ contributor }) => {
- const cardStyle: React.CSSProperties = {
- width: "300px",
- overflow: "hidden",
- display: "flex",
- color: "var(--text-color)",
- alignItems: "center",
- marginTop: 5,
- marginBottom: 5,
- };
+ contributor: Contributor;
+}> = ({contributor}) => {
+ const cardStyle: React.CSSProperties = {
+ width: '300px',
+ overflow: 'hidden',
+ display: 'flex',
+ color: 'var(--text-color)',
+ alignItems: 'center',
+ marginTop: 5,
+ marginBottom: 5,
+ };
- if (!contributor.username) {
- throw new Error("Contributor username is required");
- }
+ if (!contributor.username) {
+ throw new Error('Contributor username is required');
+ }
- if (!contributor.contribution) {
- throw new Error("Contributor contribution is required");
- }
+ if (!contributor.contribution) {
+ throw new Error('Contributor contribution is required');
+ }
- return (
- <a
- href={`https://github.com/${contributor.username}`}
- target="_blank"
- rel="noopener noreferrer"
- className="credits-contributors"
- style={{ ...linkStyle, color: "var(--text-color)" }}
- >
- <div key={contributor.username} style={cardStyle}>
- <img
- src={`https://github.com/${contributor.username}.png`}
- alt={contributor.username}
- style={avatarStyle}
- />
- <div
- style={{
- color: "var(--text-color)",
- display: "flex",
- flexDirection: "column",
- }}
- >
- <strong>{contributor.username}</strong>
- <div
- style={{
- color: "var(--text-color)",
- lineHeight: 1.4,
- }}
- >
- {contributor.contribution}
- </div>
- </div>
- </div>
- </a>
- );
+ return (
+ <a
+ href={`https://github.com/${contributor.username}`}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="credits-contributors"
+ style={{...linkStyle, color: 'var(--text-color)'}}
+ >
+ <div key={contributor.username} style={cardStyle}>
+ <img
+ src={`https://github.com/${contributor.username}.png`}
+ alt={contributor.username}
+ style={avatarStyle}
+ />
+ <div
+ style={{
+ color: 'var(--text-color)',
+ display: 'flex',
+ flexDirection: 'column',
+ }}
+ >
+ <strong>{contributor.username}</strong>
+ <div
+ style={{
+ color: 'var(--text-color)',
+ lineHeight: 1.4,
+ }}
+ >
+ {contributor.contribution}
+ </div>
+ </div>
+ </div>
+ </a>
+ );
};
const titleContainer: React.CSSProperties = {
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
- marginBottom: 15,
- marginTop: 15,
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'center',
+ marginBottom: 15,
+ marginTop: 15,
};
const titleLine: React.CSSProperties = {
- height: 1,
- backgroundColor: "var(--light-text-color)",
- flex: 1,
+ height: 1,
+ backgroundColor: 'var(--light-text-color)',
+ flex: 1,
};
const title: React.CSSProperties = {
- marginRight: 10,
- fontFamily: "GTPlanar",
- color: "var(--light-text-color)",
+ marginRight: 10,
+ fontFamily: 'GTPlanar',
+ color: 'var(--light-text-color)',
};
-export const Credits: React.FC<CreditsProps> = ({ contributors }) => {
- return (
- <div>
- <div style={titleContainer}>
- <div style={title}>CONTRIBUTORS</div>
- <div style={titleLine} />
- </div>
- <div style={cardContainerStyle}>
- {contributors.map((contributor) => (
- <ContributorComp
- key={contributor.username}
- contributor={contributor}
- />
- ))}
- </div>
- </div>
- );
+export const Credits: React.FC<CreditsProps> = ({contributors}) => {
+ return (
+ <div>
+ <div style={titleContainer}>
+ <div style={title}>CONTRIBUTORS</div>
+ <div style={titleLine} />
+ </div>
+ <div style={cardContainerStyle}>
+ {contributors.map((contributor) => (
+ <ContributorComp
+ key={contributor.username}
+ contributor={contributor}
+ />
+ ))}
+ </div>
+ </div>
+ );
};
diff --git a/packages/docs/src/components/DoMoreHero/3d-svg.ts b/packages/docs/src/components/DoMoreHero/3d-svg.ts
index 03fc739a6d..0aa9bc893e 100644
--- a/packages/docs/src/components/DoMoreHero/3d-svg.ts
+++ b/packages/docs/src/components/DoMoreHero/3d-svg.ts
@@ -1,59 +1,59 @@
-import type { Vector4D } from "./matrix";
+import type {Vector4D} from './matrix';
export type ThreeDReducedInstruction =
- | {
- type: "M";
- point: Vector4D;
- }
- | {
- type: "L";
- point: Vector4D;
- }
- | {
- type: "C";
- cp1: Vector4D;
- cp2: Vector4D;
- point: Vector4D;
- }
- | {
- type: "Q";
- cp: Vector4D;
- point: Vector4D;
- }
- | {
- type: "Z";
- point: Vector4D;
- };
+ | {
+ type: 'M';
+ point: Vector4D;
+ }
+ | {
+ type: 'L';
+ point: Vector4D;
+ }
+ | {
+ type: 'C';
+ cp1: Vector4D;
+ cp2: Vector4D;
+ point: Vector4D;
+ }
+ | {
+ type: 'Q';
+ cp: Vector4D;
+ point: Vector4D;
+ }
+ | {
+ type: 'Z';
+ point: Vector4D;
+ };
const serializeThreeDReducedInstruction = (
- instruction: ThreeDReducedInstruction,
+ instruction: ThreeDReducedInstruction,
): string => {
- if (instruction.type === "M") {
- return `M ${instruction.point[0]} ${instruction.point[1]}`;
- }
+ if (instruction.type === 'M') {
+ return `M ${instruction.point[0]} ${instruction.point[1]}`;
+ }
- if (instruction.type === "L") {
- return `L ${instruction.point[0]} ${instruction.point[1]}`;
- }
+ if (instruction.type === 'L') {
+ return `L ${instruction.point[0]} ${instruction.point[1]}`;
+ }
- if (instruction.type === "C") {
- return `C ${instruction.cp1[0]} ${instruction.cp1[1]} ${instruction.cp2[0]} ${instruction.cp2[1]} ${instruction.point[0]} ${instruction.point[1]}`;
- }
+ if (instruction.type === 'C') {
+ return `C ${instruction.cp1[0]} ${instruction.cp1[1]} ${instruction.cp2[0]} ${instruction.cp2[1]} ${instruction.point[0]} ${instruction.point[1]}`;
+ }
- if (instruction.type === "Q") {
- return `Q ${instruction.cp[0]} ${instruction.cp[1]} ${instruction.point[0]} ${instruction.point[1]}`;
- }
+ if (instruction.type === 'Q') {
+ return `Q ${instruction.cp[0]} ${instruction.cp[1]} ${instruction.point[0]} ${instruction.point[1]}`;
+ }
- if (instruction.type === "Z") {
- return "Z";
- }
+ if (instruction.type === 'Z') {
+ return 'Z';
+ }
- throw new Error("Unknown instruction type");
+ throw new Error('Unknown instruction type');
};
export const threeDIntoSvgPath = (
- instructions: ThreeDReducedInstruction[],
+ instructions: ThreeDReducedInstruction[],
): string =>
- instructions
- .map((instruction) => serializeThreeDReducedInstruction(instruction))
- .join(" ");
+ instructions
+ .map((instruction) => serializeThreeDReducedInstruction(instruction))
+ .join(' ');
diff --git a/packages/docs/src/components/DoMoreHero/DoMoreHero.tsx b/packages/docs/src/components/DoMoreHero/DoMoreHero.tsx
index e115fa84b2..0d0fbb8066 100644
--- a/packages/docs/src/components/DoMoreHero/DoMoreHero.tsx
+++ b/packages/docs/src/components/DoMoreHero/DoMoreHero.tsx
@@ -1,166 +1,166 @@
-import { useColorMode } from "@docusaurus/theme-common";
-import { getBoundingBox, parsePath, resetPath } from "@remotion/paths";
-import { Player } from "@remotion/player";
-import { makeTriangle } from "@remotion/shapes";
-import React, { useMemo } from "react";
+import {useColorMode} from '@docusaurus/theme-common';
+import {getBoundingBox, parsePath, resetPath} from '@remotion/paths';
+import {Player} from '@remotion/player';
+import {makeTriangle} from '@remotion/shapes';
+import React, {useMemo} from 'react';
import {
- AbsoluteFill,
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
-import { useMobileLayout } from "../../helpers/mobile-layout";
-import { Faces } from "./Faces";
-import { transformElement } from "./element";
-import { extrudeElement } from "./join-inbetween-tiles";
+ AbsoluteFill,
+ interpolate,
+ spring,
+ useCurrentFrame,
+ useVideoConfig,
+} from 'remotion';
+import {useMobileLayout} from '../../helpers/mobile-layout';
+import {Faces} from './Faces';
+import {transformElement} from './element';
+import {extrudeElement} from './join-inbetween-tiles';
import {
- rotateX,
- rotateY,
- rotateZ,
- scaled,
- translateX,
- translateY,
- translateZ,
-} from "./matrix";
-import styles from "./more.module.css";
+ rotateX,
+ rotateY,
+ rotateZ,
+ scaled,
+ translateX,
+ translateY,
+ translateZ,
+} from './matrix';
+import styles from './more.module.css';
const InFrameLogo: React.FC<{
- readonly background: string;
- readonly dark: boolean;
-}> = ({ background, dark }) => {
- const { width: bBoxWidth, height: bBoxHeight, fps } = useVideoConfig();
- const viewBox = [-bBoxWidth / 2, -bBoxHeight / 2, bBoxWidth, bBoxHeight].join(
- " ",
- );
- const frame = useCurrentFrame();
+ readonly background: string;
+ readonly dark: boolean;
+}> = ({background, dark}) => {
+ const {width: bBoxWidth, height: bBoxHeight, fps} = useVideoConfig();
+ const viewBox = [-bBoxWidth / 2, -bBoxHeight / 2, bBoxWidth, bBoxHeight].join(
+ ' ',
+ );
+ const frame = useCurrentFrame();
- const zoomIn = (Math.sin(frame / 100) + 1) * 0.2;
+ const zoomIn = (Math.sin(frame / 100) + 1) * 0.2;
- const delayedFrame = Math.max(frame - 80, 0);
+ const delayedFrame = Math.max(frame - 80, 0);
- const paths = new Array(3).fill(true).map((_, i) => {
- const triangle = makeTriangle({
- direction: "right",
- length: 1500 + i * 675,
- edgeRoundness: 0.71,
- });
- const path = resetPath(triangle.path);
- const parsed = parsePath(path);
+ const paths = new Array(3).fill(true).map((_, i) => {
+ const triangle = makeTriangle({
+ direction: 'right',
+ length: 1500 + i * 675,
+ edgeRoundness: 0.71,
+ });
+ const path = resetPath(triangle.path);
+ const parsed = parsePath(path);
- const boundingBox = getBoundingBox(path);
- const width = boundingBox.x2 - boundingBox.x1;
- const height = boundingBox.y2 - boundingBox.y1;
+ const boundingBox = getBoundingBox(path);
+ const width = boundingBox.x2 - boundingBox.x1;
+ const height = boundingBox.y2 - boundingBox.y1;
- const depth = 20 * 7.5;
- const spread =
- depth +
- (Math.sin(frame / 200) +
- (1 +
- spring({
- frame,
- fps,
- config: {
- damping: 200,
- },
- durationInFrames: 200,
- delay: 80,
- }))) *
- 500;
+ const depth = 20 * 7.5;
+ const spread =
+ depth +
+ (Math.sin(frame / 200) +
+ (1 +
+ spring({
+ frame,
+ fps,
+ config: {
+ damping: 200,
+ },
+ durationInFrames: 200,
+ delay: 80,
+ }))) *
+ 500;
- const darkColor = i === 2 ? "#bbb" : i === 1 ? "#ddd" : "#fff";
- const color = i === 2 ? "#E9F3FD" : i === 1 ? "#C1DBF9" : "#0b84f3";
+ const darkColor = i === 2 ? '#bbb' : i === 1 ? '#ddd' : '#fff';
+ const color = i === 2 ? '#E9F3FD' : i === 1 ? '#C1DBF9' : '#0b84f3';
- const actualColor = dark ? darkColor : color;
+ const actualColor = dark ? darkColor : color;
- const extruded = extrudeElement({
- backFaceColor: actualColor,
- sideColor: "black",
- frontFaceColor: actualColor,
- depth,
- points: parsed,
- strokeWidth: 20,
- description: `triangle-${i}`,
- strokeColor: "black",
- });
- const projected = transformElement(extruded, [
- translateZ(spread * i - spread),
- translateX(-width / 2),
- translateY(-height / 2 + 20),
- rotateX(-(i * delayedFrame) / 300),
- rotateY(delayedFrame / 100),
- rotateZ(delayedFrame / 100),
- scaled(0.3 + zoomIn),
- ]);
+ const extruded = extrudeElement({
+ backFaceColor: actualColor,
+ sideColor: 'black',
+ frontFaceColor: actualColor,
+ depth,
+ points: parsed,
+ strokeWidth: 20,
+ description: `triangle-${i}`,
+ strokeColor: 'black',
+ });
+ const projected = transformElement(extruded, [
+ translateZ(spread * i - spread),
+ translateX(-width / 2),
+ translateY(-height / 2 + 20),
+ rotateX(-(i * delayedFrame) / 300),
+ rotateY(delayedFrame / 100),
+ rotateZ(delayedFrame / 100),
+ scaled(0.3 + zoomIn),
+ ]);
- return projected;
- });
+ return projected;
+ });
- return (
- <AbsoluteFill
- style={{
- backgroundColor: background,
- }}
- >
- <svg
- viewBox={viewBox}
- style={{
- overflow: "visible",
- opacity: interpolate(frame, [0, 70], [0, 1]),
- }}
- >
- <Faces elements={paths.reverse()} />
- </svg>
- </AbsoluteFill>
- );
+ return (
+ <AbsoluteFill
+ style={{
+ backgroundColor: background,
+ }}
+ >
+ <svg
+ viewBox={viewBox}
+ style={{
+ overflow: 'visible',
+ opacity: interpolate(frame, [0, 70], [0, 1]),
+ }}
+ >
+ <Faces elements={paths.reverse()} />
+ </svg>
+ </AbsoluteFill>
+ );
};
export const DoMoreHero: React.FC = () => {
- const mobile = useMobileLayout();
- const theme = useColorMode();
+ const mobile = useMobileLayout();
+ const theme = useColorMode();
- const dimensions = mobile
- ? {
- width: 1080 * 2,
- height: 1920 * 0.8,
- }
- : {
- width: 1920 * 2,
- height: 1080 * 1.4,
- };
+ const dimensions = mobile
+ ? {
+ width: 1080 * 2,
+ height: 1920 * 0.8,
+ }
+ : {
+ width: 1920 * 2,
+ height: 1080 * 1.4,
+ };
- const inputProps = useMemo(() => {
- return { dark: theme.colorMode === "dark" };
- }, [theme.colorMode]);
+ const inputProps = useMemo(() => {
+ return {dark: theme.colorMode === 'dark'};
+ }, [theme.colorMode]);
- return (
- <div
- style={{
- position: "relative",
- }}
- >
- <Player
- component={InFrameLogo}
- compositionWidth={dimensions.width}
- compositionHeight={dimensions.height}
- durationInFrames={100000}
- fps={30}
- loop
- autoPlay
- style={{
- width: "100%",
- }}
- inputProps={inputProps}
- />
- <div
- className={styles.gradient}
- style={{
- height: "20vw",
- marginTop: "-20vw",
- width: "100%",
- position: "absolute",
- }}
- />
- </div>
- );
+ return (
+ <div
+ style={{
+ position: 'relative',
+ }}
+ >
+ <Player
+ component={InFrameLogo}
+ compositionWidth={dimensions.width}
+ compositionHeight={dimensions.height}
+ durationInFrames={100000}
+ fps={30}
+ loop
+ autoPlay
+ style={{
+ width: '100%',
+ }}
+ inputProps={inputProps}
+ />
+ <div
+ className={styles.gradient}
+ style={{
+ height: '20vw',
+ marginTop: '-20vw',
+ width: '100%',
+ position: 'absolute',
+ }}
+ />
+ </div>
+ );
};
diff --git a/packages/docs/src/components/DoMoreHero/Face.tsx b/packages/docs/src/components/DoMoreHero/Face.tsx
index 04a6165c7b..d73668b068 100644
--- a/packages/docs/src/components/DoMoreHero/Face.tsx
+++ b/packages/docs/src/components/DoMoreHero/Face.tsx
@@ -1,59 +1,59 @@
-import React, { useState } from "react";
-import { random } from "remotion";
-import type { ThreeDReducedInstruction } from "./3d-svg";
-import { threeDIntoSvgPath } from "./3d-svg";
+import React, {useState} from 'react';
+import {random} from 'remotion';
+import type {ThreeDReducedInstruction} from './3d-svg';
+import {threeDIntoSvgPath} from './3d-svg';
export type FaceSVGProps = {
- strokeLinecap?: React.SVGAttributes<SVGPathElement>["strokeLinecap"];
- strokeMiterlimit?: React.SVGAttributes<SVGPathElement>["strokeMiterlimit"];
+ strokeLinecap?: React.SVGAttributes<SVGPathElement>['strokeLinecap'];
+ strokeMiterlimit?: React.SVGAttributes<SVGPathElement>['strokeMiterlimit'];
};
export const Face: React.FC<
- {
- points: ThreeDReducedInstruction[];
- color: string;
- strokeColor: string;
- strokeWidth: number;
- crispEdges: boolean;
- } & FaceSVGProps
+ {
+ points: ThreeDReducedInstruction[];
+ color: string;
+ strokeColor: string;
+ strokeWidth: number;
+ crispEdges: boolean;
+ } & FaceSVGProps
> = ({
- color,
- points,
- strokeColor,
- strokeWidth,
- strokeMiterlimit,
- strokeLinecap,
- crispEdges,
+ color,
+ points,
+ strokeColor,
+ strokeWidth,
+ strokeMiterlimit,
+ strokeLinecap,
+ crispEdges,
}) => {
- const [id] = useState(() => random(null).toString().replace(".", ""));
- const d = threeDIntoSvgPath(points);
+ const [id] = useState(() => random(null).toString().replace('.', ''));
+ const d = threeDIntoSvgPath(points);
- return (
- <>
- <defs>
- {strokeWidth ? (
- <mask id={id}>
- <path
- strokeLinecap={strokeLinecap}
- shapeRendering={crispEdges ? "crispEdges" : undefined}
- strokeMiterlimit={strokeMiterlimit}
- strokeWidth={strokeWidth}
- d={d}
- fill="white"
- />
- </mask>
- ) : null}
- </defs>
- <path
- d={d}
- fill={color}
- mask={strokeWidth ? `url(#${id})` : undefined}
- stroke={strokeColor}
- strokeMiterlimit={strokeMiterlimit}
- shapeRendering={crispEdges ? "crispEdges" : undefined}
- strokeLinecap={strokeLinecap}
- strokeWidth={strokeWidth}
- />
- </>
- );
+ return (
+ <>
+ <defs>
+ {strokeWidth ? (
+ <mask id={id}>
+ <path
+ strokeLinecap={strokeLinecap}
+ shapeRendering={crispEdges ? 'crispEdges' : undefined}
+ strokeMiterlimit={strokeMiterlimit}
+ strokeWidth={strokeWidth}
+ d={d}
+ fill="white"
+ />
+ </mask>
+ ) : null}
+ </defs>
+ <path
+ d={d}
+ fill={color}
+ mask={strokeWidth ? `url(#${id})` : undefined}
+ stroke={strokeColor}
+ strokeMiterlimit={strokeMiterlimit}
+ shapeRendering={crispEdges ? 'crispEdges' : undefined}
+ strokeLinecap={strokeLinecap}
+ strokeWidth={strokeWidth}
+ />
+ </>
+ );
};
diff --git a/packages/docs/src/components/DoMoreHero/Faces.tsx b/packages/docs/src/components/DoMoreHero/Faces.tsx
index 1fa0248f53..95dd324da2 100644
--- a/packages/docs/src/components/DoMoreHero/Faces.tsx
+++ b/packages/docs/src/components/DoMoreHero/Faces.tsx
@@ -1,57 +1,54 @@
-import React from "react";
-import type { FaceSVGProps } from "./Face";
-import { Face } from "./Face";
-import type { ThreeDElement } from "./element";
-import type { FaceType } from "./map-face";
+import React from 'react';
+import type {FaceSVGProps} from './Face';
+import {Face} from './Face';
+import type {ThreeDElement} from './element';
+import type {FaceType} from './map-face';
const sortFacesZIndex = (face: FaceType[]): FaceType[] => {
- return face.slice().sort((a, b) => {
- return b.centerPoint[2] - a.centerPoint[2];
- });
+ return face.slice().sort((a, b) => {
+ return b.centerPoint[2] - a.centerPoint[2];
+ });
};
export const Faces: React.FC<
- {
- elements: ThreeDElement[];
- noSort?: boolean;
- } & FaceSVGProps
-> = ({ elements, noSort, ...svgProps }) => {
- const sortedElement = noSort
- ? elements
- : elements.sort((a, b) => {
- return b.centerPoint[2] - a.centerPoint[2];
- });
+ {
+ elements: ThreeDElement[];
+ noSort?: boolean;
+ } & FaceSVGProps
+> = ({elements, noSort, ...svgProps}) => {
+ const sortedElement = noSort
+ ? elements
+ : elements.sort((a, b) => {
+ return b.centerPoint[2] - a.centerPoint[2];
+ });
- return (
- <>
- {sortedElement.map((element, i) => {
- const sortedFaces = sortFacesZIndex(element.faces);
+ return (
+ <>
+ {sortedElement.map((element, i) => {
+ const sortedFaces = sortFacesZIndex(element.faces);
- return (
- // eslint-disable-next-line react/no-array-index-key
- <React.Fragment key={i}>
- {sortedFaces.map(
- (
- { points, color, strokeWidth, strokeColor, crispEdges },
- idx,
- ) => {
- return (
- <Face
- // eslint-disable-next-line react/no-array-index-key
- key={JSON.stringify(points) + idx}
- strokeColor={strokeColor}
- color={color}
- points={points}
- strokeWidth={strokeWidth}
- crispEdges={crispEdges}
- {...svgProps}
- />
- );
- },
- )}
- </React.Fragment>
- );
- })}
- </>
- );
+ return (
+ // eslint-disable-next-line react/no-array-index-key
+ <React.Fragment key={i}>
+ {sortedFaces.map(
+ ({points, color, strokeWidth, strokeColor, crispEdges}, idx) => {
+ return (
+ <Face
+ // eslint-disable-next-line react/no-array-index-key
+ key={JSON.stringify(points) + idx}
+ strokeColor={strokeColor}
+ color={color}
+ points={points}
+ strokeWidth={strokeWidth}
+ crispEdges={crispEdges}
+ {...svgProps}
+ />
+ );
+ },
+ )}
+ </React.Fragment>
+ );
+ })}
+ </>
+ );
};
diff --git a/packages/docs/src/components/DoMoreHero/element.ts b/packages/docs/src/components/DoMoreHero/element.ts
index 295648ed3e..10f93b6127 100644
--- a/packages/docs/src/components/DoMoreHero/element.ts
+++ b/packages/docs/src/components/DoMoreHero/element.ts
@@ -1,42 +1,42 @@
-import { makeId } from "./make-id";
-import type { FaceType } from "./map-face";
-import { transformFace } from "./map-face";
-import type { MatrixTransform4D, Vector4D } from "./matrix";
-import { multiplyMatrix } from "./matrix";
+import {makeId} from './make-id';
+import type {FaceType} from './map-face';
+import {transformFace} from './map-face';
+import type {MatrixTransform4D, Vector4D} from './matrix';
+import {multiplyMatrix} from './matrix';
export type ThreeDElement = {
- faces: FaceType[];
- id: string;
- description: string;
- centerPoint: Vector4D;
+ faces: FaceType[];
+ id: string;
+ description: string;
+ centerPoint: Vector4D;
};
export const makeElement = (
- face: FaceType | FaceType[],
- centerPoint: Vector4D,
- description: string,
+ face: FaceType | FaceType[],
+ centerPoint: Vector4D,
+ description: string,
): ThreeDElement => {
- return {
- faces: Array.isArray(face) ? face : [face],
- id: makeId(),
- centerPoint,
- description,
- };
+ return {
+ faces: Array.isArray(face) ? face : [face],
+ id: makeId(),
+ centerPoint,
+ description,
+ };
};
export const transformElement = (
- element: ThreeDElement,
- transformations: MatrixTransform4D[],
+ element: ThreeDElement,
+ transformations: MatrixTransform4D[],
): ThreeDElement => {
- return {
- ...element,
- faces: element.faces.map((face) => {
- return transformFace(face, transformations);
- }),
- id: makeId(),
- centerPoint: transformations.reduce(
- (point, transformation) => multiplyMatrix(transformation, point),
- element.centerPoint,
- ),
- };
+ return {
+ ...element,
+ faces: element.faces.map((face) => {
+ return transformFace(face, transformations);
+ }),
+ id: makeId(),
+ centerPoint: transformations.reduce(
+ (point, transformation) => multiplyMatrix(transformation, point),
+ element.centerPoint,
+ ),
+ };
};
diff --git a/packages/docs/src/components/DoMoreHero/fix-z.ts b/packages/docs/src/components/DoMoreHero/fix-z.ts
index 2efdef06db..21c24a2d1e 100644
--- a/packages/docs/src/components/DoMoreHero/fix-z.ts
+++ b/packages/docs/src/components/DoMoreHero/fix-z.ts
@@ -1,45 +1,45 @@
-import type { Instruction } from "@remotion/paths";
-import { reduceInstructions } from "@remotion/paths";
-import type { ThreeDReducedInstruction } from "./3d-svg";
-import type { Vector4D } from "./matrix";
+import type {Instruction} from '@remotion/paths';
+import {reduceInstructions} from '@remotion/paths';
+import type {ThreeDReducedInstruction} from './3d-svg';
+import type {Vector4D} from './matrix';
export const turnInto3D = (
- instructions: Instruction[],
+ instructions: Instruction[],
): ThreeDReducedInstruction[] => {
- let lastMove: Vector4D = [0, 0, 0, 1];
- const newInstructions: ThreeDReducedInstruction[] = [];
- const reduced = reduceInstructions(instructions);
+ let lastMove: Vector4D = [0, 0, 0, 1];
+ const newInstructions: ThreeDReducedInstruction[] = [];
+ const reduced = reduceInstructions(instructions);
- for (let i = 0; i < reduced.length; i++) {
- const instruction = reduced[i];
+ for (let i = 0; i < reduced.length; i++) {
+ const instruction = reduced[i];
- if (instruction.type === "Z") {
- newInstructions.push({
- type: "Z",
- point: lastMove,
- });
- } else if (instruction.type === "M") {
- lastMove = [instruction.x, instruction.y, 0, 1];
- newInstructions.push({
- point: [instruction.x, instruction.y, 0, 1],
- type: "M",
- });
- } else if (instruction.type === "L") {
- newInstructions.push({
- type: "L",
- point: [instruction.x, instruction.y, 0, 1],
- });
- } else if (instruction.type === "C") {
- newInstructions.push({
- type: "C",
- point: [instruction.x, instruction.y, 0, 1],
- cp1: [instruction.cp1x, instruction.cp1y, 0, 1],
- cp2: [instruction.cp2x, instruction.cp2y, 0, 1],
- });
- } else {
- throw new Error("unknown");
- }
- }
+ if (instruction.type === 'Z') {
+ newInstructions.push({
+ type: 'Z',
+ point: lastMove,
+ });
+ } else if (instruction.type === 'M') {
+ lastMove = [instruction.x, instruction.y, 0, 1];
+ newInstructions.push({
+ point: [instruction.x, instruction.y, 0, 1],
+ type: 'M',
+ });
+ } else if (instruction.type === 'L') {
+ newInstructions.push({
+ type: 'L',
+ point: [instruction.x, instruction.y, 0, 1],
+ });
+ } else if (instruction.type === 'C') {
+ newInstructions.push({
+ type: 'C',
+ point: [instruction.x, instruction.y, 0, 1],
+ cp1: [instruction.cp1x, instruction.cp1y, 0, 1],
+ cp2: [instruction.cp2x, instruction.cp2y, 0, 1],
+ });
+ } else {
+ throw new Error('unknown');
+ }
+ }
- return newInstructions;
+ return newInstructions;
};
diff --git a/packages/docs/src/components/DoMoreHero/join-inbetween-tiles.ts b/packages/docs/src/components/DoMoreHero/join-inbetween-tiles.ts
index 7e3a3b01a1..bae08b0e02 100644
--- a/packages/docs/src/components/DoMoreHero/join-inbetween-tiles.ts
+++ b/packages/docs/src/components/DoMoreHero/join-inbetween-tiles.ts
@@ -1,175 +1,175 @@
-import type { Instruction } from "@remotion/paths";
-import { reduceInstructions } from "@remotion/paths";
-import { getBoundingBoxFromInstructions } from "@remotion/paths/dist/get-bounding-box";
-import type { ThreeDReducedInstruction } from "./3d-svg";
-import type { ThreeDElement } from "./element";
-import { makeElement } from "./element";
-import { turnInto3D } from "./fix-z";
-import type { FaceType } from "./map-face";
-import { transformFace, translateSvgInstruction } from "./map-face";
-import type { Vector4D } from "./matrix";
-import { translateZ } from "./matrix";
-import { subdivideInstructions } from "./subdivide-instruction";
-import { truthy } from "./truthy";
+import type {Instruction} from '@remotion/paths';
+import {reduceInstructions} from '@remotion/paths';
+import {getBoundingBoxFromInstructions} from '@remotion/paths/dist/get-bounding-box';
+import type {ThreeDReducedInstruction} from './3d-svg';
+import type {ThreeDElement} from './element';
+import {makeElement} from './element';
+import {turnInto3D} from './fix-z';
+import type {FaceType} from './map-face';
+import {transformFace, translateSvgInstruction} from './map-face';
+import type {Vector4D} from './matrix';
+import {translateZ} from './matrix';
+import {subdivideInstructions} from './subdivide-instruction';
+import {truthy} from './truthy';
const inverseInstruction = (
- instruction: ThreeDReducedInstruction,
- comingFrom: Vector4D,
+ instruction: ThreeDReducedInstruction,
+ comingFrom: Vector4D,
): ThreeDReducedInstruction => {
- if (instruction.type === "M") {
- return {
- type: "M",
- point: comingFrom,
- };
- }
-
- if (instruction.type === "L") {
- return {
- type: "L",
- point: comingFrom,
- };
- }
-
- if (instruction.type === "C") {
- return {
- type: "C",
- point: comingFrom,
- cp1: instruction.cp2,
- cp2: instruction.cp1,
- };
- }
-
- if (instruction.type === "Q") {
- return {
- type: "Q",
- point: comingFrom,
- cp: instruction.cp,
- };
- }
-
- if (instruction.type === "Z") {
- return {
- type: "L",
- point: comingFrom,
- };
- }
-
- throw new Error("Unknown instruction type");
+ if (instruction.type === 'M') {
+ return {
+ type: 'M',
+ point: comingFrom,
+ };
+ }
+
+ if (instruction.type === 'L') {
+ return {
+ type: 'L',
+ point: comingFrom,
+ };
+ }
+
+ if (instruction.type === 'C') {
+ return {
+ type: 'C',
+ point: comingFrom,
+ cp1: instruction.cp2,
+ cp2: instruction.cp1,
+ };
+ }
+
+ if (instruction.type === 'Q') {
+ return {
+ type: 'Q',
+ point: comingFrom,
+ cp: instruction.cp,
+ };
+ }
+
+ if (instruction.type === 'Z') {
+ return {
+ type: 'L',
+ point: comingFrom,
+ };
+ }
+
+ throw new Error('Unknown instruction type');
};
export const extrudeElement = ({
- depth,
- sideColor,
- frontFaceColor,
- backFaceColor,
- points,
- strokeWidth,
- description,
- strokeColor,
+ depth,
+ sideColor,
+ frontFaceColor,
+ backFaceColor,
+ points,
+ strokeWidth,
+ description,
+ strokeColor,
}: {
- depth: number;
- sideColor: string;
- frontFaceColor: string;
- backFaceColor: string;
- points: Instruction[];
- strokeWidth: number;
- description: string;
- strokeColor: string;
+ depth: number;
+ sideColor: string;
+ frontFaceColor: string;
+ backFaceColor: string;
+ points: Instruction[];
+ strokeWidth: number;
+ description: string;
+ strokeColor: string;
}): ThreeDElement => {
- const boundingBox = getBoundingBoxFromInstructions(
- reduceInstructions(points),
- );
-
- const centerX = (boundingBox.x2 - boundingBox.x1) / 2 + boundingBox.x1;
- const centerY = (boundingBox.y2 - boundingBox.y1) / 2 + boundingBox.y1;
-
- const threeD = turnInto3D(points);
- const instructions: FaceType = {
- centerPoint: [0, 0, 0, 1],
- points: subdivideInstructions(
- subdivideInstructions(subdivideInstructions(threeD)),
- ),
- strokeWidth,
- strokeColor,
- color: "black",
- description,
- crispEdges: false,
- };
-
- const unscaledBackFace = transformFace(instructions, [translateZ(depth / 2)]);
- const unscaledFrontFace = transformFace(instructions, [
- translateZ(-depth / 2),
- ]);
-
- const inbetween = unscaledBackFace.points.map((t, i): FaceType => {
- const nextInstruction =
- i === unscaledBackFace.points.length - 1
- ? unscaledBackFace.points[0]
- : unscaledBackFace.points[i + 1];
-
- const currentPoint = t.point;
- const nextPoint = nextInstruction.point;
- const movingOver: Vector4D = [
- nextPoint[0],
- nextPoint[1],
- nextPoint[2] - depth,
- nextPoint[3],
- ];
-
- const translatedInstruction = translateSvgInstruction(
- inverseInstruction(nextInstruction, currentPoint),
- 0,
- 0,
- -depth,
- );
- const newInstructions: ThreeDReducedInstruction[] = [
- {
- type: "M" as const,
- point: currentPoint,
- },
- nextInstruction,
- nextInstruction.type === "Z"
- ? {
- type: "M" as const,
- point: nextInstruction.point,
- }
- : null,
- {
- type: "L" as const,
- point: movingOver,
- },
- translatedInstruction,
- {
- type: "L" as const,
- point: currentPoint,
- },
- ].filter(truthy);
-
- return {
- points: newInstructions,
- color: sideColor,
- centerPoint: [0, 0, 0, 1],
- strokeWidth: 0,
- strokeColor: "black",
- description: description + "inbetween",
- crispEdges: true,
- };
- });
-
- const scaledFrontFace: FaceType = {
- ...unscaledFrontFace,
- color: frontFaceColor,
- description: description + "(front)",
- };
- const scaledBackFace: FaceType = {
- ...unscaledBackFace,
- color: backFaceColor,
- description: description + "(back)",
- };
-
- return makeElement(
- [...inbetween, scaledFrontFace, scaledBackFace],
- [centerX, centerY, 0, 1],
- description,
- );
+ const boundingBox = getBoundingBoxFromInstructions(
+ reduceInstructions(points),
+ );
+
+ const centerX = (boundingBox.x2 - boundingBox.x1) / 2 + boundingBox.x1;
+ const centerY = (boundingBox.y2 - boundingBox.y1) / 2 + boundingBox.y1;
+
+ const threeD = turnInto3D(points);
+ const instructions: FaceType = {
+ centerPoint: [0, 0, 0, 1],
+ points: subdivideInstructions(
+ subdivideInstructions(subdivideInstructions(threeD)),
+ ),
+ strokeWidth,
+ strokeColor,
+ color: 'black',
+ description,
+ crispEdges: false,
+ };
+
+ const unscaledBackFace = transformFace(instructions, [translateZ(depth / 2)]);
+ const unscaledFrontFace = transformFace(instructions, [
+ translateZ(-depth / 2),
+ ]);
+
+ const inbetween = unscaledBackFace.points.map((t, i): FaceType => {
+ const nextInstruction =
+ i === unscaledBackFace.points.length - 1
+ ? unscaledBackFace.points[0]
+ : unscaledBackFace.points[i + 1];
+
+ const currentPoint = t.point;
+ const nextPoint = nextInstruction.point;
+ const movingOver: Vector4D = [
+ nextPoint[0],
+ nextPoint[1],
+ nextPoint[2] - depth,
+ nextPoint[3],
+ ];
+
+ const translatedInstruction = translateSvgInstruction(
+ inverseInstruction(nextInstruction, currentPoint),
+ 0,
+ 0,
+ -depth,
+ );
+ const newInstructions: ThreeDReducedInstruction[] = [
+ {
+ type: 'M' as const,
+ point: currentPoint,
+ },
+ nextInstruction,
+ nextInstruction.type === 'Z'
+ ? {
+ type: 'M' as const,
+ point: nextInstruction.point,
+ }
+ : null,
+ {
+ type: 'L' as const,
+ point: movingOver,
+ },
+ translatedInstruction,
+ {
+ type: 'L' as const,
+ point: currentPoint,
+ },
+ ].filter(truthy);
+
+ return {
+ points: newInstructions,
+ color: sideColor,
+ centerPoint: [0, 0, 0, 1],
+ strokeWidth: 0,
+ strokeColor: 'black',
+ description: description + 'inbetween',
+ crispEdges: true,
+ };
+ });
+
+ const scaledFrontFace: FaceType = {
+ ...unscaledFrontFace,
+ color: frontFaceColor,
+ description: description + '(front)',
+ };
+ const scaledBackFace: FaceType = {
+ ...unscaledBackFace,
+ color: backFaceColor,
+ description: description + '(back)',
+ };
+
+ return makeElement(
+ [...inbetween, scaledFrontFace, scaledBackFace],
+ [centerX, centerY, 0, 1],
+ description,
+ );
};
diff --git a/packages/docs/src/components/DoMoreHero/make-id.ts b/packages/docs/src/components/DoMoreHero/make-id.ts
index 4146b06402..12175a78f5 100644
--- a/packages/docs/src/components/DoMoreHero/make-id.ts
+++ b/packages/docs/src/components/DoMoreHero/make-id.ts
@@ -1,5 +1,5 @@
-import { random } from "remotion";
+import {random} from 'remotion';
export const makeId = () => {
- return random(null).toString().replace(".", "");
+ return random(null).toString().replace('.', '');
};
diff --git a/packages/docs/src/components/DoMoreHero/map-face.ts b/packages/docs/src/components/DoMoreHero/map-face.ts
index 4e0149e99b..db1584d3d7 100644
--- a/packages/docs/src/components/DoMoreHero/map-face.ts
+++ b/packages/docs/src/components/DoMoreHero/map-face.ts
@@ -1,171 +1,171 @@
-import { parsePath } from "@remotion/paths";
-import type { ThreeDReducedInstruction } from "./3d-svg";
-import type { ThreeDElement } from "./element";
-import { transformElement } from "./element";
-import { turnInto3D } from "./fix-z";
-import type { MatrixTransform4D, Vector4D } from "./matrix";
-import { multiplyMatrix, multiplyMatrixAndSvgInstruction } from "./matrix";
+import {parsePath} from '@remotion/paths';
+import type {ThreeDReducedInstruction} from './3d-svg';
+import type {ThreeDElement} from './element';
+import {transformElement} from './element';
+import {turnInto3D} from './fix-z';
+import type {MatrixTransform4D, Vector4D} from './matrix';
+import {multiplyMatrix, multiplyMatrixAndSvgInstruction} from './matrix';
export type FaceType = {
- color: string;
- points: ThreeDReducedInstruction[];
- centerPoint: Vector4D;
- strokeWidth: number;
- strokeColor: string;
- description: string;
- crispEdges: boolean;
+ color: string;
+ points: ThreeDReducedInstruction[];
+ centerPoint: Vector4D;
+ strokeWidth: number;
+ strokeColor: string;
+ description: string;
+ crispEdges: boolean;
};
export const translateSvgInstruction = (
- instruction: ThreeDReducedInstruction,
- x: number,
- y: number,
- z: number,
+ instruction: ThreeDReducedInstruction,
+ x: number,
+ y: number,
+ z: number,
): ThreeDReducedInstruction => {
- if (instruction.type === "M") {
- return {
- type: "M",
- point: [
- instruction.point[0] + x,
- instruction.point[1] + y,
- instruction.point[2] + z,
- instruction.point[3],
- ],
- };
- }
+ if (instruction.type === 'M') {
+ return {
+ type: 'M',
+ point: [
+ instruction.point[0] + x,
+ instruction.point[1] + y,
+ instruction.point[2] + z,
+ instruction.point[3],
+ ],
+ };
+ }
- if (instruction.type === "L") {
- return {
- type: "L",
- point: [
- instruction.point[0] + x,
- instruction.point[1] + y,
- instruction.point[2] + z,
- instruction.point[3],
- ],
- };
- }
+ if (instruction.type === 'L') {
+ return {
+ type: 'L',
+ point: [
+ instruction.point[0] + x,
+ instruction.point[1] + y,
+ instruction.point[2] + z,
+ instruction.point[3],
+ ],
+ };
+ }
- if (instruction.type === "C") {
- return {
- type: "C",
- point: [
- instruction.point[0] + x,
- instruction.point[1] + y,
- instruction.point[2] + z,
- instruction.point[3],
- ],
- cp1: [
- instruction.cp1[0] + x,
- instruction.cp1[1] + y,
- instruction.cp1[2] + z,
- instruction.cp1[3],
- ],
- cp2: [
- instruction.cp2[0] + x,
- instruction.cp2[1] + y,
- instruction.cp2[2] + z,
- instruction.cp2[3],
- ],
- };
- }
+ if (instruction.type === 'C') {
+ return {
+ type: 'C',
+ point: [
+ instruction.point[0] + x,
+ instruction.point[1] + y,
+ instruction.point[2] + z,
+ instruction.point[3],
+ ],
+ cp1: [
+ instruction.cp1[0] + x,
+ instruction.cp1[1] + y,
+ instruction.cp1[2] + z,
+ instruction.cp1[3],
+ ],
+ cp2: [
+ instruction.cp2[0] + x,
+ instruction.cp2[1] + y,
+ instruction.cp2[2] + z,
+ instruction.cp2[3],
+ ],
+ };
+ }
- if (instruction.type === "Q") {
- return {
- type: "Q",
- point: [
- instruction.point[0] + x,
- instruction.point[1] + y,
- instruction.point[2] + z,
- instruction.point[3],
- ],
- cp: [
- instruction.cp[0] + x,
- instruction.cp[1] + y,
- instruction.cp[2] + z,
- instruction.cp[3],
- ],
- };
- }
+ if (instruction.type === 'Q') {
+ return {
+ type: 'Q',
+ point: [
+ instruction.point[0] + x,
+ instruction.point[1] + y,
+ instruction.point[2] + z,
+ instruction.point[3],
+ ],
+ cp: [
+ instruction.cp[0] + x,
+ instruction.cp[1] + y,
+ instruction.cp[2] + z,
+ instruction.cp[3],
+ ],
+ };
+ }
- if (instruction.type === "Z") {
- return {
- type: "Z",
- point: [
- instruction.point[0] + x,
- instruction.point[1] + y,
- instruction.point[2] + z,
- instruction.point[3],
- ],
- };
- }
+ if (instruction.type === 'Z') {
+ return {
+ type: 'Z',
+ point: [
+ instruction.point[0] + x,
+ instruction.point[1] + y,
+ instruction.point[2] + z,
+ instruction.point[3],
+ ],
+ };
+ }
- throw new Error("Unknown instruction type: " + JSON.stringify(instruction));
+ throw new Error('Unknown instruction type: ' + JSON.stringify(instruction));
};
export const transformFace = (
- face: FaceType,
- transformations: MatrixTransform4D[],
+ face: FaceType,
+ transformations: MatrixTransform4D[],
): FaceType => {
- return {
- ...face,
- points: face.points.map((p) => {
- return transformations.reduce((acc, t) => {
- return multiplyMatrixAndSvgInstruction(t, acc);
- }, p);
- }),
- centerPoint: transformations.reduce((acc, t) => {
- const result = multiplyMatrix(t, acc);
- return result;
- }, face.centerPoint),
- };
+ return {
+ ...face,
+ points: face.points.map((p) => {
+ return transformations.reduce((acc, t) => {
+ return multiplyMatrixAndSvgInstruction(t, acc);
+ }, p);
+ }),
+ centerPoint: transformations.reduce((acc, t) => {
+ const result = multiplyMatrix(t, acc);
+ return result;
+ }, face.centerPoint),
+ };
};
export const transformFaces = ({
- faces,
- transformations,
+ faces,
+ transformations,
}: {
- faces: FaceType[];
- transformations: MatrixTransform4D[];
+ faces: FaceType[];
+ transformations: MatrixTransform4D[];
}) => {
- return faces.map((face) => {
- return transformFace(face, transformations);
- });
+ return faces.map((face) => {
+ return transformFace(face, transformations);
+ });
};
export const transformElements = (
- elements: ThreeDElement[],
- transformations: MatrixTransform4D[],
+ elements: ThreeDElement[],
+ transformations: MatrixTransform4D[],
) => {
- return elements.map((element) => {
- return transformElement(element, transformations);
- });
+ return elements.map((element) => {
+ return transformElement(element, transformations);
+ });
};
export const makeFace = ({
- points,
- strokeWidth,
- strokeColor,
- fill,
- description,
- crispEdges,
+ points,
+ strokeWidth,
+ strokeColor,
+ fill,
+ description,
+ crispEdges,
}: {
- points: string | ThreeDReducedInstruction[];
- strokeWidth: number;
- strokeColor: string;
- fill: string;
- description: string;
- crispEdges: boolean;
+ points: string | ThreeDReducedInstruction[];
+ strokeWidth: number;
+ strokeColor: string;
+ fill: string;
+ description: string;
+ crispEdges: boolean;
}): FaceType => {
- const centerPoint: Vector4D = [0, 0, 0, 1];
+ const centerPoint: Vector4D = [0, 0, 0, 1];
- return {
- centerPoint,
- color: fill,
- points: typeof points === "string" ? turnInto3D(parsePath(points)) : points,
- strokeWidth,
- strokeColor,
- description,
- crispEdges,
- };
+ return {
+ centerPoint,
+ color: fill,
+ points: typeof points === 'string' ? turnInto3D(parsePath(points)) : points,
+ strokeWidth,
+ strokeColor,
+ description,
+ crispEdges,
+ };
};
diff --git a/packages/docs/src/components/DoMoreHero/matrix.ts b/packages/docs/src/components/DoMoreHero/matrix.ts
index 9c75159587..31e4537192 100644
--- a/packages/docs/src/components/DoMoreHero/matrix.ts
+++ b/packages/docs/src/components/DoMoreHero/matrix.ts
@@ -1,96 +1,96 @@
-import type { ThreeDReducedInstruction } from "./3d-svg";
+import type {ThreeDReducedInstruction} from './3d-svg';
export const stride = function ({
- v,
- m,
- width,
- offset,
- colStride,
+ v,
+ m,
+ width,
+ offset,
+ colStride,
}: {
- v: Vector;
- m: MatrixTransform4D;
- width: number;
- offset: number;
- colStride: number;
+ v: Vector;
+ m: MatrixTransform4D;
+ width: number;
+ offset: number;
+ colStride: number;
}) {
- for (let i = 0; i < v.length; i++) {
- m[
- i * width + // Column
- ((i * colStride + offset + width) % width) // Row
- ] = v[i];
- }
-
- return m;
+ for (let i = 0; i < v.length; i++) {
+ m[
+ i * width + // Column
+ ((i * colStride + offset + width) % width) // Row
+ ] = v[i];
+ }
+
+ return m;
};
export const identity4 = function (): MatrixTransform4D {
- const n = 4;
- let size = n * n;
- const m = new Array(size) as MatrixTransform4D;
- while (size--) {
- m[size] = size % (n + 1) === 0 ? 1.0 : 0.0;
- }
-
- return m;
+ const n = 4;
+ let size = n * n;
+ const m = new Array(size) as MatrixTransform4D;
+ while (size--) {
+ m[size] = size % (n + 1) === 0 ? 1.0 : 0.0;
+ }
+
+ return m;
};
export const translated4d = function (vec: Vector) {
- return stride({ v: vec, m: identity4(), width: 4, offset: 3, colStride: 0 });
+ return stride({v: vec, m: identity4(), width: 4, offset: 3, colStride: 0});
};
function mul(m1: number[], m2: number[], size: number): number[] {
- if (m1.length !== m2.length) {
- throw new Error(
- `Undefined for matrices of different sizes. m1.length=${m1.length}, m2.length=${m2.length}`,
- );
- }
-
- if (size * size !== m1.length) {
- throw new Error(
- `Undefined for non-square matrices. array size was ${size}`,
- );
- }
-
- const result = Array(m1.length);
- for (let r = 0; r < size; r++) {
- for (let c = 0; c < size; c++) {
- // Accumulate a sum of m1[r,k]*m2[k, c]
- let acc = 0;
- for (let k = 0; k < size; k++) {
- acc += m1[size * r + k] * m2[size * k + c];
- }
-
- result[r * size + c] = acc;
- }
- }
-
- return result;
+ if (m1.length !== m2.length) {
+ throw new Error(
+ `Undefined for matrices of different sizes. m1.length=${m1.length}, m2.length=${m2.length}`,
+ );
+ }
+
+ if (size * size !== m1.length) {
+ throw new Error(
+ `Undefined for non-square matrices. array size was ${size}`,
+ );
+ }
+
+ const result = Array(m1.length);
+ for (let r = 0; r < size; r++) {
+ for (let c = 0; c < size; c++) {
+ // Accumulate a sum of m1[r,k]*m2[k, c]
+ let acc = 0;
+ for (let k = 0; k < size; k++) {
+ acc += m1[size * r + k] * m2[size * k + c];
+ }
+
+ result[r * size + c] = acc;
+ }
+ }
+
+ return result;
}
// Accept an integer indicating the size of the matrices being multiplied (3 for 3x3), and any
// number of matrices following it.
function multiplyMany(
- size: number,
- listOfMatrices: MatrixTransform4D[],
+ size: number,
+ listOfMatrices: MatrixTransform4D[],
): MatrixTransform4D {
- if (listOfMatrices.length < 2) {
- throw new Error("multiplication expected two or more matrices");
- }
-
- let result = mul(listOfMatrices[0], listOfMatrices[1], size);
- let next = 2;
- while (next < listOfMatrices.length) {
- result = mul(result, listOfMatrices[next], size);
- next++;
- }
-
- return result as MatrixTransform4D;
+ if (listOfMatrices.length < 2) {
+ throw new Error('multiplication expected two or more matrices');
+ }
+
+ let result = mul(listOfMatrices[0], listOfMatrices[1], size);
+ let next = 2;
+ while (next < listOfMatrices.length) {
+ result = mul(result, listOfMatrices[next], size);
+ next++;
+ }
+
+ return result as MatrixTransform4D;
}
export const m44multiply = (
- ...matrices: MatrixTransform4D[]
+ ...matrices: MatrixTransform4D[]
): MatrixTransform4D => {
- return multiplyMany(4, matrices);
+ return multiplyMany(4, matrices);
};
export type Vector2D = [number, number];
@@ -98,215 +98,215 @@ export type Vector = [number, number, number];
export type Vector4D = [number, number, number, number];
export type MatrixTransform4D = [
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
+ number,
];
export const scaled = function (value: number | Vector) {
- const vec: Vector = typeof value === "number" ? [value, value, value] : value;
- return stride({ v: vec, m: identity4(), width: 4, offset: 0, colStride: 1 });
+ const vec: Vector = typeof value === 'number' ? [value, value, value] : value;
+ return stride({v: vec, m: identity4(), width: 4, offset: 0, colStride: 1});
};
const rotatedUnitSinCos = function (
- axisVec: Vector,
- sinAngle: number,
- cosAngle: number,
+ axisVec: Vector,
+ sinAngle: number,
+ cosAngle: number,
): MatrixTransform4D {
- const x = axisVec[0];
- const y = axisVec[1];
- const z = axisVec[2];
- const c = cosAngle;
- const s = sinAngle;
- const t = 1 - c;
- return [
- t * x * x + c,
- t * x * y - s * z,
- t * x * z + s * y,
- 0,
- t * x * y + s * z,
- t * y * y + c,
- t * y * z - s * x,
- 0,
- t * x * z - s * y,
- t * y * z + s * x,
- t * z * z + c,
- 0,
- 0,
- 0,
- 0,
- 1,
- ];
+ const x = axisVec[0];
+ const y = axisVec[1];
+ const z = axisVec[2];
+ const c = cosAngle;
+ const s = sinAngle;
+ const t = 1 - c;
+ return [
+ t * x * x + c,
+ t * x * y - s * z,
+ t * x * z + s * y,
+ 0,
+ t * x * y + s * z,
+ t * y * y + c,
+ t * y * z - s * x,
+ 0,
+ t * x * z - s * y,
+ t * y * z + s * x,
+ t * z * z + c,
+ 0,
+ 0,
+ 0,
+ 0,
+ 1,
+ ];
};
export const dot = function (a: number[], b: number[]) {
- if (a.length !== b.length) {
- throw new Error(
- `Cannot perform dot product on arrays of different length (${a.length} vs ${b.length})`,
- );
- }
-
- return a
- .map((v, i) => {
- return v * b[i];
- })
- .reduce((acc, cur) => {
- return acc + cur;
- });
+ if (a.length !== b.length) {
+ throw new Error(
+ `Cannot perform dot product on arrays of different length (${a.length} vs ${b.length})`,
+ );
+ }
+
+ return a
+ .map((v, i) => {
+ return v * b[i];
+ })
+ .reduce((acc, cur) => {
+ return acc + cur;
+ });
};
const translated = function (vec: Vector) {
- return stride({
- v: vec,
- m: identity4(),
- width: 4,
- offset: 3,
- colStride: 0,
- });
+ return stride({
+ v: vec,
+ m: identity4(),
+ width: 4,
+ offset: 3,
+ colStride: 0,
+ });
};
export const translateX = (x: number) => {
- return translated([x, 0, 0]);
+ return translated([x, 0, 0]);
};
export const translateY = (y: number) => {
- return translated([0, y, 0]);
+ return translated([0, y, 0]);
};
export const translateZ = (z: number) => {
- return translated([0, 0, z]);
+ return translated([0, 0, z]);
};
const lengthSquared = function (v: number[]) {
- return dot(v, v);
+ return dot(v, v);
};
const vectorLength = function (v: number[]) {
- return Math.sqrt(lengthSquared(v));
+ return Math.sqrt(lengthSquared(v));
};
export const mulScalar = function <T extends number[]>(v: T, s: number): T {
- return v.map((i) => {
- return i * s;
- }) as T;
+ return v.map((i) => {
+ return i * s;
+ }) as T;
};
export const normalize = function (v: Vector): Vector {
- return mulScalar(v, 1 / vectorLength(v));
+ return mulScalar(v, 1 / vectorLength(v));
};
export const normalize4d = function (v: Vector4D): Vector4D {
- return mulScalar(v, 1 / vectorLength(v));
+ return mulScalar(v, 1 / vectorLength(v));
};
const rotated = function (axisVec: Vector, radians: number): MatrixTransform4D {
- return rotatedUnitSinCos(
- normalize(axisVec),
- Math.sin(radians),
- Math.cos(radians),
- );
+ return rotatedUnitSinCos(
+ normalize(axisVec),
+ Math.sin(radians),
+ Math.cos(radians),
+ );
};
export const rotateX = (radians: number) => {
- return rotated([1, 0, 0], radians);
+ return rotated([1, 0, 0], radians);
};
export const rotateY = (radians: number) => {
- return rotated([0, 1, 0], radians);
+ return rotated([0, 1, 0], radians);
};
export const rotateZ = (radians: number) => {
- return rotated([0, 0, 1], radians);
+ return rotated([0, 0, 1], radians);
};
export type Camera = {
- near: number;
- far: number;
- angle: number;
- eye: Vector;
- coa: Vector;
- up: Vector;
+ near: number;
+ far: number;
+ angle: number;
+ eye: Vector;
+ coa: Vector;
+ up: Vector;
};
export const multiplyMatrix = (
- matrix: MatrixTransform4D,
- point: Vector4D,
+ matrix: MatrixTransform4D,
+ point: Vector4D,
): Vector4D => {
- if (matrix.length !== 16 || point.length !== 4) {
- throw new Error("Invalid matrix or vector dimension");
- }
+ if (matrix.length !== 16 || point.length !== 4) {
+ throw new Error('Invalid matrix or vector dimension');
+ }
- const result: Vector4D = [0, 0, 0, 0];
+ const result: Vector4D = [0, 0, 0, 0];
- for (let i = 0; i < 4; i++) {
- for (let j = 0; j < 4; j++) {
- result[i] += matrix[i * 4 + j] * point[j];
- }
- }
+ for (let i = 0; i < 4; i++) {
+ for (let j = 0; j < 4; j++) {
+ result[i] += matrix[i * 4 + j] * point[j];
+ }
+ }
- return result;
+ return result;
};
export function multiplyMatrixAndSvgInstruction(
- matrix: MatrixTransform4D,
- point: ThreeDReducedInstruction,
+ matrix: MatrixTransform4D,
+ point: ThreeDReducedInstruction,
): ThreeDReducedInstruction {
- if (point.type === "C") {
- return {
- type: "C",
- cp1: multiplyMatrix(matrix, point.cp1),
- cp2: multiplyMatrix(matrix, point.cp2),
- point: multiplyMatrix(matrix, point.point),
- };
- }
-
- if (point.type === "Q") {
- return {
- type: "Q",
- cp: multiplyMatrix(matrix, point.cp),
- point: multiplyMatrix(matrix, point.point),
- };
- }
-
- if (point.type === "M") {
- return {
- type: "M",
- point: multiplyMatrix(matrix, point.point),
- };
- }
-
- if (point.type === "L") {
- return {
- type: "L",
- point: multiplyMatrix(matrix, point.point),
- };
- }
-
- if (point.type === "Z") {
- return {
- type: "Z",
- point: multiplyMatrix(matrix, point.point),
- };
- }
-
- throw new Error("Unknown instruction type: " + JSON.stringify(point));
+ if (point.type === 'C') {
+ return {
+ type: 'C',
+ cp1: multiplyMatrix(matrix, point.cp1),
+ cp2: multiplyMatrix(matrix, point.cp2),
+ point: multiplyMatrix(matrix, point.point),
+ };
+ }
+
+ if (point.type === 'Q') {
+ return {
+ type: 'Q',
+ cp: multiplyMatrix(matrix, point.cp),
+ point: multiplyMatrix(matrix, point.point),
+ };
+ }
+
+ if (point.type === 'M') {
+ return {
+ type: 'M',
+ point: multiplyMatrix(matrix, point.point),
+ };
+ }
+
+ if (point.type === 'L') {
+ return {
+ type: 'L',
+ point: multiplyMatrix(matrix, point.point),
+ };
+ }
+
+ if (point.type === 'Z') {
+ return {
+ type: 'Z',
+ point: multiplyMatrix(matrix, point.point),
+ };
+ }
+
+ throw new Error('Unknown instruction type: ' + JSON.stringify(point));
}
export const sub4d = function (a: Vector4D, b: Vector4D): Vector4D {
- return a.map((v, i) => {
- return v - b[i];
- }) as Vector4D;
+ return a.map((v, i) => {
+ return v - b[i];
+ }) as Vector4D;
};
diff --git a/packages/docs/src/components/DoMoreHero/more.module.css b/packages/docs/src/components/DoMoreHero/more.module.css
index 220ba3fad0..d43aa9c5c0 100644
--- a/packages/docs/src/components/DoMoreHero/more.module.css
+++ b/packages/docs/src/components/DoMoreHero/more.module.css
@@ -1,43 +1,43 @@
.gradient {
- background-image: linear-gradient(
- to bottom,
- hsla(0, 0%, 100%, 0) 0%,
- hsla(0, 0%, 100%, 0.013) 8.1%,
- hsla(0, 0%, 100%, 0.049) 15.5%,
- hsla(0, 0%, 100%, 0.104) 22.5%,
- hsla(0, 0%, 100%, 0.175) 29%,
- hsla(0, 0%, 100%, 0.259) 35.3%,
- hsla(0, 0%, 100%, 0.352) 41.2%,
- hsla(0, 0%, 100%, 0.45) 47.1%,
- hsla(0, 0%, 100%, 0.55) 52.9%,
- hsla(0, 0%, 100%, 0.648) 58.8%,
- hsla(0, 0%, 100%, 0.741) 64.7%,
- hsla(0, 0%, 100%, 0.825) 71%,
- hsla(0, 0%, 100%, 0.896) 77.5%,
- hsla(0, 0%, 100%, 0.951) 84.5%,
- hsla(0, 0%, 100%, 0.987) 91.9%,
- hsl(0, 0%, 100%) 100%
- );
+ background-image: linear-gradient(
+ to bottom,
+ hsla(0, 0%, 100%, 0) 0%,
+ hsla(0, 0%, 100%, 0.013) 8.1%,
+ hsla(0, 0%, 100%, 0.049) 15.5%,
+ hsla(0, 0%, 100%, 0.104) 22.5%,
+ hsla(0, 0%, 100%, 0.175) 29%,
+ hsla(0, 0%, 100%, 0.259) 35.3%,
+ hsla(0, 0%, 100%, 0.352) 41.2%,
+ hsla(0, 0%, 100%, 0.45) 47.1%,
+ hsla(0, 0%, 100%, 0.55) 52.9%,
+ hsla(0, 0%, 100%, 0.648) 58.8%,
+ hsla(0, 0%, 100%, 0.741) 64.7%,
+ hsla(0, 0%, 100%, 0.825) 71%,
+ hsla(0, 0%, 100%, 0.896) 77.5%,
+ hsla(0, 0%, 100%, 0.951) 84.5%,
+ hsla(0, 0%, 100%, 0.987) 91.9%,
+ hsl(0, 0%, 100%) 100%
+ );
}
-[data-theme="dark"] .gradient {
- background-image: linear-gradient(
- to bottom,
- hsla(240deg, 4%, 11%, 0) 0%,
- hsla(240deg, 4%, 11%, 0.013) 8.1%,
- hsla(240deg, 4%, 11%, 0.049) 15.5%,
- hsla(240deg, 4%, 11%, 0.104) 22.5%,
- hsla(240deg, 4%, 11%, 0.175) 29%,
- hsla(240deg, 4%, 11%, 0.259) 35.3%,
- hsla(240deg, 4%, 11%, 0.352) 41.2%,
- hsla(240deg, 4%, 11%, 0.45) 47.1%,
- hsla(240deg, 4%, 11%, 0.55) 52.9%,
- hsla(240deg, 4%, 11%, 0.648) 58.8%,
- hsla(240deg, 4%, 11%, 0.741) 64.7%,
- hsla(240deg, 4%, 11%, 0.825) 71%,
- hsla(240deg, 4%, 11%, 0.896) 77.5%,
- hsla(240deg, 4%, 11%, 0.951) 84.5%,
- hsla(240deg, 4%, 11%, 0.987) 91.9%,
- hsl(240deg, 4%, 11%) 100%
- );
+[data-theme='dark'] .gradient {
+ background-image: linear-gradient(
+ to bottom,
+ hsla(240deg, 4%, 11%, 0) 0%,
+ hsla(240deg, 4%, 11%, 0.013) 8.1%,
+ hsla(240deg, 4%, 11%, 0.049) 15.5%,
+ hsla(240deg, 4%, 11%, 0.104) 22.5%,
+ hsla(240deg, 4%, 11%, 0.175) 29%,
+ hsla(240deg, 4%, 11%, 0.259) 35.3%,
+ hsla(240deg, 4%, 11%, 0.352) 41.2%,
+ hsla(240deg, 4%, 11%, 0.45) 47.1%,
+ hsla(240deg, 4%, 11%, 0.55) 52.9%,
+ hsla(240deg, 4%, 11%, 0.648) 58.8%,
+ hsla(240deg, 4%, 11%, 0.741) 64.7%,
+ hsla(240deg, 4%, 11%, 0.825) 71%,
+ hsla(240deg, 4%, 11%, 0.896) 77.5%,
+ hsla(240deg, 4%, 11%, 0.951) 84.5%,
+ hsla(240deg, 4%, 11%, 0.987) 91.9%,
+ hsl(240deg, 4%, 11%) 100%
+ );
}
diff --git a/packages/docs/src/components/DoMoreHero/subdivide-instruction.ts b/packages/docs/src/components/DoMoreHero/subdivide-instruction.ts
index 2e81d450b9..fec32e42ac 100644
--- a/packages/docs/src/components/DoMoreHero/subdivide-instruction.ts
+++ b/packages/docs/src/components/DoMoreHero/subdivide-instruction.ts
@@ -1,238 +1,238 @@
-import type { Instruction } from "@remotion/paths";
-import type { ThreeDReducedInstruction } from "./3d-svg";
-import type { Vector2D, Vector4D } from "./matrix";
+import type {Instruction} from '@remotion/paths';
+import type {ThreeDReducedInstruction} from './3d-svg';
+import type {Vector2D, Vector4D} from './matrix';
const subdivideLOrMInstruction = (
- from: Vector4D,
- instruction: ThreeDReducedInstruction,
+ from: Vector4D,
+ instruction: ThreeDReducedInstruction,
) => {
- if (instruction.type !== "L" && instruction.type !== "M") {
- throw new Error("Expected L or M instruction");
- }
-
- const t = 0.5;
- const q0: Vector4D = [
- (1 - t) * from[0] + t * instruction.point[0],
- (1 - t) * from[1] + t * instruction.point[1],
- (1 - t) * from[2] + t * instruction.point[2],
- (1 - t) * from[3] + t * instruction.point[3],
- ];
-
- const curves: [ThreeDReducedInstruction, ThreeDReducedInstruction] = [
- { type: instruction.type, point: q0 },
- { type: instruction.type, point: instruction.point },
- ];
-
- return curves;
+ if (instruction.type !== 'L' && instruction.type !== 'M') {
+ throw new Error('Expected L or M instruction');
+ }
+
+ const t = 0.5;
+ const q0: Vector4D = [
+ (1 - t) * from[0] + t * instruction.point[0],
+ (1 - t) * from[1] + t * instruction.point[1],
+ (1 - t) * from[2] + t * instruction.point[2],
+ (1 - t) * from[3] + t * instruction.point[3],
+ ];
+
+ const curves: [ThreeDReducedInstruction, ThreeDReducedInstruction] = [
+ {type: instruction.type, point: q0},
+ {type: instruction.type, point: instruction.point},
+ ];
+
+ return curves;
};
export const subdivide2DCInstruction = (
- fromX: number,
- fromY: number,
- instruction: Instruction,
- t: number,
+ fromX: number,
+ fromY: number,
+ instruction: Instruction,
+ t: number,
) => {
- if (instruction.type !== "C") {
- throw new Error("Expected C instruction");
- }
-
- const q0: Vector2D = [
- (1 - t) * fromX + t * instruction.cp1x,
- (1 - t) * fromY + t * instruction.cp1y,
- ];
-
- const q1: Vector2D = [
- (1 - t) * instruction.cp1x + t * instruction.cp2x,
- (1 - t) * instruction.cp1y + t * instruction.cp2y,
- ];
-
- const q2: Vector2D = [
- (1 - t) * instruction.cp2x + t * instruction.x,
- (1 - t) * instruction.cp2y + t * instruction.y,
- ];
-
- const r0: Vector2D = [
- (1 - t) * q0[0] + t * q1[0],
- (1 - t) * q0[1] + t * q1[1],
- ];
-
- const r1: Vector2D = [
- (1 - t) * q1[0] + t * q2[0],
- (1 - t) * q1[1] + t * q2[1],
- ];
-
- const s0: Vector2D = [
- (1 - t) * r0[0] + t * r1[0],
- (1 - t) * r0[1] + t * r1[1],
- ];
-
- const curves: [Instruction, Instruction] = [
- {
- type: "C",
- x: s0[0],
- y: s0[1],
- cp1x: q0[0],
- cp1y: q0[1],
- cp2x: r0[0],
- cp2y: r0[1],
- },
- {
- type: "C",
- x: instruction.x,
- y: instruction.y,
- cp1x: r1[0],
- cp1y: r1[1],
- cp2x: q2[0],
- cp2y: q2[1],
- },
- ];
-
- return curves;
+ if (instruction.type !== 'C') {
+ throw new Error('Expected C instruction');
+ }
+
+ const q0: Vector2D = [
+ (1 - t) * fromX + t * instruction.cp1x,
+ (1 - t) * fromY + t * instruction.cp1y,
+ ];
+
+ const q1: Vector2D = [
+ (1 - t) * instruction.cp1x + t * instruction.cp2x,
+ (1 - t) * instruction.cp1y + t * instruction.cp2y,
+ ];
+
+ const q2: Vector2D = [
+ (1 - t) * instruction.cp2x + t * instruction.x,
+ (1 - t) * instruction.cp2y + t * instruction.y,
+ ];
+
+ const r0: Vector2D = [
+ (1 - t) * q0[0] + t * q1[0],
+ (1 - t) * q0[1] + t * q1[1],
+ ];
+
+ const r1: Vector2D = [
+ (1 - t) * q1[0] + t * q2[0],
+ (1 - t) * q1[1] + t * q2[1],
+ ];
+
+ const s0: Vector2D = [
+ (1 - t) * r0[0] + t * r1[0],
+ (1 - t) * r0[1] + t * r1[1],
+ ];
+
+ const curves: [Instruction, Instruction] = [
+ {
+ type: 'C',
+ x: s0[0],
+ y: s0[1],
+ cp1x: q0[0],
+ cp1y: q0[1],
+ cp2x: r0[0],
+ cp2y: r0[1],
+ },
+ {
+ type: 'C',
+ x: instruction.x,
+ y: instruction.y,
+ cp1x: r1[0],
+ cp1y: r1[1],
+ cp2x: q2[0],
+ cp2y: q2[1],
+ },
+ ];
+
+ return curves;
};
const subdivide3DCInstruction = (
- from: Vector4D,
- instruction: ThreeDReducedInstruction,
+ from: Vector4D,
+ instruction: ThreeDReducedInstruction,
) => {
- if (instruction.type !== "C") {
- throw new Error("Expected C instruction");
- }
-
- const t = 0.5;
-
- const q0: Vector4D = [
- (1 - t) * from[0] + t * instruction.cp1[0],
- (1 - t) * from[1] + t * instruction.cp1[1],
- (1 - t) * from[2] + t * instruction.cp1[2],
- (1 - t) * from[3] + t * instruction.cp1[3],
- ];
-
- const q1: Vector4D = [
- (1 - t) * instruction.cp1[0] + t * instruction.cp2[0],
- (1 - t) * instruction.cp1[1] + t * instruction.cp2[1],
- (1 - t) * instruction.cp1[2] + t * instruction.cp2[2],
- (1 - t) * instruction.cp1[3] + t * instruction.cp2[3],
- ];
-
- const q2: Vector4D = [
- (1 - t) * instruction.cp2[0] + t * instruction.point[0],
- (1 - t) * instruction.cp2[1] + t * instruction.point[1],
- (1 - t) * instruction.cp2[2] + t * instruction.point[2],
- (1 - t) * instruction.cp2[3] + t * instruction.point[3],
- ];
-
- const r0: Vector4D = [
- (1 - t) * q0[0] + t * q1[0],
- (1 - t) * q0[1] + t * q1[1],
- (1 - t) * q0[2] + t * q1[2],
- (1 - t) * q0[3] + t * q1[3],
- ];
-
- const r1: Vector4D = [
- (1 - t) * q1[0] + t * q2[0],
- (1 - t) * q1[1] + t * q2[1],
- (1 - t) * q1[2] + t * q2[2],
- (1 - t) * q1[3] + t * q2[3],
- ];
-
- const s0: Vector4D = [
- (1 - t) * r0[0] + t * r1[0],
- (1 - t) * r0[1] + t * r1[1],
- (1 - t) * r0[2] + t * r1[2],
- (1 - t) * r0[3] + t * r1[3],
- ];
-
- const curves: [ThreeDReducedInstruction, ThreeDReducedInstruction] = [
- { type: "C", point: s0, cp1: q0, cp2: r0 },
- { type: "C", point: instruction.point, cp1: r1, cp2: q2 },
- ];
-
- return curves;
+ if (instruction.type !== 'C') {
+ throw new Error('Expected C instruction');
+ }
+
+ const t = 0.5;
+
+ const q0: Vector4D = [
+ (1 - t) * from[0] + t * instruction.cp1[0],
+ (1 - t) * from[1] + t * instruction.cp1[1],
+ (1 - t) * from[2] + t * instruction.cp1[2],
+ (1 - t) * from[3] + t * instruction.cp1[3],
+ ];
+
+ const q1: Vector4D = [
+ (1 - t) * instruction.cp1[0] + t * instruction.cp2[0],
+ (1 - t) * instruction.cp1[1] + t * instruction.cp2[1],
+ (1 - t) * instruction.cp1[2] + t * instruction.cp2[2],
+ (1 - t) * instruction.cp1[3] + t * instruction.cp2[3],
+ ];
+
+ const q2: Vector4D = [
+ (1 - t) * instruction.cp2[0] + t * instruction.point[0],
+ (1 - t) * instruction.cp2[1] + t * instruction.point[1],
+ (1 - t) * instruction.cp2[2] + t * instruction.point[2],
+ (1 - t) * instruction.cp2[3] + t * instruction.point[3],
+ ];
+
+ const r0: Vector4D = [
+ (1 - t) * q0[0] + t * q1[0],
+ (1 - t) * q0[1] + t * q1[1],
+ (1 - t) * q0[2] + t * q1[2],
+ (1 - t) * q0[3] + t * q1[3],
+ ];
+
+ const r1: Vector4D = [
+ (1 - t) * q1[0] + t * q2[0],
+ (1 - t) * q1[1] + t * q2[1],
+ (1 - t) * q1[2] + t * q2[2],
+ (1 - t) * q1[3] + t * q2[3],
+ ];
+
+ const s0: Vector4D = [
+ (1 - t) * r0[0] + t * r1[0],
+ (1 - t) * r0[1] + t * r1[1],
+ (1 - t) * r0[2] + t * r1[2],
+ (1 - t) * r0[3] + t * r1[3],
+ ];
+
+ const curves: [ThreeDReducedInstruction, ThreeDReducedInstruction] = [
+ {type: 'C', point: s0, cp1: q0, cp2: r0},
+ {type: 'C', point: instruction.point, cp1: r1, cp2: q2},
+ ];
+
+ return curves;
};
const subdivideQInstruction = (
- from: Vector4D,
- instruction: ThreeDReducedInstruction,
+ from: Vector4D,
+ instruction: ThreeDReducedInstruction,
) => {
- if (instruction.type !== "Q") {
- throw new Error("Expected Q instruction");
- }
-
- const t = 0.5;
- const q0: Vector4D = [
- (1 - t) * from[0] + t * instruction.cp[0],
- (1 - t) * from[1] + t * instruction.cp[1],
- (1 - t) * from[2] + t * instruction.cp[2],
- (1 - t) * from[3] + t * instruction.cp[3],
- ];
-
- const q1: Vector4D = [
- (1 - t) * instruction.cp[0] + t * instruction.point[0],
- (1 - t) * instruction.cp[1] + t * instruction.point[1],
- (1 - t) * instruction.cp[2] + t * instruction.point[2],
- (1 - t) * instruction.cp[3] + t * instruction.point[3],
- ];
-
- const r0: Vector4D = [
- (1 - t) * q0[0] + t * q1[0],
- (1 - t) * q0[1] + t * q1[1],
- (1 - t) * q0[2] + t * q1[2],
- (1 - t) * q0[3] + t * q1[3],
- ];
-
- const newInstructions: [ThreeDReducedInstruction, ThreeDReducedInstruction] =
- [
- { type: "Q", point: r0, cp: q0 },
- { type: "Q", point: instruction.point, cp: q1 },
- ];
-
- return newInstructions;
+ if (instruction.type !== 'Q') {
+ throw new Error('Expected Q instruction');
+ }
+
+ const t = 0.5;
+ const q0: Vector4D = [
+ (1 - t) * from[0] + t * instruction.cp[0],
+ (1 - t) * from[1] + t * instruction.cp[1],
+ (1 - t) * from[2] + t * instruction.cp[2],
+ (1 - t) * from[3] + t * instruction.cp[3],
+ ];
+
+ const q1: Vector4D = [
+ (1 - t) * instruction.cp[0] + t * instruction.point[0],
+ (1 - t) * instruction.cp[1] + t * instruction.point[1],
+ (1 - t) * instruction.cp[2] + t * instruction.point[2],
+ (1 - t) * instruction.cp[3] + t * instruction.point[3],
+ ];
+
+ const r0: Vector4D = [
+ (1 - t) * q0[0] + t * q1[0],
+ (1 - t) * q0[1] + t * q1[1],
+ (1 - t) * q0[2] + t * q1[2],
+ (1 - t) * q0[3] + t * q1[3],
+ ];
+
+ const newInstructions: [ThreeDReducedInstruction, ThreeDReducedInstruction] =
+ [
+ {type: 'Q', point: r0, cp: q0},
+ {type: 'Q', point: instruction.point, cp: q1},
+ ];
+
+ return newInstructions;
};
const subdivideInstruction = (
- from: Vector4D,
- instruction: ThreeDReducedInstruction,
+ from: Vector4D,
+ instruction: ThreeDReducedInstruction,
): ThreeDReducedInstruction[] => {
- if (instruction.type === "C") {
- return subdivide3DCInstruction(from, instruction);
- }
+ if (instruction.type === 'C') {
+ return subdivide3DCInstruction(from, instruction);
+ }
- if (instruction.type === "L" || instruction.type === "M") {
- return subdivideLOrMInstruction(from, instruction);
- }
+ if (instruction.type === 'L' || instruction.type === 'M') {
+ return subdivideLOrMInstruction(from, instruction);
+ }
- if (instruction.type === "Q") {
- return subdivideQInstruction(from, instruction);
- }
+ if (instruction.type === 'Q') {
+ return subdivideQInstruction(from, instruction);
+ }
- if (instruction.type === "Z") {
- return [instruction];
- }
+ if (instruction.type === 'Z') {
+ return [instruction];
+ }
- throw new Error("Cannot subdivide instruction");
+ throw new Error('Cannot subdivide instruction');
};
export const subdivideInstructions = (
- instructions: ThreeDReducedInstruction[],
+ instructions: ThreeDReducedInstruction[],
): ThreeDReducedInstruction[] => {
- const newInstructions: ThreeDReducedInstruction[] = [];
- instructions.forEach((instruction, i) => {
- if (instruction.type === "M") {
- newInstructions.push(instruction);
- return;
- }
-
- if (instruction.type === "Z") {
- newInstructions.push(instruction);
- return;
- }
-
- const previousInstruction = instructions[i - 1];
- const subdivided = subdivideInstruction(
- previousInstruction.point,
- instruction,
- );
- newInstructions.push(...subdivided);
- });
- return newInstructions;
+ const newInstructions: ThreeDReducedInstruction[] = [];
+ instructions.forEach((instruction, i) => {
+ if (instruction.type === 'M') {
+ newInstructions.push(instruction);
+ return;
+ }
+
+ if (instruction.type === 'Z') {
+ newInstructions.push(instruction);
+ return;
+ }
+
+ const previousInstruction = instructions[i - 1];
+ const subdivided = subdivideInstruction(
+ previousInstruction.point,
+ instruction,
+ );
+ newInstructions.push(...subdivided);
+ });
+ return newInstructions;
};
diff --git a/packages/docs/src/components/DoMoreHero/truthy.ts b/packages/docs/src/components/DoMoreHero/truthy.ts
index d81eb0649b..56f9b01ea9 100644
--- a/packages/docs/src/components/DoMoreHero/truthy.ts
+++ b/packages/docs/src/components/DoMoreHero/truthy.ts
@@ -1,4 +1,4 @@
-type Truthy<T> = T extends false | "" | 0 | null | undefined ? never : T;
+type Truthy<T> = T extends false | '' | 0 | null | undefined ? never : T;
export function truthy<T>(value: T): value is Truthy<T> {
- return Boolean(value);
+ return Boolean(value);
}
diff --git a/packages/docs/src/components/ExpertPage.tsx b/packages/docs/src/components/ExpertPage.tsx
index e4ff57b306..be7f36bd2a 100644
--- a/packages/docs/src/components/ExpertPage.tsx
+++ b/packages/docs/src/components/ExpertPage.tsx
@@ -1,354 +1,354 @@
-import Head from "@docusaurus/Head";
-import { useLocation } from "@docusaurus/router";
-import Layout from "@theme/Layout";
-import React from "react";
-import { Button } from "../../components/layout/Button";
-import { Spacer } from "../../components/layout/Spacer";
-import { DARK_BLUE } from "../../components/layout/colors";
-import { experts } from "../data/experts";
+import Head from '@docusaurus/Head';
+import {useLocation} from '@docusaurus/router';
+import Layout from '@theme/Layout';
+import React from 'react';
+import {Button} from '../../components/layout/Button';
+import {Spacer} from '../../components/layout/Spacer';
+import {DARK_BLUE} from '../../components/layout/colors';
+import {experts} from '../data/experts';
-import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
-import { BackButton } from "./BackButton";
-import { Seo } from "./Seo";
+import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
+import {BackButton} from './BackButton';
+import {Seo} from './Seo';
const layout: React.CSSProperties = {
- maxWidth: 900,
- margin: "auto",
- paddingLeft: 16,
- paddingRight: 16,
+ maxWidth: 900,
+ margin: 'auto',
+ paddingLeft: 16,
+ paddingRight: 16,
};
const header: React.CSSProperties = {
- backgroundColor: DARK_BLUE,
- color: "white",
- paddingTop: 15,
+ backgroundColor: DARK_BLUE,
+ color: 'white',
+ paddingTop: 15,
};
const headerRow: React.CSSProperties = {
- display: "flex",
- flexDirection: "row",
- alignItems: "flex-end",
- marginTop: 15,
- marginBottom: 20,
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'flex-end',
+ marginTop: 15,
+ marginBottom: 20,
};
const flexer: React.CSSProperties = {
- flex: 1,
+ flex: 1,
};
const img: React.CSSProperties = {
- height: 100,
- borderRadius: 5,
+ height: 100,
+ borderRadius: 5,
};
const title: React.CSSProperties = {
- lineHeight: 1,
- paddingLeft: 20,
- paddingBottom: 0,
- marginBottom: 16,
+ lineHeight: 1,
+ paddingLeft: 20,
+ paddingBottom: 0,
+ marginBottom: 16,
};
const emailButton: React.CSSProperties = {
- marginBottom: 16,
- marginRight: 16,
+ marginBottom: 16,
+ marginRight: 16,
};
const description: React.CSSProperties = {
- fontSize: 20,
+ fontSize: 20,
};
const socialIcon: React.CSSProperties = {
- color: DARK_BLUE,
- height: 24,
+ color: DARK_BLUE,
+ height: 24,
};
const socialIconContainer: React.CSSProperties = {
- width: 36,
- display: "flex",
- alignItems: "center",
+ width: 36,
+ display: 'flex',
+ alignItems: 'center',
};
const socialLink: React.CSSProperties = {
- display: "block",
- maxWidth: "fit-content",
+ display: 'block',
+ maxWidth: 'fit-content',
};
const socialRow: React.CSSProperties = {
- flexDirection: "row",
- display: "flex",
- alignItems: "center",
- marginBottom: 10,
+ flexDirection: 'row',
+ display: 'flex',
+ alignItems: 'center',
+ marginBottom: 10,
};
const card: React.CSSProperties = {
- backgroundColor: "var(--footer-background)",
- padding: 20,
- flex: 1,
- flexDirection: "row",
- display: "flex",
- fontSize: 13,
- alignItems: "center",
+ backgroundColor: 'var(--footer-background)',
+ padding: 20,
+ flex: 1,
+ flexDirection: 'row',
+ display: 'flex',
+ fontSize: 13,
+ alignItems: 'center',
};
const cardIcon: React.CSSProperties = {
- width: 30,
- marginRight: 20,
- color: "var(--text-color)",
+ width: 30,
+ marginRight: 20,
+ color: 'var(--text-color)',
};
export default () => {
- const location = useLocation();
- const context = useDocusaurusContext();
+ const location = useLocation();
+ const context = useDocusaurusContext();
- const expertSlug = location.pathname.match(/experts\/([a-zA-Z-]+)/);
+ const expertSlug = location.pathname.match(/experts\/([a-zA-Z-]+)/);
- if (!expertSlug) {
- throw new Error("no expert slug found");
- }
+ if (!expertSlug) {
+ throw new Error('no expert slug found');
+ }
- const expert = experts.find((e) => e.slug === expertSlug[1]);
- const imgSrc = `/generated/experts-${expert.slug}.png`;
+ const expert = experts.find((e) => e.slug === expertSlug[1]);
+ const imgSrc = `/generated/experts-${expert.slug}.png`;
- if (!expert) {
- throw new Error("no expert found");
- }
+ if (!expert) {
+ throw new Error('no expert found');
+ }
- return (
- <Layout>
- <Head>
- {Seo.renderTitle(`${expert.name} | Remotion Experts`)}
- {Seo.renderDescription(
- `Hire ${expert.name} and other Remotion experts, vetted by Remotion.`,
- )}
- {Seo.renderImage(imgSrc, context.siteConfig.url)}
- </Head>
- <div style={header}>
- <div style={layout}>
- <BackButton link="/experts" color="white" text="Back to Experts" />
- <div style={headerRow}>
- <img style={img} src={expert.image} />
- <h2 className="big-title-on-desktop" style={title}>
- {expert.name}
- </h2>
- <div style={flexer} />
- <a
- className="only-desktop"
- href={`mailto:${expert.email}`}
- style={{
- textDecoration: "none",
- }}
- >
- <Button
- background="white"
- hoverColor="white"
- color={"black"}
- fullWidth={false}
- loading={false}
- size="sm"
- style={emailButton}
- >
- Contact
- </Button>
- </a>
- </div>
- </div>
- </div>
- <div style={layout}>
- <h3>About me</h3>
- <p style={description}>{expert.description}</p>
- <h3>Socials</h3>
- {expert.github ? (
- <a
- style={socialLink}
- href={`https://github.com/${expert.github}`}
- target={"_blank"}
- >
- <div style={socialRow}>
- <div style={socialIconContainer}>
- <svg
- style={socialIcon}
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 496 512"
- >
- <path
- fill="currentcolor"
- d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
- />
- </svg>
- </div>
- @{expert.github}
- </div>
- </a>
- ) : null}
- {expert.x ? (
- <a
- style={socialLink}
- href={`https://x.com/${expert.x}`}
- target={"_blank"}
- >
- <div style={socialRow}>
- <div style={socialIconContainer}>
- <svg
- style={socialIcon}
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 512 512"
- >
- <path
- fill="currentcolor"
- d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"
- />
- </svg>
- </div>
- @{expert.x}
- </div>
- </a>
- ) : null}
- {expert.linkedin ? (
- <a
- style={socialLink}
- href={`https://linkedin.com/${expert.linkedin}`}
- target={"_blank"}
- >
- <div style={socialRow}>
- <div style={socialIconContainer}>
- <svg
- fill="currentcolor"
- style={socialIcon}
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 448 512"
- >
- <path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z" />
- </svg>
- </div>
- {expert.name}
- </div>
- </a>
- ) : null}
- <br />
- <h3> Contact me </h3>
- <a style={socialLink} href={`mailto:${expert.email}`} target={"_blank"}>
- <div style={socialRow}>
- <div style={socialIconContainer}>
- <svg
- style={socialIcon}
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 512 512"
- >
- <path
- fill="currentcolor"
- d="M0 128C0 92.65 28.65 64 64 64H448C483.3 64 512 92.65 512 128V384C512 419.3 483.3 448 448 448H64C28.65 448 0 419.3 0 384V128zM48 128V150.1L220.5 291.7C241.1 308.7 270.9 308.7 291.5 291.7L464 150.1V127.1C464 119.2 456.8 111.1 448 111.1H64C55.16 111.1 48 119.2 48 127.1L48 128zM48 212.2V384C48 392.8 55.16 400 64 400H448C456.8 400 464 392.8 464 384V212.2L322 328.8C283.6 360.3 228.4 360.3 189.1 328.8L48 212.2z"
- />
- </svg>{" "}
- </div>
- {expert.email}
- </div>
- </a>
- {expert.videocall ? (
- <a
- style={socialLink}
- href={`https://cal.com/${expert.videocall}`}
- target={"_blank"}
- >
- <div style={socialRow}>
- <div style={socialIconContainer}>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 1339 1339"
- fill="none"
- style={{
- width: 30,
- marginRight: 10,
- }}
- >
- <g filter="url(#filter0_d_1118_90)">
- <path
- d="M229 483.994C229 450.86 255.86 424 288.994 424H708.949C792.654 424 860.511 491.857 860.511 575.563V855.006C860.511 888.14 833.651 915 800.518 915H380.563C296.857 915 229 847.143 229 763.437V483.994Z"
- fill="#0B84F3"
- />
- <path
- d="M288.994 431.105H708.949C788.731 431.105 853.407 495.781 853.407 575.563V855.006C853.407 884.216 829.727 907.896 800.518 907.896H380.563C300.781 907.896 236.105 843.219 236.105 763.437V483.994C236.105 454.784 259.784 431.105 288.994 431.105Z"
- stroke="#505050"
- strokeWidth="14.209"
- />
- </g>
- <g filter="url(#filter1_d_1118_90)">
- <path
- d="M898.402 597.835C898.402 577.414 907.19 557.98 922.522 544.492L1042.84 438.648C1068.34 416.217 1108.38 434.323 1108.38 468.283V871.921C1108.38 905.562 1068.99 923.782 1043.35 902L932.908 808.163C911.019 789.565 898.402 762.29 898.402 733.567V597.835Z"
- fill="#0B84F3"
- />
- <path
- d="M927.215 549.827L1047.53 443.982C1068.44 425.589 1101.28 440.436 1101.28 468.283V871.921C1101.28 899.506 1068.98 914.447 1047.95 896.586L937.508 802.748C917.207 785.5 905.507 760.206 905.507 733.567V597.835C905.507 579.456 913.415 561.966 927.215 549.827Z"
- stroke="#505050"
- strokeWidth="14.209"
- />
- </g>
- </svg>
- </div>
- @{expert.name}
- </div>
- </a>
- ) : null}
- <br />
- <h3>Expert since</h3>
- <div>
- {" "}
- {new Intl.DateTimeFormat("en-US", {
- month: "long",
- year: "numeric",
- }).format(expert.since)}{" "}
- </div>
- </div>
- <br />
- <div style={layout}>
- <div className="row-on-desktop">
- <div style={card}>
- <svg
- viewBox="0 0 661 512"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- style={cardIcon}
- >
- <g clipPath="url(#clip0_1_2)">
- <path
- d="M511.5 213C532.991 213 551.678 225.088 561.08 242.842C580.293 236.943 602.018 241.615 617.201 256.799C632.385 271.982 637.057 293.765 631.158 312.92C648.912 322.322 661 341.009 661 362.5C661 383.991 648.912 402.678 631.158 412.08C637.057 431.293 632.385 453.018 617.201 468.201C602.018 483.385 580.235 488.057 561.08 482.158C551.678 499.912 532.991 512 511.5 512C490.009 512 471.322 499.912 461.92 482.158C442.707 488.057 420.982 483.385 405.799 468.201C390.615 453.018 385.943 431.235 391.842 412.08C374.088 402.678 362 383.991 362 362.5C362 341.009 374.088 322.322 391.842 312.92C385.943 293.707 390.615 271.982 405.799 256.799C420.982 241.615 442.765 236.943 461.92 242.842C471.322 225.088 490.009 213 511.5 213ZM568.146 344.396L578.074 334.469L558.219 314.672L548.291 324.599L492.812 380.078L470.037 357.303L460.109 347.375L440.312 367.172L450.24 377.1L482.943 409.803L492.871 419.73L502.799 409.803L568.146 344.396Z"
- fill="currentcolor"
- />
- <path
- d="M184 48H328C332.4 48 336 51.6 336 56V96H176V56C176 51.6 179.6 48 184 48ZM128 56V96H64C28.7 96 0 124.7 0 160V256H192H352H360.2C392.5 216.9 441.3 192 496 192C501.4 192 506.7 192.2 512 192.7V160C512 124.7 483.3 96 448 96H384V56C384 25.1 358.9 0 328 0H184C153.1 0 128 25.1 128 56ZM320 352H224C206.3 352 192 337.7 192 320V288H0V416C0 451.3 28.7 480 64 480H360.2C335.1 449.6 320 410.5 320 368C320 362.6 320.2 357.3 320.7 352H320Z"
- fill="currentcolor"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2">
- <rect width="661" height="512" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <div style={{ flex: 1 }}>
- Remotion Experts are independent freelancers that have proven
- their Remotion expertise.
- </div>
- </div>
- <Spacer />
- <Spacer />
- <div style={card}>
- <svg
- style={{ ...cardIcon, height: 32 }}
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 512 512"
- >
- <path
- fill="currentColor"
- d="M64 64C64 28.7 92.7 0 128 0H354.7c17 0 33.3 6.7 45.3 18.7L429.3 48c12 12 18.7 28.3 18.7 45.3V192h32c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V288c-17.7 0-32-14.3-32-32V224c0-17.7 14.3-32 32-32H64V64zm320 64H352c-17.7 0-32-14.3-32-32V64H128V192h18.7c8.5 0 16.6 3.4 22.6 9.4l13.3 13.3c6 6 14.1 9.4 22.6 9.4H306.7c8.5 0 16.6-3.4 22.6-9.4l13.3-13.3c6-6 14.1-9.4 22.6-9.4H384V128zM160 288c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zM96 288c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zm64 128c-8.8 0-16 7.2-16 16s7.2 16 16 16H352c8.8 0 16-7.2 16-16s-7.2-16-16-16H160zm-32-32c8.8 0 16-7.2 16-16s-7.2-16-16-16s-16 7.2-16 16s7.2 16 16 16zm64 0c8.8 0 16-7.2 16-16s-7.2-16-16-16s-16 7.2-16 16s7.2 16 16 16zm80-16c0-8.8-7.2-16-16-16s-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16zm48 16c8.8 0 16-7.2 16-16s-7.2-16-16-16s-16 7.2-16 16s7.2 16 16 16zm80-16c0-8.8-7.2-16-16-16s-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16z"
- />
- </svg>
- <div style={{ flex: 1 }}>
- To apply as a Remotion Expert, write to [email protected].
- </div>
- </div>
- </div>
- </div>
- <br />
- </Layout>
- );
+ return (
+ <Layout>
+ <Head>
+ {Seo.renderTitle(`${expert.name} | Remotion Experts`)}
+ {Seo.renderDescription(
+ `Hire ${expert.name} and other Remotion experts, vetted by Remotion.`,
+ )}
+ {Seo.renderImage(imgSrc, context.siteConfig.url)}
+ </Head>
+ <div style={header}>
+ <div style={layout}>
+ <BackButton link="/experts" color="white" text="Back to Experts" />
+ <div style={headerRow}>
+ <img style={img} src={expert.image} />
+ <h2 className="big-title-on-desktop" style={title}>
+ {expert.name}
+ </h2>
+ <div style={flexer} />
+ <a
+ className="only-desktop"
+ href={`mailto:${expert.email}`}
+ style={{
+ textDecoration: 'none',
+ }}
+ >
+ <Button
+ background="white"
+ hoverColor="white"
+ color={'black'}
+ fullWidth={false}
+ loading={false}
+ size="sm"
+ style={emailButton}
+ >
+ Contact
+ </Button>
+ </a>
+ </div>
+ </div>
+ </div>
+ <div style={layout}>
+ <h3>About me</h3>
+ <p style={description}>{expert.description}</p>
+ <h3>Socials</h3>
+ {expert.github ? (
+ <a
+ style={socialLink}
+ href={`https://github.com/${expert.github}`}
+ target={'_blank'}
+ >
+ <div style={socialRow}>
+ <div style={socialIconContainer}>
+ <svg
+ style={socialIcon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 496 512"
+ >
+ <path
+ fill="currentcolor"
+ d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
+ />
+ </svg>
+ </div>
+ @{expert.github}
+ </div>
+ </a>
+ ) : null}
+ {expert.x ? (
+ <a
+ style={socialLink}
+ href={`https://x.com/${expert.x}`}
+ target={'_blank'}
+ >
+ <div style={socialRow}>
+ <div style={socialIconContainer}>
+ <svg
+ style={socialIcon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill="currentcolor"
+ d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"
+ />
+ </svg>
+ </div>
+ @{expert.x}
+ </div>
+ </a>
+ ) : null}
+ {expert.linkedin ? (
+ <a
+ style={socialLink}
+ href={`https://linkedin.com/${expert.linkedin}`}
+ target={'_blank'}
+ >
+ <div style={socialRow}>
+ <div style={socialIconContainer}>
+ <svg
+ fill="currentcolor"
+ style={socialIcon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ >
+ <path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z" />
+ </svg>
+ </div>
+ {expert.name}
+ </div>
+ </a>
+ ) : null}
+ <br />
+ <h3> Contact me </h3>
+ <a style={socialLink} href={`mailto:${expert.email}`} target={'_blank'}>
+ <div style={socialRow}>
+ <div style={socialIconContainer}>
+ <svg
+ style={socialIcon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill="currentcolor"
+ d="M0 128C0 92.65 28.65 64 64 64H448C483.3 64 512 92.65 512 128V384C512 419.3 483.3 448 448 448H64C28.65 448 0 419.3 0 384V128zM48 128V150.1L220.5 291.7C241.1 308.7 270.9 308.7 291.5 291.7L464 150.1V127.1C464 119.2 456.8 111.1 448 111.1H64C55.16 111.1 48 119.2 48 127.1L48 128zM48 212.2V384C48 392.8 55.16 400 64 400H448C456.8 400 464 392.8 464 384V212.2L322 328.8C283.6 360.3 228.4 360.3 189.1 328.8L48 212.2z"
+ />
+ </svg>{' '}
+ </div>
+ {expert.email}
+ </div>
+ </a>
+ {expert.videocall ? (
+ <a
+ style={socialLink}
+ href={`https://cal.com/${expert.videocall}`}
+ target={'_blank'}
+ >
+ <div style={socialRow}>
+ <div style={socialIconContainer}>
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 1339 1339"
+ fill="none"
+ style={{
+ width: 30,
+ marginRight: 10,
+ }}
+ >
+ <g filter="url(#filter0_d_1118_90)">
+ <path
+ d="M229 483.994C229 450.86 255.86 424 288.994 424H708.949C792.654 424 860.511 491.857 860.511 575.563V855.006C860.511 888.14 833.651 915 800.518 915H380.563C296.857 915 229 847.143 229 763.437V483.994Z"
+ fill="#0B84F3"
+ />
+ <path
+ d="M288.994 431.105H708.949C788.731 431.105 853.407 495.781 853.407 575.563V855.006C853.407 884.216 829.727 907.896 800.518 907.896H380.563C300.781 907.896 236.105 843.219 236.105 763.437V483.994C236.105 454.784 259.784 431.105 288.994 431.105Z"
+ stroke="#505050"
+ strokeWidth="14.209"
+ />
+ </g>
+ <g filter="url(#filter1_d_1118_90)">
+ <path
+ d="M898.402 597.835C898.402 577.414 907.19 557.98 922.522 544.492L1042.84 438.648C1068.34 416.217 1108.38 434.323 1108.38 468.283V871.921C1108.38 905.562 1068.99 923.782 1043.35 902L932.908 808.163C911.019 789.565 898.402 762.29 898.402 733.567V597.835Z"
+ fill="#0B84F3"
+ />
+ <path
+ d="M927.215 549.827L1047.53 443.982C1068.44 425.589 1101.28 440.436 1101.28 468.283V871.921C1101.28 899.506 1068.98 914.447 1047.95 896.586L937.508 802.748C917.207 785.5 905.507 760.206 905.507 733.567V597.835C905.507 579.456 913.415 561.966 927.215 549.827Z"
+ stroke="#505050"
+ strokeWidth="14.209"
+ />
+ </g>
+ </svg>
+ </div>
+ @{expert.name}
+ </div>
+ </a>
+ ) : null}
+ <br />
+ <h3>Expert since</h3>
+ <div>
+ {' '}
+ {new Intl.DateTimeFormat('en-US', {
+ month: 'long',
+ year: 'numeric',
+ }).format(expert.since)}{' '}
+ </div>
+ </div>
+ <br />
+ <div style={layout}>
+ <div className="row-on-desktop">
+ <div style={card}>
+ <svg
+ viewBox="0 0 661 512"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ style={cardIcon}
+ >
+ <g clipPath="url(#clip0_1_2)">
+ <path
+ d="M511.5 213C532.991 213 551.678 225.088 561.08 242.842C580.293 236.943 602.018 241.615 617.201 256.799C632.385 271.982 637.057 293.765 631.158 312.92C648.912 322.322 661 341.009 661 362.5C661 383.991 648.912 402.678 631.158 412.08C637.057 431.293 632.385 453.018 617.201 468.201C602.018 483.385 580.235 488.057 561.08 482.158C551.678 499.912 532.991 512 511.5 512C490.009 512 471.322 499.912 461.92 482.158C442.707 488.057 420.982 483.385 405.799 468.201C390.615 453.018 385.943 431.235 391.842 412.08C374.088 402.678 362 383.991 362 362.5C362 341.009 374.088 322.322 391.842 312.92C385.943 293.707 390.615 271.982 405.799 256.799C420.982 241.615 442.765 236.943 461.92 242.842C471.322 225.088 490.009 213 511.5 213ZM568.146 344.396L578.074 334.469L558.219 314.672L548.291 324.599L492.812 380.078L470.037 357.303L460.109 347.375L440.312 367.172L450.24 377.1L482.943 409.803L492.871 419.73L502.799 409.803L568.146 344.396Z"
+ fill="currentcolor"
+ />
+ <path
+ d="M184 48H328C332.4 48 336 51.6 336 56V96H176V56C176 51.6 179.6 48 184 48ZM128 56V96H64C28.7 96 0 124.7 0 160V256H192H352H360.2C392.5 216.9 441.3 192 496 192C501.4 192 506.7 192.2 512 192.7V160C512 124.7 483.3 96 448 96H384V56C384 25.1 358.9 0 328 0H184C153.1 0 128 25.1 128 56ZM320 352H224C206.3 352 192 337.7 192 320V288H0V416C0 451.3 28.7 480 64 480H360.2C335.1 449.6 320 410.5 320 368C320 362.6 320.2 357.3 320.7 352H320Z"
+ fill="currentcolor"
+ />
+ </g>
+ <defs>
+ <clipPath id="clip0_1_2">
+ <rect width="661" height="512" fill="white" />
+ </clipPath>
+ </defs>
+ </svg>
+ <div style={{flex: 1}}>
+ Remotion Experts are independent freelancers that have proven
+ their Remotion expertise.
+ </div>
+ </div>
+ <Spacer />
+ <Spacer />
+ <div style={card}>
+ <svg
+ style={{...cardIcon, height: 32}}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill="currentColor"
+ d="M64 64C64 28.7 92.7 0 128 0H354.7c17 0 33.3 6.7 45.3 18.7L429.3 48c12 12 18.7 28.3 18.7 45.3V192h32c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V288c-17.7 0-32-14.3-32-32V224c0-17.7 14.3-32 32-32H64V64zm320 64H352c-17.7 0-32-14.3-32-32V64H128V192h18.7c8.5 0 16.6 3.4 22.6 9.4l13.3 13.3c6 6 14.1 9.4 22.6 9.4H306.7c8.5 0 16.6-3.4 22.6-9.4l13.3-13.3c6-6 14.1-9.4 22.6-9.4H384V128zM160 288c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zM96 288c-8.8 0-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16s-7.2-16-16-16zm64 128c-8.8 0-16 7.2-16 16s7.2 16 16 16H352c8.8 0 16-7.2 16-16s-7.2-16-16-16H160zm-32-32c8.8 0 16-7.2 16-16s-7.2-16-16-16s-16 7.2-16 16s7.2 16 16 16zm64 0c8.8 0 16-7.2 16-16s-7.2-16-16-16s-16 7.2-16 16s7.2 16 16 16zm80-16c0-8.8-7.2-16-16-16s-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16zm48 16c8.8 0 16-7.2 16-16s-7.2-16-16-16s-16 7.2-16 16s7.2 16 16 16zm80-16c0-8.8-7.2-16-16-16s-16 7.2-16 16s7.2 16 16 16s16-7.2 16-16z"
+ />
+ </svg>
+ <div style={{flex: 1}}>
+ To apply as a Remotion Expert, write to [email protected].
+ </div>
+ </div>
+ </div>
+ </div>
+ <br />
+ </Layout>
+ );
};
diff --git a/packages/docs/src/components/GoogleMaps.module.css b/packages/docs/src/components/GoogleMaps.module.css
index c8f7e75767..dbff03ffcd 100644
--- a/packages/docs/src/components/GoogleMaps.module.css
+++ b/packages/docs/src/components/GoogleMaps.module.css
@@ -1,8 +1,8 @@
.mapContainer {
- display: flex;
- margin-top: 50px;
- margin-bottom: 20px;
- justify-content: center;
- align-items: center;
- width: 100%;
+ display: flex;
+ margin-top: 50px;
+ margin-bottom: 20px;
+ justify-content: center;
+ align-items: center;
+ width: 100%;
}
diff --git a/packages/docs/src/components/GoogleMaps.tsx b/packages/docs/src/components/GoogleMaps.tsx
index 287e97f82b..8c6afa75e0 100644
--- a/packages/docs/src/components/GoogleMaps.tsx
+++ b/packages/docs/src/components/GoogleMaps.tsx
@@ -1,30 +1,30 @@
-import React from "react";
-import styles from "./GoogleMaps.module.css"; // Assuming you have a separate CSS module for this component
+import React from 'react';
+import styles from './GoogleMaps.module.css'; // Assuming you have a separate CSS module for this component
const GoogleMaps = () => {
- return (
- <div className={styles.mapContainer}>
- <div
- style={{
- maxWidth: "968px",
- transition: "none",
- overflow: "hidden",
- width: "100%",
- height: "500px",
- }}
- >
- <div
- id="my-map-canvas"
- style={{ height: "100%", width: "100%", maxWidth: "100%" }}
- >
- <iframe
- style={{ height: "100%", width: "100%", border: "0" }}
- src="https://www.google.com/maps/embed/v1/place?q=Remotion,+Hohlstrasse+186,+8004+Zurich&key=AIzaSyBFw0Qbyq9zTFTd-tUY6dZWTgaQzuU17R8"
- />
- </div>
- </div>
- </div>
- );
+ return (
+ <div className={styles.mapContainer}>
+ <div
+ style={{
+ maxWidth: '968px',
+ transition: 'none',
+ overflow: 'hidden',
+ width: '100%',
+ height: '500px',
+ }}
+ >
+ <div
+ id="my-map-canvas"
+ style={{height: '100%', width: '100%', maxWidth: '100%'}}
+ >
+ <iframe
+ style={{height: '100%', width: '100%', border: '0'}}
+ src="https://www.google.com/maps/embed/v1/place?q=Remotion,+Hohlstrasse+186,+8004+Zurich&key=AIzaSyBFw0Qbyq9zTFTd-tUY6dZWTgaQzuU17R8"
+ />
+ </div>
+ </div>
+ </div>
+ );
};
export default GoogleMaps;
diff --git a/packages/docs/src/components/IconForTemplate.tsx b/packages/docs/src/components/IconForTemplate.tsx
index 637793ae28..413710f5ae 100644
--- a/packages/docs/src/components/IconForTemplate.tsx
+++ b/packages/docs/src/components/IconForTemplate.tsx
@@ -1,160 +1,160 @@
-import type { Template } from "create-video";
-import React from "react";
-import { Blank } from "./icons/blank";
-import { Cubes } from "./icons/cubes";
-import { JSIcon } from "./icons/js";
-import { NextIcon } from "./icons/next";
-import { OverlayIcon } from "./icons/overlay";
-import { RemixIcon } from "./icons/remix";
-import { SkiaIcon } from "./icons/skia";
-import { Stargazer } from "./icons/stargazer";
-import { StillIcon } from "./icons/still";
-import { Tailwind } from "./icons/tailwind";
-import { TikTok } from "./icons/tiktok";
-import { TypeScriptIcon } from "./icons/ts";
-import { TTSIcon } from "./icons/tts";
-import { Waveform } from "./icons/waveform";
+import type {Template} from 'create-video';
+import React from 'react';
+import {Blank} from './icons/blank';
+import {Cubes} from './icons/cubes';
+import {JSIcon} from './icons/js';
+import {NextIcon} from './icons/next';
+import {OverlayIcon} from './icons/overlay';
+import {RemixIcon} from './icons/remix';
+import {SkiaIcon} from './icons/skia';
+import {Stargazer} from './icons/stargazer';
+import {StillIcon} from './icons/still';
+import {Tailwind} from './icons/tailwind';
+import {TikTok} from './icons/tiktok';
+import {TypeScriptIcon} from './icons/ts';
+import {TTSIcon} from './icons/tts';
+import {Waveform} from './icons/waveform';
export const IconForTemplate: React.FC<{
- template: Template;
- scale: number;
-}> = ({ template, scale = 1 }) => {
- if (template.cliId === "hello-world") {
- return (
- <TypeScriptIcon
- style={{
- height: scale * 48,
- }}
- />
- );
- }
-
- if (template.cliId === "blank") {
- return (
- <Blank
- style={{
- height: scale * 36,
- overflow: "visible",
- }}
- />
- );
- }
-
- if (template.cliId === "javascript") {
- return (
- <JSIcon
- style={{
- height: scale * 40,
- }}
- />
- );
- }
-
- if (template.cliId === "three") {
- return (
- <Cubes
- style={{
- height: scale * 36,
- }}
- />
- );
- }
-
- if (template.cliId === "still") {
- return (
- <StillIcon
- style={{
- height: scale * 36,
- }}
- />
- );
- }
-
- if (template.cliId === "audiogram") {
- return (
- <Waveform
- style={{
- height: scale * 36,
- }}
- />
- );
- }
-
- if (template.cliId === "tts") {
- return (
- <TTSIcon
- style={{
- height: scale * 36,
- }}
- />
- );
- }
-
- if (template.cliId === "google-tts") {
- return (
- <TTSIcon
- style={{
- height: scale * 36,
- }}
- />
- );
- }
-
- if (template.cliId === "tailwind") {
- return (
- <Tailwind
- style={{
- height: scale * 36,
- }}
- />
- );
- }
-
- if (template.cliId === "skia") {
- return (
- <SkiaIcon
- style={{
- height: scale * 32,
- }}
- />
- );
- }
-
- if (template.cliId === "remix") {
- return (
- <RemixIcon
- style={{
- height: scale * 32,
- }}
- />
- );
- }
-
- if (template.cliId === "overlay") {
- return <OverlayIcon style={{ height: scale * 42 }} />;
- }
-
- if (
- template.cliId === "next" ||
- template.cliId === "next-tailwind" ||
- template.cliId === "next-pages-dir"
- ) {
- return <NextIcon style={{ height: scale * 36 }} />;
- }
-
- if (template.cliId === "stargazer") {
- return <Stargazer style={{ height: scale * 36 }} />;
- }
-
- if (template.cliId === "tiktok") {
- return <TikTok style={{ height: scale * 36 }} />;
- }
-
- return (
- <Blank
- style={{
- height: scale * 40,
- }}
- />
- );
+ template: Template;
+ scale: number;
+}> = ({template, scale = 1}) => {
+ if (template.cliId === 'hello-world') {
+ return (
+ <TypeScriptIcon
+ style={{
+ height: scale * 48,
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'blank') {
+ return (
+ <Blank
+ style={{
+ height: scale * 36,
+ overflow: 'visible',
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'javascript') {
+ return (
+ <JSIcon
+ style={{
+ height: scale * 40,
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'three') {
+ return (
+ <Cubes
+ style={{
+ height: scale * 36,
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'still') {
+ return (
+ <StillIcon
+ style={{
+ height: scale * 36,
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'audiogram') {
+ return (
+ <Waveform
+ style={{
+ height: scale * 36,
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'tts') {
+ return (
+ <TTSIcon
+ style={{
+ height: scale * 36,
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'google-tts') {
+ return (
+ <TTSIcon
+ style={{
+ height: scale * 36,
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'tailwind') {
+ return (
+ <Tailwind
+ style={{
+ height: scale * 36,
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'skia') {
+ return (
+ <SkiaIcon
+ style={{
+ height: scale * 32,
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'remix') {
+ return (
+ <RemixIcon
+ style={{
+ height: scale * 32,
+ }}
+ />
+ );
+ }
+
+ if (template.cliId === 'overlay') {
+ return <OverlayIcon style={{height: scale * 42}} />;
+ }
+
+ if (
+ template.cliId === 'next' ||
+ template.cliId === 'next-tailwind' ||
+ template.cliId === 'next-pages-dir'
+ ) {
+ return <NextIcon style={{height: scale * 36}} />;
+ }
+
+ if (template.cliId === 'stargazer') {
+ return <Stargazer style={{height: scale * 36}} />;
+ }
+
+ if (template.cliId === 'tiktok') {
+ return <TikTok style={{height: scale * 36}} />;
+ }
+
+ return (
+ <Blank
+ style={{
+ height: scale * 40,
+ }}
+ />
+ );
};
diff --git a/packages/docs/src/components/MoreTemplatesButton.tsx b/packages/docs/src/components/MoreTemplatesButton.tsx
index 4614397ae6..d586eb9ede 100644
--- a/packages/docs/src/components/MoreTemplatesButton.tsx
+++ b/packages/docs/src/components/MoreTemplatesButton.tsx
@@ -1,57 +1,57 @@
-import Link from "@docusaurus/Link";
-import React from "react";
-import { useMobileLayout } from "../helpers/mobile-layout";
+import Link from '@docusaurus/Link';
+import React from 'react';
+import {useMobileLayout} from '../helpers/mobile-layout';
const commonStyle: React.CSSProperties = {
- height: 40,
- borderRadius: 20,
- backgroundColor: "white",
- border: "2px solid black",
- color: "var(--text-color)",
- fontWeight: "bold",
- justifyContent: "center",
- alignItems: "center",
- display: "flex",
- cursor: "pointer",
- padding: 16,
- fontSize: 14,
- marginLeft: 10,
+ height: 40,
+ borderRadius: 20,
+ backgroundColor: 'white',
+ border: '2px solid black',
+ color: 'var(--text-color)',
+ fontWeight: 'bold',
+ justifyContent: 'center',
+ alignItems: 'center',
+ display: 'flex',
+ cursor: 'pointer',
+ padding: 16,
+ fontSize: 14,
+ marginLeft: 10,
};
const rightStyle: React.CSSProperties = {
- ...commonStyle,
- right: 0,
- textDecoration: "none",
- color: "black",
+ ...commonStyle,
+ right: 0,
+ textDecoration: 'none',
+ color: 'black',
};
const icon: React.CSSProperties = {
- height: 16,
- marginLeft: 10,
+ height: 16,
+ marginLeft: 10,
};
const linkStyle: React.CSSProperties = {
- textDecoration: "none",
+ textDecoration: 'none',
};
export const MoreTemplatesButton: React.FC = () => {
- const mobileLayout = useMobileLayout();
+ const mobileLayout = useMobileLayout();
- return (
- <Link to="/templates" style={linkStyle}>
- <div style={rightStyle}>
- {mobileLayout ? "Templates" : "Find a template"}
- <svg
- style={icon}
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 448 512"
- >
- <path
- fill="currentColor"
- d="M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"
- />
- </svg>
- </div>
- </Link>
- );
+ return (
+ <Link to="/templates" style={linkStyle}>
+ <div style={rightStyle}>
+ {mobileLayout ? 'Templates' : 'Find a template'}
+ <svg
+ style={icon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ >
+ <path
+ fill="currentColor"
+ d="M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"
+ />
+ </svg>
+ </div>
+ </Link>
+ );
};
diff --git a/packages/docs/src/components/MuxVideo.tsx b/packages/docs/src/components/MuxVideo.tsx
index 15ebbffd18..8370c0ebf9 100644
--- a/packages/docs/src/components/MuxVideo.tsx
+++ b/packages/docs/src/components/MuxVideo.tsx
@@ -1,76 +1,71 @@
-import BrowserOnly from "@docusaurus/BrowserOnly";
-import Hls from "hls.js";
-import React, {
- forwardRef,
- useEffect,
- useImperativeHandle,
- useRef,
-} from "react";
-import { VideoPlayerWithControls } from "./VideoPlayerWithControls";
+import BrowserOnly from '@docusaurus/BrowserOnly';
+import Hls from 'hls.js';
+import React, {forwardRef, useEffect, useImperativeHandle, useRef} from 'react';
+import {VideoPlayerWithControls} from './VideoPlayerWithControls';
const getVideoToPlayUrl = (muxId: string) => {
- return `https://stream.mux.com/${muxId}.m3u8`;
+ return `https://stream.mux.com/${muxId}.m3u8`;
};
const MuxVideoForward: React.ForwardRefRenderFunction<
- HTMLVideoElement,
- React.DetailedHTMLProps<
- React.VideoHTMLAttributes<HTMLVideoElement>,
- HTMLVideoElement
- > & {
- muxId: string;
- }
-> = ({ muxId, ...props }, ref) => {
- const videoRef = useRef<HTMLVideoElement>(null);
- const vidUrl = getVideoToPlayUrl(muxId);
+ HTMLVideoElement,
+ React.DetailedHTMLProps<
+ React.VideoHTMLAttributes<HTMLVideoElement>,
+ HTMLVideoElement
+ > & {
+ muxId: string;
+ }
+> = ({muxId, ...props}, ref) => {
+ const videoRef = useRef<HTMLVideoElement>(null);
+ const vidUrl = getVideoToPlayUrl(muxId);
- useImperativeHandle(ref, () => videoRef.current, []);
+ useImperativeHandle(ref, () => videoRef.current, []);
- useEffect(() => {
- let hls: Hls;
- if (videoRef.current) {
- const { current } = videoRef;
- if (current.canPlayType("application/vnd.apple.mpegurl")) {
- // Some browers (safari and ie edge) support HLS natively
- current.src = vidUrl;
- } else if (Hls.isSupported()) {
- // This will run in all other modern browsers
- hls = new Hls();
- hls.loadSource(vidUrl);
- hls.attachMedia(current);
- } else {
- console.error("This is a legacy browser that doesn't support MSE");
- }
- }
+ useEffect(() => {
+ let hls: Hls;
+ if (videoRef.current) {
+ const {current} = videoRef;
+ if (current.canPlayType('application/vnd.apple.mpegurl')) {
+ // Some browers (safari and ie edge) support HLS natively
+ current.src = vidUrl;
+ } else if (Hls.isSupported()) {
+ // This will run in all other modern browsers
+ hls = new Hls();
+ hls.loadSource(vidUrl);
+ hls.attachMedia(current);
+ } else {
+ console.error("This is a legacy browser that doesn't support MSE");
+ }
+ }
- return () => {
- if (hls) {
- hls.destroy();
- }
- };
- }, [vidUrl, videoRef]);
+ return () => {
+ if (hls) {
+ hls.destroy();
+ }
+ };
+ }, [vidUrl, videoRef]);
- return <video ref={videoRef} {...props} />;
+ return <video ref={videoRef} {...props} />;
};
export const MuxVideo = forwardRef(MuxVideoForward);
export const NewMuxVideo: React.FC<{
- muxId: string;
-}> = ({ muxId }) => {
- return (
- <BrowserOnly>
- {() => (
- <VideoPlayerWithControls
- playbackId={muxId}
- poster={"https://image.mux.com/" + muxId + "/thumbnail.png?time=1"}
- onError={(error) => {
- console.log(error);
- }}
- onLoaded={() => undefined}
- onSize={() => undefined}
- />
- )}
- </BrowserOnly>
- );
+ muxId: string;
+}> = ({muxId}) => {
+ return (
+ <BrowserOnly>
+ {() => (
+ <VideoPlayerWithControls
+ playbackId={muxId}
+ poster={'https://image.mux.com/' + muxId + '/thumbnail.png?time=1'}
+ onError={(error) => {
+ console.log(error);
+ }}
+ onLoaded={() => undefined}
+ onSize={() => undefined}
+ />
+ )}
+ </BrowserOnly>
+ );
};
diff --git a/packages/docs/src/components/Options.tsx b/packages/docs/src/components/Options.tsx
index 1029d5e1c6..3f945066fc 100644
--- a/packages/docs/src/components/Options.tsx
+++ b/packages/docs/src/components/Options.tsx
@@ -1,28 +1,28 @@
-import type { AnyRemotionOption } from "@remotion/renderer";
-import { BrowserSafeApis } from "@remotion/renderer/client";
-import type React from "react";
+import type {AnyRemotionOption} from '@remotion/renderer';
+import {BrowserSafeApis} from '@remotion/renderer/client';
+import type React from 'react';
const options = Object.values(BrowserSafeApis.options);
const getOption = (id: string): AnyRemotionOption<unknown> => {
- const option = options.find((o) => o.cliFlag === id);
+ const option = options.find((o) => o.cliFlag === id);
- if (!option) {
- throw new Error(
- `Unknown option "${id}". Available: ${options
- .map((o) => o.cliFlag)
- .join(", ")}`,
- );
- }
+ if (!option) {
+ throw new Error(
+ `Unknown option "${id}". Available: ${options
+ .map((o) => o.cliFlag)
+ .join(', ')}`,
+ );
+ }
- return option;
+ return option;
};
export const Options: React.FC<{
- id: string;
- cli?: boolean;
-}> = ({ id, cli }) => {
- const option = getOption(id);
+ id: string;
+ cli?: boolean;
+}> = ({id, cli}) => {
+ const option = getOption(id);
- return option.description(cli ? "cli" : "ssr") as JSX.Element;
+ return option.description(cli ? 'cli' : 'ssr') as JSX.Element;
};
diff --git a/packages/docs/src/components/Seo.tsx b/packages/docs/src/components/Seo.tsx
index 3e02c7d849..1947b6160a 100644
--- a/packages/docs/src/components/Seo.tsx
+++ b/packages/docs/src/components/Seo.tsx
@@ -1,26 +1,26 @@
-import React from "react";
+import React from 'react';
// Do not refactor arrays!
// React Helmet does not support arrays
export const Seo = {
- renderTitle: (title: string) => {
- return [
- <title key="title1">{title}</title>,
- <meta key="title2" property="og:title" content={title} />,
- ];
- },
- renderDescription: (title: string) => {
- return [
- <meta key="desc" name="description" content={title} />,
- <meta key="desc2" property="og:description" content={title} />,
- ];
- },
- renderImage: (title: string, domain: string) => {
- const imgSrc = new URL(title, domain).href;
+ renderTitle: (title: string) => {
+ return [
+ <title key="title1">{title}</title>,
+ <meta key="title2" property="og:title" content={title} />,
+ ];
+ },
+ renderDescription: (title: string) => {
+ return [
+ <meta key="desc" name="description" content={title} />,
+ <meta key="desc2" property="og:description" content={title} />,
+ ];
+ },
+ renderImage: (title: string, domain: string) => {
+ const imgSrc = new URL(title, domain).href;
- return [
- <meta key="img1" property="og:image" content={imgSrc} />,
- <meta key="img2" name="twitter:image" content={imgSrc} />,
- ];
- },
+ return [
+ <meta key="img1" property="og:image" content={imgSrc} />,
+ <meta key="img2" name="twitter:image" content={imgSrc} />,
+ ];
+ },
};
diff --git a/packages/docs/src/components/Spinner.tsx b/packages/docs/src/components/Spinner.tsx
index 914c12e354..5e2dbe96b2 100644
--- a/packages/docs/src/components/Spinner.tsx
+++ b/packages/docs/src/components/Spinner.tsx
@@ -1,97 +1,97 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const Spinner: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg
- id="loading"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 32 32"
- width="32"
- height="32"
- fill="currentColor"
- {...props}
- >
- <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(0 16 16)">
- <animate
- attributeName="opacity"
- from="1"
- to=".1"
- dur="1s"
- repeatCount="indefinite"
- begin="0"
- />
- </path>
- <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(45 16 16)">
- <animate
- attributeName="opacity"
- from="1"
- to=".1"
- dur="1s"
- repeatCount="indefinite"
- begin="0.125s"
- />
- </path>
- <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(90 16 16)">
- <animate
- attributeName="opacity"
- from="1"
- to=".1"
- dur="1s"
- repeatCount="indefinite"
- begin="0.25s"
- />
- </path>
- <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(135 16 16)">
- <animate
- attributeName="opacity"
- from="1"
- to=".1"
- dur="1s"
- repeatCount="indefinite"
- begin="0.375s"
- />
- </path>
- <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(180 16 16)">
- <animate
- attributeName="opacity"
- from="1"
- to=".1"
- dur="1s"
- repeatCount="indefinite"
- begin="0.5s"
- />
- </path>
- <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(225 16 16)">
- <animate
- attributeName="opacity"
- from="1"
- to=".1"
- dur="1s"
- repeatCount="indefinite"
- begin="0.675s"
- />
- </path>
- <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(270 16 16)">
- <animate
- attributeName="opacity"
- from="1"
- to=".1"
- dur="1s"
- repeatCount="indefinite"
- begin="0.75s"
- />
- </path>
- <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(315 16 16)">
- <animate
- attributeName="opacity"
- from="1"
- to=".1"
- dur="1s"
- repeatCount="indefinite"
- begin="0.875s"
- />
- </path>
- </svg>
- );
+ return (
+ <svg
+ id="loading"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 32 32"
+ width="32"
+ height="32"
+ fill="currentColor"
+ {...props}
+ >
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(0 16 16)">
+ <animate
+ attributeName="opacity"
+ from="1"
+ to=".1"
+ dur="1s"
+ repeatCount="indefinite"
+ begin="0"
+ />
+ </path>
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(45 16 16)">
+ <animate
+ attributeName="opacity"
+ from="1"
+ to=".1"
+ dur="1s"
+ repeatCount="indefinite"
+ begin="0.125s"
+ />
+ </path>
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(90 16 16)">
+ <animate
+ attributeName="opacity"
+ from="1"
+ to=".1"
+ dur="1s"
+ repeatCount="indefinite"
+ begin="0.25s"
+ />
+ </path>
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(135 16 16)">
+ <animate
+ attributeName="opacity"
+ from="1"
+ to=".1"
+ dur="1s"
+ repeatCount="indefinite"
+ begin="0.375s"
+ />
+ </path>
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(180 16 16)">
+ <animate
+ attributeName="opacity"
+ from="1"
+ to=".1"
+ dur="1s"
+ repeatCount="indefinite"
+ begin="0.5s"
+ />
+ </path>
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(225 16 16)">
+ <animate
+ attributeName="opacity"
+ from="1"
+ to=".1"
+ dur="1s"
+ repeatCount="indefinite"
+ begin="0.675s"
+ />
+ </path>
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(270 16 16)">
+ <animate
+ attributeName="opacity"
+ from="1"
+ to=".1"
+ dur="1s"
+ repeatCount="indefinite"
+ begin="0.75s"
+ />
+ </path>
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(315 16 16)">
+ <animate
+ attributeName="opacity"
+ from="1"
+ to=".1"
+ dur="1s"
+ repeatCount="indefinite"
+ begin="0.875s"
+ />
+ </path>
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/TeamCards.tsx b/packages/docs/src/components/TeamCards.tsx
index e860484703..11152d274d 100644
--- a/packages/docs/src/components/TeamCards.tsx
+++ b/packages/docs/src/components/TeamCards.tsx
@@ -1,249 +1,249 @@
-import React from "react";
-import { BlueButton } from "../../components/layout/Button";
-import { Spacer } from "../../components/layout/Spacer";
-import TeamCardsCSS from "./TeamCardsCSS.module.css";
-import { EmailLogo, GitHubLogo, LinkedInLogo, TwitterLogo } from "./icons";
-
-const ButtonMailto = ({ mailto, label }) => {
- return <a href={mailto}>{label}</a>;
+import React from 'react';
+import {BlueButton} from '../../components/layout/Button';
+import {Spacer} from '../../components/layout/Spacer';
+import TeamCardsCSS from './TeamCardsCSS.module.css';
+import {EmailLogo, GitHubLogo, LinkedInLogo, TwitterLogo} from './icons';
+
+const ButtonMailto = ({mailto, label}) => {
+ return <a href={mailto}>{label}</a>;
};
export default ButtonMailto;
const panel: React.CSSProperties = {
- backgroundColor: "var(--ifm-background-color)",
- boxShadow: "var(--box-shadow)",
- padding: 10,
- borderRadius: 15,
- flex: 1,
- paddingTop: 30,
- paddingBottom: 10,
- minHeight: 600,
- display: "flex",
- flexDirection: "column",
+ backgroundColor: 'var(--ifm-background-color)',
+ boxShadow: 'var(--box-shadow)',
+ padding: 10,
+ borderRadius: 15,
+ flex: 1,
+ paddingTop: 30,
+ paddingBottom: 10,
+ minHeight: 600,
+ display: 'flex',
+ flexDirection: 'column',
};
const center: React.CSSProperties = {
- textAlign: "center",
+ textAlign: 'center',
};
const row: React.CSSProperties = {
- display: "flex",
- flexDirection: "row",
+ display: 'flex',
+ flexDirection: 'row',
};
const flex: React.CSSProperties = {
- flex: 1,
+ flex: 1,
};
const step: React.CSSProperties = {
- flex: 1,
- ...panel,
+ flex: 1,
+ ...panel,
};
const list: React.CSSProperties = {
- listStyleType: "none",
- textAlign: "center",
- paddingLeft: 0,
- display: "flex",
- flexDirection: "column",
- alignItems: "center",
- fontWeight: 500,
+ listStyleType: 'none',
+ textAlign: 'center',
+ paddingLeft: 0,
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ fontWeight: 500,
};
const stepTitle: React.CSSProperties = {
- textAlign: "center",
- fontSize: "1.6em",
- marginBottom: 0,
- color: "var(--ifm-color-primary)",
+ textAlign: 'center',
+ fontSize: '1.6em',
+ marginBottom: 0,
+ color: 'var(--ifm-color-primary)',
};
const docsButton: React.CSSProperties = {
- textDecoration: "none",
+ textDecoration: 'none',
};
export const TeamCardsLayout: React.FC<{}> = () => {
- return (
- <div className={TeamCardsCSS.row}>
- <div style={step}>
- <div
- style={{
- display: "flex",
- justifyContent: "center",
- alignItems: "center",
- }}
- >
- <img
- src={"/img/team/jonny.png"}
- style={{
- width: 250,
- height: 250,
- boxShadow: "var(--box-shadow)",
- borderRadius: 1500,
- }}
- />
- </div>
- <Spacer />
- <Spacer />
- <Spacer />
- <Spacer />
- <Spacer />
- <h2 style={stepTitle}>Jonny</h2>
- <strong style={center}>Chief Hacker</strong>
-
- <ul style={{ ...list, flex: 1 }}>
- <li>
- {
- "I'm interested in engineering, art and business - Remotion is my dream job because I get to combine the three of them!"
- }{" "}
- </li>
- </ul>
-
- <div
- style={{
- display: "flex",
- flexDirection: "row",
- }}
- >
- {
- <>
- <div style={flex}>
- <a style={docsButton} href="https://twitter.com/JNYBGR">
- <BlueButton loading={false} fullWidth size="sm">
- <TwitterLogo /> Twitter
- </BlueButton>
- </a>
- </div>
- <Spacer />
- <Spacer />
- </>
- }
- <div style={flex}>
- <a
- style={docsButton}
- href="https://ch.linkedin.com/in/jonny-burger-4115109b"
- >
- <BlueButton loading={false} fullWidth size="sm">
- <LinkedInLogo /> LinkedIn
- </BlueButton>
- </a>
- </div>
- </div>
- <div style={{ height: 10 }} />
-
- <div
- style={{
- display: "flex",
- flexDirection: "row",
- }}
- >
- <div style={flex}>
- <a style={docsButton} href="https://github.com/JonnyBurger">
- <BlueButton loading={false} fullWidth size="sm">
- <GitHubLogo /> GitHub
- </BlueButton>
- </a>
- </div>
- <Spacer />
- <Spacer />
- <div style={flex}>
- <a style={docsButton} href="mailto:[email protected]">
- <BlueButton loading={false} fullWidth size="sm">
- <EmailLogo /> E-Mail
- </BlueButton>
- </a>
- </div>
- </div>
- </div>
- <Spacer />
- <Spacer />
- <Spacer />
- <div style={step}>
- <div
- style={{
- display: "flex",
- justifyContent: "center",
- alignItems: "center",
- }}
- >
- <img
- src={"/img/team/mehmet.png"}
- style={{
- width: 250,
- height: 250,
- boxShadow: "var(--box-shadow)",
- borderRadius: 1500,
- }}
- />
- </div>
- <Spacer />
- <Spacer />
- <Spacer />
- <Spacer />
- <Spacer />
-
- <h2 style={stepTitle}>Mehmet</h2>
- <strong style={center}>Business Manager</strong>
-
- <ul style={{ ...list, flex: 1 }}>
- <li>
- {
- "Transitioning from traditional business, Remotion allowed me to merge my passion for technology and business in a distinctive way."
- }
- </li>
- </ul>
- <div style={row}>
- {
- <>
- <div style={flex}>
- <a style={docsButton} href="https://twitter.com/MehmetAdemi">
- <BlueButton loading={false} fullWidth size="sm">
- <TwitterLogo /> Twitter
- </BlueButton>
- </a>
- </div>
- <Spacer />
- <Spacer />
- </>
- }
- <div style={flex}>
- <a
- style={docsButton}
- href="https://www.linkedin.com/in/mehmet-ademi/?locale=en_US"
- >
- <BlueButton loading={false} fullWidth size="sm">
- <LinkedInLogo /> LinkedIn
- </BlueButton>
- </a>
- </div>
- </div>
- <div style={{ height: 10 }} />
- <div style={row}>
- {
- <>
- <div style={flex}>
- <a style={docsButton} href="https://github.com/MehmetAdemi">
- <BlueButton loading={false} fullWidth size="sm">
- <GitHubLogo /> GitHub
- </BlueButton>
- </a>
- </div>
- <Spacer />
- <Spacer />
- <div style={flex}>
- <a style={docsButton} href="mailto:[email protected]">
- <BlueButton loading={false} fullWidth size="sm">
- <EmailLogo /> E-Mail
- </BlueButton>
- </a>
- </div>
- </>
- }
- </div>
- </div>
- <Spacer />
- <Spacer />
- <Spacer />
- </div>
- );
+ return (
+ <div className={TeamCardsCSS.row}>
+ <div style={step}>
+ <div
+ style={{
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <img
+ src={'/img/team/jonny.png'}
+ style={{
+ width: 250,
+ height: 250,
+ boxShadow: 'var(--box-shadow)',
+ borderRadius: 1500,
+ }}
+ />
+ </div>
+ <Spacer />
+ <Spacer />
+ <Spacer />
+ <Spacer />
+ <Spacer />
+ <h2 style={stepTitle}>Jonny</h2>
+ <strong style={center}>Chief Hacker</strong>
+
+ <ul style={{...list, flex: 1}}>
+ <li>
+ {
+ "I'm interested in engineering, art and business - Remotion is my dream job because I get to combine the three of them!"
+ }{' '}
+ </li>
+ </ul>
+
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'row',
+ }}
+ >
+ {
+ <>
+ <div style={flex}>
+ <a style={docsButton} href="https://twitter.com/JNYBGR">
+ <BlueButton loading={false} fullWidth size="sm">
+ <TwitterLogo /> Twitter
+ </BlueButton>
+ </a>
+ </div>
+ <Spacer />
+ <Spacer />
+ </>
+ }
+ <div style={flex}>
+ <a
+ style={docsButton}
+ href="https://ch.linkedin.com/in/jonny-burger-4115109b"
+ >
+ <BlueButton loading={false} fullWidth size="sm">
+ <LinkedInLogo /> LinkedIn
+ </BlueButton>
+ </a>
+ </div>
+ </div>
+ <div style={{height: 10}} />
+
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'row',
+ }}
+ >
+ <div style={flex}>
+ <a style={docsButton} href="https://github.com/JonnyBurger">
+ <BlueButton loading={false} fullWidth size="sm">
+ <GitHubLogo /> GitHub
+ </BlueButton>
+ </a>
+ </div>
+ <Spacer />
+ <Spacer />
+ <div style={flex}>
+ <a style={docsButton} href="mailto:[email protected]">
+ <BlueButton loading={false} fullWidth size="sm">
+ <EmailLogo /> E-Mail
+ </BlueButton>
+ </a>
+ </div>
+ </div>
+ </div>
+ <Spacer />
+ <Spacer />
+ <Spacer />
+ <div style={step}>
+ <div
+ style={{
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <img
+ src={'/img/team/mehmet.png'}
+ style={{
+ width: 250,
+ height: 250,
+ boxShadow: 'var(--box-shadow)',
+ borderRadius: 1500,
+ }}
+ />
+ </div>
+ <Spacer />
+ <Spacer />
+ <Spacer />
+ <Spacer />
+ <Spacer />
+
+ <h2 style={stepTitle}>Mehmet</h2>
+ <strong style={center}>Business Manager</strong>
+
+ <ul style={{...list, flex: 1}}>
+ <li>
+ {
+ 'Transitioning from traditional business, Remotion allowed me to merge my passion for technology and business in a distinctive way.'
+ }
+ </li>
+ </ul>
+ <div style={row}>
+ {
+ <>
+ <div style={flex}>
+ <a style={docsButton} href="https://twitter.com/MehmetAdemi">
+ <BlueButton loading={false} fullWidth size="sm">
+ <TwitterLogo /> Twitter
+ </BlueButton>
+ </a>
+ </div>
+ <Spacer />
+ <Spacer />
+ </>
+ }
+ <div style={flex}>
+ <a
+ style={docsButton}
+ href="https://www.linkedin.com/in/mehmet-ademi/?locale=en_US"
+ >
+ <BlueButton loading={false} fullWidth size="sm">
+ <LinkedInLogo /> LinkedIn
+ </BlueButton>
+ </a>
+ </div>
+ </div>
+ <div style={{height: 10}} />
+ <div style={row}>
+ {
+ <>
+ <div style={flex}>
+ <a style={docsButton} href="https://github.com/MehmetAdemi">
+ <BlueButton loading={false} fullWidth size="sm">
+ <GitHubLogo /> GitHub
+ </BlueButton>
+ </a>
+ </div>
+ <Spacer />
+ <Spacer />
+ <div style={flex}>
+ <a style={docsButton} href="mailto:[email protected]">
+ <BlueButton loading={false} fullWidth size="sm">
+ <EmailLogo /> E-Mail
+ </BlueButton>
+ </a>
+ </div>
+ </>
+ }
+ </div>
+ </div>
+ <Spacer />
+ <Spacer />
+ <Spacer />
+ </div>
+ );
};
diff --git a/packages/docs/src/components/TeamCardsCSS.module.css b/packages/docs/src/components/TeamCardsCSS.module.css
index 088b0b0909..993f86458d 100644
--- a/packages/docs/src/components/TeamCardsCSS.module.css
+++ b/packages/docs/src/components/TeamCardsCSS.module.css
@@ -1,10 +1,10 @@
.row {
- display: flex;
- flex-direction: row;
+ display: flex;
+ flex-direction: row;
}
@media screen and (max-width: 900px) {
- .row {
- flex-direction: column;
- }
+ .row {
+ flex-direction: column;
+ }
}
diff --git a/packages/docs/src/components/TemplateIcon.tsx b/packages/docs/src/components/TemplateIcon.tsx
index 14e64f5bd7..afbdcdc2ab 100644
--- a/packages/docs/src/components/TemplateIcon.tsx
+++ b/packages/docs/src/components/TemplateIcon.tsx
@@ -1,40 +1,40 @@
-import React from "react";
-import { useMobileLayout } from "../helpers/mobile-layout";
+import React from 'react';
+import {useMobileLayout} from '../helpers/mobile-layout';
const icon: React.CSSProperties = {
- display: "flex",
- width: 36,
- height: 36,
- justifyContent: "center",
- alignItems: "center",
- margin: 0,
+ display: 'flex',
+ width: 36,
+ height: 36,
+ justifyContent: 'center',
+ alignItems: 'center',
+ margin: 0,
};
const outer: React.CSSProperties = {
- textAlign: "center",
- display: "flex",
- alignItems: "center",
- flexDirection: "column",
- color: "var(--ifm-font-color-base)",
- cursor: "pointer",
- filter: "drop-shadow(0px 0px 4px var(--background))",
- textDecoration: "none",
+ textAlign: 'center',
+ display: 'flex',
+ alignItems: 'center',
+ flexDirection: 'column',
+ color: 'var(--ifm-font-color-base)',
+ cursor: 'pointer',
+ filter: 'drop-shadow(0px 0px 4px var(--background))',
+ textDecoration: 'none',
};
const labelStyle: React.CSSProperties = {
- fontSize: 12,
+ fontSize: 12,
};
export const TemplateIcon: React.FC<{
- label: string;
- children: React.ReactNode;
-}> = ({ children, label }) => {
- const mobileLayout = useMobileLayout();
+ label: string;
+ children: React.ReactNode;
+}> = ({children, label}) => {
+ const mobileLayout = useMobileLayout();
- return (
- <span style={outer}>
- <div style={icon}>{children}</div>
- {mobileLayout ? null : <div style={labelStyle}>{label}</div>}
- </span>
- );
+ return (
+ <span style={outer}>
+ <div style={icon}>{children}</div>
+ {mobileLayout ? null : <div style={labelStyle}>{label}</div>}
+ </span>
+ );
};
diff --git a/packages/docs/src/components/TemplateModalContent.tsx b/packages/docs/src/components/TemplateModalContent.tsx
index ef43e90dd0..fcca774340 100644
--- a/packages/docs/src/components/TemplateModalContent.tsx
+++ b/packages/docs/src/components/TemplateModalContent.tsx
@@ -1,375 +1,375 @@
-import type { Template } from "create-video";
-import React, { useCallback, useMemo, useState } from "react";
-import { useMobileLayout } from "../helpers/mobile-layout";
-import { BackButton } from "./BackButton";
-import { CommandCopyButton } from "./CommandCopyButton";
-import { MuxVideo } from "./MuxVideo";
-import { Spinner } from "./Spinner";
+import type {Template} from 'create-video';
+import React, {useCallback, useMemo, useState} from 'react';
+import {useMobileLayout} from '../helpers/mobile-layout';
+import {BackButton} from './BackButton';
+import {CommandCopyButton} from './CommandCopyButton';
+import {MuxVideo} from './MuxVideo';
+import {Spinner} from './Spinner';
const RESERVED_FOR_SIDEBAR = 550;
const column: React.CSSProperties = {
- width: RESERVED_FOR_SIDEBAR,
- overflow: "auto",
+ width: RESERVED_FOR_SIDEBAR,
+ overflow: 'auto',
};
const iconContainer: React.CSSProperties = {
- width: 24,
- height: 36,
- marginRight: 12,
- display: "inline-flex",
- alignItems: "center",
- justifyContent: "center",
+ width: 24,
+ height: 36,
+ marginRight: 12,
+ display: 'inline-flex',
+ alignItems: 'center',
+ justifyContent: 'center',
};
const link: React.CSSProperties = {
- color: "inherit",
- display: "inline-flex",
- flexDirection: "row",
- alignItems: "center",
- cursor: "pointer",
- userSelect: "none",
- WebkitUserSelect: "none",
+ color: 'inherit',
+ display: 'inline-flex',
+ flexDirection: 'row',
+ alignItems: 'center',
+ cursor: 'pointer',
+ userSelect: 'none',
+ WebkitUserSelect: 'none',
};
const description: React.CSSProperties = {};
const githubrow: React.CSSProperties = {
- flexDirection: "row",
- alignItems: "center",
- display: "flex",
- paddingTop: 4,
- paddingBottom: 4,
- verticalAlign: "middle",
- paddingRight: 16,
+ flexDirection: 'row',
+ alignItems: 'center',
+ display: 'flex',
+ paddingTop: 4,
+ paddingBottom: 4,
+ verticalAlign: 'middle',
+ paddingRight: 16,
};
const loadingContainer: React.CSSProperties = {
- justifyContent: "center",
- alignItems: "center",
- display: "flex",
+ justifyContent: 'center',
+ alignItems: 'center',
+ display: 'flex',
};
const installCommand: React.CSSProperties = {
- marginRight: 12,
+ marginRight: 12,
};
const GithubIcon: React.FC = () => {
- return (
- <svg viewBox="0 0 496 512" height="22" width="22">
- <path
- fill="currentColor"
- d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
- />
- </svg>
- );
+ return (
+ <svg viewBox="0 0 496 512" height="22" width="22">
+ <path
+ fill="currentColor"
+ d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
+ />
+ </svg>
+ );
};
const StackBlitzIcon: React.FC = () => {
- return (
- <svg viewBox="0 0 28 28" aria-hidden="true" width="24" height="24">
- <path
- fill="currentColor"
- d="M12.747 16.273h-7.46L18.925 1.5l-3.671 10.227h7.46L9.075 26.5l3.671-10.227z"
- />
- </svg>
- );
+ return (
+ <svg viewBox="0 0 28 28" aria-hidden="true" width="24" height="24">
+ <path
+ fill="currentColor"
+ d="M12.747 16.273h-7.46L18.925 1.5l-3.671 10.227h7.46L9.075 26.5l3.671-10.227z"
+ />
+ </svg>
+ );
};
const PreviewIcon: React.FC = () => {
- return (
- <svg viewBox="0 0 512 512" aria-hidden="true" width="24" height="24">
- <path
- fill="currentColor"
- d="M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1l124 124 17 17L478.1 512l-17-17-124-124zM145.8 116.2l24 14 110.2 64L303.9 208 280 221.8l-110.2 64-24 14V272 144 116.2z"
- />
- </svg>
- );
+ return (
+ <svg viewBox="0 0 512 512" aria-hidden="true" width="24" height="24">
+ <path
+ fill="currentColor"
+ d="M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1l124 124 17 17L478.1 512l-17-17-124-124zM145.8 116.2l24 14 110.2 64L303.9 208 280 221.8l-110.2 64-24 14V272 144 116.2z"
+ />
+ </svg>
+ );
};
const spinner: React.CSSProperties = {
- height: 16,
- width: 16,
+ height: 16,
+ width: 16,
};
const separator: React.CSSProperties = {
- height: 24,
- backgroundColor: "var(--light-text-color)",
- opacity: 0.2,
- borderRadius: 1,
- width: 1,
- marginLeft: 10,
- marginRight: 10,
+ height: 24,
+ backgroundColor: 'var(--light-text-color)',
+ opacity: 0.2,
+ borderRadius: 1,
+ width: 1,
+ marginLeft: 10,
+ marginRight: 10,
};
let copyTimeout: NodeJS.Timeout | null = null;
export const TemplateModalContent: React.FC<{
- readonly template: Template;
-}> = ({ template }) => {
- const [copied, setCopied] = useState<string | false>(false);
- const [showPkgManagers, setShowPackageManagers] = useState(false);
- const [loaded, setLoaded] = useState(false);
+ readonly template: Template;
+}> = ({template}) => {
+ const [copied, setCopied] = useState<string | false>(false);
+ const [showPkgManagers, setShowPackageManagers] = useState(false);
+ const [loaded, setLoaded] = useState(false);
- const mobileLayout = useMobileLayout();
+ const mobileLayout = useMobileLayout();
- const containerCss: React.CSSProperties = useMemo(() => {
- return {
- marginBottom: 0,
- display: "flex",
- flexDirection: mobileLayout ? "column" : "row",
- overflow: "auto",
- height: mobileLayout ? "100%" : undefined,
- left: mobileLayout ? 0 : undefined,
- top: mobileLayout ? 0 : undefined,
- };
- }, [mobileLayout]);
+ const containerCss: React.CSSProperties = useMemo(() => {
+ return {
+ marginBottom: 0,
+ display: 'flex',
+ flexDirection: mobileLayout ? 'column' : 'row',
+ overflow: 'auto',
+ height: mobileLayout ? '100%' : undefined,
+ left: mobileLayout ? 0 : undefined,
+ top: mobileLayout ? 0 : undefined,
+ };
+ }, [mobileLayout]);
- const loadingStyle = useMemo(() => {
- return {
- ...loadingContainer,
- width: "100%",
- border: "1px solid var(--ifm-color-emphasis-300)",
- borderRadius: 5,
- aspectRatio:
- template.type === "video"
- ? `${template.promoVideo.width} / ${template.promoVideo.height}`
- : "",
- };
- }, [template]);
+ const loadingStyle = useMemo(() => {
+ return {
+ ...loadingContainer,
+ width: '100%',
+ border: '1px solid var(--ifm-color-emphasis-300)',
+ borderRadius: 5,
+ aspectRatio:
+ template.type === 'video'
+ ? `${template.promoVideo.width} / ${template.promoVideo.height}`
+ : '',
+ };
+ }, [template]);
- const onLoadedMetadata = useCallback(() => {
- setLoaded(true);
- }, []);
+ const onLoadedMetadata = useCallback(() => {
+ setLoaded(true);
+ }, []);
- const copyCommand = useCallback(async (command: string) => {
- clearTimeout(copyTimeout);
- const permissionName = "clipboard-write" as PermissionName;
- try {
- const result = await navigator.permissions.query({
- name: permissionName,
- });
- if (result.state === "granted" || result.state === "prompt") {
- await navigator.clipboard.writeText(command);
- setCopied(command);
- }
- } catch (err) {
- // eslint-disable-next-line no-alert
- alert("Copying is not supported on this device");
- console.log("Could not copy command", err);
- }
+ const copyCommand = useCallback(async (command: string) => {
+ clearTimeout(copyTimeout);
+ const permissionName = 'clipboard-write' as PermissionName;
+ try {
+ const result = await navigator.permissions.query({
+ name: permissionName,
+ });
+ if (result.state === 'granted' || result.state === 'prompt') {
+ await navigator.clipboard.writeText(command);
+ setCopied(command);
+ }
+ } catch (err) {
+ // eslint-disable-next-line no-alert
+ alert('Copying is not supported on this device');
+ console.log('Could not copy command', err);
+ }
- copyTimeout = setTimeout(() => {
- setCopied(false);
- }, 2000);
- }, []);
+ copyTimeout = setTimeout(() => {
+ setCopied(false);
+ }, 2000);
+ }, []);
- const togglePkgManagers = useCallback(() => {
- setShowPackageManagers((s) => !s);
- }, []);
+ const togglePkgManagers = useCallback(() => {
+ setShowPackageManagers((s) => !s);
+ }, []);
- const npmCommand = `npx create-video@latest --${template.cliId}`;
- const yarnCommand = `yarn create video --${template.cliId}`;
- const pnpmCommand = `pnpm create video --${template.cliId}`;
- const bunCommand = `bun create video --${template.cliId}`;
+ const npmCommand = `npx create-video@latest --${template.cliId}`;
+ const yarnCommand = `yarn create video --${template.cliId}`;
+ const pnpmCommand = `pnpm create video --${template.cliId}`;
+ const bunCommand = `bun create video --${template.cliId}`;
- return (
- <div>
- <BackButton
- link="/templates"
- text="Back to Templates"
- color="currentcolor"
- />
- <br />
- <br />
- <div style={containerCss}>
- <div
- style={{
- display: "flex",
- width: "100%",
- }}
- >
- {loaded || template.type === "image" ? null : (
- <div style={loadingStyle}>
- <Spinner style={spinner} />
- </div>
- )}
- {template.type === "video" ? (
- <MuxVideo
- muxId={template.promoVideo.muxId}
- loop
- autoPlay
- muted
- playsInline
- style={{
- aspectRatio: `${template.promoVideo.width} / ${template.promoVideo.height}`,
- width: "100%",
- height: "auto",
- maxHeight: 450,
- opacity: Number(loaded),
- display: loaded ? "inline-flex" : "none",
- borderRadius: 5,
- border: "1px solid var(--ifm-color-emphasis-300)",
- }}
- onLoadedMetadata={onLoadedMetadata}
- />
- ) : (
- <img
- src={template.promoBanner.src}
- style={{
- borderRadius: 5,
- width: "100%",
- height: "auto",
- border: "1px solid var(--ifm-color-emphasis-300)",
- }}
- onLoad={onLoadedMetadata}
- />
- )}
- </div>
- <div
- style={{
- ...column,
- marginLeft: mobileLayout ? 0 : 20,
- marginTop: mobileLayout ? 20 : 0,
- width: mobileLayout ? "100%" : RESERVED_FOR_SIDEBAR,
- }}
- >
- <div style={githubrow}>
- <a style={link} onPointerDown={() => copyCommand(npmCommand)}>
- <div style={iconContainer}>
- <CommandCopyButton copied={copied === npmCommand} />
- </div>
- <div style={installCommand}>{npmCommand}</div>
- </a>
- <div style={{ width: 2 }} />
- {showPkgManagers ? null : (
- <a style={link} onPointerDown={togglePkgManagers}>
- <span
- style={{
- whiteSpace: "pre",
- color: "var(--light-text-color)",
- }}
- >
- More
- </span>{" "}
- </a>
- )}
- <div
- style={{
- width: 8,
- }}
- />
- </div>
- {showPkgManagers ? (
- <div style={githubrow}>
- <a
- target={"_blank"}
- style={link}
- onPointerDown={() => copyCommand(bunCommand)}
- >
- <div style={iconContainer}>
- <CommandCopyButton copied={copied === bunCommand} />
- </div>
- <div style={installCommand}>{bunCommand}</div>
- </a>
- </div>
- ) : null}
- {showPkgManagers ? (
- <div style={githubrow}>
- <a style={link} onPointerDown={() => copyCommand(pnpmCommand)}>
- <div style={iconContainer}>
- <CommandCopyButton copied={copied === pnpmCommand} />
- </div>
- <div style={installCommand}>{pnpmCommand}</div>
- </a>
- </div>
- ) : null}
- {showPkgManagers ? (
- <div style={githubrow}>
- <a
- target={"_blank"}
- style={link}
- onPointerDown={() => copyCommand(yarnCommand)}
- >
- <div style={iconContainer}>
- <CommandCopyButton copied={copied === yarnCommand} />
- </div>
- <div style={installCommand}>{yarnCommand}</div>
- </a>
- </div>
- ) : null}
+ return (
+ <div>
+ <BackButton
+ link="/templates"
+ text="Back to Templates"
+ color="currentcolor"
+ />
+ <br />
+ <br />
+ <div style={containerCss}>
+ <div
+ style={{
+ display: 'flex',
+ width: '100%',
+ }}
+ >
+ {loaded || template.type === 'image' ? null : (
+ <div style={loadingStyle}>
+ <Spinner style={spinner} />
+ </div>
+ )}
+ {template.type === 'video' ? (
+ <MuxVideo
+ muxId={template.promoVideo.muxId}
+ loop
+ autoPlay
+ muted
+ playsInline
+ style={{
+ aspectRatio: `${template.promoVideo.width} / ${template.promoVideo.height}`,
+ width: '100%',
+ height: 'auto',
+ maxHeight: 450,
+ opacity: Number(loaded),
+ display: loaded ? 'inline-flex' : 'none',
+ borderRadius: 5,
+ border: '1px solid var(--ifm-color-emphasis-300)',
+ }}
+ onLoadedMetadata={onLoadedMetadata}
+ />
+ ) : (
+ <img
+ src={template.promoBanner.src}
+ style={{
+ borderRadius: 5,
+ width: '100%',
+ height: 'auto',
+ border: '1px solid var(--ifm-color-emphasis-300)',
+ }}
+ onLoad={onLoadedMetadata}
+ />
+ )}
+ </div>
+ <div
+ style={{
+ ...column,
+ marginLeft: mobileLayout ? 0 : 20,
+ marginTop: mobileLayout ? 20 : 0,
+ width: mobileLayout ? '100%' : RESERVED_FOR_SIDEBAR,
+ }}
+ >
+ <div style={githubrow}>
+ <a style={link} onPointerDown={() => copyCommand(npmCommand)}>
+ <div style={iconContainer}>
+ <CommandCopyButton copied={copied === npmCommand} />
+ </div>
+ <div style={installCommand}>{npmCommand}</div>
+ </a>
+ <div style={{width: 2}} />
+ {showPkgManagers ? null : (
+ <a style={link} onPointerDown={togglePkgManagers}>
+ <span
+ style={{
+ whiteSpace: 'pre',
+ color: 'var(--light-text-color)',
+ }}
+ >
+ More
+ </span>{' '}
+ </a>
+ )}
+ <div
+ style={{
+ width: 8,
+ }}
+ />
+ </div>
+ {showPkgManagers ? (
+ <div style={githubrow}>
+ <a
+ target={'_blank'}
+ style={link}
+ onPointerDown={() => copyCommand(bunCommand)}
+ >
+ <div style={iconContainer}>
+ <CommandCopyButton copied={copied === bunCommand} />
+ </div>
+ <div style={installCommand}>{bunCommand}</div>
+ </a>
+ </div>
+ ) : null}
+ {showPkgManagers ? (
+ <div style={githubrow}>
+ <a style={link} onPointerDown={() => copyCommand(pnpmCommand)}>
+ <div style={iconContainer}>
+ <CommandCopyButton copied={copied === pnpmCommand} />
+ </div>
+ <div style={installCommand}>{pnpmCommand}</div>
+ </a>
+ </div>
+ ) : null}
+ {showPkgManagers ? (
+ <div style={githubrow}>
+ <a
+ target={'_blank'}
+ style={link}
+ onPointerDown={() => copyCommand(yarnCommand)}
+ >
+ <div style={iconContainer}>
+ <CommandCopyButton copied={copied === yarnCommand} />
+ </div>
+ <div style={installCommand}>{yarnCommand}</div>
+ </a>
+ </div>
+ ) : null}
- <div style={githubrow}>
- <a
- target={"_blank"}
- style={link}
- href={`https://github.com/${template.org}/${template.repoName}/generate`}
- >
- <div style={iconContainer}>
- <GithubIcon />
- </div>{" "}
- Use template
- </a>
- <div style={separator} />
- <a
- target={"_blank"}
- style={link}
- href={`https://github.com/${template.org}/${template.repoName}`}
- >
- View source
- </a>
- </div>
- {template.previewURL && (
- <a target={"_blank"} style={link} href={template.previewURL}>
- <div style={githubrow}>
- <div style={iconContainer}>
- <PreviewIcon />
- </div>
- See Preview{" "}
- <span
- style={{
- whiteSpace: "pre",
- color: "var(--light-text-color)",
- }}
- >
- {" "}
- via Remotion Studio
- </span>
- </div>
- </a>
- )}
- <a
- target={"_blank"}
- style={link}
- href={`https://stackblitz.com/github/${template.org}/${template.repoName}`}
- >
- <div style={githubrow}>
- <div style={iconContainer}>
- <StackBlitzIcon />
- </div>
- Try online{" "}
- <span
- style={{ whiteSpace: "pre", color: "var(--light-text-color)" }}
- >
- {" "}
- via StackBlitz
- </span>
- </div>
- </a>
- </div>
- </div>{" "}
- <br />
- <br />
- <h1
- style={{
- marginTop: 0,
- }}
- >
- {template.shortName}
- </h1>
- <div style={description}>{template.longerDescription}</div>
- <br />
- <br />
- </div>
- );
+ <div style={githubrow}>
+ <a
+ target={'_blank'}
+ style={link}
+ href={`https://github.com/${template.org}/${template.repoName}/generate`}
+ >
+ <div style={iconContainer}>
+ <GithubIcon />
+ </div>{' '}
+ Use template
+ </a>
+ <div style={separator} />
+ <a
+ target={'_blank'}
+ style={link}
+ href={`https://github.com/${template.org}/${template.repoName}`}
+ >
+ View source
+ </a>
+ </div>
+ {template.previewURL && (
+ <a target={'_blank'} style={link} href={template.previewURL}>
+ <div style={githubrow}>
+ <div style={iconContainer}>
+ <PreviewIcon />
+ </div>
+ See Preview{' '}
+ <span
+ style={{
+ whiteSpace: 'pre',
+ color: 'var(--light-text-color)',
+ }}
+ >
+ {' '}
+ via Remotion Studio
+ </span>
+ </div>
+ </a>
+ )}
+ <a
+ target={'_blank'}
+ style={link}
+ href={`https://stackblitz.com/github/${template.org}/${template.repoName}`}
+ >
+ <div style={githubrow}>
+ <div style={iconContainer}>
+ <StackBlitzIcon />
+ </div>
+ Try online{' '}
+ <span
+ style={{whiteSpace: 'pre', color: 'var(--light-text-color)'}}
+ >
+ {' '}
+ via StackBlitz
+ </span>
+ </div>
+ </a>
+ </div>
+ </div>{' '}
+ <br />
+ <br />
+ <h1
+ style={{
+ marginTop: 0,
+ }}
+ >
+ {template.shortName}
+ </h1>
+ <div style={description}>{template.longerDescription}</div>
+ <br />
+ <br />
+ </div>
+ );
};
diff --git a/packages/docs/src/components/TemplatePage.tsx b/packages/docs/src/components/TemplatePage.tsx
index 176db49ee9..09d4064057 100644
--- a/packages/docs/src/components/TemplatePage.tsx
+++ b/packages/docs/src/components/TemplatePage.tsx
@@ -1,51 +1,51 @@
-import Head from "@docusaurus/Head";
-import { useLocation } from "@docusaurus/router";
-import Layout from "@theme/Layout";
-import React from "react";
+import Head from '@docusaurus/Head';
+import {useLocation} from '@docusaurus/router';
+import Layout from '@theme/Layout';
+import React from 'react';
-import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
-import { CreateVideoInternals } from "create-video";
-import { Seo } from "./Seo";
-import { TemplateModalContent } from "./TemplateModalContent";
+import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
+import {CreateVideoInternals} from 'create-video';
+import {Seo} from './Seo';
+import {TemplateModalContent} from './TemplateModalContent';
const layout: React.CSSProperties = {
- maxWidth: 1200,
- margin: "auto",
- paddingLeft: 16,
- paddingRight: 16,
+ maxWidth: 1200,
+ margin: 'auto',
+ paddingLeft: 16,
+ paddingRight: 16,
};
export default () => {
- const location = useLocation();
- const context = useDocusaurusContext();
-
- const templatePathname = location.pathname.match(/templates\/([a-zA-Z-]+)/);
-
- if (!templatePathname) {
- throw new Error("no expert slug found");
- }
-
- const template = CreateVideoInternals.FEATURED_TEMPLATES.find(
- (e) => e.cliId === templatePathname[1],
- );
- // After Next.js is enabled we can throw an error instead
- if (!template) {
- return null;
- }
-
- const imgSrc = `/generated/template-${template.cliId}.png`;
-
- return (
- <Layout>
- <Head>
- {Seo.renderTitle(`${template.shortName} | Remotion Template`)}
- {Seo.renderDescription(template.description)}
- {Seo.renderImage(imgSrc, context.siteConfig.url)}
- </Head>
- <br />
- <div style={layout}>
- <TemplateModalContent template={template} />
- </div>
- </Layout>
- );
+ const location = useLocation();
+ const context = useDocusaurusContext();
+
+ const templatePathname = location.pathname.match(/templates\/([a-zA-Z-]+)/);
+
+ if (!templatePathname) {
+ throw new Error('no expert slug found');
+ }
+
+ const template = CreateVideoInternals.FEATURED_TEMPLATES.find(
+ (e) => e.cliId === templatePathname[1],
+ );
+ // After Next.js is enabled we can throw an error instead
+ if (!template) {
+ return null;
+ }
+
+ const imgSrc = `/generated/template-${template.cliId}.png`;
+
+ return (
+ <Layout>
+ <Head>
+ {Seo.renderTitle(`${template.shortName} | Remotion Template`)}
+ {Seo.renderDescription(template.description)}
+ {Seo.renderImage(imgSrc, context.siteConfig.url)}
+ </Head>
+ <br />
+ <div style={layout}>
+ <TemplateModalContent template={template} />
+ </div>
+ </Layout>
+ );
};
diff --git a/packages/docs/src/components/TitleTeamCards.tsx b/packages/docs/src/components/TitleTeamCards.tsx
index 49fc92d76e..6299f3e5fa 100644
--- a/packages/docs/src/components/TitleTeamCards.tsx
+++ b/packages/docs/src/components/TitleTeamCards.tsx
@@ -1,15 +1,15 @@
-import React from "react";
-import { TeamCardsLayout } from "./TeamCards";
+import React from 'react';
+import {TeamCardsLayout} from './TeamCards';
const center: React.CSSProperties = {
- textAlign: "center",
+ textAlign: 'center',
};
export const TitleTeamCards: React.FC = () => {
- return (
- <div>
- <h1 style={center}>Team</h1>
- <TeamCardsLayout />
- </div>
- );
+ return (
+ <div>
+ <h1 style={center}>Team</h1>
+ <TeamCardsLayout />
+ </div>
+ );
};
diff --git a/packages/docs/src/components/V4Countdown.tsx b/packages/docs/src/components/V4Countdown.tsx
index b94f90f488..cad1e1baca 100644
--- a/packages/docs/src/components/V4Countdown.tsx
+++ b/packages/docs/src/components/V4Countdown.tsx
@@ -1,104 +1,104 @@
-import type { SetStateAction } from "react";
-import React, { useEffect, useState } from "react";
+import type {SetStateAction} from 'react';
+import React, {useEffect, useState} from 'react';
const style: React.CSSProperties = {
- display: "inline-flex",
- flex: 1,
- justifyContent: "center",
- alignItems: "center",
- border: "2px solid var(--ifm-font-color-base)",
- borderRadius: 10,
- padding: 10,
+ display: 'inline-flex',
+ flex: 1,
+ justifyContent: 'center',
+ alignItems: 'center',
+ border: '2px solid var(--ifm-font-color-base)',
+ borderRadius: 10,
+ padding: 10,
};
const timeWrapper: React.CSSProperties = {
- borderRadius: "15px",
- display: "flex",
- flexDirection: "column",
- justifyContent: "center",
- alignItems: "center",
- fontVariantNumeric: "tabular-nums",
- fontFamily: "GTPlanar",
- width: 80,
+ borderRadius: '15px',
+ display: 'flex',
+ flexDirection: 'column',
+ justifyContent: 'center',
+ alignItems: 'center',
+ fontVariantNumeric: 'tabular-nums',
+ fontFamily: 'GTPlanar',
+ width: 80,
};
const timeAmount: React.CSSProperties = {
- fontWeight: 900,
- fontSize: "3em",
- marginBottom: 0,
- lineHeight: 1,
+ fontWeight: 900,
+ fontSize: '3em',
+ marginBottom: 0,
+ lineHeight: 1,
};
const timeLabel: React.CSSProperties = {
- marginBottom: 0,
+ marginBottom: 0,
};
export const V4Countdown: React.FC<{
- setShowCountdown: React.Dispatch<SetStateAction<boolean>>;
-}> = ({ setShowCountdown }) => {
- const [countdown, setCountdown] = useState<[string, string, string, string]>([
- "00",
- "00",
- "00",
- "00",
- ]);
+ setShowCountdown: React.Dispatch<SetStateAction<boolean>>;
+}> = ({setShowCountdown}) => {
+ const [countdown, setCountdown] = useState<[string, string, string, string]>([
+ '00',
+ '00',
+ '00',
+ '00',
+ ]);
- const targetUnixTimeStamp = 1688403600;
+ const targetUnixTimeStamp = 1688403600;
- const getUpdatedCountdown = (): [string, string, string, string] => {
- const currentUnixTime = Math.floor(Date.now() / 1000);
+ const getUpdatedCountdown = (): [string, string, string, string] => {
+ const currentUnixTime = Math.floor(Date.now() / 1000);
- const timeRemaining = targetUnixTimeStamp - currentUnixTime;
- let remainder = 0;
- const days = Math.floor(timeRemaining / (60 * 60 * 24));
- remainder = timeRemaining % (60 * 60 * 24);
- const hours = Math.floor(remainder / (60 * 60));
- remainder %= 60 * 60;
- const minutes = Math.floor(remainder / 60);
- remainder %= 60;
- const seconds = Math.floor(remainder);
+ const timeRemaining = targetUnixTimeStamp - currentUnixTime;
+ let remainder = 0;
+ const days = Math.floor(timeRemaining / (60 * 60 * 24));
+ remainder = timeRemaining % (60 * 60 * 24);
+ const hours = Math.floor(remainder / (60 * 60));
+ remainder %= 60 * 60;
+ const minutes = Math.floor(remainder / 60);
+ remainder %= 60;
+ const seconds = Math.floor(remainder);
- const strDays = days < 10 ? "0" + days.toString() : days.toString();
- const strHours = hours < 10 ? "0" + hours.toString() : hours.toString();
- const strMinutes =
- minutes < 10 ? "0" + minutes.toString() : minutes.toString();
- const strSeconds =
- seconds < 10 ? "0" + seconds.toString() : seconds.toString();
+ const strDays = days < 10 ? '0' + days.toString() : days.toString();
+ const strHours = hours < 10 ? '0' + hours.toString() : hours.toString();
+ const strMinutes =
+ minutes < 10 ? '0' + minutes.toString() : minutes.toString();
+ const strSeconds =
+ seconds < 10 ? '0' + seconds.toString() : seconds.toString();
- return [strDays, strHours, strMinutes, strSeconds];
- };
+ return [strDays, strHours, strMinutes, strSeconds];
+ };
- useEffect(() => {
- const interval = setInterval(() => {
- const currentCountdown = getUpdatedCountdown();
- setCountdown(currentCountdown);
- }, 1000);
+ useEffect(() => {
+ const interval = setInterval(() => {
+ const currentCountdown = getUpdatedCountdown();
+ setCountdown(currentCountdown);
+ }, 1000);
- return () => clearInterval(interval);
- }, [countdown]);
+ return () => clearInterval(interval);
+ }, [countdown]);
- if (Math.floor(Date.now() / 1000) > targetUnixTimeStamp) {
- setShowCountdown(false);
- }
+ if (Math.floor(Date.now() / 1000) > targetUnixTimeStamp) {
+ setShowCountdown(false);
+ }
- return (
- <div style={style}>
- <div style={timeWrapper}>
- <h1 style={timeAmount}>{countdown[0]}</h1>
- <p style={timeLabel}>days</p>
- </div>
- <div style={timeWrapper}>
- <h1 style={timeAmount}>{countdown[1]}</h1>
- <p style={timeLabel}>hours</p>
- </div>
- <div style={timeWrapper}>
- <h1 style={timeAmount}>{countdown[2]}</h1>
- <p style={timeLabel}>min</p>
- </div>
- <div style={timeWrapper}>
- <h1 style={timeAmount}> {countdown[3]}</h1>
- <p style={timeLabel}>sec</p>
- </div>
- </div>
- );
+ return (
+ <div style={style}>
+ <div style={timeWrapper}>
+ <h1 style={timeAmount}>{countdown[0]}</h1>
+ <p style={timeLabel}>days</p>
+ </div>
+ <div style={timeWrapper}>
+ <h1 style={timeAmount}>{countdown[1]}</h1>
+ <p style={timeLabel}>hours</p>
+ </div>
+ <div style={timeWrapper}>
+ <h1 style={timeAmount}>{countdown[2]}</h1>
+ <p style={timeLabel}>min</p>
+ </div>
+ <div style={timeWrapper}>
+ <h1 style={timeAmount}> {countdown[3]}</h1>
+ <p style={timeLabel}>sec</p>
+ </div>
+ </div>
+ );
};
diff --git a/packages/docs/src/components/VideoPlayer.tsx b/packages/docs/src/components/VideoPlayer.tsx
index 2ccfca1ac4..db87104e58 100644
--- a/packages/docs/src/components/VideoPlayer.tsx
+++ b/packages/docs/src/components/VideoPlayer.tsx
@@ -1,222 +1,222 @@
-import React, { useEffect, useMemo, useRef } from "react";
-import type { ShowcaseVideo } from "../data/showcase-videos";
-import { useMobileLayout } from "../helpers/mobile-layout";
-import { CancelIcon, IconLeft, IconRight } from "../icons/arrows";
-import { VideoPlayerContent } from "./VideoPlayerContent";
-import { VidPlayerHeader } from "./VideoPlayerHeader";
+import React, {useEffect, useMemo, useRef} from 'react';
+import type {ShowcaseVideo} from '../data/showcase-videos';
+import {useMobileLayout} from '../helpers/mobile-layout';
+import {CancelIcon, IconLeft, IconRight} from '../icons/arrows';
+import {VideoPlayerContent} from './VideoPlayerContent';
+import {VidPlayerHeader} from './VideoPlayerHeader';
const container: React.CSSProperties = {
- position: "fixed",
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- backgroundColor: "rgba(0, 0, 0, 0.6)",
- // Higher than Docusaurus highest
- zIndex: 1000,
- display: "flex",
- justifyContent: "center",
- alignItems: "center",
- flexDirection: "row",
+ position: 'fixed',
+ top: 0,
+ bottom: 0,
+ left: 0,
+ right: 0,
+ backgroundColor: 'rgba(0, 0, 0, 0.6)',
+ // Higher than Docusaurus highest
+ zIndex: 1000,
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ flexDirection: 'row',
};
const changeButton: React.CSSProperties = {
- padding: 20,
- cursor: "pointer",
+ padding: 20,
+ cursor: 'pointer',
};
const changeButtonInactive: React.CSSProperties = {
- padding: 20,
- cursor: "default",
- opacity: 0.5,
+ padding: 20,
+ cursor: 'default',
+ opacity: 0.5,
};
const icon: React.CSSProperties = {
- width: 24,
- color: "white",
+ width: 24,
+ color: 'white',
};
const cancelContainer: React.CSSProperties = {
- left: 16,
- top: 16,
- position: "absolute",
+ left: 16,
+ top: 16,
+ position: 'absolute',
};
const cancelIcon: React.CSSProperties = {
- width: 20,
- color: "white",
- cursor: "pointer",
+ width: 20,
+ color: 'white',
+ cursor: 'pointer',
};
export const VideoPlayer: React.FC<{
- video: ShowcaseVideo | null;
- dismiss: () => void;
- toNext: () => void;
- toPrevious: () => void;
- hasPrevious: boolean;
- hasNext: boolean;
- userHasInteractedWithPage: boolean;
+ video: ShowcaseVideo | null;
+ dismiss: () => void;
+ toNext: () => void;
+ toPrevious: () => void;
+ hasPrevious: boolean;
+ hasNext: boolean;
+ userHasInteractedWithPage: boolean;
}> = ({
- video,
- dismiss,
- toNext,
- toPrevious,
- hasNext,
- hasPrevious,
- userHasInteractedWithPage,
+ video,
+ dismiss,
+ toNext,
+ toPrevious,
+ hasNext,
+ hasPrevious,
+ userHasInteractedWithPage,
}) => {
- const mobileLayout = useMobileLayout();
-
- const containerWithDirection: React.CSSProperties = useMemo(() => {
- return {
- ...container,
- flexDirection: mobileLayout ? "column" : "row",
- };
- }, [mobileLayout]);
-
- const outside = useRef<HTMLDivElement>(null);
- const inside = useRef<HTMLDivElement>(null);
- const backButton = useRef<HTMLDivElement>(null);
- const forwardButton = useRef<HTMLDivElement>(null);
- const headerBar = useRef<HTMLDivElement>(null);
-
- useEffect(() => {
- const { current } = outside;
- const { current: insideCurrent } = inside;
- const { current: backButtonCurrent } = backButton;
- const { current: forwardButtonCurrent } = forwardButton;
- const { current: headerBarCurrent } = headerBar;
- if (!current) {
- return;
- }
-
- if (!insideCurrent) {
- return;
- }
-
- if (!mobileLayout && !backButtonCurrent) {
- return;
- }
-
- if (!mobileLayout && !forwardButtonCurrent) {
- return;
- }
-
- if (mobileLayout && !headerBarCurrent) {
- return;
- }
-
- const onClick = (event: MouseEvent) => {
- if (insideCurrent.contains(event.target as Node | null)) {
- return;
- }
-
- if (
- !mobileLayout &&
- (backButtonCurrent as HTMLDivElement).contains(
- event.target as Node | null,
- )
- ) {
- return;
- }
-
- if (
- !mobileLayout &&
- (forwardButtonCurrent as HTMLDivElement).contains(
- event.target as Node | null,
- )
- ) {
- return;
- }
-
- if (
- mobileLayout &&
- (headerBarCurrent as HTMLDivElement).contains(
- event.target as Node | null,
- )
- ) {
- return;
- }
-
- dismiss();
- };
-
- current.addEventListener("click", onClick);
- return () => {
- current.removeEventListener("click", onClick);
- };
- }, [dismiss, mobileLayout, video]);
-
- useEffect(() => {
- if (!video) {
- return;
- }
-
- const onKeyPress = (e: KeyboardEvent) => {
- if (hasNext && e.key === "ArrowRight") {
- toNext();
- }
-
- if (hasPrevious && e.key === "ArrowLeft") {
- toPrevious();
- }
-
- if (e.key === "Escape") {
- dismiss();
- }
- };
-
- window.addEventListener("keyup", onKeyPress);
- return () => {
- window.removeEventListener("keyup", onKeyPress);
- };
- }, [dismiss, hasNext, hasPrevious, toNext, toPrevious, video]);
-
- if (!video) {
- return null;
- }
-
- return (
- <div ref={outside} style={containerWithDirection}>
- {mobileLayout ? null : (
- <div style={cancelContainer}>
- <CancelIcon style={cancelIcon} />
- </div>
- )}
- {mobileLayout ? null : (
- <div
- ref={backButton}
- style={hasPrevious ? changeButton : changeButtonInactive}
- onClick={toPrevious}
- >
- <IconLeft style={icon} />
- </div>
- )}
- <div ref={inside}>
- <VideoPlayerContent
- video={video}
- userHasInteractedWithPage={userHasInteractedWithPage}
- />
- </div>
- {mobileLayout ? (
- <VidPlayerHeader
- ref={headerBar}
- onNext={toNext}
- onDismiss={dismiss}
- onPrevious={toPrevious}
- hasNext={hasNext}
- hasPrevious={hasPrevious}
- />
- ) : null}
- {mobileLayout ? null : (
- <div
- ref={forwardButton}
- style={hasNext ? changeButton : changeButtonInactive}
- onClick={toNext}
- >
- <IconRight style={icon} />
- </div>
- )}
- </div>
- );
+ const mobileLayout = useMobileLayout();
+
+ const containerWithDirection: React.CSSProperties = useMemo(() => {
+ return {
+ ...container,
+ flexDirection: mobileLayout ? 'column' : 'row',
+ };
+ }, [mobileLayout]);
+
+ const outside = useRef<HTMLDivElement>(null);
+ const inside = useRef<HTMLDivElement>(null);
+ const backButton = useRef<HTMLDivElement>(null);
+ const forwardButton = useRef<HTMLDivElement>(null);
+ const headerBar = useRef<HTMLDivElement>(null);
+
+ useEffect(() => {
+ const {current} = outside;
+ const {current: insideCurrent} = inside;
+ const {current: backButtonCurrent} = backButton;
+ const {current: forwardButtonCurrent} = forwardButton;
+ const {current: headerBarCurrent} = headerBar;
+ if (!current) {
+ return;
+ }
+
+ if (!insideCurrent) {
+ return;
+ }
+
+ if (!mobileLayout && !backButtonCurrent) {
+ return;
+ }
+
+ if (!mobileLayout && !forwardButtonCurrent) {
+ return;
+ }
+
+ if (mobileLayout && !headerBarCurrent) {
+ return;
+ }
+
+ const onClick = (event: MouseEvent) => {
+ if (insideCurrent.contains(event.target as Node | null)) {
+ return;
+ }
+
+ if (
+ !mobileLayout &&
+ (backButtonCurrent as HTMLDivElement).contains(
+ event.target as Node | null,
+ )
+ ) {
+ return;
+ }
+
+ if (
+ !mobileLayout &&
+ (forwardButtonCurrent as HTMLDivElement).contains(
+ event.target as Node | null,
+ )
+ ) {
+ return;
+ }
+
+ if (
+ mobileLayout &&
+ (headerBarCurrent as HTMLDivElement).contains(
+ event.target as Node | null,
+ )
+ ) {
+ return;
+ }
+
+ dismiss();
+ };
+
+ current.addEventListener('click', onClick);
+ return () => {
+ current.removeEventListener('click', onClick);
+ };
+ }, [dismiss, mobileLayout, video]);
+
+ useEffect(() => {
+ if (!video) {
+ return;
+ }
+
+ const onKeyPress = (e: KeyboardEvent) => {
+ if (hasNext && e.key === 'ArrowRight') {
+ toNext();
+ }
+
+ if (hasPrevious && e.key === 'ArrowLeft') {
+ toPrevious();
+ }
+
+ if (e.key === 'Escape') {
+ dismiss();
+ }
+ };
+
+ window.addEventListener('keyup', onKeyPress);
+ return () => {
+ window.removeEventListener('keyup', onKeyPress);
+ };
+ }, [dismiss, hasNext, hasPrevious, toNext, toPrevious, video]);
+
+ if (!video) {
+ return null;
+ }
+
+ return (
+ <div ref={outside} style={containerWithDirection}>
+ {mobileLayout ? null : (
+ <div style={cancelContainer}>
+ <CancelIcon style={cancelIcon} />
+ </div>
+ )}
+ {mobileLayout ? null : (
+ <div
+ ref={backButton}
+ style={hasPrevious ? changeButton : changeButtonInactive}
+ onClick={toPrevious}
+ >
+ <IconLeft style={icon} />
+ </div>
+ )}
+ <div ref={inside}>
+ <VideoPlayerContent
+ video={video}
+ userHasInteractedWithPage={userHasInteractedWithPage}
+ />
+ </div>
+ {mobileLayout ? (
+ <VidPlayerHeader
+ ref={headerBar}
+ onNext={toNext}
+ onDismiss={dismiss}
+ onPrevious={toPrevious}
+ hasNext={hasNext}
+ hasPrevious={hasPrevious}
+ />
+ ) : null}
+ {mobileLayout ? null : (
+ <div
+ ref={forwardButton}
+ style={hasNext ? changeButton : changeButtonInactive}
+ onClick={toNext}
+ >
+ <IconRight style={icon} />
+ </div>
+ )}
+ </div>
+ );
};
diff --git a/packages/docs/src/components/VideoPlayerContent.tsx b/packages/docs/src/components/VideoPlayerContent.tsx
index c397024817..8157085257 100644
--- a/packages/docs/src/components/VideoPlayerContent.tsx
+++ b/packages/docs/src/components/VideoPlayerContent.tsx
@@ -1,179 +1,173 @@
-import React, {
- useCallback,
- useEffect,
- useMemo,
- useRef,
- useState,
-} from "react";
-import type { ShowcaseVideo } from "../data/showcase-videos";
-import { useMobileLayout } from "../helpers/mobile-layout";
-import { useElementSize } from "../helpers/use-el-size";
-import { PausedIcon } from "../icons/arrows";
-import { MuxVideo } from "./MuxVideo";
-import { Spinner } from "./Spinner";
-import { SHOWCASE_MOBILE_HEADER_HEIGHT } from "./VideoPlayerHeader";
-import { VideoSidebar } from "./VideoSidebar";
+import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
+import type {ShowcaseVideo} from '../data/showcase-videos';
+import {useMobileLayout} from '../helpers/mobile-layout';
+import {useElementSize} from '../helpers/use-el-size';
+import {PausedIcon} from '../icons/arrows';
+import {MuxVideo} from './MuxVideo';
+import {Spinner} from './Spinner';
+import {SHOWCASE_MOBILE_HEADER_HEIGHT} from './VideoPlayerHeader';
+import {VideoSidebar} from './VideoSidebar';
const videoCss: React.CSSProperties = {
- marginBottom: 0,
- backgroundColor: "var(--ifm-hero-background-color)",
+ marginBottom: 0,
+ backgroundColor: 'var(--ifm-hero-background-color)',
};
const RESERVED_FOR_SIDEBAR = 300;
const sidebar: React.CSSProperties = {
- width: RESERVED_FOR_SIDEBAR,
+ width: RESERVED_FOR_SIDEBAR,
};
const spinner: React.CSSProperties = {
- height: 16,
- width: 16,
+ height: 16,
+ width: 16,
};
const loadingContainer: React.CSSProperties = {
- position: "absolute",
- justifyContent: "center",
- alignItems: "center",
- display: "flex",
+ position: 'absolute',
+ justifyContent: 'center',
+ alignItems: 'center',
+ display: 'flex',
};
const pausedContainer: React.CSSProperties = {
- ...loadingContainer,
- pointerEvents: "none",
+ ...loadingContainer,
+ pointerEvents: 'none',
};
const pausedIconStyle: React.CSSProperties = {
- color: "white",
- width: 50,
- filter: `drop-shadow(0 0 5px rgba(0, 0, 0, 0.3))`,
+ color: 'white',
+ width: 50,
+ filter: `drop-shadow(0 0 5px rgba(0, 0, 0, 0.3))`,
};
export const PAGINATE_ICON_WIDTH = 24;
export const PAGINATE_ICON_PADDING = 20;
export const PAGINATE_BUTTONS_WIDTH =
- (PAGINATE_ICON_WIDTH + PAGINATE_ICON_PADDING * 2) * 2;
+ (PAGINATE_ICON_WIDTH + PAGINATE_ICON_PADDING * 2) * 2;
export const VideoPlayerContent: React.FC<{
- video: ShowcaseVideo;
- userHasInteractedWithPage: boolean;
-}> = ({ video, userHasInteractedWithPage }) => {
- const [loaded, setLoaded] = useState(false);
- const videoRef = useRef<HTMLVideoElement>(null);
- const container = useRef<HTMLDivElement>(null);
-
- const [paused, setPaused] = useState(!userHasInteractedWithPage);
-
- const containerSize = useElementSize(
- typeof document === "undefined" ? null : document.body,
- );
- const mobileLayout = useMobileLayout();
-
- const possibleVideoWidth = mobileLayout
- ? containerSize?.width
- : Math.min(containerSize?.width ?? 0, 1200) -
- (mobileLayout ? 0 : RESERVED_FOR_SIDEBAR) -
- (mobileLayout ? 0 : PAGINATE_BUTTONS_WIDTH);
- const containerHeight = mobileLayout
- ? Infinity
- : Math.min(containerSize?.height ?? 0, 800);
-
- const heightRatio = (containerHeight ?? 0) / video.height;
- const widthRatio = (possibleVideoWidth ?? 0) / video.width;
-
- const ratio = Math.min(heightRatio, widthRatio);
-
- const height = ratio * video.height;
- const width = ratio * video.width;
-
- const onLoadedMetadata = useCallback(() => {
- setLoaded(true);
- }, []);
-
- const containerCss: React.CSSProperties = useMemo(() => {
- return {
- backgroundColor: "var(--ifm-hero-background-color)",
- marginBottom: 0,
- display: "flex",
- flexDirection: mobileLayout ? "column" : "row",
- height: mobileLayout ? "100%" : undefined,
- width: mobileLayout ? "100%" : undefined,
- position: mobileLayout ? "absolute" : undefined,
- left: mobileLayout ? 0 : undefined,
- top: mobileLayout ? 0 : undefined,
- overflow: "auto",
- };
- }, [mobileLayout]);
-
- const loadingStyle = useMemo(() => {
- return {
- ...loadingContainer,
- height,
- width,
- };
- }, [height, width]);
-
- useEffect(() => {
- const { current } = videoRef;
-
- if (!current) {
- return;
- }
-
- const onClick = () => {
- if (videoRef.current.paused) {
- videoRef.current.play();
- setPaused(false);
- } else {
- videoRef.current.pause();
- setPaused(true);
- }
- };
-
- current.addEventListener("click", onClick);
- return () => {
- current.removeEventListener("click", onClick);
- };
- }, []);
-
- const loadingContainerStyle: React.CSSProperties = useMemo(() => {
- return {
- ...pausedContainer,
- height,
- width,
- };
- }, [height, width]);
-
- return (
- <div ref={container} style={containerCss}>
- {mobileLayout ? (
- <div style={{ height: SHOWCASE_MOBILE_HEADER_HEIGHT }} />
- ) : null}
-
- {loaded ? null : (
- <div style={loadingStyle}>
- <Spinner style={spinner} />
- </div>
- )}
- <MuxVideo
- ref={videoRef}
- muxId={video.muxId}
- style={videoCss}
- onLoadedMetadata={onLoadedMetadata}
- loop
- height={height}
- playsInline
- width={width}
- autoPlay={userHasInteractedWithPage}
- />
- {paused ? (
- <div style={loadingContainerStyle}>
- <PausedIcon style={pausedIconStyle} />
- </div>
- ) : null}
-
- <div style={sidebar}>
- <VideoSidebar video={video} />
- </div>
- </div>
- );
+ video: ShowcaseVideo;
+ userHasInteractedWithPage: boolean;
+}> = ({video, userHasInteractedWithPage}) => {
+ const [loaded, setLoaded] = useState(false);
+ const videoRef = useRef<HTMLVideoElement>(null);
+ const container = useRef<HTMLDivElement>(null);
+
+ const [paused, setPaused] = useState(!userHasInteractedWithPage);
+
+ const containerSize = useElementSize(
+ typeof document === 'undefined' ? null : document.body,
+ );
+ const mobileLayout = useMobileLayout();
+
+ const possibleVideoWidth = mobileLayout
+ ? containerSize?.width
+ : Math.min(containerSize?.width ?? 0, 1200) -
+ (mobileLayout ? 0 : RESERVED_FOR_SIDEBAR) -
+ (mobileLayout ? 0 : PAGINATE_BUTTONS_WIDTH);
+ const containerHeight = mobileLayout
+ ? Infinity
+ : Math.min(containerSize?.height ?? 0, 800);
+
+ const heightRatio = (containerHeight ?? 0) / video.height;
+ const widthRatio = (possibleVideoWidth ?? 0) / video.width;
+
+ const ratio = Math.min(heightRatio, widthRatio);
+
+ const height = ratio * video.height;
+ const width = ratio * video.width;
+
+ const onLoadedMetadata = useCallback(() => {
+ setLoaded(true);
+ }, []);
+
+ const containerCss: React.CSSProperties = useMemo(() => {
+ return {
+ backgroundColor: 'var(--ifm-hero-background-color)',
+ marginBottom: 0,
+ display: 'flex',
+ flexDirection: mobileLayout ? 'column' : 'row',
+ height: mobileLayout ? '100%' : undefined,
+ width: mobileLayout ? '100%' : undefined,
+ position: mobileLayout ? 'absolute' : undefined,
+ left: mobileLayout ? 0 : undefined,
+ top: mobileLayout ? 0 : undefined,
+ overflow: 'auto',
+ };
+ }, [mobileLayout]);
+
+ const loadingStyle = useMemo(() => {
+ return {
+ ...loadingContainer,
+ height,
+ width,
+ };
+ }, [height, width]);
+
+ useEffect(() => {
+ const {current} = videoRef;
+
+ if (!current) {
+ return;
+ }
+
+ const onClick = () => {
+ if (videoRef.current.paused) {
+ videoRef.current.play();
+ setPaused(false);
+ } else {
+ videoRef.current.pause();
+ setPaused(true);
+ }
+ };
+
+ current.addEventListener('click', onClick);
+ return () => {
+ current.removeEventListener('click', onClick);
+ };
+ }, []);
+
+ const loadingContainerStyle: React.CSSProperties = useMemo(() => {
+ return {
+ ...pausedContainer,
+ height,
+ width,
+ };
+ }, [height, width]);
+
+ return (
+ <div ref={container} style={containerCss}>
+ {mobileLayout ? (
+ <div style={{height: SHOWCASE_MOBILE_HEADER_HEIGHT}} />
+ ) : null}
+
+ {loaded ? null : (
+ <div style={loadingStyle}>
+ <Spinner style={spinner} />
+ </div>
+ )}
+ <MuxVideo
+ ref={videoRef}
+ muxId={video.muxId}
+ style={videoCss}
+ onLoadedMetadata={onLoadedMetadata}
+ loop
+ height={height}
+ playsInline
+ width={width}
+ autoPlay={userHasInteractedWithPage}
+ />
+ {paused ? (
+ <div style={loadingContainerStyle}>
+ <PausedIcon style={pausedIconStyle} />
+ </div>
+ ) : null}
+
+ <div style={sidebar}>
+ <VideoSidebar video={video} />
+ </div>
+ </div>
+ );
};
diff --git a/packages/docs/src/components/VideoPlayerHeader.tsx b/packages/docs/src/components/VideoPlayerHeader.tsx
index 8266bfdfb1..7aab6d2d3c 100644
--- a/packages/docs/src/components/VideoPlayerHeader.tsx
+++ b/packages/docs/src/components/VideoPlayerHeader.tsx
@@ -1,92 +1,92 @@
-import { useColorMode } from "@docusaurus/theme-common";
-import React, { forwardRef } from "react";
-import { CancelIcon, IconLeft, IconRight } from "../icons/arrows";
+import {useColorMode} from '@docusaurus/theme-common';
+import React, {forwardRef} from 'react';
+import {CancelIcon, IconLeft, IconRight} from '../icons/arrows';
export const SHOWCASE_MOBILE_HEADER_HEIGHT = 48;
const container: React.CSSProperties = {
- height: 48,
- paddingLeft: 14,
- paddingRight: 14,
- display: "flex",
- alignItems: "center",
- flexDirection: "row",
- position: "fixed",
- width: "100%",
- backgroundColor: "var(--ifm-hero-background-color)",
- top: 0,
+ height: 48,
+ paddingLeft: 14,
+ paddingRight: 14,
+ display: 'flex',
+ alignItems: 'center',
+ flexDirection: 'row',
+ position: 'fixed',
+ width: '100%',
+ backgroundColor: 'var(--ifm-hero-background-color)',
+ top: 0,
};
const button: React.CSSProperties = {
- padding: 10,
- cursor: "pointer",
- display: "inline-flex",
- justifyContent: "center",
- alignItems: "center",
- appearance: "none",
- border: "none",
- backgroundColor: "transparent",
+ padding: 10,
+ cursor: 'pointer',
+ display: 'inline-flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ appearance: 'none',
+ border: 'none',
+ backgroundColor: 'transparent',
};
const iconStyle: React.CSSProperties = {
- height: 24,
+ height: 24,
};
const flex: React.CSSProperties = {
- flex: 1,
+ flex: 1,
};
const space: React.CSSProperties = {
- width: 20,
+ width: 20,
};
const VideoPlayerHeader: React.ForwardRefRenderFunction<
- HTMLDivElement,
- {
- onDismiss: () => void;
- onNext: () => void;
- onPrevious: () => void;
- hasNext: boolean;
- hasPrevious: boolean;
- }
-> = ({ onDismiss, onNext, onPrevious, hasNext, hasPrevious }, ref) => {
- const { colorMode } = useColorMode();
+ HTMLDivElement,
+ {
+ onDismiss: () => void;
+ onNext: () => void;
+ onPrevious: () => void;
+ hasNext: boolean;
+ hasPrevious: boolean;
+ }
+> = ({onDismiss, onNext, onPrevious, hasNext, hasPrevious}, ref) => {
+ const {colorMode} = useColorMode();
- const iconColor = colorMode === "dark" ? "#ddd" : "#222";
- const borderBottom =
- colorMode === "dark"
- ? "1px solid rgba(255, 255, 255, 0.1)"
- : "1px solid rgba(0, 0, 0, 0.1)";
- return (
- <div ref={ref} style={{ ...container, borderBottom }}>
- <button onClick={onDismiss} type="button" style={button}>
- <CancelIcon color={iconColor} style={iconStyle} />
- </button>
- <div style={flex} />
- <button onClick={onPrevious} type="button" style={button}>
- <IconLeft
- style={{
- ...iconStyle,
- opacity: hasPrevious ? 1 : 0.6,
- color: iconColor,
- cursor: hasPrevious ? "pointer" : "default",
- }}
- />
- </button>
- <div style={space} />
- <button onClick={onNext} type="button" style={button}>
- <IconRight
- color={iconColor}
- style={{
- ...iconStyle,
- opacity: hasNext ? 1 : 0.6,
- color: iconColor,
- cursor: hasNext ? "pointer" : "default",
- }}
- />
- </button>
- </div>
- );
+ const iconColor = colorMode === 'dark' ? '#ddd' : '#222';
+ const borderBottom =
+ colorMode === 'dark'
+ ? '1px solid rgba(255, 255, 255, 0.1)'
+ : '1px solid rgba(0, 0, 0, 0.1)';
+ return (
+ <div ref={ref} style={{...container, borderBottom}}>
+ <button onClick={onDismiss} type="button" style={button}>
+ <CancelIcon color={iconColor} style={iconStyle} />
+ </button>
+ <div style={flex} />
+ <button onClick={onPrevious} type="button" style={button}>
+ <IconLeft
+ style={{
+ ...iconStyle,
+ opacity: hasPrevious ? 1 : 0.6,
+ color: iconColor,
+ cursor: hasPrevious ? 'pointer' : 'default',
+ }}
+ />
+ </button>
+ <div style={space} />
+ <button onClick={onNext} type="button" style={button}>
+ <IconRight
+ color={iconColor}
+ style={{
+ ...iconStyle,
+ opacity: hasNext ? 1 : 0.6,
+ color: iconColor,
+ cursor: hasNext ? 'pointer' : 'default',
+ }}
+ />
+ </button>
+ </div>
+ );
};
export const VidPlayerHeader = forwardRef(VideoPlayerHeader);
diff --git a/packages/docs/src/components/VideoPlayerWithControls.tsx b/packages/docs/src/components/VideoPlayerWithControls.tsx
index cb300424ee..fc6875a9fb 100644
--- a/packages/docs/src/components/VideoPlayerWithControls.tsx
+++ b/packages/docs/src/components/VideoPlayerWithControls.tsx
@@ -1,42 +1,42 @@
-import Hls from "hls.js";
-import type Plyr from "plyr";
-import "plyr/dist/plyr.css";
-import type { MutableRefObject } from "react";
+import Hls from 'hls.js';
+import type Plyr from 'plyr';
+import 'plyr/dist/plyr.css';
+import type {MutableRefObject} from 'react';
import React, {
- forwardRef,
- useCallback,
- useEffect,
- useRef,
- useState,
-} from "react";
-import "./video-player.css";
+ forwardRef,
+ useCallback,
+ useEffect,
+ useRef,
+ useState,
+} from 'react';
+import './video-player.css';
export interface HTMLVideoElementWithPlyr extends HTMLVideoElement {
- plyr: Plyr;
+ plyr: Plyr;
}
const useCombinedRefs = function (
- ...refs: (
- | ((instance: HTMLVideoElementWithPlyr | null) => void)
- | MutableRefObject<HTMLVideoElementWithPlyr | null>
- | null
- )[]
+ ...refs: (
+ | ((instance: HTMLVideoElementWithPlyr | null) => void)
+ | MutableRefObject<HTMLVideoElementWithPlyr | null>
+ | null
+ )[]
): MutableRefObject<HTMLVideoElementWithPlyr | null> {
- const targetRef = useRef(null);
+ const targetRef = useRef(null);
- useEffect(() => {
- refs.forEach((ref) => {
- if (!ref) return;
+ useEffect(() => {
+ refs.forEach((ref) => {
+ if (!ref) return;
- if (typeof ref === "function") {
- ref(targetRef.current);
- } else {
- ref.current = targetRef.current;
- }
- });
- }, [refs]);
+ if (typeof ref === 'function') {
+ ref(targetRef.current);
+ } else {
+ ref.current = targetRef.current;
+ }
+ });
+ }, [refs]);
- return targetRef;
+ return targetRef;
};
/*
@@ -60,135 +60,135 @@ const useCombinedRefs = function (
*/
type Props = {
- playbackId: string;
- poster: string;
- // eslint-disable-next-line react/require-default-props
- currentTime?: number;
- onLoaded: () => void;
- onError: (error: ErrorEvent) => void;
- onSize: (dim: { width: number; height: number }) => void;
- // eslint-disable-next-line react/require-default-props
- autoPlay?: boolean;
+ playbackId: string;
+ poster: string;
+ // eslint-disable-next-line react/require-default-props
+ currentTime?: number;
+ onLoaded: () => void;
+ onError: (error: ErrorEvent) => void;
+ onSize: (dim: {width: number; height: number}) => void;
+ // eslint-disable-next-line react/require-default-props
+ autoPlay?: boolean;
};
type SizedEvent = {
- target: {
- width: number;
- height: number;
- };
+ target: {
+ width: number;
+ height: number;
+ };
};
export const VideoPlayerWithControls = forwardRef<
- HTMLVideoElementWithPlyr,
- Props
+ HTMLVideoElementWithPlyr,
+ Props
>(
- (
- { playbackId, poster, currentTime, onLoaded, onError, onSize, autoPlay },
- ref,
- ) => {
- const videoRef = useRef<HTMLVideoElementWithPlyr>(null);
- const metaRef = useCombinedRefs(ref, videoRef);
- const playerRef = useRef<Plyr | null>(null);
- const [playerInitTime] = useState(Date.now());
-
- const videoError = useCallback(
- (event: ErrorEvent) => onError(event),
- [onError],
- );
-
- const onImageLoad = useCallback(
- (event: SizedEvent) => {
- const [w, h] = [event.target.width, event.target.height];
- if (w && h) {
- onSize({ width: w, height: h });
- onLoaded();
- } else {
- onLoaded();
- console.error("Error getting img dimensions", event); // eslint-disable-line no-console
- }
- },
- [onLoaded, onSize],
- );
-
- /*
- * See comment above -- we're loading the poster image just so we can grab the dimensions
- * which determines styles for the player
- */
- useEffect(() => {
- const img = new Image();
- img.onload = (evt) => onImageLoad(evt as unknown as SizedEvent);
- img.src = poster;
- }, [onImageLoad, poster]);
-
- useEffect(() => {
- const video = videoRef.current;
- const src = `https://stream.mux.com/${playbackId}.m3u8`;
- let hls: Hls | null;
- hls = null;
- if (video) {
- video.addEventListener("error", videoError);
- const Plyr = require("plyr");
- playerRef.current = new Plyr(video, {
- previewThumbnails: {
- enabled: true,
- src: `https://image.mux.com/${playbackId}/storyboard.vtt`,
- },
- storage: { enabled: false },
- fullscreen: {
- iosNative: true,
- },
- captions: { active: true, language: "auto", update: true },
- });
-
- if (video.canPlayType("application/vnd.apple.mpegurl")) {
- // This will run in safari, where HLS is supported natively
- video.src = src;
- } else if (Hls.isSupported()) {
- // This will run in all other modern browsers
- hls = new Hls();
- hls.loadSource(src);
- hls.attachMedia(video);
- hls.on(Hls.Events.ERROR, (_event, data) => {
- if (data.fatal) {
- videoError(new ErrorEvent("HLS.js fatal error"));
- }
- });
- } else {
- console.error(
- // eslint-disable-line no-console
- "This is an old browser that does not support MSE https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API",
- );
- }
- }
-
- return () => {
- if (video) {
- video.removeEventListener("error", videoError);
- }
-
- if (hls) {
- hls.destroy();
- }
- };
- }, [playbackId, playerInitTime, videoError, videoRef]);
-
- useEffect(() => {
- const video = videoRef.current;
- if (currentTime && video) {
- video.currentTime = currentTime;
- }
- }, [currentTime]);
-
- return (
- <div className="video-container">
- <video
- ref={metaRef}
- autoPlay={autoPlay}
- poster={poster}
- controls
- playsInline
- />
- </div>
- );
- },
+ (
+ {playbackId, poster, currentTime, onLoaded, onError, onSize, autoPlay},
+ ref,
+ ) => {
+ const videoRef = useRef<HTMLVideoElementWithPlyr>(null);
+ const metaRef = useCombinedRefs(ref, videoRef);
+ const playerRef = useRef<Plyr | null>(null);
+ const [playerInitTime] = useState(Date.now());
+
+ const videoError = useCallback(
+ (event: ErrorEvent) => onError(event),
+ [onError],
+ );
+
+ const onImageLoad = useCallback(
+ (event: SizedEvent) => {
+ const [w, h] = [event.target.width, event.target.height];
+ if (w && h) {
+ onSize({width: w, height: h});
+ onLoaded();
+ } else {
+ onLoaded();
+ console.error('Error getting img dimensions', event); // eslint-disable-line no-console
+ }
+ },
+ [onLoaded, onSize],
+ );
+
+ /*
+ * See comment above -- we're loading the poster image just so we can grab the dimensions
+ * which determines styles for the player
+ */
+ useEffect(() => {
+ const img = new Image();
+ img.onload = (evt) => onImageLoad(evt as unknown as SizedEvent);
+ img.src = poster;
+ }, [onImageLoad, poster]);
+
+ useEffect(() => {
+ const video = videoRef.current;
+ const src = `https://stream.mux.com/${playbackId}.m3u8`;
+ let hls: Hls | null;
+ hls = null;
+ if (video) {
+ video.addEventListener('error', videoError);
+ const Plyr = require('plyr');
+ playerRef.current = new Plyr(video, {
+ previewThumbnails: {
+ enabled: true,
+ src: `https://image.mux.com/${playbackId}/storyboard.vtt`,
+ },
+ storage: {enabled: false},
+ fullscreen: {
+ iosNative: true,
+ },
+ captions: {active: true, language: 'auto', update: true},
+ });
+
+ if (video.canPlayType('application/vnd.apple.mpegurl')) {
+ // This will run in safari, where HLS is supported natively
+ video.src = src;
+ } else if (Hls.isSupported()) {
+ // This will run in all other modern browsers
+ hls = new Hls();
+ hls.loadSource(src);
+ hls.attachMedia(video);
+ hls.on(Hls.Events.ERROR, (_event, data) => {
+ if (data.fatal) {
+ videoError(new ErrorEvent('HLS.js fatal error'));
+ }
+ });
+ } else {
+ console.error(
+ // eslint-disable-line no-console
+ 'This is an old browser that does not support MSE https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API',
+ );
+ }
+ }
+
+ return () => {
+ if (video) {
+ video.removeEventListener('error', videoError);
+ }
+
+ if (hls) {
+ hls.destroy();
+ }
+ };
+ }, [playbackId, playerInitTime, videoError, videoRef]);
+
+ useEffect(() => {
+ const video = videoRef.current;
+ if (currentTime && video) {
+ video.currentTime = currentTime;
+ }
+ }, [currentTime]);
+
+ return (
+ <div className="video-container">
+ <video
+ ref={metaRef}
+ autoPlay={autoPlay}
+ poster={poster}
+ controls
+ playsInline
+ />
+ </div>
+ );
+ },
);
diff --git a/packages/docs/src/components/VideoPreview.tsx b/packages/docs/src/components/VideoPreview.tsx
index a67d637374..f137f659f7 100644
--- a/packages/docs/src/components/VideoPreview.tsx
+++ b/packages/docs/src/components/VideoPreview.tsx
@@ -1,125 +1,125 @@
-import clsx from "clsx";
-import React, { useEffect, useMemo, useRef, useState } from "react";
-import type { ShowcaseVideo } from "../data/showcase-videos";
+import clsx from 'clsx';
+import React, {useEffect, useMemo, useRef, useState} from 'react';
+import type {ShowcaseVideo} from '../data/showcase-videos';
const videoStyle: React.CSSProperties = {
- display: "flex",
- flexDirection: "column",
- alignItems: "center",
- padding: "2rem 0",
- width: "100%",
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ padding: '2rem 0',
+ width: '100%',
};
const videoTitle: React.CSSProperties = {
- marginTop: "1rem",
- textAlign: "center",
- alignSelf: "center",
- padding: "10px",
+ marginTop: '1rem',
+ textAlign: 'center',
+ alignSelf: 'center',
+ padding: '10px',
};
const videoDescription: React.CSSProperties = {
- textAlign: "center",
- padding: "10px",
+ textAlign: 'center',
+ padding: '10px',
};
const padding: React.CSSProperties = {
- display: "flex",
- flexDirection: "column",
- alignItems: "center",
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
};
const containerTitleDescription: React.CSSProperties = {
- display: "flex",
- flexDirection: "column",
- alignItems: "center",
- textAlign: "center",
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ textAlign: 'center',
};
export const VideoPreview: React.FC<
- ShowcaseVideo & {
- title: string;
- description: React.ReactNode;
- onClick: () => void;
- }
-> = ({ title, description, onClick, muxId, width, height, time }) => {
- const [hover, setHover] = useState(false);
-
- const container = useRef<HTMLAnchorElement>(null);
-
- const animated = `https://image.mux.com/${muxId}/animated.gif?width=600`;
- const thumbnail = `https://image.mux.com/${muxId}/thumbnail.png?width=600&time=${time}`;
-
- useEffect(() => {
- const { current } = container;
- if (!current) {
- return;
- }
-
- const onPointerEnter = () => {
- setHover(true);
- };
-
- const onPointerLeave = () => {
- setHover(false);
- };
-
- current.addEventListener("pointerenter", onPointerEnter);
- current.addEventListener("pointerleave", onPointerLeave);
-
- return () => {
- current.removeEventListener("pointerenter", onPointerEnter);
- current.removeEventListener("pointerleave", onPointerLeave);
- };
- }, []);
-
- const a: React.CSSProperties = useMemo(() => {
- return {
- color: "inherit",
- cursor: "pointer",
- margin: "auto",
- display: "block",
- flex: 1,
- };
- }, []);
-
- const style = useMemo(() => {
- return {
- width: "100%",
- aspectRatio: `${width} / ${height}`,
- backgroundImage: `url(${hover ? animated : thumbnail})`,
- backgroundSize: "cover",
- backgroundPosition: "50% 50%",
- };
- }, [width, height, hover, animated, thumbnail]);
-
- const placeholder: React.CSSProperties = useMemo(() => {
- return {
- backgroundColor: "rgba(0, 0, 0, 0.05)",
- aspectRatio: `${width} / ${height}`,
- };
- }, [height, width]);
-
- const frameStyle: React.CSSProperties = {
- border: "2px solid var(--border-color)",
- borderRadius: 5,
- backgroundColor: "var(--ifm-background-color)",
- overflow: "hidden",
- };
-
- return (
- <a
- ref={container}
- style={{ ...a, ...frameStyle }}
- className={clsx(videoStyle)}
- onClick={onClick}
- >
- <div style={placeholder}>
- <div style={style} />
- </div>
- <div style={{ ...padding, ...containerTitleDescription }}>
- <h3 style={videoTitle}>{title}</h3>
- <p style={videoDescription}>{description}</p>
- </div>
- </a>
- );
+ ShowcaseVideo & {
+ title: string;
+ description: React.ReactNode;
+ onClick: () => void;
+ }
+> = ({title, description, onClick, muxId, width, height, time}) => {
+ const [hover, setHover] = useState(false);
+
+ const container = useRef<HTMLAnchorElement>(null);
+
+ const animated = `https://image.mux.com/${muxId}/animated.gif?width=600`;
+ const thumbnail = `https://image.mux.com/${muxId}/thumbnail.png?width=600&time=${time}`;
+
+ useEffect(() => {
+ const {current} = container;
+ if (!current) {
+ return;
+ }
+
+ const onPointerEnter = () => {
+ setHover(true);
+ };
+
+ const onPointerLeave = () => {
+ setHover(false);
+ };
+
+ current.addEventListener('pointerenter', onPointerEnter);
+ current.addEventListener('pointerleave', onPointerLeave);
+
+ return () => {
+ current.removeEventListener('pointerenter', onPointerEnter);
+ current.removeEventListener('pointerleave', onPointerLeave);
+ };
+ }, []);
+
+ const a: React.CSSProperties = useMemo(() => {
+ return {
+ color: 'inherit',
+ cursor: 'pointer',
+ margin: 'auto',
+ display: 'block',
+ flex: 1,
+ };
+ }, []);
+
+ const style = useMemo(() => {
+ return {
+ width: '100%',
+ aspectRatio: `${width} / ${height}`,
+ backgroundImage: `url(${hover ? animated : thumbnail})`,
+ backgroundSize: 'cover',
+ backgroundPosition: '50% 50%',
+ };
+ }, [width, height, hover, animated, thumbnail]);
+
+ const placeholder: React.CSSProperties = useMemo(() => {
+ return {
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
+ aspectRatio: `${width} / ${height}`,
+ };
+ }, [height, width]);
+
+ const frameStyle: React.CSSProperties = {
+ border: '2px solid var(--border-color)',
+ borderRadius: 5,
+ backgroundColor: 'var(--ifm-background-color)',
+ overflow: 'hidden',
+ };
+
+ return (
+ <a
+ ref={container}
+ style={{...a, ...frameStyle}}
+ className={clsx(videoStyle)}
+ onClick={onClick}
+ >
+ <div style={placeholder}>
+ <div style={style} />
+ </div>
+ <div style={{...padding, ...containerTitleDescription}}>
+ <h3 style={videoTitle}>{title}</h3>
+ <p style={videoDescription}>{description}</p>
+ </div>
+ </a>
+ );
};
diff --git a/packages/docs/src/components/VideoSidebar.tsx b/packages/docs/src/components/VideoSidebar.tsx
index 2d3934ebfa..2fe6ccfc89 100644
--- a/packages/docs/src/components/VideoSidebar.tsx
+++ b/packages/docs/src/components/VideoSidebar.tsx
@@ -1,65 +1,65 @@
-import React from "react";
-import type { ShowcaseLink, ShowcaseVideo } from "../data/showcase-videos";
+import React from 'react';
+import type {ShowcaseLink, ShowcaseVideo} from '../data/showcase-videos';
const container: React.CSSProperties = {
- padding: 20,
+ padding: 20,
};
const title: React.CSSProperties = {
- fontWeight: "bold",
- marginBottom: 12,
+ fontWeight: 'bold',
+ marginBottom: 12,
};
const description: React.CSSProperties = {
- fontSize: 13,
- marginBottom: 20,
+ fontSize: 13,
+ marginBottom: 20,
};
const a: React.CSSProperties = {
- fontSize: 14,
- fontWeight: "bold",
+ fontSize: 14,
+ fontWeight: 'bold',
};
const getLinkLabel = (linkType: ShowcaseLink) => {
- switch (linkType) {
- case "source_code":
- return "Source code";
- case "tutorial":
- return "Tutorial";
- case "website":
- return "Website";
- case "video":
- return "Video";
- default:
- throw new Error("don't know link type");
- }
+ switch (linkType) {
+ case 'source_code':
+ return 'Source code';
+ case 'tutorial':
+ return 'Tutorial';
+ case 'website':
+ return 'Website';
+ case 'video':
+ return 'Video';
+ default:
+ throw new Error("don't know link type");
+ }
};
export const VideoSidebar: React.FC<{
- video: ShowcaseVideo;
-}> = ({ video }) => {
- return (
- <div style={container}>
- <div style={title}>{video.title}</div>
- <div style={description}>{video.description}</div>
+ video: ShowcaseVideo;
+}> = ({video}) => {
+ return (
+ <div style={container}>
+ <div style={title}>{video.title}</div>
+ <div style={description}>{video.description}</div>
- {video.author && (
- <div style={description}>
- Created by{" "}
- <a style={a} target="_blank" href={video.author.url}>
- {video.author.name}
- </a>
- .
- </div>
- )}
- {video.links.map((link) => {
- return (
- <div key={link.url}>
- <a style={a} target="_blank" href={link.url}>
- {getLinkLabel(link.type)}
- </a>
- </div>
- );
- })}
- </div>
- );
+ {video.author && (
+ <div style={description}>
+ Created by{' '}
+ <a style={a} target="_blank" href={video.author.url}>
+ {video.author.name}
+ </a>
+ .
+ </div>
+ )}
+ {video.links.map((link) => {
+ return (
+ <div key={link.url}>
+ <a style={a} target="_blank" href={link.url}>
+ {getLinkLabel(link.type)}
+ </a>
+ </div>
+ );
+ })}
+ </div>
+ );
};
diff --git a/packages/docs/src/components/credits.css b/packages/docs/src/components/credits.css
index 50481c94bb..18b00ede05 100644
--- a/packages/docs/src/components/credits.css
+++ b/packages/docs/src/components/credits.css
@@ -1,3 +1,3 @@
.credits-contributors code {
- color: var(--ifm-color-primary);
+ color: var(--ifm-color-primary);
}
diff --git a/packages/docs/src/components/icons.tsx b/packages/docs/src/components/icons.tsx
index b2cd322932..edd3ae0538 100644
--- a/packages/docs/src/components/icons.tsx
+++ b/packages/docs/src/components/icons.tsx
@@ -1,109 +1,109 @@
-import React from "react";
+import React from 'react';
export const TwitterLogo: React.FC = () => {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 600 600"
- style={{
- width: 30,
- marginRight: 10,
- }}
- >
- <path
- fill="white"
- d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"
- />
- </svg>
- );
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 600 600"
+ style={{
+ width: 30,
+ marginRight: 10,
+ }}
+ >
+ <path
+ fill="white"
+ d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"
+ />
+ </svg>
+ );
};
export const LinkedInLogo: React.FC = () => {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 1000 1000"
- style={{
- width: 30,
- marginRight: 10,
- }}
- >
- <path
- fill="white"
- d="M195.877 0C88.16 0 0 88.158 0 195.877V803.718C0 911.435 88.158 999.563 195.877 999.563H803.718C911.436 999.563 999.563 911.436 999.563 803.718V195.877C999.563 88.16 911.436 0 803.718 0H195.877ZM245.143 164.948C296.791 164.948 328.604 198.854 329.586 243.423C329.586 287.008 296.789 321.867 244.144 321.867H243.175C192.51 321.867 159.763 287.01 159.763 243.423C159.763 198.855 193.501 164.948 245.142 164.948H245.143ZM690.223 373.258C789.552 373.258 864.013 438.18 864.013 577.694V838.143H713.06V595.156C713.06 534.096 691.213 492.438 636.584 492.438C594.88 492.438 570.022 520.516 559.108 547.64C555.121 557.344 554.141 570.897 554.141 584.472V838.143H403.188C403.188 838.143 405.169 426.53 403.188 383.91H554.172V448.234C574.232 417.284 610.114 373.257 690.223 373.257V373.258ZM168.667 383.943H319.62V838.145H168.667V383.943V383.943Z"
- />
- </svg>
- );
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 1000 1000"
+ style={{
+ width: 30,
+ marginRight: 10,
+ }}
+ >
+ <path
+ fill="white"
+ d="M195.877 0C88.16 0 0 88.158 0 195.877V803.718C0 911.435 88.158 999.563 195.877 999.563H803.718C911.436 999.563 999.563 911.436 999.563 803.718V195.877C999.563 88.16 911.436 0 803.718 0H195.877ZM245.143 164.948C296.791 164.948 328.604 198.854 329.586 243.423C329.586 287.008 296.789 321.867 244.144 321.867H243.175C192.51 321.867 159.763 287.01 159.763 243.423C159.763 198.855 193.501 164.948 245.142 164.948H245.143ZM690.223 373.258C789.552 373.258 864.013 438.18 864.013 577.694V838.143H713.06V595.156C713.06 534.096 691.213 492.438 636.584 492.438C594.88 492.438 570.022 520.516 559.108 547.64C555.121 557.344 554.141 570.897 554.141 584.472V838.143H403.188C403.188 838.143 405.169 426.53 403.188 383.91H554.172V448.234C574.232 417.284 610.114 373.257 690.223 373.257V373.258ZM168.667 383.943H319.62V838.145H168.667V383.943V383.943Z"
+ />
+ </svg>
+ );
};
export const GitHubLogo: React.FC = () => {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 1084 1084"
- style={{
- width: 30,
- marginRight: 10,
- }}
- >
- <path
- fill="white"
- d="M542 0C242.545 0 0 242.545 0 542C0 781.835 155.147 984.408 370.592 1056.22C397.692 1060.97 407.855 1044.71 407.855 1030.48C407.855 1017.61 407.178 974.923 407.178 929.53C271 954.598 235.77 896.332 224.93 865.845C218.832 850.262 192.41 802.16 169.375 789.287C150.405 779.125 123.305 754.057 168.698 753.38C211.38 752.702 241.868 792.675 252.03 808.935C300.81 890.912 378.723 867.878 409.888 853.65C414.63 818.42 428.857 794.707 444.44 781.157C323.845 767.607 197.83 720.86 197.83 513.545C197.83 454.602 218.833 405.822 253.385 367.882C247.965 354.332 228.995 298.777 258.805 224.252C258.805 224.252 304.198 210.025 407.855 279.808C451.215 267.613 497.285 261.515 543.355 261.515C589.425 261.515 635.495 267.613 678.855 279.808C782.513 209.348 827.905 224.252 827.905 224.252C857.715 298.777 838.745 354.332 833.325 367.882C867.878 405.822 888.88 453.925 888.88 513.545C888.88 721.537 762.188 767.607 641.593 781.157C661.24 798.095 678.178 830.615 678.178 881.428C678.178 953.92 677.5 1012.19 677.5 1030.48C677.5 1044.71 687.663 1061.64 714.763 1056.22C822.365 1019.91 915.868 950.759 982.106 858.512C1048.34 766.264 1083.98 655.565 1084 542C1084 242.545 841.455 0 542 0Z"
- />
- </svg>
- );
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 1084 1084"
+ style={{
+ width: 30,
+ marginRight: 10,
+ }}
+ >
+ <path
+ fill="white"
+ d="M542 0C242.545 0 0 242.545 0 542C0 781.835 155.147 984.408 370.592 1056.22C397.692 1060.97 407.855 1044.71 407.855 1030.48C407.855 1017.61 407.178 974.923 407.178 929.53C271 954.598 235.77 896.332 224.93 865.845C218.832 850.262 192.41 802.16 169.375 789.287C150.405 779.125 123.305 754.057 168.698 753.38C211.38 752.702 241.868 792.675 252.03 808.935C300.81 890.912 378.723 867.878 409.888 853.65C414.63 818.42 428.857 794.707 444.44 781.157C323.845 767.607 197.83 720.86 197.83 513.545C197.83 454.602 218.833 405.822 253.385 367.882C247.965 354.332 228.995 298.777 258.805 224.252C258.805 224.252 304.198 210.025 407.855 279.808C451.215 267.613 497.285 261.515 543.355 261.515C589.425 261.515 635.495 267.613 678.855 279.808C782.513 209.348 827.905 224.252 827.905 224.252C857.715 298.777 838.745 354.332 833.325 367.882C867.878 405.822 888.88 453.925 888.88 513.545C888.88 721.537 762.188 767.607 641.593 781.157C661.24 798.095 678.178 830.615 678.178 881.428C678.178 953.92 677.5 1012.19 677.5 1030.48C677.5 1044.71 687.663 1061.64 714.763 1056.22C822.365 1019.91 915.868 950.759 982.106 858.512C1048.34 766.264 1083.98 655.565 1084 542C1084 242.545 841.455 0 542 0Z"
+ />
+ </svg>
+ );
};
export const EmailLogo: React.FC = () => {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 1299 1299"
- style={{
- width: 30,
- marginRight: 10,
- }}
- >
- <path
- fill="white"
- d="M1177.22 202.969H121.781C99.3278 202.969 81.1875 221.109 81.1875 243.562V1055.44C81.1875 1077.89 99.3278 1096.03 121.781 1096.03H1177.22C1199.67 1096.03 1217.81 1077.89 1217.81 1055.44V243.562C1217.81 221.109 1199.67 202.969 1177.22 202.969ZM1126.48 343.525V1004.7H172.523V343.525L137.511 316.251L187.366 252.189L241.66 294.432H1057.47L1111.76 252.189L1161.62 316.251L1126.48 343.525V343.525ZM1057.47 294.305L649.5 611.443L241.533 294.305L187.239 252.062L137.384 316.124L172.397 343.398L605.735 680.326C618.197 690.008 633.529 695.263 649.31 695.263C665.091 695.263 680.422 690.008 692.885 680.326L1126.48 343.525L1161.49 316.251L1111.63 252.189L1057.47 294.305Z"
- />
- </svg>
- );
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 1299 1299"
+ style={{
+ width: 30,
+ marginRight: 10,
+ }}
+ >
+ <path
+ fill="white"
+ d="M1177.22 202.969H121.781C99.3278 202.969 81.1875 221.109 81.1875 243.562V1055.44C81.1875 1077.89 99.3278 1096.03 121.781 1096.03H1177.22C1199.67 1096.03 1217.81 1077.89 1217.81 1055.44V243.562C1217.81 221.109 1199.67 202.969 1177.22 202.969ZM1126.48 343.525V1004.7H172.523V343.525L137.511 316.251L187.366 252.189L241.66 294.432H1057.47L1111.76 252.189L1161.62 316.251L1126.48 343.525V343.525ZM1057.47 294.305L649.5 611.443L241.533 294.305L187.239 252.062L137.384 316.124L172.397 343.398L605.735 680.326C618.197 690.008 633.529 695.263 649.31 695.263C665.091 695.263 680.422 690.008 692.885 680.326L1126.48 343.525L1161.49 316.251L1111.63 252.189L1057.47 294.305Z"
+ />
+ </svg>
+ );
};
export const VideoCallLogo: React.FC = () => {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 576 576"
- style={{
- width: 30,
- marginRight: 10,
- }}
- >
- <path
- fill="white"
- d="M64 112c-8.8 0-16 7.2-16 16V384c0 8.8 7.2 16 16 16H320c8.8 0 16-7.2 16-16V128c0-8.8-7.2-16-16-16H64zM0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64v33V351v33c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zM528 363.4V148.6L416 199V146.4L520.3 99.5c5.1-2.3 10.6-3.5 16.2-3.5c21.8 0 39.5 17.7 39.5 39.5v241c0 21.8-17.7 39.5-39.5 39.5c-5.6 0-11.1-1.2-16.2-3.5L416 365.6V313l112 50.4z"
- />
- </svg>
- );
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 576 576"
+ style={{
+ width: 30,
+ marginRight: 10,
+ }}
+ >
+ <path
+ fill="white"
+ d="M64 112c-8.8 0-16 7.2-16 16V384c0 8.8 7.2 16 16 16H320c8.8 0 16-7.2 16-16V128c0-8.8-7.2-16-16-16H64zM0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64v33V351v33c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zM528 363.4V148.6L416 199V146.4L520.3 99.5c5.1-2.3 10.6-3.5 16.2-3.5c21.8 0 39.5 17.7 39.5 39.5v241c0 21.8-17.7 39.5-39.5 39.5c-5.6 0-11.1-1.2-16.2-3.5L416 365.6V313l112 50.4z"
+ />
+ </svg>
+ );
};
export const PersonalWebsite: React.FC = () => {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 576 576"
- style={{
- width: 30,
- marginRight: 10,
- }}
- >
- <path
- fill="white"
- d="M317.9 422.7C296.4 465.6 272.7 480 256 480c-7.9 0-17.3-3.2-27.3-11l-6.9 18.6c-2.9 7.8-7.7 14.7-13.9 19.9c15.6 3 31.6 4.5 48.1 4.5c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256c0 16.4 1.5 32.5 4.5 48.1c5.3-6.2 12.1-11 19.9-13.9l9.6-3.5c-1.4-10-2.1-20.2-2.1-30.6c0-22.2 3.2-43.7 9.3-64H132c-2.5 19.2-3.9 39.3-4 60l32.2-11.9c.5-16.7 1.9-32.8 4.1-48.1H347.7c2.8 20.2 4.3 41.7 4.3 64s-1.5 43.8-4.3 64H283.6l-11.8 32H342c-5.9 27-14.2 50.9-24.1 70.7zM194.1 89.3C215.6 46.4 239.3 32 256 32s40.4 14.4 61.9 57.3c9.9 19.8 18.2 43.7 24.1 70.7H170c5.9-27 14.2-50.9 24.1-70.7zM384 256c0-22.1-1.4-43.5-4-64h90.8c6 20.3 9.3 41.8 9.3 64s-3.2 43.7-9.3 64H380c2.6-20.5 4-41.9 4-64zm-9.3-96c-9.6-47.6-26.2-88-47.2-116.3c57.8 19.5 105 61.8 130.9 116.3H374.7zM53.6 160c25.9-54.5 73.1-96.9 130.9-116.3c-21 28.3-37.5 68.8-47.2 116.3H53.6zM374.7 352h83.8c-25.9 54.5-73.1 96.9-130.9 116.3c21-28.3 37.6-68.8 47.2-116.3zM271 261.5c2.2-5.9 .7-12.4-3.7-16.8s-11-5.9-16.8-3.7l-215 79.2c-6.2 2.3-10.3 8.1-10.5 14.7s3.8 12.6 9.9 15.1l74 30.5L4.7 484.7c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L131.5 403.1l30.5 74c2.5 6.1 8.5 10 15.1 9.9s12.4-4.3 14.7-10.5l79.2-215zM143.3 360L85.1 336 229 283 176 426.9l-24-58.2c-1.6-3.9-4.8-7.1-8.7-8.7z"
- />
- </svg>
- );
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 576 576"
+ style={{
+ width: 30,
+ marginRight: 10,
+ }}
+ >
+ <path
+ fill="white"
+ d="M317.9 422.7C296.4 465.6 272.7 480 256 480c-7.9 0-17.3-3.2-27.3-11l-6.9 18.6c-2.9 7.8-7.7 14.7-13.9 19.9c15.6 3 31.6 4.5 48.1 4.5c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256c0 16.4 1.5 32.5 4.5 48.1c5.3-6.2 12.1-11 19.9-13.9l9.6-3.5c-1.4-10-2.1-20.2-2.1-30.6c0-22.2 3.2-43.7 9.3-64H132c-2.5 19.2-3.9 39.3-4 60l32.2-11.9c.5-16.7 1.9-32.8 4.1-48.1H347.7c2.8 20.2 4.3 41.7 4.3 64s-1.5 43.8-4.3 64H283.6l-11.8 32H342c-5.9 27-14.2 50.9-24.1 70.7zM194.1 89.3C215.6 46.4 239.3 32 256 32s40.4 14.4 61.9 57.3c9.9 19.8 18.2 43.7 24.1 70.7H170c5.9-27 14.2-50.9 24.1-70.7zM384 256c0-22.1-1.4-43.5-4-64h90.8c6 20.3 9.3 41.8 9.3 64s-3.2 43.7-9.3 64H380c2.6-20.5 4-41.9 4-64zm-9.3-96c-9.6-47.6-26.2-88-47.2-116.3c57.8 19.5 105 61.8 130.9 116.3H374.7zM53.6 160c25.9-54.5 73.1-96.9 130.9-116.3c-21 28.3-37.5 68.8-47.2 116.3H53.6zM374.7 352h83.8c-25.9 54.5-73.1 96.9-130.9 116.3c21-28.3 37.6-68.8 47.2-116.3zM271 261.5c2.2-5.9 .7-12.4-3.7-16.8s-11-5.9-16.8-3.7l-215 79.2c-6.2 2.3-10.3 8.1-10.5 14.7s3.8 12.6 9.9 15.1l74 30.5L4.7 484.7c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L131.5 403.1l30.5 74c2.5 6.1 8.5 10 15.1 9.9s12.4-4.3 14.7-10.5l79.2-215zM143.3 360L85.1 336 229 283 176 426.9l-24-58.2c-1.6-3.9-4.8-7.1-8.7-8.7z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/blank.tsx b/packages/docs/src/components/icons/blank.tsx
index b61e927e07..4a5ed307b8 100644
--- a/packages/docs/src/components/icons/blank.tsx
+++ b/packages/docs/src/components/icons/blank.tsx
@@ -1,13 +1,13 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const Blank: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" {...props}>
- <path
- fill="currentColor"
- d="M0 64C0 28.65 28.65 0 64 0H220.1C232.8 0 245.1 5.057 254.1 14.06L369.9 129.9C378.9 138.9 384 151.2 384 163.9V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM352 192H240C213.5 192 192 170.5 192 144V32H64C46.33 32 32 46.33 32 64V448C32 465.7 46.33 480 64 480H320C337.7 480 352 465.7 352 448V192zM347.3 152.6L231.4 36.69C229.4 34.62 226.8 33.18 224 32.48V144C224 152.8 231.2 160 240 160H351.5C350.8 157.2 349.4 154.6 347.3 152.6z"
- />
- </svg>
- );
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M0 64C0 28.65 28.65 0 64 0H220.1C232.8 0 245.1 5.057 254.1 14.06L369.9 129.9C378.9 138.9 384 151.2 384 163.9V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM352 192H240C213.5 192 192 170.5 192 144V32H64C46.33 32 32 46.33 32 64V448C32 465.7 46.33 480 64 480H320C337.7 480 352 465.7 352 448V192zM347.3 152.6L231.4 36.69C229.4 34.62 226.8 33.18 224 32.48V144C224 152.8 231.2 160 240 160H351.5C350.8 157.2 349.4 154.6 347.3 152.6z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/cubes.tsx b/packages/docs/src/components/icons/cubes.tsx
index 48ae8a896a..15d8bd6997 100644
--- a/packages/docs/src/components/icons/cubes.tsx
+++ b/packages/docs/src/components/icons/cubes.tsx
@@ -1,13 +1,13 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const Cubes: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
- <path
- fill="currentColor"
- d="M239.5 5.018C250.1 1.106 261.9 1.106 272.5 5.018L480.5 81.28C499.4 88.22 512 106.2 512 126.4V385.7C512 405.8 499.4 423.8 480.5 430.7L272.5 506.1C261.9 510.9 250.1 510.9 239.5 506.1L31.48 430.7C12.57 423.8 0 405.8 0 385.7V126.4C0 106.2 12.57 88.22 31.48 81.28L239.5 5.018zM261.5 35.06C257.1 33.76 254 33.76 250.5 35.06L44.14 110.7L256 193.1L467.9 110.7L261.5 35.06zM42.49 400.7L240 473.1V222L32 140.3V385.7C32 392.4 36.19 398.4 42.49 400.7V400.7zM272 473.1L469.5 400.7C475.8 398.4 480 392.4 480 385.7V140.3L272 222V473.1z"
- />
- </svg>
- );
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M239.5 5.018C250.1 1.106 261.9 1.106 272.5 5.018L480.5 81.28C499.4 88.22 512 106.2 512 126.4V385.7C512 405.8 499.4 423.8 480.5 430.7L272.5 506.1C261.9 510.9 250.1 510.9 239.5 506.1L31.48 430.7C12.57 423.8 0 405.8 0 385.7V126.4C0 106.2 12.57 88.22 31.48 81.28L239.5 5.018zM261.5 35.06C257.1 33.76 254 33.76 250.5 35.06L44.14 110.7L256 193.1L467.9 110.7L261.5 35.06zM42.49 400.7L240 473.1V222L32 140.3V385.7C32 392.4 36.19 398.4 42.49 400.7V400.7zM272 473.1L469.5 400.7C475.8 398.4 480 392.4 480 385.7V140.3L272 222V473.1z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/js.tsx b/packages/docs/src/components/icons/js.tsx
index b932f9298e..b39c93f70e 100644
--- a/packages/docs/src/components/icons/js.tsx
+++ b/packages/docs/src/components/icons/js.tsx
@@ -1,17 +1,17 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const JSIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg
- className="svg-inline--fa fa-js-square fa-w-14"
- viewBox="0 0 448 512"
- {...props}
- >
- <path
- fill="currentColor"
- d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM243.8 381.4c0 43.6-25.6 63.5-62.9 63.5-33.7 0-53.2-17.4-63.2-38.5l34.3-20.7c6.6 11.7 12.6 21.6 27.1 21.6 13.8 0 22.6-5.4 22.6-26.5V237.7h42.1v143.7zm99.6 63.5c-39.1 0-64.4-18.6-76.7-43l34.3-19.8c9 14.7 20.8 25.6 41.5 25.6 17.4 0 28.6-8.7 28.6-20.8 0-14.4-11.4-19.5-30.7-28l-10.5-4.5c-30.4-12.9-50.5-29.2-50.5-63.5 0-31.6 24.1-55.6 61.6-55.6 26.8 0 46 9.3 59.8 33.7L368 290c-7.2-12.9-15-18-27.1-18-12.3 0-20.1 7.8-20.1 18 0 12.6 7.8 17.7 25.9 25.6l10.5 4.5c35.8 15.3 55.9 31 55.9 66.2 0 37.8-29.8 58.6-69.7 58.6z"
- />
- </svg>
- );
+ return (
+ <svg
+ className="svg-inline--fa fa-js-square fa-w-14"
+ viewBox="0 0 448 512"
+ {...props}
+ >
+ <path
+ fill="currentColor"
+ d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM243.8 381.4c0 43.6-25.6 63.5-62.9 63.5-33.7 0-53.2-17.4-63.2-38.5l34.3-20.7c6.6 11.7 12.6 21.6 27.1 21.6 13.8 0 22.6-5.4 22.6-26.5V237.7h42.1v143.7zm99.6 63.5c-39.1 0-64.4-18.6-76.7-43l34.3-19.8c9 14.7 20.8 25.6 41.5 25.6 17.4 0 28.6-8.7 28.6-20.8 0-14.4-11.4-19.5-30.7-28l-10.5-4.5c-30.4-12.9-50.5-29.2-50.5-63.5 0-31.6 24.1-55.6 61.6-55.6 26.8 0 46 9.3 59.8 33.7L368 290c-7.2-12.9-15-18-27.1-18-12.3 0-20.1 7.8-20.1 18 0 12.6 7.8 17.7 25.9 25.6l10.5 4.5c35.8 15.3 55.9 31 55.9 66.2 0 37.8-29.8 58.6-69.7 58.6z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/next.tsx b/packages/docs/src/components/icons/next.tsx
index 2464bd59c8..0003a01955 100644
--- a/packages/docs/src/components/icons/next.tsx
+++ b/packages/docs/src/components/icons/next.tsx
@@ -1,64 +1,64 @@
-import React from "react";
+import React from 'react';
export const NextIcon: React.FC<{
- style: React.CSSProperties;
-}> = ({ style }) => {
- return (
- <svg
- fill="none"
- viewBox="0 0 180 180"
- style={style}
- xmlns="http://www.w3.org/2000/svg"
- >
- <mask
- height="180"
- id="mask0_292_250"
- maskUnits="userSpaceOnUse"
- style={{ maskType: "alpha" }}
- width="180"
- x="0"
- y="0"
- >
- <circle cx="90" cy="90" fill="currentcolor" r="90" />
- </mask>
- <g mask="url(#mask0_292_250)">
- <circle cx="90" cy="90" fill="currentcolor" r="90" />
- <path
- d="M149.508 157.52L69.142 54H54V125.97H66.1136V69.3836L139.999 164.845C143.333 162.614 146.509 160.165 149.508 157.52Z"
- fill="url(#paint0_linear_292_250)"
- />
- <rect
- fill="url(#paint1_linear_292_250)"
- height="72"
- width="12"
- x="115"
- y="54"
- />
- </g>
- <defs>
- <linearGradient
- gradientUnits="userSpaceOnUse"
- id="paint0_linear_292_250"
- x1="109"
- x2="144.5"
- y1="116.5"
- y2="160.5"
- >
- <stop stopColor="var(--background)" />
- <stop offset="1" stopColor="var(--background)" stopOpacity="0" />
- </linearGradient>
- <linearGradient
- gradientUnits="userSpaceOnUse"
- id="paint1_linear_292_250"
- x1="121"
- x2="120.799"
- y1="54"
- y2="106.875"
- >
- <stop stopColor="var(--background)" />
- <stop offset="1" stopColor="var(--background)" stopOpacity="0" />
- </linearGradient>
- </defs>
- </svg>
- );
+ style: React.CSSProperties;
+}> = ({style}) => {
+ return (
+ <svg
+ fill="none"
+ viewBox="0 0 180 180"
+ style={style}
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <mask
+ height="180"
+ id="mask0_292_250"
+ maskUnits="userSpaceOnUse"
+ style={{maskType: 'alpha'}}
+ width="180"
+ x="0"
+ y="0"
+ >
+ <circle cx="90" cy="90" fill="currentcolor" r="90" />
+ </mask>
+ <g mask="url(#mask0_292_250)">
+ <circle cx="90" cy="90" fill="currentcolor" r="90" />
+ <path
+ d="M149.508 157.52L69.142 54H54V125.97H66.1136V69.3836L139.999 164.845C143.333 162.614 146.509 160.165 149.508 157.52Z"
+ fill="url(#paint0_linear_292_250)"
+ />
+ <rect
+ fill="url(#paint1_linear_292_250)"
+ height="72"
+ width="12"
+ x="115"
+ y="54"
+ />
+ </g>
+ <defs>
+ <linearGradient
+ gradientUnits="userSpaceOnUse"
+ id="paint0_linear_292_250"
+ x1="109"
+ x2="144.5"
+ y1="116.5"
+ y2="160.5"
+ >
+ <stop stopColor="var(--background)" />
+ <stop offset="1" stopColor="var(--background)" stopOpacity="0" />
+ </linearGradient>
+ <linearGradient
+ gradientUnits="userSpaceOnUse"
+ id="paint1_linear_292_250"
+ x1="121"
+ x2="120.799"
+ y1="54"
+ y2="106.875"
+ >
+ <stop stopColor="var(--background)" />
+ <stop offset="1" stopColor="var(--background)" stopOpacity="0" />
+ </linearGradient>
+ </defs>
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/overlay.tsx b/packages/docs/src/components/icons/overlay.tsx
index 8c599f7784..9044f97b31 100644
--- a/packages/docs/src/components/icons/overlay.tsx
+++ b/packages/docs/src/components/icons/overlay.tsx
@@ -1,24 +1,24 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const OverlayIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg
- 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>
- );
+ return (
+ <svg
+ 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>
+ );
};
diff --git a/packages/docs/src/components/icons/remix.tsx b/packages/docs/src/components/icons/remix.tsx
index d276eda66b..f59d9854e9 100644
--- a/packages/docs/src/components/icons/remix.tsx
+++ b/packages/docs/src/components/icons/remix.tsx
@@ -1,24 +1,24 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const RemixIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg
- viewBox="0 0 800 800"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- {...props}
- >
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M621.609 552.632C626.649 617.449 626.649 647.833 626.649 681H476.823C476.823 673.776 476.952 667.167 477.082 660.466C477.488 639.634 477.911 617.911 474.538 574.041C470.082 509.814 442.451 495.543 391.645 495.543H346.633H156V378.687H398.776C462.951 378.687 495.04 359.146 495.04 307.408C495.04 261.915 462.951 234.347 398.776 234.347H156V120H425.516C570.802 120 643 188.686 643 298.405C643 380.471 592.194 433.993 523.562 442.913C581.498 454.509 615.369 487.514 621.609 552.632Z"
- fill="currentcolor"
- />
- <path
- d="M156 681V593H313.899C340.273 593 346 612.845 346 624.68V681H156Z"
- fill="currentcolor"
- />
- </svg>
- );
+ return (
+ <svg
+ viewBox="0 0 800 800"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ {...props}
+ >
+ <path
+ fillRule="evenodd"
+ clipRule="evenodd"
+ d="M621.609 552.632C626.649 617.449 626.649 647.833 626.649 681H476.823C476.823 673.776 476.952 667.167 477.082 660.466C477.488 639.634 477.911 617.911 474.538 574.041C470.082 509.814 442.451 495.543 391.645 495.543H346.633H156V378.687H398.776C462.951 378.687 495.04 359.146 495.04 307.408C495.04 261.915 462.951 234.347 398.776 234.347H156V120H425.516C570.802 120 643 188.686 643 298.405C643 380.471 592.194 433.993 523.562 442.913C581.498 454.509 615.369 487.514 621.609 552.632Z"
+ fill="currentcolor"
+ />
+ <path
+ d="M156 681V593H313.899C340.273 593 346 612.845 346 624.68V681H156Z"
+ fill="currentcolor"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/skia.tsx b/packages/docs/src/components/icons/skia.tsx
index 41e54e9537..56245eb18e 100644
--- a/packages/docs/src/components/icons/skia.tsx
+++ b/packages/docs/src/components/icons/skia.tsx
@@ -1,13 +1,13 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const SkiaIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
- <path
- fill="currentColor"
- d="M288 400C288 461.9 237.9 512 176 512H32C14.33 512 0 497.7 0 480C0 462.3 14.33 448 32 448H36.81C54.44 448 66.4 429.1 64.59 411.6C64.2 407.8 64 403.9 64 400C64 338.1 114.1 288 176 288C178.8 288 181.5 288.1 184.3 288.3C184.1 285.7 183.1 282.1 183.1 280.3C183.1 244.6 201.1 210.1 229.1 189.1L474.3 12.25C499.7-6.279 534.9-3.526 557.2 18.74C579.4 41 582.2 76.16 563.7 101.6L386.1 345.1C365 374.9 331.4 392 295.7 392C293 392 290.3 391.9 287.7 391.7C287.9 394.5 287.1 397.2 287.1 400H288zM295.7 360C321.2 360 345.2 347.8 360.2 327.2L537.8 82.82C547.1 70.08 545.7 52.5 534.5 41.37C523.4 30.24 505.8 28.86 493.1 38.12L248.8 215.8C228.2 230.8 215.1 254.8 215.1 280.3C215.1 285.7 216.5 290.9 217.5 295.1L217.6 295.1C217.9 297.3 218.2 298.6 218.5 299.9L276.1 357.5C277.4 357.8 278.7 358.1 280 358.4L280 358.5C285.1 359.5 290.3 360 295.7 360L295.7 360zM253.5 380.1L195.9 322.5C194.5 322.2 193.2 321.8 191.9 321.6C186.7 320.5 181.4 320 176 320C131.8 320 96 355.8 96 400C96 402.8 96.14 405.6 96.43 408.3C98.15 425 93.42 441.9 83.96 455.1C74.31 468.5 58 480 36.81 480H176C220.2 480 256 444.2 256 400C256 394.6 255.5 389.3 254.4 384.1C254.2 382.8 253.9 381.5 253.5 380.1V380.1z"
- />
- </svg>
- );
+ return (
+ <svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
+ <path
+ fill="currentColor"
+ d="M288 400C288 461.9 237.9 512 176 512H32C14.33 512 0 497.7 0 480C0 462.3 14.33 448 32 448H36.81C54.44 448 66.4 429.1 64.59 411.6C64.2 407.8 64 403.9 64 400C64 338.1 114.1 288 176 288C178.8 288 181.5 288.1 184.3 288.3C184.1 285.7 183.1 282.1 183.1 280.3C183.1 244.6 201.1 210.1 229.1 189.1L474.3 12.25C499.7-6.279 534.9-3.526 557.2 18.74C579.4 41 582.2 76.16 563.7 101.6L386.1 345.1C365 374.9 331.4 392 295.7 392C293 392 290.3 391.9 287.7 391.7C287.9 394.5 287.1 397.2 287.1 400H288zM295.7 360C321.2 360 345.2 347.8 360.2 327.2L537.8 82.82C547.1 70.08 545.7 52.5 534.5 41.37C523.4 30.24 505.8 28.86 493.1 38.12L248.8 215.8C228.2 230.8 215.1 254.8 215.1 280.3C215.1 285.7 216.5 290.9 217.5 295.1L217.6 295.1C217.9 297.3 218.2 298.6 218.5 299.9L276.1 357.5C277.4 357.8 278.7 358.1 280 358.4L280 358.5C285.1 359.5 290.3 360 295.7 360L295.7 360zM253.5 380.1L195.9 322.5C194.5 322.2 193.2 321.8 191.9 321.6C186.7 320.5 181.4 320 176 320C131.8 320 96 355.8 96 400C96 402.8 96.14 405.6 96.43 408.3C98.15 425 93.42 441.9 83.96 455.1C74.31 468.5 58 480 36.81 480H176C220.2 480 256 444.2 256 400C256 394.6 255.5 389.3 254.4 384.1C254.2 382.8 253.9 381.5 253.5 380.1V380.1z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/stargazer.tsx b/packages/docs/src/components/icons/stargazer.tsx
index 4e2cf9231b..84f0b10f0d 100644
--- a/packages/docs/src/components/icons/stargazer.tsx
+++ b/packages/docs/src/components/icons/stargazer.tsx
@@ -1,13 +1,13 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const Stargazer: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg height="1em" viewBox="0 0 512 512" {...props}>
- <path
- fill="currentcolor"
- d="M325.8 152.3c1.3 4.6 5.5 7.7 10.2 7.7s8.9-3.1 10.2-7.7L360 104l48.3-13.8c4.6-1.3 7.7-5.5 7.7-10.2s-3.1-8.9-7.7-10.2L360 56 346.2 7.7C344.9 3.1 340.7 0 336 0s-8.9 3.1-10.2 7.7L312 56 263.7 69.8c-4.6 1.3-7.7 5.5-7.7 10.2s3.1 8.9 7.7 10.2L312 104l13.8 48.3zM115.7 346.2L75.5 307l55.5-8.1c15.6-2.3 29.2-12.1 36.1-26.3l24.8-50.3 24.8 50.3c7 14.2 20.5 24 36.1 26.3l55.5 8.1-40.2 39.2c-11.3 11-16.4 26.9-13.8 42.4l9.5 55.4-49.5-26.1c-14-7.4-30.7-7.4-44.7 0L120 444l9.5-55.4c2.7-15.6-2.5-31.4-13.8-42.4zm54.7-188.8l-46.3 94L20.5 266.5C.9 269.3-7 293.5 7.2 307.4l74.9 73.2L64.5 483.9c-3.4 19.6 17.2 34.6 34.8 25.3l92.6-48.8 92.6 48.8c17.6 9.3 38.2-5.7 34.8-25.3L301.6 380.6l74.9-73.2c14.2-13.9 6.4-38.1-13.3-40.9L259.7 251.4l-46.3-94c-8.8-17.9-34.3-17.9-43.1 0zm258.4 85.8l11 38.6c1 3.6 4.4 6.2 8.2 6.2s7.1-2.5 8.2-6.2l11-38.6 38.6-11c3.6-1 6.2-4.4 6.2-8.2s-2.5-7.1-6.2-8.2l-38.6-11-11-38.6c-1-3.6-4.4-6.2-8.2-6.2s-7.1 2.5-8.2 6.2l-11 38.6-38.6 11c-3.6 1-6.2 4.4-6.2 8.2s2.5 7.1 6.2 8.2l38.6 11z"
- />
- </svg>
- );
+ return (
+ <svg height="1em" viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentcolor"
+ d="M325.8 152.3c1.3 4.6 5.5 7.7 10.2 7.7s8.9-3.1 10.2-7.7L360 104l48.3-13.8c4.6-1.3 7.7-5.5 7.7-10.2s-3.1-8.9-7.7-10.2L360 56 346.2 7.7C344.9 3.1 340.7 0 336 0s-8.9 3.1-10.2 7.7L312 56 263.7 69.8c-4.6 1.3-7.7 5.5-7.7 10.2s3.1 8.9 7.7 10.2L312 104l13.8 48.3zM115.7 346.2L75.5 307l55.5-8.1c15.6-2.3 29.2-12.1 36.1-26.3l24.8-50.3 24.8 50.3c7 14.2 20.5 24 36.1 26.3l55.5 8.1-40.2 39.2c-11.3 11-16.4 26.9-13.8 42.4l9.5 55.4-49.5-26.1c-14-7.4-30.7-7.4-44.7 0L120 444l9.5-55.4c2.7-15.6-2.5-31.4-13.8-42.4zm54.7-188.8l-46.3 94L20.5 266.5C.9 269.3-7 293.5 7.2 307.4l74.9 73.2L64.5 483.9c-3.4 19.6 17.2 34.6 34.8 25.3l92.6-48.8 92.6 48.8c17.6 9.3 38.2-5.7 34.8-25.3L301.6 380.6l74.9-73.2c14.2-13.9 6.4-38.1-13.3-40.9L259.7 251.4l-46.3-94c-8.8-17.9-34.3-17.9-43.1 0zm258.4 85.8l11 38.6c1 3.6 4.4 6.2 8.2 6.2s7.1-2.5 8.2-6.2l11-38.6 38.6-11c3.6-1 6.2-4.4 6.2-8.2s-2.5-7.1-6.2-8.2l-38.6-11-11-38.6c-1-3.6-4.4-6.2-8.2-6.2s-7.1 2.5-8.2 6.2l-11 38.6-38.6 11c-3.6 1-6.2 4.4-6.2 8.2s2.5 7.1 6.2 8.2l38.6 11z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/still.tsx b/packages/docs/src/components/icons/still.tsx
index 84d07bc38b..ea110bc4eb 100644
--- a/packages/docs/src/components/icons/still.tsx
+++ b/packages/docs/src/components/icons/still.tsx
@@ -1,13 +1,13 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const StillIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
- <path
- fill="currentColor"
- d="M324.9 157.8c-11.38-17.38-39.89-17.31-51.23-.0625L200.5 268.5L184.1 245.9C172.7 229.1 145.9 229.9 134.4 245.9l-64.52 89.16c-6.797 9.406-7.75 21.72-2.547 32C72.53 377.5 83.05 384 94.75 384h322.5c11.41 0 21.8-6.281 27.14-16.38c5.312-10 4.734-22.09-1.516-31.56L324.9 157.8zM95.8 352l62.39-87.38l29.91 41.34C191.2 310.2 196.4 313.2 201.4 312.6c5.25-.125 10.12-2.781 13.02-7.188l83.83-129.9L415 352H95.8zM447.1 32h-384C28.65 32-.0091 60.65-.0091 96v320c0 35.35 28.65 64 63.1 64h384c35.35 0 64-28.65 64-64V96C511.1 60.65 483.3 32 447.1 32zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V96c0-17.64 14.36-32 32-32h384c17.64 0 32 14.36 32 32V416zM144 192C170.5 192 192 170.5 192 144S170.5 96 144 96S96 117.5 96 144S117.5 192 144 192zM144 128c8.822 0 15.1 7.178 15.1 16S152.8 160 144 160S128 152.8 128 144S135.2 128 144 128z"
- />
- </svg>
- );
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M324.9 157.8c-11.38-17.38-39.89-17.31-51.23-.0625L200.5 268.5L184.1 245.9C172.7 229.1 145.9 229.9 134.4 245.9l-64.52 89.16c-6.797 9.406-7.75 21.72-2.547 32C72.53 377.5 83.05 384 94.75 384h322.5c11.41 0 21.8-6.281 27.14-16.38c5.312-10 4.734-22.09-1.516-31.56L324.9 157.8zM95.8 352l62.39-87.38l29.91 41.34C191.2 310.2 196.4 313.2 201.4 312.6c5.25-.125 10.12-2.781 13.02-7.188l83.83-129.9L415 352H95.8zM447.1 32h-384C28.65 32-.0091 60.65-.0091 96v320c0 35.35 28.65 64 63.1 64h384c35.35 0 64-28.65 64-64V96C511.1 60.65 483.3 32 447.1 32zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V96c0-17.64 14.36-32 32-32h384c17.64 0 32 14.36 32 32V416zM144 192C170.5 192 192 170.5 192 144S170.5 96 144 96S96 117.5 96 144S117.5 192 144 192zM144 128c8.822 0 15.1 7.178 15.1 16S152.8 160 144 160S128 152.8 128 144S135.2 128 144 128z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/tailwind.tsx b/packages/docs/src/components/icons/tailwind.tsx
index 1b95d8c298..4324f17ee3 100644
--- a/packages/docs/src/components/icons/tailwind.tsx
+++ b/packages/docs/src/components/icons/tailwind.tsx
@@ -1,22 +1,22 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const Tailwind: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg
- viewBox="0 0 51 31"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- {...props}
- >
- <path
- d="M0 25.364C1.701 18.6 5.954 15.218 12.758 15.218C19.0815 15.218 21.9775 18.1395 24.4794 20.6634L24.48 20.664C26.015 22.213 27.403 23.613 29.344 24.096C32.746 24.941 35.723 23.673 38.275 20.291C36.574 27.055 32.321 30.436 25.517 30.436C19.1925 30.436 16.2975 27.5155 13.7956 24.9916L13.795 24.991C12.26 23.441 10.872 22.041 8.93 21.559C5.529 20.714 2.552 21.982 0 25.364Z"
- fill="currentcolor"
- />
- <path
- d="M12 10.146C13.701 3.382 17.954 0 24.758 0C31.0815 0 33.9775 2.92151 36.4794 5.44536L36.48 5.446C38.015 6.995 39.403 8.395 41.344 8.878C44.746 9.723 47.723 8.455 50.275 5.073C48.574 11.837 44.321 15.218 37.517 15.218C31.1925 15.218 28.2975 12.2975 25.7956 9.77365L25.795 9.773C24.26 8.223 22.872 6.823 20.93 6.341C17.529 5.496 14.552 6.764 12 10.146Z"
- fill="currentcolor"
- />
- </svg>
- );
+ return (
+ <svg
+ viewBox="0 0 51 31"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ {...props}
+ >
+ <path
+ d="M0 25.364C1.701 18.6 5.954 15.218 12.758 15.218C19.0815 15.218 21.9775 18.1395 24.4794 20.6634L24.48 20.664C26.015 22.213 27.403 23.613 29.344 24.096C32.746 24.941 35.723 23.673 38.275 20.291C36.574 27.055 32.321 30.436 25.517 30.436C19.1925 30.436 16.2975 27.5155 13.7956 24.9916L13.795 24.991C12.26 23.441 10.872 22.041 8.93 21.559C5.529 20.714 2.552 21.982 0 25.364Z"
+ fill="currentcolor"
+ />
+ <path
+ d="M12 10.146C13.701 3.382 17.954 0 24.758 0C31.0815 0 33.9775 2.92151 36.4794 5.44536L36.48 5.446C38.015 6.995 39.403 8.395 41.344 8.878C44.746 9.723 47.723 8.455 50.275 5.073C48.574 11.837 44.321 15.218 37.517 15.218C31.1925 15.218 28.2975 12.2975 25.7956 9.77365L25.795 9.773C24.26 8.223 22.872 6.823 20.93 6.341C17.529 5.496 14.552 6.764 12 10.146Z"
+ fill="currentcolor"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/tiktok.tsx b/packages/docs/src/components/icons/tiktok.tsx
index d2821ea2b2..210fc5cf11 100644
--- a/packages/docs/src/components/icons/tiktok.tsx
+++ b/packages/docs/src/components/icons/tiktok.tsx
@@ -1,13 +1,13 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const TikTok: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg {...props} viewBox="0 0 448 512">
- <path
- fill="currentcolor"
- d="M448 209.9a210.1 210.1 0 0 1 -122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0l88 0a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z"
- />
- </svg>
- );
+ return (
+ <svg {...props} viewBox="0 0 448 512">
+ <path
+ fill="currentcolor"
+ d="M448 209.9a210.1 210.1 0 0 1 -122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0l88 0a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/ts.tsx b/packages/docs/src/components/icons/ts.tsx
index b6072323d6..df87eb5d5c 100644
--- a/packages/docs/src/components/icons/ts.tsx
+++ b/packages/docs/src/components/icons/ts.tsx
@@ -1,18 +1,18 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const TypeScriptIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg
- fill="#000000"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 24 24"
- {...props}
- >
- <path
- fill="currentColor"
- d="M3,5v14c0,1.105,0.895,2,2,2h14c1.105,0,2-0.895,2-2V5c0-1.105-0.895-2-2-2H5C3.895,3,3,3.895,3,5z M13.666,12.451h-2.118 V19H9.841v-6.549H7.767V11h5.899V12.451z M13.998,18.626v-1.751c0,0,0.956,0.721,2.104,0.721c1.148,0,1.103-0.75,1.103-0.853 c0-1.089-3.251-1.089-3.251-3.501c0-3.281,4.737-1.986,4.737-1.986l-0.059,1.559c0,0-0.794-0.53-1.692-0.53 c-0.897,0-1.221,0.427-1.221,0.883c0,1.177,3.281,1.059,3.281,3.428C19,20.244,13.998,18.626,13.998,18.626z"
- />
- </svg>
- );
+ return (
+ <svg
+ fill="#000000"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24"
+ {...props}
+ >
+ <path
+ fill="currentColor"
+ d="M3,5v14c0,1.105,0.895,2,2,2h14c1.105,0,2-0.895,2-2V5c0-1.105-0.895-2-2-2H5C3.895,3,3,3.895,3,5z M13.666,12.451h-2.118 V19H9.841v-6.549H7.767V11h5.899V12.451z M13.998,18.626v-1.751c0,0,0.956,0.721,2.104,0.721c1.148,0,1.103-0.75,1.103-0.853 c0-1.089-3.251-1.089-3.251-3.501c0-3.281,4.737-1.986,4.737-1.986l-0.059,1.559c0,0-0.794-0.53-1.692-0.53 c-0.897,0-1.221,0.427-1.221,0.883c0,1.177,3.281,1.059,3.281,3.428C19,20.244,13.998,18.626,13.998,18.626z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/tts.tsx b/packages/docs/src/components/icons/tts.tsx
index ea7f6faf08..b4ed2c24d8 100644
--- a/packages/docs/src/components/icons/tts.tsx
+++ b/packages/docs/src/components/icons/tts.tsx
@@ -1,13 +1,13 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const TTSIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
- <path
- fill="currentColor"
- d="M256 31.1c-141.4 0-255.1 93.13-255.1 208c0 47.62 19.91 91.25 52.91 126.3c-14.87 39.5-45.87 72.88-46.37 73.25c-6.623 7-8.373 17.25-4.623 26C5.816 474.3 14.38 480 24 480c61.49 0 109.1-25.75 139.1-46.25c28.1 9 60.16 14.25 92.9 14.25c141.4 0 255.1-93.13 255.1-207.1S397.4 31.1 256 31.1zM256 416c-28.25 0-56.24-4.25-83.24-12.75c-9.516-3.068-19.92-1.461-28.07 4.338c-22.1 16.25-58.54 35.29-102.7 39.66c11.1-15.12 29.75-40.5 40.74-69.63l.1289-.3398c4.283-11.27 1.791-23.1-6.43-32.82C47.51 313.1 32.06 277.6 32.06 240c0-97 100.5-176 223.1-176c123.5 0 223.1 79 223.1 176S379.5 416 256 416zM272 272h-128c-8.801 0-16 7.199-16 15.1C127.1 296.8 135.2 304 144 304h128c8.801 0 15.1-7.204 15.1-16C287.1 279.2 280.8 272 272 272zM368 176h-224c-8.801 0-16 7.199-16 15.1C127.1 200.8 135.2 208 144 208h224c8.801 0 15.1-7.204 15.1-16C383.1 183.2 376.8 176 368 176z"
- />
- </svg>
- );
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M256 31.1c-141.4 0-255.1 93.13-255.1 208c0 47.62 19.91 91.25 52.91 126.3c-14.87 39.5-45.87 72.88-46.37 73.25c-6.623 7-8.373 17.25-4.623 26C5.816 474.3 14.38 480 24 480c61.49 0 109.1-25.75 139.1-46.25c28.1 9 60.16 14.25 92.9 14.25c141.4 0 255.1-93.13 255.1-207.1S397.4 31.1 256 31.1zM256 416c-28.25 0-56.24-4.25-83.24-12.75c-9.516-3.068-19.92-1.461-28.07 4.338c-22.1 16.25-58.54 35.29-102.7 39.66c11.1-15.12 29.75-40.5 40.74-69.63l.1289-.3398c4.283-11.27 1.791-23.1-6.43-32.82C47.51 313.1 32.06 277.6 32.06 240c0-97 100.5-176 223.1-176c123.5 0 223.1 79 223.1 176S379.5 416 256 416zM272 272h-128c-8.801 0-16 7.199-16 15.1C127.1 296.8 135.2 304 144 304h128c8.801 0 15.1-7.204 15.1-16C287.1 279.2 280.8 272 272 272zM368 176h-224c-8.801 0-16 7.199-16 15.1C127.1 200.8 135.2 208 144 208h224c8.801 0 15.1-7.204 15.1-16C383.1 183.2 376.8 176 368 176z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/icons/waveform.tsx b/packages/docs/src/components/icons/waveform.tsx
index 08170192ed..c3cd2b4e81 100644
--- a/packages/docs/src/components/icons/waveform.tsx
+++ b/packages/docs/src/components/icons/waveform.tsx
@@ -1,13 +1,13 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const Waveform: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" {...props}>
- <path
- fill="currentColor"
- d="M224 96C215.2 96 208 103.2 208 111.1v288C208 408.8 215.2 416 223.1 416C232.8 416 240 408.8 240 400V111.1C240 103.2 232.8 96 224 96zM128 192C119.2 192 112 199.2 112 207.1V304C112 312.8 119.2 320 127.1 320S144 312.8 144 304V207.1C144 199.2 136.8 192 128 192zM32 224C23.2 224 16 231.2 16 239.1V272C16 280.8 23.2 288 31.1 288S48 280.8 48 272V239.1C48 231.2 40.8 224 32 224zM416 128C407.2 128 400 135.2 400 143.1v224C400 376.8 407.2 384 415.1 384S432 376.8 432 368V143.1C432 135.2 424.8 128 416 128zM608 224c-8.8 0-16 7.2-16 15.1V272C592 280.8 599.2 288 608 288s16-7.2 16-15.1V239.1C624 231.2 616.8 224 608 224zM512 64c-8.8 0-16 7.2-16 15.1V432C496 440.8 503.2 448 511.1 448C520.8 448 528 440.8 528 432V79.1C528 71.2 520.8 64 512 64zM320 0C311.2 0 304 7.2 304 15.1V496C304 504.8 311.2 512 319.1 512S336 504.8 336 496V15.1C336 7.2 328.8 0 320 0z"
- />
- </svg>
- );
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M224 96C215.2 96 208 103.2 208 111.1v288C208 408.8 215.2 416 223.1 416C232.8 416 240 408.8 240 400V111.1C240 103.2 232.8 96 224 96zM128 192C119.2 192 112 199.2 112 207.1V304C112 312.8 119.2 320 127.1 320S144 312.8 144 304V207.1C144 199.2 136.8 192 128 192zM32 224C23.2 224 16 231.2 16 239.1V272C16 280.8 23.2 288 31.1 288S48 280.8 48 272V239.1C48 231.2 40.8 224 32 224zM416 128C407.2 128 400 135.2 400 143.1v224C400 376.8 407.2 384 415.1 384S432 376.8 432 368V143.1C432 135.2 424.8 128 416 128zM608 224c-8.8 0-16 7.2-16 15.1V272C592 280.8 599.2 288 608 288s16-7.2 16-15.1V239.1C624 231.2 616.8 224 608 224zM512 64c-8.8 0-16 7.2-16 15.1V432C496 440.8 503.2 448 511.1 448C520.8 448 528 440.8 528 432V79.1C528 71.2 520.8 64 512 64zM320 0C311.2 0 304 7.2 304 15.1V496C304 504.8 311.2 512 319.1 512S336 504.8 336 496V15.1C336 7.2 328.8 0 320 0z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/components/tutorials.tsx b/packages/docs/src/components/tutorials.tsx
index 13b2b7ad64..b11927544a 100644
--- a/packages/docs/src/components/tutorials.tsx
+++ b/packages/docs/src/components/tutorials.tsx
@@ -1,38 +1,38 @@
-import BrowserOnly from "@docusaurus/BrowserOnly";
-import React from "react";
-import { AlsoAvailableAsVideo } from "./AlsoAvailableAsVideo";
-import { NewMuxVideo } from "./MuxVideo";
+import BrowserOnly from '@docusaurus/BrowserOnly';
+import React from 'react';
+import {AlsoAvailableAsVideo} from './AlsoAvailableAsVideo';
+import {NewMuxVideo} from './MuxVideo';
export const AppleFireworksTutorial = () => {
- return <NewMuxVideo muxId="eEsG2GbZXAqNxays7TqDz24FS1OGCyYVuGYjRg2w2IM" />;
+ return <NewMuxVideo muxId="eEsG2GbZXAqNxays7TqDz24FS1OGCyYVuGYjRg2w2IM" />;
};
export const TransformsTutorial = () => {
- return (
- <BrowserOnly>
- {() => (
- <AlsoAvailableAsVideo
- playbackId="T0015eD012a4pB26i8veyHA88IRTro2BxVGtGCY3Eq81o"
- thumb="https://image.mux.com/T0015eD012a4pB26i8veyHA88IRTro2BxVGtGCY3Eq81o/thumbnail.png"
- minutes={9}
- title="The 5 basic transformations"
- />
- )}
- </BrowserOnly>
- );
+ return (
+ <BrowserOnly>
+ {() => (
+ <AlsoAvailableAsVideo
+ playbackId="T0015eD012a4pB26i8veyHA88IRTro2BxVGtGCY3Eq81o"
+ thumb="https://image.mux.com/T0015eD012a4pB26i8veyHA88IRTro2BxVGtGCY3Eq81o/thumbnail.png"
+ minutes={9}
+ title="The 5 basic transformations"
+ />
+ )}
+ </BrowserOnly>
+ );
};
export const WarpTextTutorial = () => {
- return (
- <BrowserOnly>
- {() => (
- <AlsoAvailableAsVideo
- playbackId="925Vqjb0002WjmpV7l1qsUXjhKM8vABxW01FKyfAMckX01U"
- thumb="https://image.mux.com/925Vqjb0002WjmpV7l1qsUXjhKM8vABxW01FKyfAMckX01U/thumbnail.png"
- minutes={5}
- title="Cool text effects with warpPath()"
- />
- )}
- </BrowserOnly>
- );
+ return (
+ <BrowserOnly>
+ {() => (
+ <AlsoAvailableAsVideo
+ playbackId="925Vqjb0002WjmpV7l1qsUXjhKM8vABxW01FKyfAMckX01U"
+ thumb="https://image.mux.com/925Vqjb0002WjmpV7l1qsUXjhKM8vABxW01FKyfAMckX01U/thumbnail.png"
+ minutes={5}
+ title="Cool text effects with warpPath()"
+ />
+ )}
+ </BrowserOnly>
+ );
};
diff --git a/packages/docs/src/components/video-player.css b/packages/docs/src/components/video-player.css
index 55d510f102..45a886e49f 100644
--- a/packages/docs/src/components/video-player.css
+++ b/packages/docs/src/components/video-player.css
@@ -1,24 +1,24 @@
:global(:root) {
- --plyr-color-main: #1b1b1b;
- --plyr-range-fill-background: #ccc;
+ --plyr-color-main: #1b1b1b;
+ --plyr-range-fill-background: #ccc;
}
:global(.plyr__controls button),
:global(.plyr__controls input) {
- cursor: pointer;
+ cursor: pointer;
}
.video-container {
- margin-bottom: 40px;
- margin-top: 40px;
- border-radius: 30px;
+ margin-bottom: 40px;
+ margin-top: 40px;
+ border-radius: 30px;
}
:global(.plyr:fullscreen video) {
- max-width: initial;
- max-height: initial;
- width: 100%;
- height: 100%;
+ max-width: initial;
+ max-height: initial;
+ width: 100%;
+ height: 100%;
}
video {
- display: block;
- max-width: 100%;
- cursor: pointer;
+ display: block;
+ max-width: 100%;
+ cursor: pointer;
}
diff --git a/packages/docs/src/css/custom.css b/packages/docs/src/css/custom.css
index 5339a16b2e..12c9686473 100644
--- a/packages/docs/src/css/custom.css
+++ b/packages/docs/src/css/custom.css
@@ -8,12 +8,12 @@
/* You can override the default Infima variables here. */
* {
- font-feature-settings:
- "kern" 1,
- "ss02" 1;
- font-kerning: normal;
- -webkit-font-smoothing: antialiased; /* Chrome, Safari */
- -moz-osx-font-smoothing: grayscale; /* Firefox */
+ font-feature-settings:
+ 'kern' 1,
+ 'ss02' 1;
+ font-kerning: normal;
+ -webkit-font-smoothing: antialiased; /* Chrome, Safari */
+ -moz-osx-font-smoothing: grayscale; /* Firefox */
}
h1,
@@ -22,224 +22,224 @@ h3,
h4,
h5,
h6 {
- letter-spacing: -0.025em;
- word-spacing: -0.025em;
- font-family: "GTPlanar";
+ letter-spacing: -0.025em;
+ word-spacing: -0.025em;
+ font-family: 'GTPlanar';
}
@font-face {
- font-family: "GTPlanar";
- src: url("/img/gt-planar-regular.woff2") format("woff2");
- font-weight: 400;
- font-style: normal;
+ font-family: 'GTPlanar';
+ src: url('/img/gt-planar-regular.woff2') format('woff2');
+ font-weight: 400;
+ font-style: normal;
}
@font-face {
- font-family: "GTPlanar";
- src: url("/img/gt-planar-medium.woff2") format("woff2");
- font-weight: 500;
- font-style: normal;
+ font-family: 'GTPlanar';
+ src: url('/img/gt-planar-medium.woff2') format('woff2');
+ font-weight: 500;
+ font-style: normal;
}
@font-face {
- font-family: "GTPlanar";
- src: url("/img/gt-planar-bold.woff2") format("woff2");
- font-weight: 700;
- font-style: normal;
+ font-family: 'GTPlanar';
+ src: url('/img/gt-planar-bold.woff2') format('woff2');
+ font-weight: 700;
+ font-style: normal;
}
@font-face {
- font-family: "GTPlanar";
- src: url("/img/gt-planar-black.woff2") format("woff2");
- font-weight: 900;
- font-style: normal;
+ font-family: 'GTPlanar';
+ src: url('/img/gt-planar-black.woff2') format('woff2');
+ font-weight: 900;
+ font-style: normal;
}
-[class*="col"][class*="lastUpdated"] {
- display: none;
+[class*='col'][class*='lastUpdated'] {
+ display: none;
}
:root {
- --ifm-color-primary: #0b84f3;
- --ifm-color-primary-dark: #0a77db;
- --ifm-color-primary-darker: #0970cf;
- --ifm-color-primary-darkest: #085caa;
- --ifm-color-primary-light: #2290f5;
- --ifm-color-primary-lighter: #2f96f6;
- --ifm-color-primary-lightest: #53a9f7;
- --ifm-code-font-size: 100%;
- --ifm-font-family-base: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
- Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica,
- Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
- --ifm-font-size-base: 16px;
-}
-
-[data-theme="light"] {
- --background: #fff;
- --footer-background: #fcfcfc;
- --footer-border: #eaeaea;
- --text-color: #000;
- --blue-button-color: #084696;
- --blue-underlay: var(--ifm-color-primary);
- --plain-button: #fff;
- --blue-underlay-hover: #d5e5fd;
- --light-text-color: #777;
- --subtitle: #666;
- --clear-hover: rgba(0, 0, 0, 0.04);
- --border-color: rgb(234, 234, 234);
- --box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
- --ifm-out-of-focus: #eaeaea;
-}
-[data-theme="dark"] {
- --background: #18191a;
- --footer-background: #1f1f1f;
- --footer-border: #2f2f2f;
- --text-color: #fff;
- --plain-button: var(--blue-underlay);
- --blue-underlay: #424243;
- --blue-underlay-hover: #5b5c5e;
- --clear-hover: rgba(255, 255, 255, 0.06);
- --blue-button-color: white;
- --light-text-color: #aaa;
- --subtitle: #8d8d8d;
- --border-color: rgb(42, 42, 42);
- --box-shadow: 0 1px 8px rgba(255, 255, 255, 0.2);
- --ifm-out-of-focus: #505050;
-}
-
-[data-theme="light"] .docusaurus-highlight-code-line {
- background-color: rgb(232, 232, 232);
- display: block;
- margin: 0 calc(-1 * var(--ifm-pre-padding));
- padding: 0 var(--ifm-pre-padding);
-}
-
-[data-theme="dark"] .docusaurus-highlight-code-line {
- background-color: rgb(72, 77, 91);
- display: block;
- margin: 0 calc(-1 * var(--ifm-pre-padding));
- padding: 0 var(--ifm-pre-padding);
+ --ifm-color-primary: #0b84f3;
+ --ifm-color-primary-dark: #0a77db;
+ --ifm-color-primary-darker: #0970cf;
+ --ifm-color-primary-darkest: #085caa;
+ --ifm-color-primary-light: #2290f5;
+ --ifm-color-primary-lighter: #2f96f6;
+ --ifm-color-primary-lightest: #53a9f7;
+ --ifm-code-font-size: 100%;
+ --ifm-font-family-base: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
+ Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, 'Segoe UI', Helvetica,
+ Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
+ --ifm-font-size-base: 16px;
+}
+
+[data-theme='light'] {
+ --background: #fff;
+ --footer-background: #fcfcfc;
+ --footer-border: #eaeaea;
+ --text-color: #000;
+ --blue-button-color: #084696;
+ --blue-underlay: var(--ifm-color-primary);
+ --plain-button: #fff;
+ --blue-underlay-hover: #d5e5fd;
+ --light-text-color: #777;
+ --subtitle: #666;
+ --clear-hover: rgba(0, 0, 0, 0.04);
+ --border-color: rgb(234, 234, 234);
+ --box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
+ --ifm-out-of-focus: #eaeaea;
+}
+[data-theme='dark'] {
+ --background: #18191a;
+ --footer-background: #1f1f1f;
+ --footer-border: #2f2f2f;
+ --text-color: #fff;
+ --plain-button: var(--blue-underlay);
+ --blue-underlay: #424243;
+ --blue-underlay-hover: #5b5c5e;
+ --clear-hover: rgba(255, 255, 255, 0.06);
+ --blue-button-color: white;
+ --light-text-color: #aaa;
+ --subtitle: #8d8d8d;
+ --border-color: rgb(42, 42, 42);
+ --box-shadow: 0 1px 8px rgba(255, 255, 255, 0.2);
+ --ifm-out-of-focus: #505050;
+}
+
+[data-theme='light'] .docusaurus-highlight-code-line {
+ background-color: rgb(232, 232, 232);
+ display: block;
+ margin: 0 calc(-1 * var(--ifm-pre-padding));
+ padding: 0 var(--ifm-pre-padding);
+}
+
+[data-theme='dark'] .docusaurus-highlight-code-line {
+ background-color: rgb(72, 77, 91);
+ display: block;
+ margin: 0 calc(-1 * var(--ifm-pre-padding));
+ padding: 0 var(--ifm-pre-padding);
}
/* Hide code blocks according to theme */
-[data-theme="light"] .shiki.github-dark {
- display: none;
+[data-theme='light'] .shiki.github-dark {
+ display: none;
}
-[data-theme="dark"] .shiki.github-light {
- display: none;
+[data-theme='dark'] .shiki.github-light {
+ display: none;
}
/* Patches */
pre.shiki > .code-title {
- color: var(--ifm-color-emphasis-900) !important;
+ color: var(--ifm-color-emphasis-900) !important;
}
code {
- background-color: transparent;
- border-width: 0;
- color: #0b84f3;
- font-family: "GTPlanar";
- vertical-align: baseline;
- padding: 0;
+ background-color: transparent;
+ border-width: 0;
+ color: #0b84f3;
+ font-family: 'GTPlanar';
+ vertical-align: baseline;
+ padding: 0;
}
.code-container code {
- font-family: inherit;
- font-size: 15px;
+ font-family: inherit;
+ font-size: 15px;
}
.markdown a {
- text-underline-position: under;
- text-decoration: underline;
+ text-underline-position: under;
+ text-decoration: underline;
}
.no-scroll-bar::-webkit-scrollbar {
- display: none;
+ display: none;
}
@keyframes spin {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
+ 0% {
+ transform: rotate(0deg);
+ }
+ 100% {
+ transform: rotate(360deg);
+ }
}
.row-on-desktop {
- display: flex;
- flex-direction: row;
+ display: flex;
+ flex-direction: row;
}
.big-title-on-desktop {
- font-size: 60px;
+ font-size: 60px;
}
@media screen and (max-width: 996px) {
- .row-on-desktop {
- display: block;
- }
+ .row-on-desktop {
+ display: block;
+ }
- .big-title-on-desktop {
- font-size: 36px;
- }
+ .big-title-on-desktop {
+ font-size: 36px;
+ }
- .only-desktop {
- display: none;
- }
+ .only-desktop {
+ display: none;
+ }
}
.pro-item a::after {
- content: "Paid";
- font-size: 12px;
- opacity: 0.7;
- border: 1px solid;
- padding-left: 4px;
- padding-right: 4px;
- padding-top: 1px;
- padding-bottom: 1px;
- margin-left: 6px;
- border-radius: 4px;
+ content: 'Paid';
+ font-size: 12px;
+ opacity: 0.7;
+ border: 1px solid;
+ padding-left: 4px;
+ padding-right: 4px;
+ padding-top: 1px;
+ padding-bottom: 1px;
+ margin-left: 6px;
+ border-radius: 4px;
}
.header-github-link::before {
- content: "";
- width: 22px;
- height: 22px;
- display: flex;
- background-color: var(--ifm-navbar-link-color);
- mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
- transition: background-color var(--ifm-transition-fast)
- var(--ifm-transition-timing-default);
+ content: '';
+ width: 22px;
+ height: 22px;
+ display: flex;
+ background-color: var(--ifm-navbar-link-color);
+ mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
+ transition: background-color var(--ifm-transition-fast)
+ var(--ifm-transition-timing-default);
}
.header-github-link:hover::before {
- background-color: var(--ifm-navbar-link-hover-color);
+ background-color: var(--ifm-navbar-link-hover-color);
}
.header-discord-link::before {
- content: "";
- width: 28px;
- height: 22px;
- display: flex;
- background-color: var(--ifm-navbar-link-color);
- mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 640 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M524.5 69.8a1.5 1.5 0 0 0 -.8-.7A485.1 485.1 0 0 0 404.1 32a1.8 1.8 0 0 0 -1.9 .9 337.5 337.5 0 0 0 -14.9 30.6 447.8 447.8 0 0 0 -134.4 0 309.5 309.5 0 0 0 -15.1-30.6 1.9 1.9 0 0 0 -1.9-.9A483.7 483.7 0 0 0 116.1 69.1a1.7 1.7 0 0 0 -.8 .7C39.1 183.7 18.2 294.7 28.4 404.4a2 2 0 0 0 .8 1.4A487.7 487.7 0 0 0 176 479.9a1.9 1.9 0 0 0 2.1-.7A348.2 348.2 0 0 0 208.1 430.4a1.9 1.9 0 0 0 -1-2.6 321.2 321.2 0 0 1 -45.9-21.9 1.9 1.9 0 0 1 -.2-3.1c3.1-2.3 6.2-4.7 9.1-7.1a1.8 1.8 0 0 1 1.9-.3c96.2 43.9 200.4 43.9 295.5 0a1.8 1.8 0 0 1 1.9 .2c2.9 2.4 6 4.9 9.1 7.2a1.9 1.9 0 0 1 -.2 3.1 301.4 301.4 0 0 1 -45.9 21.8 1.9 1.9 0 0 0 -1 2.6 391.1 391.1 0 0 0 30 48.8 1.9 1.9 0 0 0 2.1 .7A486 486 0 0 0 610.7 405.7a1.9 1.9 0 0 0 .8-1.4C623.7 277.6 590.9 167.5 524.5 69.8zM222.5 337.6c-29 0-52.8-26.6-52.8-59.2S193.1 219.1 222.5 219.1c29.7 0 53.3 26.8 52.8 59.2C275.3 311 251.9 337.6 222.5 337.6zm195.4 0c-29 0-52.8-26.6-52.8-59.2S388.4 219.1 417.9 219.1c29.7 0 53.3 26.8 52.8 59.2C470.7 311 447.5 337.6 417.9 337.6z'/%3E%3C/svg%3E");
- transition: background-color var(--ifm-transition-fast)
- var(--ifm-transition-timing-default);
+ content: '';
+ width: 28px;
+ height: 22px;
+ display: flex;
+ background-color: var(--ifm-navbar-link-color);
+ mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 640 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M524.5 69.8a1.5 1.5 0 0 0 -.8-.7A485.1 485.1 0 0 0 404.1 32a1.8 1.8 0 0 0 -1.9 .9 337.5 337.5 0 0 0 -14.9 30.6 447.8 447.8 0 0 0 -134.4 0 309.5 309.5 0 0 0 -15.1-30.6 1.9 1.9 0 0 0 -1.9-.9A483.7 483.7 0 0 0 116.1 69.1a1.7 1.7 0 0 0 -.8 .7C39.1 183.7 18.2 294.7 28.4 404.4a2 2 0 0 0 .8 1.4A487.7 487.7 0 0 0 176 479.9a1.9 1.9 0 0 0 2.1-.7A348.2 348.2 0 0 0 208.1 430.4a1.9 1.9 0 0 0 -1-2.6 321.2 321.2 0 0 1 -45.9-21.9 1.9 1.9 0 0 1 -.2-3.1c3.1-2.3 6.2-4.7 9.1-7.1a1.8 1.8 0 0 1 1.9-.3c96.2 43.9 200.4 43.9 295.5 0a1.8 1.8 0 0 1 1.9 .2c2.9 2.4 6 4.9 9.1 7.2a1.9 1.9 0 0 1 -.2 3.1 301.4 301.4 0 0 1 -45.9 21.8 1.9 1.9 0 0 0 -1 2.6 391.1 391.1 0 0 0 30 48.8 1.9 1.9 0 0 0 2.1 .7A486 486 0 0 0 610.7 405.7a1.9 1.9 0 0 0 .8-1.4C623.7 277.6 590.9 167.5 524.5 69.8zM222.5 337.6c-29 0-52.8-26.6-52.8-59.2S193.1 219.1 222.5 219.1c29.7 0 53.3 26.8 52.8 59.2C275.3 311 251.9 337.6 222.5 337.6zm195.4 0c-29 0-52.8-26.6-52.8-59.2S388.4 219.1 417.9 219.1c29.7 0 53.3 26.8 52.8 59.2C470.7 311 447.5 337.6 417.9 337.6z'/%3E%3C/svg%3E");
+ transition: background-color var(--ifm-transition-fast)
+ var(--ifm-transition-timing-default);
}
.header-discord-link:hover::before {
- background-color: var(--ifm-navbar-link-hover-color);
+ background-color: var(--ifm-navbar-link-hover-color);
}
.header-x-link::before {
- content: "";
- width: 22px;
- height: 22px;
- display: flex;
- background-color: var(--ifm-navbar-link-color);
- mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E");
- transition: background-color var(--ifm-transition-fast)
- var(--ifm-transition-timing-default);
+ content: '';
+ width: 22px;
+ height: 22px;
+ display: flex;
+ background-color: var(--ifm-navbar-link-color);
+ mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E");
+ transition: background-color var(--ifm-transition-fast)
+ var(--ifm-transition-timing-default);
}
.header-x-link:hover::before {
- background-color: var(--ifm-navbar-link-hover-color);
+ background-color: var(--ifm-navbar-link-hover-color);
}
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 6c37cb271f..938baf3917 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -1,3670 +1,3670 @@
export const articles = [
- {
- id: "2-0-migration",
- title: "v2.0 Migration",
- relativePath: "docs/2-0-migration.mdx",
- compId: "articles-docs-2-0-migration",
- crumb: "Version Upgrade",
- },
- {
- id: "3-0-migration",
- title: "v3.0 Migration",
- relativePath: "docs/3-0-migration.mdx",
- compId: "articles-docs-3-0-migration",
- crumb: "Version Upgrade",
- },
- {
- id: "4-0-alpha",
- title: "v4.0 Alpha",
- relativePath: "docs/4-0-alpha.mdx",
- compId: "articles-docs-4-0-alpha",
- crumb: "Version Upgrade",
- },
- {
- id: "4-0-migration",
- title: "v4.0 Migration",
- relativePath: "docs/4-0-migration.mdx",
- compId: "articles-docs-4-0-migration",
- crumb: "Version Upgrade",
- },
- {
- id: "5-0-migration",
- title: "v5.0 Migration",
- relativePath: "docs/5-0-migration.mdx",
- compId: "articles-docs-5-0-migration",
- crumb: "Version Upgrade",
- },
- {
- id: "absolute-fill",
- title: "<AbsoluteFill>",
- relativePath: "docs/absolute-fill.mdx",
- compId: "articles-docs-absolute-fill",
- crumb: "API",
- },
- {
- id: "acknowledgements",
- title: "Acknowledgements",
- relativePath: "docs/acknowledgements.mdx",
- compId: "articles-docs-acknowledgements",
- crumb: "Credits",
- },
- {
- id: "after-effects",
- title: "Import from After Effects",
- relativePath: "docs/after-effects.mdx",
- compId: "articles-docs-after-effects",
- crumb: "Integrations",
- },
- {
- id: "animating-properties",
- title: "Animating properties",
- relativePath: "docs/animating-properties.mdx",
- compId: "articles-docs-animating-properties",
- crumb: "The basics",
- },
- {
- id: "animation-math",
- title: "Animation math",
- relativePath: "docs/animation-math.mdx",
- compId: "articles-docs-animation-math",
- crumb: "Techniques",
- },
- {
- id: "animation-utils/index",
- title: "@remotion/animation-utils",
- relativePath: "docs/animation-utils/index.mdx",
- compId: "articles-docs-animation-utils-index",
- crumb: null,
- },
- {
- id: "interpolate-styles",
- title: "interpolateStyles()",
- relativePath: "docs/animation-utils/interpolate-styles.mdx",
- compId: "articles-docs-animation-utils-interpolate-styles",
- crumb: "@remotion/animation-utils",
- },
- {
- id: "make-transform",
- title: "makeTransform()",
- relativePath: "docs/animation-utils/make-transform.mdx",
- compId: "articles-docs-animation-utils-make-transform",
- crumb: "@remotion/animation-utils",
- },
- {
- id: "api",
- title: "API overview",
- relativePath: "docs/api.mdx",
- compId: "articles-docs-api",
- crumb: null,
- },
- {
- id: "artifact",
- title: "<Artifact>",
- relativePath: "docs/artifact.mdx",
- compId: "articles-docs-artifact",
- crumb: "API",
- },
- {
- id: "artifacts",
- title: "Emitting Artifacts",
- relativePath: "docs/artifacts.mdx",
- compId: "articles-docs-artifacts",
- crumb: "Techniques",
- },
- {
- id: "get-help",
- title: "Get help",
- relativePath: "docs/ask-for-help.mdx",
- compId: "articles-docs-ask-for-help",
- crumb: null,
- },
- {
- id: "audio-visualization",
- title: "Audio visualization",
- relativePath: "docs/audio-visualization.mdx",
- compId: "articles-docs-audio-visualization",
- crumb: "Techniques",
- },
- {
- id: "audio",
- title: "<Audio>",
- relativePath: "docs/audio.mdx",
- compId: "articles-docs-audio",
- crumb: "How to",
- },
- {
- id: "audio-buffer-to-data-url",
- title: "audioBufferToDataUrl()",
- relativePath: "docs/audiobuffertodataurl.mdx",
- compId: "articles-docs-audiobuffertodataurl",
- crumb: "@remotion/media-utils",
- },
- {
- id: "brownfield",
- title: "Installing Remotion in an existing project",
- relativePath: "docs/brownfield-installation.mdx",
- compId: "articles-docs-brownfield-installation",
- crumb: "Brownfield integration",
- },
- {
- id: "buffer-state",
- title: "Display a buffer state",
- relativePath: "docs/buffer-state.mdx",
- compId: "articles-docs-buffer-state",
- crumb: "Building video apps",
- },
- {
- id: "bun",
- title: "Bun support",
- relativePath: "docs/bun.mdx",
- compId: "articles-docs-bun",
- crumb: "bun bun bun bun bun",
- },
- {
- id: "bundle",
- title: "bundle()",
- relativePath: "docs/bundle.mdx",
- compId: "articles-docs-bundle",
- crumb: "@remotion/bundler",
- },
- {
- id: "bundler",
- title: "@remotion/bundler",
- relativePath: "docs/bundler.mdx",
- compId: "articles-docs-bundler",
- crumb: null,
- },
- {
- id: "calculate-metadata",
- title: "calculateMetadata()",
- relativePath: "docs/calculate-metadata.mdx",
- compId: "articles-docs-calculate-metadata",
- crumb: "API",
- },
- {
- id: "cancel-render",
- title: "cancelRender()",
- relativePath: "docs/cancel-render.mdx",
- compId: "articles-docs-cancel-render",
- crumb: "How to",
- },
- {
- id: "chromium-flags",
- title: "Chromium flags",
- relativePath: "docs/chromium-flags.mdx",
- compId: "articles-docs-chromium-flags",
- crumb: "Tweaks",
- },
- {
- id: "cli/benchmark",
- title: "npx remotion benchmark",
- relativePath: "docs/cli/benchmark.mdx",
- compId: "articles-docs-cli-benchmark",
- crumb: "CLI Reference",
- },
- {
- id: "cli/browser/ensure",
- title: "npx remotion browser ensure",
- relativePath: "docs/cli/browser/ensure.mdx",
- compId: "articles-docs-cli-browser-ensure",
- crumb: "@remotion/cli",
- },
- {
- id: "cli/browser/index",
- title: "npx remotion browser",
- relativePath: "docs/cli/browser/index.mdx",
- compId: "articles-docs-cli-browser-index",
- crumb: "@remotion/cli",
- },
- {
- id: "cli/bundle",
- title: "npx remotion bundle",
- relativePath: "docs/cli/bundle.mdx",
- compId: "articles-docs-cli-bundle",
- crumb: "CLI Reference",
- },
- {
- id: "cli",
- title: "Command line reference",
- relativePath: "docs/cli/cli.mdx",
- compId: "articles-docs-cli-cli",
- crumb: null,
- },
- {
- id: "cli/compositions",
- title: "npx remotion compositions",
- relativePath: "docs/cli/compositions.mdx",
- compId: "articles-docs-cli-compositions",
- crumb: "CLI Reference",
- },
- {
- id: "ffmpeg",
- title: "npx remotion ffmpeg",
- relativePath: "docs/cli/ffmpeg.mdx",
- compId: "articles-docs-cli-ffmpeg",
- crumb: "@remotion/cli",
- },
- {
- id: "ffprobe",
- title: "npx remotion ffprobe",
- relativePath: "docs/cli/ffprobe.mdx",
- compId: "articles-docs-cli-ffprobe",
- crumb: "@remotion/cli",
- },
- {
- id: "cli/gpu",
- title: "npx remotion gpu",
- relativePath: "docs/cli/gpu.mdx",
- compId: "articles-docs-cli-gpu",
- crumb: "CLI Reference",
- },
- {
- id: "cli/help",
- title: "npx remotion help",
- relativePath: "docs/cli/help.mdx",
- compId: "articles-docs-cli-help",
- crumb: "CLI Reference",
- },
- {
- id: "cli/install",
- title: "npx remotion install",
- relativePath: "docs/cli/install.mdx",
- compId: "articles-docs-cli-install",
- crumb: "CLI Reference",
- },
- {
- id: "cli/render",
- title: "npx remotion render",
- relativePath: "docs/cli/render.mdx",
- compId: "articles-docs-cli-render",
- crumb: "CLI Reference",
- },
- {
- id: "cli/still",
- title: "npx remotion still",
- relativePath: "docs/cli/still.mdx",
- compId: "articles-docs-cli-still",
- crumb: "CLI Reference",
- },
- {
- id: "cli/studio",
- title: "npx remotion studio",
- relativePath: "docs/cli/studio.mdx",
- compId: "articles-docs-cli-studio",
- crumb: "CLI Reference",
- },
- {
- id: "cli/upgrade",
- title: "npx remotion upgrade",
- relativePath: "docs/cli/upgrade.mdx",
- compId: "articles-docs-cli-upgrade",
- crumb: "CLI Reference",
- },
- {
- id: "cli/versions",
- title: "npx remotion versions",
- relativePath: "docs/cli/versions.mdx",
- compId: "articles-docs-cli-versions",
- crumb: "CLI Reference",
- },
- {
- id: "clipper",
- title: "<Experimental.Clipper>",
- relativePath: "docs/clipper.mdx",
- compId: "articles-docs-clipper",
- crumb: "Experimental API",
- },
- {
- id: "cloudrun/api",
- title: "@remotion/cloudrun",
- relativePath: "docs/cloudrun/api.mdx",
- compId: "articles-docs-cloudrun-api",
- crumb: "Render videos without servers on GCP",
- },
- {
- id: "checklist",
- title: "Production Checklist",
- relativePath: "docs/cloudrun/checklist.mdx",
- compId: "articles-docs-cloudrun-checklist",
- crumb: "Cloud Run",
- },
- {
- id: "permissions",
- title: "npx remotion cloudrun permissions",
- relativePath: "docs/cloudrun/cli/permissions.mdx",
- compId: "articles-docs-cloudrun-cli-permissions",
- crumb: "Cloud Run CLI Reference",
- },
- {
- id: "regions",
- title: "npx remotion cloudrun regions",
- relativePath: "docs/cloudrun/cli/regions.mdx",
- compId: "articles-docs-cloudrun-cli-regions",
- crumb: "Cloud Run CLI Reference",
- },
- {
- id: "render",
- title: "npx remotion cloudrun render",
- relativePath: "docs/cloudrun/cli/render.mdx",
- compId: "articles-docs-cloudrun-cli-render",
- crumb: "Cloud Run CLI Reference",
- },
- {
- id: "services",
- title: "npx remotion cloudrun services",
- relativePath: "docs/cloudrun/cli/services.mdx",
- compId: "articles-docs-cloudrun-cli-services",
- crumb: "Cloud Run CLI Reference",
- },
- {
- id: "sites",
- title: "npx remotion cloudrun sites",
- relativePath: "docs/cloudrun/cli/sites.mdx",
- compId: "articles-docs-cloudrun-cli-sites",
- crumb: "Cloud Run CLI Reference",
- },
- {
- id: "still",
- title: "npx remotion cloudrun still",
- relativePath: "docs/cloudrun/cli/still.mdx",
- compId: "articles-docs-cloudrun-cli-still",
- crumb: "Cloud Run CLI Reference",
- },
- {
- id: "cli",
- title: "@remotion/cloudrun - CLI",
- relativePath: "docs/cloudrun/cli.mdx",
- compId: "articles-docs-cloudrun-cli",
- crumb: null,
- },
- {
- id: "deleteservice",
- title: "deleteService()",
- relativePath: "docs/cloudrun/deleteservice.mdx",
- compId: "articles-docs-cloudrun-deleteservice",
- crumb: "Cloud Run API",
- },
- {
- id: "deletesite",
- title: "deleteSite()",
- relativePath: "docs/cloudrun/deletesite.mdx",
- compId: "articles-docs-cloudrun-deletesite",
- crumb: "Cloud Run API",
- },
- {
- id: "deployservice",
- title: "deployService()",
- relativePath: "docs/cloudrun/deployservice.mdx",
- compId: "articles-docs-cloudrun-deployservice",
- crumb: "Cloud Run API",
- },
- {
- id: "deploysite",
- title: "deploySite()",
- relativePath: "docs/cloudrun/deploysite.mdx",
- compId: "articles-docs-cloudrun-deploysite",
- crumb: "Cloud Run API",
- },
- {
- id: "generate-env",
- title: "Generate .env File",
- relativePath: "docs/cloudrun/generate-env.mdx",
- compId: "articles-docs-cloudrun-generate-env",
- crumb: "Cloud Run",
- },
- {
- id: "getserviceinfo",
- title: "getServiceInfo()",
- relativePath: "docs/cloudrun/getServiceinfo.mdx",
- compId: "articles-docs-cloudrun-getServiceinfo",
- crumb: "Cloud Run API",
- },
- {
- id: "getorcreatebucket",
- title: "getOrCreateBucket()",
- relativePath: "docs/cloudrun/getorcreatebucket.mdx",
- compId: "articles-docs-cloudrun-getorcreatebucket",
- crumb: "Cloud Run API",
- },
- {
- id: "getregions",
- title: "getRegions()",
- relativePath: "docs/cloudrun/getregions.mdx",
- compId: "articles-docs-cloudrun-getregions",
- crumb: "Cloud Run API",
- },
- {
- id: "getservices",
- title: "getServices()",
- relativePath: "docs/cloudrun/getservices.mdx",
- compId: "articles-docs-cloudrun-getservices",
- crumb: "Cloud Run API",
- },
- {
- id: "getsites",
- title: "getSites()",
- relativePath: "docs/cloudrun/getsites.mdx",
- compId: "articles-docs-cloudrun-getsites",
- crumb: "Cloud Run API",
- },
- {
- id: "instancecount",
- title: "Instance Count",
- relativePath: "docs/cloudrun/instancecount.mdx",
- compId: "articles-docs-cloudrun-instancecount",
- crumb: "Cloud Run",
- },
- {
- id: "cloudrun/light-client",
- title: "Light client",
- relativePath: "docs/cloudrun/light-client.mdx",
- compId: "articles-docs-cloudrun-light-client",
- crumb: "Cloud Run",
- },
- {
- id: "cloudrun/limits",
- title: "Cloud Run Limits",
- relativePath: "docs/cloudrun/limits.mdx",
- compId: "articles-docs-cloudrun-limits",
- crumb: "Cloud Run",
- },
- {
- id: "cloudrun/multiple-buckets",
- title: "Multiple buckets in Remotion Cloud Run",
- relativePath: "docs/cloudrun/multiple-buckets.mdx",
- compId: "articles-docs-cloudrun-multiple-buckets",
- crumb: "@remotion/cloudrun",
- },
- {
- id: "cloudrun/permissions",
- title: "Permissions",
- relativePath: "docs/cloudrun/permissions.mdx",
- compId: "articles-docs-cloudrun-permissions",
- crumb: "Cloud Run",
- },
- {
- id: "region-selection",
- title: "Region selection",
- relativePath: "docs/cloudrun/region-selection.mdx",
- compId: "articles-docs-cloudrun-region-selection",
- crumb: "Cloud Run",
- },
- {
- id: "rendermediaoncloudrun",
- title: "renderMediaOnCloudrun()",
- relativePath: "docs/cloudrun/rendermediaoncloudrun.mdx",
- compId: "articles-docs-cloudrun-rendermediaoncloudrun",
- crumb: "Cloud Run API",
- },
- {
- id: "renderstilloncloudrun",
- title: "renderStillOnCloudrun()",
- relativePath: "docs/cloudrun/renderstilloncloudrun.mdx",
- compId: "articles-docs-cloudrun-renderstilloncloudrun",
- crumb: "Cloud Run API",
- },
- {
- id: "setup",
- title: "Setup",
- relativePath: "docs/cloudrun/setup.mdx",
- compId: "articles-docs-cloudrun-setup",
- crumb: "Cloud Run",
- },
- {
- id: "speculateservicename",
- title: "speculateServiceName()",
- relativePath: "docs/cloudrun/speculateservicename.mdx",
- compId: "articles-docs-cloudrun-speculateservicename",
- crumb: "Cloud Run API",
- },
- {
- id: "testpermissions",
- title: "testPermissions()",
- relativePath: "docs/cloudrun/testpermissions.mdx",
- compId: "articles-docs-cloudrun-testpermissions",
- crumb: "Cloud Run API",
- },
- {
- id: "uninstall",
- title: "Uninstall Cloud Run",
- relativePath: "docs/cloudrun/uninstall.mdx",
- compId: "articles-docs-cloudrun-uninstall",
- crumb: null,
- },
- {
- id: "upgrading",
- title: "Upgrading Cloud Run",
- relativePath: "docs/cloudrun/upgrading.mdx",
- compId: "articles-docs-cloudrun-upgrading",
- crumb: null,
- },
- {
- id: "cloudrun-alpha",
- title: "Cloud Run Alpha",
- relativePath: "docs/cloudrun-alpha.mdx",
- compId: "articles-docs-cloudrun-alpha",
- crumb: "Version Upgrade",
- },
- {
- id: "cloudrun",
- title: "@remotion/cloudrun",
- relativePath: "docs/cloudrun.mdx",
- compId: "articles-docs-cloudrun",
- crumb: null,
- },
- {
- id: "compare/motion-canvas",
- title: "How does Remotion compare to Motion Canvas?",
- relativePath: "docs/compare/motion-canvas.mdx",
- compId: "articles-docs-compare-motion-canvas",
- crumb: "FAQ",
- },
- {
- id: "composition",
- title: "<Composition>",
- relativePath: "docs/composition.mdx",
- compId: "articles-docs-composition",
- crumb: "API",
- },
- {
- id: "config",
- title: "Configuration file",
- relativePath: "docs/config.mdx",
- compId: "articles-docs-config",
- crumb: "remotion.config.ts",
- },
- {
- id: "continue-render",
- title: "continueRender()",
- relativePath: "docs/continue-render.mdx",
- compId: "articles-docs-continue-render",
- crumb: "API",
- },
- {
- id: "contributing/bounty",
- title: "Take and solve bounty issues",
- relativePath: "docs/contributing/bounty.mdx",
- compId: "articles-docs-contributing-bounty",
- crumb: "Contributing",
- },
- {
- id: "contributing/docs",
- title: "Contributing to the documentation",
- relativePath: "docs/contributing/docs.mdx",
- compId: "articles-docs-contributing-docs",
- crumb: "Contributing",
- },
- {
- id: "contributing/feature",
- title: "Implementing a new feature",
- relativePath: "docs/contributing/feature.mdx",
- compId: "articles-docs-contributing-feature",
- crumb: "Contributing",
- },
- {
- id: "contributing/formatting",
- title: "Formatting in the Remotion repo",
- relativePath: "docs/contributing/formatting.mdx",
- compId: "articles-docs-contributing-formatting",
- crumb: "Contributing",
- },
- {
- id: "contributing/index",
- title: "Contributing to Remotion",
- relativePath: "docs/contributing/index.mdx",
- compId: "articles-docs-contributing-index",
- crumb: "How to be awesome",
- },
- {
- id: "contributing/ineligible",
- title: "Ineligible for bounties",
- relativePath: "docs/contributing/ineligible.mdx",
- compId: "articles-docs-contributing-ineligible",
- crumb: "Contributing",
- },
- {
- id: "contributing/option",
- title: "Implementing a new option",
- relativePath: "docs/contributing/option.mdx",
- compId: "articles-docs-contributing-option",
- crumb: "Contributing",
- },
- {
- id: "contributing/presentation",
- title: "Contribute your own presentation",
- relativePath: "docs/contributing/presentation.mdx",
- compId: "articles-docs-contributing-presentation",
- crumb: "Contributing",
- },
- {
- id: "contributing/rust",
- title: "Contributing Rust code",
- relativePath: "docs/contributing/rust.mdx",
- compId: "articles-docs-contributing-rust",
- crumb: "Contributing",
- },
- {
- id: "authoring-packages",
- title: "Authoring a Remotion library",
- relativePath: "docs/creating-a-library.mdx",
- compId: "articles-docs-creating-a-library",
- crumb: "How to",
- },
- {
- id: "data-fetching",
- title: "Data fetching",
- relativePath: "docs/data-fetching.mdx",
- compId: "articles-docs-data-fetching",
- crumb: "How to",
- },
- {
- id: "dataset-render",
- title: "Render videos programmatically from a dataset",
- relativePath: "docs/dataset-render.mdx",
- compId: "articles-docs-dataset-render",
- crumb: "Tutorials",
- },
- {
- id: "delay-render",
- title: "delayRender() and continueRender()",
- relativePath: "docs/delay-render.mdx",
- compId: "articles-docs-delay-render",
- crumb: "How to",
- },
- {
- id: "docker",
- title: "Dockerizing a Remotion app",
- relativePath: "docs/docker.mdx",
- compId: "articles-docs-docker",
- crumb: "Building video apps",
- },
- {
- id: "webpack-dynamic-imports",
- title: "Webpack dynamic imports",
- relativePath: "docs/dynamic-import.mdx",
- compId: "articles-docs-dynamic-import",
- crumb: "Knowledge Base",
- },
- {
- id: "dynamic-metadata",
- title: "Variable duration and dimensions",
- relativePath: "docs/dynamic-metadata.mdx",
- compId: "articles-docs-dynamic-metadata",
- crumb: "How To",
- },
- {
- id: "easing",
- title: "Easing",
- relativePath: "docs/easing.mdx",
- compId: "articles-docs-easing",
- crumb: "API",
- },
- {
- id: "enable-scss/enable-scss",
- title: "enableScss()",
- relativePath: "docs/enable-scss/enable-scss.mdx",
- compId: "articles-docs-enable-scss-enable-scss",
- crumb: "@remotion/enable-scss",
- },
- {
- id: "enable-scss/overview",
- title: "@remotion/enable-scss",
- relativePath: "docs/enable-scss/overview.mdx",
- compId: "articles-docs-enable-scss-overview",
- crumb: null,
- },
- {
- id: "enametoolong",
- title: "ENAMETOOLONG",
- relativePath: "docs/enametoolong.mdx",
- compId: "articles-docs-enametoolong",
- crumb: "Troubleshooting",
- },
- {
- id: "encoding",
- title: "Encoding Guide",
- relativePath: "docs/encoding.mdx",
- compId: "articles-docs-encoding",
- crumb: "Codecs and more",
- },
- {
- id: "env-variables",
- title: "Environment variables",
- relativePath: "docs/env-variables.mdx",
- compId: "articles-docs-env-variables",
- crumb: "How To",
- },
- {
- id: "ffmpeg",
- title: "Installing FFmpeg",
- relativePath: "docs/ffmpeg.mdx",
- compId: "articles-docs-ffmpeg",
- crumb: "(you don't have to)",
- },
- {
- id: "figma",
- title: "Import from Figma",
- relativePath: "docs/figma.mdx",
- compId: "articles-docs-figma",
- crumb: "The best of both",
- },
- {
- id: "flickering",
- title: "Flickering",
- relativePath: "docs/flickering.mdx",
- compId: "articles-docs-flickering",
- crumb: "How to avoid",
- },
- {
- id: "folder",
- title: "<Folder>",
- relativePath: "docs/folder.mdx",
- compId: "articles-docs-folder",
- crumb: "API",
- },
- {
- id: "font-picker",
- title: "Build a Google Font picker",
- relativePath: "docs/font-picker.mdx",
- compId: "articles-docs-font-picker",
- crumb: "Building video apps",
- },
- {
- id: "fonts-api",
- title: "@remotion/fonts",
- relativePath: "docs/fonts-api/index.mdx",
- compId: "articles-docs-fonts-api-index",
- crumb: null,
- },
- {
- id: "fonts-api/load-font",
- title: "loadFont()",
- relativePath: "docs/fonts-api/load-font.mdx",
- compId: "articles-docs-fonts-api-load-font",
- crumb: "@remotion/fonts",
- },
- {
- id: "fonts",
- title: "Using fonts",
- relativePath: "docs/fonts.mdx",
- compId: "articles-docs-fonts",
- crumb: "Techniques",
- },
- {
- id: "freeze",
- title: "<Freeze>",
- relativePath: "docs/freeze.mdx",
- compId: "articles-docs-freeze",
- crumb: "API",
- },
- {
- id: "get-audio-data",
- title: "getAudioData()",
- relativePath: "docs/get-audio-data.mdx",
- compId: "articles-docs-get-audio-data",
- crumb: "@remotion/media-utils",
- },
- {
- id: "get-audio-duration-in-seconds",
- title: "getAudioDurationInSeconds()",
- relativePath: "docs/get-audio-duration-in-seconds.mdx",
- compId: "articles-docs-get-audio-duration-in-seconds",
- crumb: "@remotion/media-utils",
- },
- {
- id: "get-image-dimensions",
- title: "getImageDimensions()",
- relativePath: "docs/get-image-dimensions.mdx",
- compId: "articles-docs-get-image-dimensions",
- crumb: "@remotion/media-utils",
- },
- {
- id: "get-input-props",
- title: "getInputProps()",
- relativePath: "docs/get-input-props.mdx",
- compId: "articles-docs-get-input-props",
- crumb: "API",
- },
- {
- id: "get-remotion-environment",
- title: "getRemotionEnvironment()",
- relativePath: "docs/get-remotion-environment.mdx",
- compId: "articles-docs-get-remotion-environment",
- crumb: "API",
- },
- {
- id: "getstaticfiles",
- title: "getStaticFiles()",
- relativePath: "docs/get-static-files.mdx",
- compId: "articles-docs-get-static-files",
- crumb: "API",
- },
- {
- id: "get-video-metadata",
- title: "getVideoMetadata()",
- relativePath: "docs/get-video-metadata.mdx",
- compId: "articles-docs-get-video-metadata",
- crumb: "@remotion/media-utils",
- },
- {
- id: "get-waveform-portion",
- title: "getWaveformPortion()",
- relativePath: "docs/get-waveform-portion.mdx",
- compId: "articles-docs-get-waveform-portion",
- crumb: "@remotion/media-utils",
- },
- {
- id: "getting-started",
- title: "Creating a new project",
- relativePath: "docs/getting-started.mdx",
- compId: "articles-docs-getting-started",
- crumb: "Let's begin!",
- },
- {
- id: "get-gif-duration-in-seconds",
- title: "getGifDurationInSeconds()",
- relativePath: "docs/gif/get-gif-duration-in-seconds.mdx",
- compId: "articles-docs-gif-get-gif-duration-in-seconds",
- crumb: "@remotion/gif",
- },
- {
- id: "gif/gif",
- title: "<Gif>",
- relativePath: "docs/gif/gif.mdx",
- compId: "articles-docs-gif-gif",
- crumb: "@remotion/gif",
- },
- {
- id: "gif/index",
- title: "@remotion/gif",
- relativePath: "docs/gif/index.mdx",
- compId: "articles-docs-gif-index",
- crumb: null,
- },
- {
- id: "gif/preload-gif",
- title: "preloadGif()",
- relativePath: "docs/gif/preload-gif.mdx",
- compId: "articles-docs-gif-preload-gif",
- crumb: "@remotion/gif",
- },
- {
- id: "google-fonts/get-available-fonts",
- title: "getAvailableFonts()",
- relativePath: "docs/google-fonts/get-available-fonts.mdx",
- compId: "articles-docs-google-fonts-get-available-fonts",
- crumb: "@remotion/google-fonts",
- },
- {
- id: "google-fonts/get-info",
- title: "getInfo()",
- relativePath: "docs/google-fonts/get-info.mdx",
- compId: "articles-docs-google-fonts-get-info",
- crumb: "@remotion/google-fonts",
- },
- {
- id: "google-fonts",
- title: "@remotion/google-fonts",
- relativePath: "docs/google-fonts/index.mdx",
- compId: "articles-docs-google-fonts-index",
- crumb: null,
- },
- {
- id: "google-fonts/load-font",
- title: "loadFont()",
- relativePath: "docs/google-fonts/load-font.mdx",
- compId: "articles-docs-google-fonts-load-font",
- crumb: "@remotion/google-fonts",
- },
- {
- id: "gpu",
- title: "Using the GPU",
- relativePath: "docs/gpu.mdx",
- compId: "articles-docs-gpu",
- crumb: "Need for Speed",
- },
- {
- id: "props-resolution",
- title: "How props get resolved",
- relativePath: "docs/how-props-flow.mdx",
- compId: "articles-docs-how-props-flow",
- crumb: "Parameterized videos",
- },
- {
- id: "iframe",
- title: "<IFrame>",
- relativePath: "docs/iframe.mdx",
- compId: "articles-docs-iframe",
- crumb: "API",
- },
- {
- id: "img",
- title: "<Img>",
- relativePath: "docs/img.mdx",
- compId: "articles-docs-img",
- crumb: "API",
- },
- {
- id: "assets",
- title: "Importing assets",
- relativePath: "docs/importing-assets.mdx",
- compId: "articles-docs-importing-assets",
- crumb: "How To",
- },
- {
- id: "install-whisper-cpp/convert-to-captions",
- title: "convertToCaptions()",
- relativePath: "docs/install-whisper-cpp/convert-to-captions.mdx",
- compId: "articles-docs-install-whisper-cpp-convert-to-captions",
- crumb: "@remotion/install-whisper-cpp",
- },
- {
- id: "install-whisper-cpp/download-whisper-model",
- title: "downloadWhisperModel()",
- relativePath: "docs/install-whisper-cpp/download-whisper-model.mdx",
- compId: "articles-docs-install-whisper-cpp-download-whisper-model",
- crumb: "@remotion/install-whisper-cpp",
- },
- {
- id: "install-whisper-cpp/index",
- title: "@remotion/install-whisper-cpp",
- relativePath: "docs/install-whisper-cpp/index.mdx",
- compId: "articles-docs-install-whisper-cpp-index",
- crumb: "Transcribe audio locally",
- },
- {
- id: "install-whisper-cpp/install-whisper-cpp",
- title: "installWhisperCpp()",
- relativePath: "docs/install-whisper-cpp/install-whisper-cpp.mdx",
- compId: "articles-docs-install-whisper-cpp-install-whisper-cpp",
- crumb: "@remotion/install-whisper-cpp",
- },
- {
- id: "install-whisper-cpp/transcribe",
- title: "transcribe()",
- relativePath: "docs/install-whisper-cpp/transcribe.mdx",
- compId: "articles-docs-install-whisper-cpp-transcribe",
- crumb: "@remotion/install-whisper-cpp",
- },
- {
- id: "interpolate-colors",
- title: "interpolateColors()",
- relativePath: "docs/interpolate-colors.mdx",
- compId: "articles-docs-interpolate-colors",
- crumb: "API",
- },
- {
- id: "interpolate",
- title: "interpolate()",
- relativePath: "docs/interpolate.mdx",
- compId: "articles-docs-interpolate",
- crumb: "API",
- },
- {
- id: "javascript",
- title: "Plain JavaScript",
- relativePath: "docs/jsx-support.mdx",
- compId: "articles-docs-jsx-support",
- crumb: "How To",
- },
- {
- id: "lambda/api",
- title: "@remotion/lambda",
- relativePath: "docs/lambda/api.mdx",
- compId: "articles-docs-lambda-api",
- crumb: "Render videos without servers on AWS",
- },
- {
- id: "authentication",
- title: "Authentication",
- relativePath: "docs/lambda/authentication.mdx",
- compId: "articles-docs-lambda-authentication",
- crumb: "Lambda",
- },
- {
- id: "autodelete",
- title: "Auto-delete renders",
- relativePath: "docs/lambda/autodelete.mdx",
- compId: "articles-docs-lambda-autodelete",
- crumb: "Lambda API",
- },
- {
- id: "lambda/bucket-naming",
- title: "Bucket names in Remotion Lambda",
- relativePath: "docs/lambda/bucket-naming.mdx",
- compId: "articles-docs-lambda-bucket-naming",
- crumb: "@remotion/lambda",
- },
- {
- id: "changelog",
- title: "Prerelease Changelog",
- relativePath: "docs/lambda/changelog.mdx",
- compId: "articles-docs-lambda-changelog",
- crumb: null,
- },
- {
- id: "checklist",
- title: "Production Checklist",
- relativePath: "docs/lambda/checklist.mdx",
- compId: "articles-docs-lambda-checklist",
- crumb: "Lambda",
- },
- {
- id: "lambda/cli/compositions",
- title: "npx remotion lambda compositions",
- relativePath: "docs/lambda/cli/compositions.mdx",
- compId: "articles-docs-lambda-cli-compositions",
- crumb: "Lambda CLI Reference",
- },
- {
- id: "functions",
- title: "npx remotion lambda functions",
- relativePath: "docs/lambda/cli/functions.mdx",
- compId: "articles-docs-lambda-cli-functions",
- crumb: "Lambda CLI Reference",
- },
- {
- id: "policies",
- title: "npx remotion lambda policies",
- relativePath: "docs/lambda/cli/policies.mdx",
- compId: "articles-docs-lambda-cli-policies",
- crumb: "Lambda CLI Reference",
- },
- {
- id: "quotas",
- title: "npx remotion lambda quotas",
- relativePath: "docs/lambda/cli/quotas.mdx",
- compId: "articles-docs-lambda-cli-quotas",
- crumb: "Lambda CLI Reference",
- },
- {
- id: "regions",
- title: "npx remotion lambda regions",
- relativePath: "docs/lambda/cli/regions.mdx",
- compId: "articles-docs-lambda-cli-regions",
- crumb: "Lambda CLI Reference",
- },
- {
- id: "render",
- title: "npx remotion lambda render",
- relativePath: "docs/lambda/cli/render.mdx",
- compId: "articles-docs-lambda-cli-render",
- crumb: "Lambda CLI Reference",
- },
- {
- id: "sites",
- title: "npx remotion lambda sites",
- relativePath: "docs/lambda/cli/sites.mdx",
- compId: "articles-docs-lambda-cli-sites",
- crumb: "Lambda CLI Reference",
- },
- {
- id: "still",
- title: "npx remotion lambda still",
- relativePath: "docs/lambda/cli/still.mdx",
- compId: "articles-docs-lambda-cli-still",
- crumb: "Lambda CLI Reference",
- },
- {
- id: "cli",
- title: "@remotion/lambda - CLI",
- relativePath: "docs/lambda/cli.mdx",
- compId: "articles-docs-lambda-cli",
- crumb: null,
- },
- {
- id: "concurrency",
- title: "Concurrency",
- relativePath: "docs/lambda/concurrency.mdx",
- compId: "articles-docs-lambda-concurrency",
- crumb: "Lambda",
- },
- {
- id: "optimizing-cost",
- title: "Optimizing for cost",
- relativePath: "docs/lambda/cost.mdx",
- compId: "articles-docs-lambda-cost",
- crumb: "Lambda",
- },
- {
- id: "custom-destination",
- title: "Customizing Lambda output destination",
- relativePath: "docs/lambda/custom-destination.mdx",
- compId: "articles-docs-lambda-custom-destination",
- crumb: "Lambda",
- },
- {
- id: "lambda/custom-layers",
- title: "Custom Layers",
- relativePath: "docs/lambda/custom-layers.mdx",
- compId: "articles-docs-lambda-custom-layers",
- crumb: "Lambda",
- },
- {
- id: "deletefunction",
- title: "deleteFunction()",
- relativePath: "docs/lambda/deletefunction.mdx",
- compId: "articles-docs-lambda-deletefunction",
- crumb: "Lambda API",
- },
- {
- id: "deleterender",
- title: "deleteRender()",
- relativePath: "docs/lambda/deleterender.mdx",
- compId: "articles-docs-lambda-deleterender",
- crumb: "Lambda API",
- },
- {
- id: "deletesite",
- title: "deleteSite()",
- relativePath: "docs/lambda/deletesite.mdx",
- compId: "articles-docs-lambda-deletesite",
- crumb: "Lambda API",
- },
- {
- id: "deployfunction",
- title: "deployFunction()",
- relativePath: "docs/lambda/deployfunction.mdx",
- compId: "articles-docs-lambda-deployfunction",
- crumb: "Lambda API",
- },
- {
- id: "deploysite",
- title: "deploySite()",
- relativePath: "docs/lambda/deploysite.mdx",
- compId: "articles-docs-lambda-deploysite",
- crumb: "Lambda API",
- },
- {
- id: "disk-size",
- title: "Disk size",
- relativePath: "docs/lambda/disk-size.mdx",
- compId: "articles-docs-lambda-disk-size",
- crumb: "Lambda",
- },
- {
- id: "downloadmedia",
- title: "downloadMedia()",
- relativePath: "docs/lambda/downloadmedia.mdx",
- compId: "articles-docs-lambda-downloadmedia",
- crumb: "Lambda API",
- },
- {
- id: "downloadvideo",
- title: "downloadVideo()",
- relativePath: "docs/lambda/downloadvideo.mdx",
- compId: "articles-docs-lambda-downloadvideo",
- crumb: "Lambda API",
- },
- {
- id: "estimateprice",
- title: "estimatePrice()",
- relativePath: "docs/lambda/estimateprice.mdx",
- compId: "articles-docs-lambda-estimateprice",
- crumb: "Lambda API",
- },
- {
- id: "lambda/faq",
- title: "FAQ",
- relativePath: "docs/lambda/faq.mdx",
- compId: "articles-docs-lambda-faq",
- crumb: "Lambda",
- },
- {
- id: "feb-2022-outage",
- title: "February 2022 Outage",
- relativePath: "docs/lambda/feb-2022-outage.mdx",
- compId: "articles-docs-lambda-feb-2022-outage",
- crumb: null,
- },
- {
- id: "lambda/feb-2023-incident",
- title: "Upgrade your Lambda functions to prevent breakage",
- relativePath: "docs/lambda/feb-2023-incident.mdx",
- compId: "articles-docs-lambda-feb-2023-incident",
- crumb: "DevOps advisory",
- },
- {
- id: "getawsclient",
- title: "getAwsClient()",
- relativePath: "docs/lambda/getawsclient.mdx",
- compId: "articles-docs-lambda-getawsclient",
- crumb: "Lambda API",
- },
- {
- id: "getcompositionsonlambda",
- title: "getCompositionsOnLambda()",
- relativePath: "docs/lambda/getcompositionsonlambda.mdx",
- compId: "articles-docs-lambda-getcompositionsonlambda",
- crumb: "Lambda API",
- },
- {
- id: "getfunctioninfo",
- title: "getFunctionInfo()",
- relativePath: "docs/lambda/getfunctioninfo.mdx",
- compId: "articles-docs-lambda-getfunctioninfo",
- crumb: "Lambda API",
- },
- {
- id: "getfunctions",
- title: "getFunctions()",
- relativePath: "docs/lambda/getfunctions.mdx",
- compId: "articles-docs-lambda-getfunctions",
- crumb: "Lambda API",
- },
- {
- id: "getorcreatebucket",
- title: "getOrCreateBucket()",
- relativePath: "docs/lambda/getorcreatebucket.mdx",
- compId: "articles-docs-lambda-getorcreatebucket",
- crumb: "Lambda API",
- },
- {
- id: "getregions",
- title: "getRegions()",
- relativePath: "docs/lambda/getregions.mdx",
- compId: "articles-docs-lambda-getregions",
- crumb: "Lambda API",
- },
- {
- id: "getrenderprogress",
- title: "getRenderProgress()",
- relativePath: "docs/lambda/getrenderprogress.mdx",
- compId: "articles-docs-lambda-getrenderprogress",
- crumb: "Lambda API",
- },
- {
- id: "getrolepolicy",
- title: "getRolePolicy()",
- relativePath: "docs/lambda/getrolepolicy.mdx",
- compId: "articles-docs-lambda-getrolepolicy",
- crumb: "Lambda API",
- },
- {
- id: "getsites",
- title: "getSites()",
- relativePath: "docs/lambda/getsites.mdx",
- compId: "articles-docs-lambda-getsites",
- crumb: "Lambda API",
- },
- {
- id: "getuserpolicy",
- title: "getUserPolicy()",
- relativePath: "docs/lambda/getuserpolicy.mdx",
- compId: "articles-docs-lambda-getuserpolicy",
- crumb: "Lambda API",
- },
- {
- id: "lambda/go",
- title: "Triggering renders from Go",
- relativePath: "docs/lambda/go.mdx",
- compId: "articles-docs-lambda-go",
- crumb: "@remotion/lambda",
- },
- {
- id: "how-lambda-works",
- title: "How Remotion Lambda works",
- relativePath: "docs/lambda/how-lambda-works.mdx",
- compId: "articles-docs-lambda-how-lambda-works",
- crumb: "Lambda",
- },
- {
- id: "lambda/insights",
- title: "Enable Lambda Insights",
- relativePath: "docs/lambda/insights.mdx",
- compId: "articles-docs-lambda-insights",
- crumb: "Lambda",
- },
- {
- id: "lambda/light-client",
- title: "Light client",
- relativePath: "docs/lambda/light-client.mdx",
- compId: "articles-docs-lambda-light-client",
- crumb: "Lambda",
- },
- {
- id: "lambda/limits",
- title: "Lambda Limits",
- relativePath: "docs/lambda/limits.mdx",
- compId: "articles-docs-lambda-limits",
- crumb: "Lambda",
- },
- {
- id: "lambda/multiple-buckets",
- title: "Multiple buckets in Remotion Lambda",
- relativePath: "docs/lambda/multiple-buckets.mdx",
- compId: "articles-docs-lambda-multiple-buckets",
- crumb: "@remotion/lambda",
- },
- {
- id: "naming-convention",
- title: "Function naming convention",
- relativePath: "docs/lambda/naming-convention.mdx",
- compId: "articles-docs-lambda-naming-convention",
- crumb: "Lambda",
- },
- {
- id: "lambda/permissions",
- title: "Permissions",
- relativePath: "docs/lambda/permissions.mdx",
- compId: "articles-docs-lambda-permissions",
- crumb: "Lambda",
- },
- {
- id: "lambda/php",
- title: "Triggering renders from PHP",
- relativePath: "docs/lambda/php.mdx",
- compId: "articles-docs-lambda-php",
- crumb: "@remotion/lambda",
- },
- {
- id: "presignurl",
- title: "presignUrl()",
- relativePath: "docs/lambda/presignurl.mdx",
- compId: "articles-docs-lambda-presignurl",
- crumb: "Lambda API",
- },
- {
- id: "lambda/python",
- title: "Triggering renders from Python",
- relativePath: "docs/lambda/python.mdx",
- compId: "articles-docs-lambda-python",
- crumb: "@remotion/lambda",
- },
- {
- id: "region-selection",
- title: "Region selection",
- relativePath: "docs/lambda/region-selection.mdx",
- compId: "articles-docs-lambda-region-selection",
- crumb: "Lambda",
- },
- {
- id: "rendermediaonlambda",
- title: "renderMediaOnLambda()",
- relativePath: "docs/lambda/rendermediaonlambda.mdx",
- compId: "articles-docs-lambda-rendermediaonlambda",
- crumb: "Lambda API",
- },
- {
- id: "renderstillonlambda",
- title: "renderStillOnLambda()",
- relativePath: "docs/lambda/renderstillonlambda.mdx",
- compId: "articles-docs-lambda-renderstillonlambda",
- crumb: "Lambda API",
- },
- {
- id: "rendervideoonlambda",
- title: "renderVideoOnLambda()",
- relativePath: "docs/lambda/rendervideoonlambda.mdx",
- compId: "articles-docs-lambda-rendervideoonlambda",
- crumb: "Lambda API",
- },
- {
- id: "runtime",
- title: "Runtime",
- relativePath: "docs/lambda/runtime.mdx",
- compId: "articles-docs-lambda-runtime",
- crumb: "Lambda",
- },
- {
- id: "lambda/s3-public-access",
- title: "Cannot create a S3 bucket using Remotion",
- relativePath: "docs/lambda/s3-public-access.mdx",
- compId: "articles-docs-lambda-s3-public-access",
- crumb: "DevOps advisory",
- },
- {
- id: "lambda/serverless-framework-integration",
- title: "Using the Serverless Framework with Remotion Lambda",
- relativePath: "docs/lambda/serverless-framework-integration.mdx",
- compId: "articles-docs-lambda-serverless-framework-integration",
- crumb: "@remotion/lambda",
- },
- {
- id: "setup",
- title: "Setup",
- relativePath: "docs/lambda/setup.mdx",
- compId: "articles-docs-lambda-setup",
- crumb: "Lambda",
- },
- {
- id: "simulatepermissions",
- title: "simulatePermissions()",
- relativePath: "docs/lambda/simulatepermissions.mdx",
- compId: "articles-docs-lambda-simulatepermissions",
- crumb: "Lambda API",
- },
- {
- id: "speculatefunctionname",
- title: "speculateFunctionName()",
- relativePath: "docs/lambda/speculateFunctionName.mdx",
- compId: "articles-docs-lambda-speculateFunctionName",
- crumb: "Lambda API",
- },
- {
- id: "optimizing-speed",
- title: "Optimizing for speed",
- relativePath: "docs/lambda/speed.mdx",
- compId: "articles-docs-lambda-speed",
- crumb: "Lambda",
- },
- {
- id: "lambda/sqs",
- title: "Using Lambda with SQS",
- relativePath: "docs/lambda/sqs.mdx",
- compId: "articles-docs-lambda-sqs",
- crumb: "@remotion/lambda",
- },
- {
- id: "bucket-disallows-acl",
- title: "The bucket does not allow ACLs",
- relativePath: "docs/lambda/troubleshooting/bucket-disallows-acl.mdx",
- compId: "articles-docs-lambda-troubleshooting-bucket-disallows-acl",
- crumb: "Lambda Troubleshooting",
- },
- {
- id: "debug",
- title: "Debugging failed Lambda renders",
- relativePath: "docs/lambda/troubleshooting/debug.mdx",
- compId: "articles-docs-lambda-troubleshooting-debug",
- crumb: "Lambda",
- },
- {
- id: "permissions",
- title: "AWS Permissions Troubleshooting",
- relativePath: "docs/lambda/troubleshooting/permissions.mdx",
- compId: "articles-docs-lambda-troubleshooting-permissions",
- crumb: "Lambda Troubleshooting",
- },
- {
- id: "rate-limit",
- title: "AWS Rate Limit Troubleshooting",
- relativePath: "docs/lambda/troubleshooting/rate-limit.mdx",
- compId: "articles-docs-lambda-troubleshooting-rate-limit",
- crumb: "Lambda Troubleshooting",
- },
- {
- id: "lambda/troubleshooting/security-token",
- title: "'\"The security token included in the request is invalid\"'",
- relativePath: "docs/lambda/troubleshooting/security-token.mdx",
- compId: "articles-docs-lambda-troubleshooting-security-token",
- crumb: "Lambda",
- },
- {
- id: "unrecognizedclientexception",
- title: "UnrecognizedClientException",
- relativePath: "docs/lambda/troubleshooting/unrecognizedclientexception.mdx",
- compId: "articles-docs-lambda-troubleshooting-unrecognizedclientexception",
- crumb: "Lambda Troubleshooting",
- },
- {
- id: "uninstall",
- title: "Uninstall Lambda",
- relativePath: "docs/lambda/uninstall.mdx",
- compId: "articles-docs-lambda-uninstall",
- crumb: null,
- },
- {
- id: "upgrading",
- title: "Upgrading Lambda",
- relativePath: "docs/lambda/upgrading.mdx",
- compId: "articles-docs-lambda-upgrading",
- crumb: null,
- },
- {
- id: "validatewebhooksignature",
- title: "validateWebhookSignature()",
- relativePath: "docs/lambda/validatewebhooksignature.mdx",
- compId: "articles-docs-lambda-validatewebhooksignature",
- crumb: "Lambda API",
- },
- {
- id: "lambda/webhooks",
- title: "Webhooks",
- relativePath: "docs/lambda/webhooks.mdx",
- compId: "articles-docs-lambda-webhooks",
- crumb: "Lambda",
- },
- {
- id: "lambda/without-iam/ec2",
- title: "Authenticating Lambda with EC2",
- relativePath: "docs/lambda/without-iam/ec2.mdx",
- compId: "articles-docs-lambda-without-iam-ec2",
- crumb: "@remotion/lambda",
- },
- {
- id: "lambda/without-iam/example",
- title: "Example setup without IAM user",
- relativePath: "docs/lambda/without-iam/example.mdx",
- compId: "articles-docs-lambda-without-iam-example",
- crumb: "IAM Roles Example",
- },
- {
- id: "lambda/without-iam/index",
- title: "Using Lambda with IAM roles",
- relativePath: "docs/lambda/without-iam/index.mdx",
- compId: "articles-docs-lambda-without-iam-index",
- crumb: "Lambda without IAM",
- },
- {
- id: "lambda",
- title: "@remotion/lambda",
- relativePath: "docs/lambda.mdx",
- compId: "articles-docs-lambda",
- crumb: null,
- },
- {
- id: "layers",
- title: "Layers",
- relativePath: "docs/layers.mdx",
- compId: "articles-docs-layers",
- crumb: "Designing videos",
- },
- {
- id: "layout-utils/best-practices",
- title: "Best practices for @remotion/layout-utils",
- relativePath: "docs/layout-utils/best-practices.mdx",
- compId: "articles-docs-layout-utils-best-practices",
- crumb: "@remotion/layout-utils",
- },
- {
- id: "layout-utils/fill-text-box",
- title: "fillTextBox()",
- relativePath: "docs/layout-utils/fill-text-box.mdx",
- compId: "articles-docs-layout-utils-fill-text-box",
- crumb: "@remotion/layout-utils",
- },
- {
- id: "layout-utils/fit-text",
- title: "fitText()",
- relativePath: "docs/layout-utils/fit-text.mdx",
- compId: "articles-docs-layout-utils-fit-text",
- crumb: "@remotion/layout-utils",
- },
- {
- id: "layout-utils/index",
- title: "@remotion/layout-utils",
- relativePath: "docs/layout-utils/index.mdx",
- compId: "articles-docs-layout-utils-index",
- crumb: null,
- },
- {
- id: "layout-utils/measure-text",
- title: "measureText()",
- relativePath: "docs/layout-utils/measure-text.mdx",
- compId: "articles-docs-layout-utils-measure-text",
- crumb: "@remotion/layout-utils",
- },
- {
- id: "legacy-babel",
- title: "Using legacy Babel transpilation",
- relativePath: "docs/legacy-babel-loader.mdx",
- compId: "articles-docs-legacy-babel-loader",
- crumb: "How To",
- },
- {
- id: "license",
- title: "License & Pricing",
- relativePath: "docs/license.mdx",
- compId: "articles-docs-license",
- crumb: null,
- },
- {
- id: "loop",
- title: "<Loop>",
- relativePath: "docs/loop.mdx",
- compId: "articles-docs-loop",
- crumb: "API",
- },
- {
- id: "getlottiemetadata",
- title: "getLottieMetadata()",
- relativePath: "docs/lottie/getlottiemetadata.mdx",
- compId: "articles-docs-lottie-getlottiemetadata",
- crumb: "@remotion/lottie",
- },
- {
- id: "lottie-index",
- title: "@remotion/lottie",
- relativePath: "docs/lottie/index.mdx",
- compId: "articles-docs-lottie-index",
- crumb: null,
- },
- {
- id: "lottie-comp",
- title: "<Lottie>",
- relativePath: "docs/lottie/lottie-comp.mdx",
- compId: "articles-docs-lottie-lottie-comp",
- crumb: "@remotion/lottie",
- },
- {
- id: "lottie-lottiefiles",
- title: "Finding Lottie files to use",
- relativePath: "docs/lottie/lottie-lottiefiles.mdx",
- compId: "articles-docs-lottie-lottie-lottiefiles",
- crumb: "Resources",
- },
- {
- id: "lottie-remote",
- title: "Loading Lottie animations from a URL",
- relativePath: "docs/lottie/lottie-remote.mdx",
- compId: "articles-docs-lottie-lottie-remote",
- crumb: "@remotion/lottie",
- },
- {
- id: "lottie-staticfile",
- title: "Loading Lottie animations from staticFile()",
- relativePath: "docs/lottie/lottie-staticfile.mdx",
- compId: "articles-docs-lottie-lottie-staticfile",
- crumb: "@remotion/lottie",
- },
- {
- id: "measure-spring",
- title: "measureSpring()",
- relativePath: "docs/measure-spring.mdx",
- compId: "articles-docs-measure-spring",
- crumb: "API",
- },
- {
- id: "measuring",
- title: "Measuring DOM nodes",
- relativePath: "docs/measuring.mdx",
- compId: "articles-docs-measuring",
- crumb: "How To",
- },
- {
- id: "media-playback-error",
- title: "Could not play video/audio with src",
- relativePath: "docs/media-playback-error.mdx",
- compId: "articles-docs-media-playback-error",
- crumb: "Troubleshooting",
- },
- {
- id: "media-utils/index",
- title: "@remotion/media-utils",
- relativePath: "docs/media-utils/index.mdx",
- compId: "articles-docs-media-utils-index",
- crumb: null,
- },
- {
- id: "miscellaneous/absolute-paths",
- title: "Files with absolute paths",
- relativePath: "docs/miscellaneous/absolute-paths.mdx",
- compId: "articles-docs-miscellaneous-absolute-paths",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/automatic-duration",
- title: "Calculating the duration of a composition automatically",
- relativePath: "docs/miscellaneous/automatic-duration.mdx",
- compId: "articles-docs-miscellaneous-automatic-duration",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/changing-temp-dir",
- title: "Changing the temporary directory",
- relativePath: "docs/miscellaneous/changing-temp-dir.mdx",
- compId: "articles-docs-miscellaneous-changing-temp-dir",
- crumb: "Advanced configuration",
- },
- {
- id: "miscellaneous/chrome-headless-shell",
- title: "Chrome Headless Shell",
- relativePath: "docs/miscellaneous/chrome-headless-shell.mdx",
- compId: "articles-docs-miscellaneous-chrome-headless-shell",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/cloud-gpu-docker",
- title: "Setup EC2 for Docker with GPU",
- relativePath: "docs/miscellaneous/cloud-gpu-docker.mdx",
- compId: "articles-docs-miscellaneous-cloud-gpu-docker",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/cloud-gpu",
- title: "Using the GPU in the cloud",
- relativePath: "docs/miscellaneous/cloud-gpu.mdx",
- compId: "articles-docs-miscellaneous-cloud-gpu",
- crumb: "FAQ",
- },
- {
- id: "embed-studio",
- title: "Can I embed the Remotion Studio?",
- relativePath: "docs/miscellaneous/embed-remotion-studio.mdx",
- compId: "articles-docs-miscellaneous-embed-remotion-studio",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/linux-dependencies",
- title: "Linux Dependencies",
- relativePath: "docs/miscellaneous/linux-dependencies.mdx",
- compId: "articles-docs-miscellaneous-linux-dependencies",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/linux-single-process",
- title: "Multiple cores on Linux",
- relativePath: "docs/miscellaneous/linux-single-process.mdx",
- compId: "articles-docs-miscellaneous-linux-single-process",
- crumb: "Server-side rendering",
- },
- {
- id: "miscellaneous/live-streaming",
- title: "Can Remotion be used for live streaming?",
- relativePath: "docs/miscellaneous/live-streaming.mdx",
- compId: "articles-docs-miscellaneous-live-streaming",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/render-in-browser",
- title: "Can I render videos in the browser?",
- relativePath: "docs/miscellaneous/render-in-browser.mdx",
- compId: "articles-docs-miscellaneous-render-in-browser",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/render-on-edge",
- title: "Can I render videos on the edge?",
- relativePath: "docs/miscellaneous/render-on-edge.mdx",
- compId: "articles-docs-miscellaneous-render-on-edge",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/snippets/accelerated-video",
- title: "Change the speed of a video over time",
- relativePath: "docs/miscellaneous/snippets/accelerated-video.mdx",
- compId: "articles-docs-miscellaneous-snippets-accelerated-video",
- crumb: "Snippets",
- },
- {
- id: "miscellaneous/snippets/align-duration",
- title: "How do I make the composition the same duration as my video?",
- relativePath: "docs/miscellaneous/snippets/align-duration.mdx",
- compId: "articles-docs-miscellaneous-snippets-align-duration",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/snippets/combine-compositions",
- title: "How do I combine compositions?",
- relativePath: "docs/miscellaneous/snippets/combine-compositions.mdx",
- compId: "articles-docs-miscellaneous-snippets-combine-compositions",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/snippets/fps-converter",
- title: "FPS converter",
- relativePath: "docs/miscellaneous/snippets/fps-converter.mdx",
- compId: "articles-docs-miscellaneous-snippets-fps-converter",
- crumb: "Snippets",
- },
- {
- id: "hls",
- title: "HLS support (HTTP Live Streaming)",
- relativePath: "docs/miscellaneous/snippets/hls.mdx",
- compId: "articles-docs-miscellaneous-snippets-hls",
- crumb: "Video",
- },
- {
- id: "miscellaneous/snippets/offthread-video-while-rendering",
- title: "<OffthreadVideo /> while rendering",
- relativePath:
- "docs/miscellaneous/snippets/offthread-video-while-rendering.mdx",
- compId:
- "articles-docs-miscellaneous-snippets-offthread-video-while-rendering",
- crumb: "Snippets",
- },
- {
- id: "miscellaneous/snippets/player-in-iframe",
- title: "Embedding a <Player> into an <iframe>",
- relativePath: "docs/miscellaneous/snippets/player-in-iframe.mdx",
- compId: "articles-docs-miscellaneous-snippets-player-in-iframe",
- crumb: "Snippets",
- },
- {
- id: "miscellaneous/snippets/use-delay-render",
- title: "useDelayRender()",
- relativePath: "docs/miscellaneous/snippets/use-delay-render.mdx",
- compId: "articles-docs-miscellaneous-snippets-use-delay-render",
- crumb: "Snippets",
- },
- {
- id: "typescript-aliases",
- title: "TypeScript aliases",
- relativePath: "docs/miscellaneous/ts-aliases.mdx",
- compId: "articles-docs-miscellaneous-ts-aliases",
- crumb: "How to",
- },
- {
- id: "miscellaneous/vercel-functions",
- title: "Can I render videos using Vercel Serverless functions?",
- relativePath: "docs/miscellaneous/vercel-functions.mdx",
- compId: "articles-docs-miscellaneous-vercel-functions",
- crumb: "FAQ",
- },
- {
- id: "miscellaneous/video-formats",
- title: "Which video formats does Remotion support?",
- relativePath: "docs/miscellaneous/video-formats.mdx",
- compId: "articles-docs-miscellaneous-video-formats",
- crumb: "FAQ",
- },
- {
- id: "motion-blur/camera-motion-blur",
- title: "<CameraMotionBlur>",
- relativePath: "docs/motion-blur/camera-motion-blur.mdx",
- compId: "articles-docs-motion-blur-camera-motion-blur",
- crumb: "Realistic camera effect",
- },
- {
- id: "motion-blur/index",
- title: "@remotion/motion-blur",
- relativePath: "docs/motion-blur/index.mdx",
- compId: "articles-docs-motion-blur-index",
- crumb: null,
- },
- {
- id: "motion-blur/motion-blur",
- title: "<MotionBlur>",
- relativePath: "docs/motion-blur/motion-blur.mdx",
- compId: "articles-docs-motion-blur-motion-blur",
- crumb: null,
- },
- {
- id: "motion-blur/trail",
- title: "<Trail>",
- relativePath: "docs/motion-blur/trail.mdx",
- compId: "articles-docs-motion-blur-trail",
- crumb: "Motion blur",
- },
- {
- id: "noise/index",
- title: "@remotion/noise",
- relativePath: "docs/noise/index.mdx",
- compId: "articles-docs-noise-index",
- crumb: null,
- },
- {
- id: "noise/noise-2d",
- title: "noise2D()",
- relativePath: "docs/noise/noise-2d.mdx",
- compId: "articles-docs-noise-noise-2d",
- crumb: "Make some",
- },
- {
- id: "noise/noise-3d",
- title: "noise3D()",
- relativePath: "docs/noise/noise-3d.mdx",
- compId: "articles-docs-noise-noise-3d",
- crumb: "Make some",
- },
- {
- id: "noise/noise-4d",
- title: "noise4D()",
- relativePath: "docs/noise/noise-4d.mdx",
- compId: "articles-docs-noise-noise-4d",
- crumb: "Make some",
- },
- {
- id: "noise-visualization",
- title: "Noise visualization",
- relativePath: "docs/noise-visualization.mdx",
- compId: "articles-docs-noise-visualization",
- crumb: "Techniques",
- },
- {
- id: "non-seekable-media",
- title: "Non-seekable media",
- relativePath: "docs/non-seekable-media.mdx",
- compId: "articles-docs-non-seekable-media",
- crumb: "Troubleshooting",
- },
- {
- id: '"null"',
- title: "<Experimental.Null>",
- relativePath: "docs/null.mdx",
- compId: "articles-docs-null",
- crumb: "Experimental API",
- },
- {
- id: "offthreadvideo",
- title: "<OffthreadVideo>",
- relativePath: "docs/offthreadvideo.mdx",
- compId: "articles-docs-offthreadvideo",
- crumb: "API",
- },
- {
- id: "gl-options",
- title: "--gl flag",
- relativePath: "docs/open-gl.mdx",
- compId: "articles-docs-open-gl",
- crumb: "Flags",
- },
- {
- id: "overlay",
- title: "Creating overlays",
- relativePath: "docs/overlay.mdx",
- compId: "articles-docs-overlay",
- crumb: null,
- },
- {
- id: "webpack",
- title: "Custom Webpack config",
- relativePath: "docs/overwriting-webpack-config.mdx",
- compId: "articles-docs-overwriting-webpack-config",
- crumb: "How To",
- },
- {
- id: "parameterized-rendering",
- title: "Parameterized videos",
- relativePath: "docs/parameterized-rendering.mdx",
- compId: "articles-docs-parameterized-rendering",
- crumb: "How To",
- },
- {
- id: "passing-props",
- title: "Passing props to a composition",
- relativePath: "docs/passing-props.mdx",
- compId: "articles-docs-passing-props",
- crumb: "How To",
- },
- {
- id: "paths/evolve-path",
- title: "evolvePath()",
- relativePath: "docs/paths/evolve-path.mdx",
- compId: "articles-docs-paths-evolve-path",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/extend-viewbox",
- title: "extendViewBox()",
- relativePath: "docs/paths/extend-viewbox.mdx",
- compId: "articles-docs-paths-extend-viewbox",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/get-bounding-box",
- title: "getBoundingBox()",
- relativePath: "docs/paths/get-bounding-box.mdx",
- compId: "articles-docs-paths-get-bounding-box",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/get-instruction-index-at-length",
- title: "getInstructionIndexAtLength()",
- relativePath: "docs/paths/get-instruction-index-at-length.mdx",
- compId: "articles-docs-paths-get-instruction-index-at-length",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/get-length",
- title: "getLength()",
- relativePath: "docs/paths/get-length.mdx",
- compId: "articles-docs-paths-get-length",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/get-parts",
- title: "getParts()",
- relativePath: "docs/paths/get-parts.mdx",
- compId: "articles-docs-paths-get-parts",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/get-point-at-length",
- title: "getPointAtLength()",
- relativePath: "docs/paths/get-point-at-length.mdx",
- compId: "articles-docs-paths-get-point-at-length",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/get-subpaths",
- title: "getSubpaths()",
- relativePath: "docs/paths/get-subpaths.mdx",
- compId: "articles-docs-paths-get-subpaths",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/get-tangent-at-length",
- title: "getTangentAtLength()",
- relativePath: "docs/paths/get-tangent-at-length.mdx",
- compId: "articles-docs-paths-get-tangent-at-length",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/index",
- title: "@remotion/paths",
- relativePath: "docs/paths/index.mdx",
- compId: "articles-docs-paths-index",
- crumb: "SVG",
- },
- {
- id: "paths/interpolate-path",
- title: "interpolatePath()",
- relativePath: "docs/paths/interpolate-path.mdx",
- compId: "articles-docs-paths-interpolate-path",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/normalize-path",
- title: "normalizePath()",
- relativePath: "docs/paths/normalize-path.mdx",
- compId: "articles-docs-paths-normalize-path",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/parse-path",
- title: "parsePath()",
- relativePath: "docs/paths/parse-path.mdx",
- compId: "articles-docs-paths-parse-path",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/reduce-instructions",
- title: "reduceInstructions()",
- relativePath: "docs/paths/reduce-instructions.mdx",
- compId: "articles-docs-paths-reduce-instructions",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/reset-path",
- title: "resetPath()",
- relativePath: "docs/paths/reset-path.mdx",
- compId: "articles-docs-paths-reset-path",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/reverse-path",
- title: "reversePath()",
- relativePath: "docs/paths/reverse-path.mdx",
- compId: "articles-docs-paths-reverse-path",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/scale-path",
- title: "scalePath()",
- relativePath: "docs/paths/scale-path.mdx",
- compId: "articles-docs-paths-scale-path",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/serialize-instructions",
- title: "serializeInstructions()",
- relativePath: "docs/paths/serialize-instructions.mdx",
- compId: "articles-docs-paths-serialize-instructions",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/translate-path",
- title: "translatePath()",
- relativePath: "docs/paths/translate-path.mdx",
- compId: "articles-docs-paths-translate-path",
- crumb: "@remotion/paths",
- },
- {
- id: "paths/warp-path",
- title: "warpPath()",
- relativePath: "docs/paths/warp-path.mdx",
- compId: "articles-docs-paths-warp-path",
- crumb: "@remotion/paths",
- },
- {
- id: "performance",
- title: "Performance Tips",
- relativePath: "docs/performance.mdx",
- compId: "articles-docs-performance",
- crumb: "Need for Speed",
- },
- {
- id: "player/api",
- title: "<Player>",
- relativePath: "docs/player/api.mdx",
- compId: "articles-docs-player-api",
- crumb: "@remotion/player",
- },
- {
- id: "autoplay",
- title: "Combatting autoplay issues",
- relativePath: "docs/player/autoplay.mdx",
- compId: "articles-docs-player-autoplay",
- crumb: "@remotion/player",
- },
- {
- id: "best-practices",
- title: "Player - Best practices",
- relativePath: "docs/player/best-practices.mdx",
- compId: "articles-docs-player-best-practices",
- crumb: "@remotion/player",
- },
- {
- id: "buffer-state",
- title: "The Player buffer state",
- relativePath: "docs/player/buffer-state.mdx",
- compId: "articles-docs-player-buffer-state",
- crumb: "Best practices",
- },
- {
- id: "current-time",
- title: "Displaying the current time",
- relativePath: "docs/player/current-time.mdx",
- compId: "articles-docs-player-current-time",
- crumb: "@remotion/player",
- },
- {
- id: "player/index",
- title: "@remotion/player",
- relativePath: "docs/player/index.mdx",
- compId: "articles-docs-player-index",
- crumb: null,
- },
- {
- id: "installation",
- title: "Installation",
- relativePath: "docs/player/installation.mdx",
- compId: "articles-docs-player-installation",
- crumb: "@remotion/player",
- },
- {
- id: "examples",
- title: "Examples for @remotion/player",
- relativePath: "docs/player/player-examples.mdx",
- compId: "articles-docs-player-player-examples",
- crumb: "@remotion/player",
- },
- {
- id: "integration",
- title: "Code sharing",
- relativePath: "docs/player/player-integration.mdx",
- compId: "articles-docs-player-player-integration",
- crumb: "@remotion/player",
- },
- {
- id: "player/preloading",
- title: "Preloading assets",
- relativePath: "docs/player/preloading.mdx",
- compId: "articles-docs-player-preloading",
- crumb: "@remotion/player",
- },
- {
- id: "player/premounting",
- title: "Premounting",
- relativePath: "docs/player/premounting.mdx",
- compId: "articles-docs-player-premounting",
- crumb: "@remotion/player",
- },
- {
- id: "scaling",
- title: "Sizing",
- relativePath: "docs/player/scaling.mdx",
- compId: "articles-docs-player-scaling",
- crumb: "@remotion/player",
- },
- {
- id: "thumbnail",
- title: "<Thumbnail>",
- relativePath: "docs/player/thumbnail.mdx",
- compId: "articles-docs-player-thumbnail",
- crumb: "@remotion/player",
- },
- {
- id: "prefetch",
- title: "prefetch()",
- relativePath: "docs/prefetch.mdx",
- compId: "articles-docs-prefetch",
- crumb: "API",
- },
- {
- id: "preload-audio",
- title: "preloadAudio()",
- relativePath: "docs/preload/preload-audio.mdx",
- compId: "articles-docs-preload-preload-audio",
- crumb: "@remotion/preload",
- },
- {
- id: "preload-font",
- title: "preloadFont()",
- relativePath: "docs/preload/preload-font.mdx",
- compId: "articles-docs-preload-preload-font",
- crumb: "@remotion/preload",
- },
- {
- id: "preload-image",
- title: "preloadImage()",
- relativePath: "docs/preload/preload-image.mdx",
- compId: "articles-docs-preload-preload-image",
- crumb: "@remotion/preload",
- },
- {
- id: "preload-video",
- title: "preloadVideo()",
- relativePath: "docs/preload/preload-video.mdx",
- compId: "articles-docs-preload-preload-video",
- crumb: "@remotion/player",
- },
- {
- id: "preload",
- title: "@remotion/preload",
- relativePath: "docs/preload/preload.mdx",
- compId: "articles-docs-preload-preload",
- crumb: null,
- },
- {
- id: "prereleases",
- title: "Testing prereleases",
- relativePath: "docs/prereleases.mdx",
- compId: "articles-docs-prereleases",
- crumb: "Only the brave",
- },
- {
- id: "presigned-urls",
- title: "Upload with a presigned URL",
- relativePath: "docs/presigned-urls.mdx",
- compId: "articles-docs-presigned-urls",
- crumb: "Building video apps",
- },
- {
- id: "preview",
- title: "Preview your video",
- relativePath: "docs/preview.mdx",
- compId: "articles-docs-preview",
- crumb: "Timeline basics",
- },
- {
- id: "quality",
- title: "Quality Guide",
- relativePath: "docs/quality.mdx",
- compId: "articles-docs-quality",
- crumb: "Make it look good",
- },
- {
- id: "random",
- title: "random()",
- relativePath: "docs/random.mdx",
- compId: "articles-docs-random",
- crumb: "API",
- },
- {
- id: "react-18",
- title: "Upgrade to React 18",
- relativePath: "docs/react-18.mdx",
- compId: "articles-docs-react-18",
- crumb: "The new and shiny",
- },
- {
- id: "react-native",
- title: "React Native",
- relativePath: "docs/react-native.mdx",
- compId: "articles-docs-react-native",
- crumb: null,
- },
- {
- id: "recorder/before-you-buy",
- title: "Before you buy",
- relativePath: "docs/recorder/before-you-buy.mdx",
- compId: "articles-docs-recorder-before-you-buy",
- crumb: "Recorder",
- },
- {
- id: "recorder/buy",
- title: "Buy",
- relativePath: "docs/recorder/buy.mdx",
- compId: "articles-docs-recorder-buy",
- crumb: "Recorder",
- },
- {
- id: "recorder/captions",
- title: "Generate captions",
- relativePath: "docs/recorder/captions.mdx",
- compId: "articles-docs-recorder-captions",
- crumb: "Recorder",
- },
- {
- id: "recorder/create",
- title: "Create a new video",
- relativePath: "docs/recorder/create.mdx",
- compId: "articles-docs-recorder-create",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/b-roll",
- title: "B-Roll",
- relativePath: "docs/recorder/editing/b-roll.mdx",
- compId: "articles-docs-recorder-editing-b-roll",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/captions",
- title: "Edit captions",
- relativePath: "docs/recorder/editing/captions.mdx",
- compId: "articles-docs-recorder-editing-captions",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/chapters",
- title: "Chapters",
- relativePath: "docs/recorder/editing/chapters.mdx",
- compId: "articles-docs-recorder-editing-chapters",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/cutting-clips",
- title: "Cutting clips",
- relativePath: "docs/recorder/editing/cutting-clips.mdx",
- compId: "articles-docs-recorder-editing-cutting-clips",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/editing",
- title: "Start editing",
- relativePath: "docs/recorder/editing/editing.mdx",
- compId: "articles-docs-recorder-editing-editing",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/endcard",
- title: "Endcard",
- relativePath: "docs/recorder/editing/endcard.mdx",
- compId: "articles-docs-recorder-editing-endcard",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/layout",
- title: "Layout",
- relativePath: "docs/recorder/editing/layout.mdx",
- compId: "articles-docs-recorder-editing-layout",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/music",
- title: "Adding music",
- relativePath: "docs/recorder/editing/music.mdx",
- compId: "articles-docs-recorder-editing-music",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/normalizing-audio",
- title: "Normalizing audio levels",
- relativePath: "docs/recorder/editing/normalizing-audio.mdx",
- compId: "articles-docs-recorder-editing-normalizing-audio",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/scenes",
- title: "Scenes",
- relativePath: "docs/recorder/editing/scenes.mdx",
- compId: "articles-docs-recorder-editing-scenes",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/silence-removal",
- title: "Silence removal",
- relativePath: "docs/recorder/editing/silence-removal.mdx",
- compId: "articles-docs-recorder-editing-silence-removal",
- crumb: "Recorder",
- },
- {
- id: "recorder/editing/transitions",
- title: "Transitions",
- relativePath: "docs/recorder/editing/transitions.mdx",
- compId: "articles-docs-recorder-editing-transitions",
- crumb: "Recorder",
- },
- {
- id: "recorder/exporting-subtitles",
- title: "Exporting subtitles",
- relativePath: "docs/recorder/exporting-subtitles.mdx",
- compId: "articles-docs-recorder-exporting-subtitles",
- crumb: "Recorder",
- },
- {
- id: "recorder/exporting",
- title: "Exporting a video",
- relativePath: "docs/recorder/exporting.mdx",
- compId: "articles-docs-recorder-exporting",
- crumb: "Recorder",
- },
- {
- id: "recorder/external-recordings",
- title: "External recordings",
- relativePath: "docs/recorder/external-recordings.mdx",
- compId: "articles-docs-recorder-external-recordings",
- crumb: "Recorder",
- },
- {
- id: "recorder/gear",
- title: "Our Gear",
- relativePath: "docs/recorder/gear.mdx",
- compId: "articles-docs-recorder-gear",
- crumb: "Recorder",
- },
- {
- id: "recorder/index",
- title: "Remotion Recorder",
- relativePath: "docs/recorder/index.mdx",
- compId: "articles-docs-recorder-index",
- crumb: "Templates",
- },
- {
- id: "recorder/lambda-rendering",
- title: "Render on Lambda",
- relativePath: "docs/recorder/lambda-rendering.mdx",
- compId: "articles-docs-recorder-lambda-rendering",
- crumb: "Recorder",
- },
- {
- id: "recorder/our-recorder",
- title: "Our Recorder",
- relativePath: "docs/recorder/our-recorder.mdx",
- compId: "articles-docs-recorder-our-recorder",
- crumb: "Recorder",
- },
- {
- id: "recorder/record/cropping",
- title: "Cropping sources",
- relativePath: "docs/recorder/record/cropping.mdx",
- compId: "articles-docs-recorder-record-cropping",
- crumb: "Recorder",
- },
- {
- id: "recorder/record/delete",
- title: "Delete a recording",
- relativePath: "docs/recorder/record/delete.mdx",
- compId: "articles-docs-recorder-record-delete",
- crumb: "Recorder",
- },
- {
- id: "recorder/record/index",
- title: "Record using the interface",
- relativePath: "docs/recorder/record/index.mdx",
- compId: "articles-docs-recorder-record-index",
- crumb: "Recorder",
- },
- {
- id: "recorder/record/manually",
- title: "Manually add recordings",
- relativePath: "docs/recorder/record/manually.mdx",
- compId: "articles-docs-recorder-record-manually",
- crumb: "Recorder",
- },
- {
- id: "recorder/roadmap",
- title: "Roadmap",
- relativePath: "docs/recorder/roadmap.mdx",
- compId: "articles-docs-recorder-roadmap",
- crumb: "Recorder",
- },
- {
- id: "recorder/setup",
- title: "Setup",
- relativePath: "docs/recorder/setup.mdx",
- compId: "articles-docs-recorder-setup",
- crumb: "Recorder",
- },
- {
- id: "recorder/source-control",
- title: "Source Control",
- relativePath: "docs/recorder/source-control.mdx",
- compId: "articles-docs-recorder-source-control",
- crumb: "Recorder",
- },
- {
- id: "recorder/support",
- title: "Get Help",
- relativePath: "docs/recorder/support.mdx",
- compId: "articles-docs-recorder-support",
- crumb: "Recorder",
- },
- {
- id: "recorder/troubleshooting/cannot-read-properties-of-undefined",
- title: "Cannot read properties of undefined (reading 'decode')",
- relativePath:
- "docs/recorder/troubleshooting/cannot-read-properties-of-undefined.mdx",
- compId:
- "articles-docs-recorder-troubleshooting-cannot-read-properties-of-undefined",
- crumb: "Recorder",
- },
- {
- id: "recorder/troubleshooting/failed-to-execute-get-video-metadata",
- title: "Failed to execute getVideoMetadata()",
- relativePath:
- "docs/recorder/troubleshooting/failed-to-execute-get-video-metadata.mdx",
- compId:
- "articles-docs-recorder-troubleshooting-failed-to-execute-get-video-metadata",
- crumb: "Recorder",
- },
- {
- id: "recorder/upgrading",
- title: "Upgrading",
- relativePath: "docs/recorder/upgrading.mdx",
- compId: "articles-docs-recorder-upgrading",
- crumb: "Recorder",
- },
- {
- id: "register-root",
- title: "registerRoot()",
- relativePath: "docs/register-root.mdx",
- compId: "articles-docs-register-root",
- crumb: "API",
- },
- {
- id: "remotion",
- title: "remotion",
- relativePath: "docs/remotion.mdx",
- compId: "articles-docs-remotion",
- crumb: "Core API Reference",
- },
- {
- id: "render-all",
- title: "Render all compositions",
- relativePath: "docs/render-all.mdx",
- compId: "articles-docs-render-all",
- crumb: "Techniques",
- },
- {
- id: "render-as-gif",
- title: "Rendering GIFs",
- relativePath: "docs/render-as-gif.mdx",
- compId: "articles-docs-render-as-gif",
- crumb: "Techniques",
- },
- {
- id: "render",
- title: "Render your video",
- relativePath: "docs/render.mdx",
- compId: "articles-docs-render",
- crumb: "How To",
- },
- {
- id: "ensure-browser",
- title: "ensureBrowser()",
- relativePath: "docs/renderer/ensure-browser.mdx",
- compId: "articles-docs-renderer-ensure-browser",
- crumb: "@remotion/renderer",
- },
- {
- id: "ensure-ffmpeg",
- title: "ensureFfmpeg()",
- relativePath: "docs/renderer/ensure-ffmpeg.mdx",
- compId: "articles-docs-renderer-ensure-ffmpeg",
- crumb: "@remotion/renderer",
- },
- {
- id: "ensure-ffprobe",
- title: "ensureFfprobe()",
- relativePath: "docs/renderer/ensure-ffprobe.mdx",
- compId: "articles-docs-renderer-ensure-ffprobe",
- crumb: "@remotion/renderer",
- },
- {
- id: "extract-audio",
- title: "extractAudio()",
- relativePath: "docs/renderer/extract-audio.mdx",
- compId: "articles-docs-renderer-extract-audio",
- crumb: "@remotion/renderer",
- },
- {
- id: "get-can-extract-frames-fast",
- title: "getCanExtractFramesFast()",
- relativePath: "docs/renderer/get-can-extract-frames-fast.mdx",
- compId: "articles-docs-renderer-get-can-extract-frames-fast",
- crumb: "@remotion/renderer",
- },
- {
- id: "get-compositions",
- title: "getCompositions()",
- relativePath: "docs/renderer/get-compositions.mdx",
- compId: "articles-docs-renderer-get-compositions",
- crumb: "@remotion/renderer",
- },
- {
- id: "get-silent-parts",
- title: "getSilentParts()",
- relativePath: "docs/renderer/get-silent-parts.mdx",
- compId: "articles-docs-renderer-get-silent-parts",
- crumb: "@remotion/renderer",
- },
- {
- id: "get-video-metadata",
- title: "getVideoMetadata()",
- relativePath: "docs/renderer/get-video-metadata.mdx",
- compId: "articles-docs-renderer-get-video-metadata",
- crumb: "@remotion/renderer",
- },
- {
- id: "make-cancel-signal",
- title: "makeCancelSignal()",
- relativePath: "docs/renderer/make-cancel-signal.mdx",
- compId: "articles-docs-renderer-make-cancel-signal",
- crumb: "@remotion/renderer",
- },
- {
- id: "open-browser",
- title: "openBrowser()",
- relativePath: "docs/renderer/open-browser.mdx",
- compId: "articles-docs-renderer-open-browser",
- crumb: "@remotion/renderer",
- },
- {
- id: "render-frames",
- title: "renderFrames()",
- relativePath: "docs/renderer/render-frames.mdx",
- compId: "articles-docs-renderer-render-frames",
- crumb: "@remotion/renderer",
- },
- {
- id: "render-media",
- title: "renderMedia()",
- relativePath: "docs/renderer/render-media.mdx",
- compId: "articles-docs-renderer-render-media",
- crumb: "@remotion/renderer",
- },
- {
- id: "render-still",
- title: "renderStill()",
- relativePath: "docs/renderer/render-still.mdx",
- compId: "articles-docs-renderer-render-still",
- crumb: "@remotion/renderer",
- },
- {
- id: "select-composition",
- title: "selectComposition()",
- relativePath: "docs/renderer/select-composition.mdx",
- compId: "articles-docs-renderer-select-composition",
- crumb: "@remotion/renderer",
- },
- {
- id: "stitch-frames-to-video",
- title: "stitchFramesToVideo()",
- relativePath: "docs/renderer/stitch-frames-to-video.mdx",
- compId: "articles-docs-renderer-stitch-frames-to-video",
- crumb: "@remotion/renderer",
- },
- {
- id: "renderer",
- title: "@remotion/renderer",
- relativePath: "docs/renderer.mdx",
- compId: "articles-docs-renderer",
- crumb: null,
- },
- {
- id: "resources",
- title: "List of resources",
- relativePath: "docs/resources.mdx",
- compId: "articles-docs-resources",
- crumb: "Ecosystem",
- },
- {
- id: "rive/index",
- title: "@remotion/rive",
- relativePath: "docs/rive/index.mdx",
- compId: "articles-docs-rive-index",
- crumb: "Integrations",
- },
- {
- id: "rive/remotionrivecanvas",
- title: "<RemotionRiveCanvas>",
- relativePath: "docs/rive/remotionrivecanvas.mdx",
- compId: "articles-docs-rive-remotionrivecanvas",
- crumb: "@remotion/rive",
- },
- {
- id: "scaling",
- title: "Output scaling",
- relativePath: "docs/scaling.mdx",
- compId: "articles-docs-scaling",
- crumb: "How To",
- },
- {
- id: "schemas",
- title: "Defining a schema for your props",
- relativePath: "docs/schemas.mdx",
- compId: "articles-docs-schemas",
- crumb: "How To",
- },
- {
- id: "security",
- title: "Security Best Practices",
- relativePath: "docs/security.mdx",
- compId: "articles-docs-security",
- crumb: "FAQ",
- },
- {
- id: "sequence",
- title: "<Sequence>",
- relativePath: "docs/sequence.mdx",
- compId: "articles-docs-sequence",
- crumb: "API",
- },
- {
- id: "reusability",
- title: "Making components reusable",
- relativePath: "docs/sequences.mdx",
- compId: "articles-docs-sequences",
- crumb: "The power of React",
- },
- {
- id: "series",
- title: "<Series>",
- relativePath: "docs/series.mdx",
- compId: "articles-docs-series",
- crumb: "API",
- },
- {
- id: "shapes/circle",
- title: "<Circle />",
- relativePath: "docs/shapes/circle.mdx",
- compId: "articles-docs-shapes-circle",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/ellipse",
- title: "<Ellipse />",
- relativePath: "docs/shapes/ellipse.mdx",
- compId: "articles-docs-shapes-ellipse",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/index",
- title: "@remotion/shapes",
- relativePath: "docs/shapes/index.mdx",
- compId: "articles-docs-shapes-index",
- crumb: "SVG component library",
- },
- {
- id: "shapes/make-circle",
- title: "makeCircle()",
- relativePath: "docs/shapes/make-circle.mdx",
- compId: "articles-docs-shapes-make-circle",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/make-ellipse",
- title: "makeEllipse()",
- relativePath: "docs/shapes/make-ellipse.mdx",
- compId: "articles-docs-shapes-make-ellipse",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/make-pie",
- title: "makePie()",
- relativePath: "docs/shapes/make-pie.mdx",
- compId: "articles-docs-shapes-make-pie",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/make-polygon",
- title: "makePolygon()",
- relativePath: "docs/shapes/make-polygon.mdx",
- compId: "articles-docs-shapes-make-polygon",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/make-rect",
- title: "makeRect()",
- relativePath: "docs/shapes/make-rect.mdx",
- compId: "articles-docs-shapes-make-rect",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/make-star",
- title: "makeStar()",
- relativePath: "docs/shapes/make-star.mdx",
- compId: "articles-docs-shapes-make-star",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/make-triangle",
- title: "makeTriangle()",
- relativePath: "docs/shapes/make-triangle.mdx",
- compId: "articles-docs-shapes-make-triangle",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/pie",
- title: "<Pie />",
- relativePath: "docs/shapes/pie.mdx",
- compId: "articles-docs-shapes-pie",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/polygon",
- title: "<Polygon />",
- relativePath: "docs/shapes/polygon.mdx",
- compId: "articles-docs-shapes-polygon",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/rect",
- title: "<Rect />",
- relativePath: "docs/shapes/rect.mdx",
- compId: "articles-docs-shapes-rect",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/star",
- title: "<Star />",
- relativePath: "docs/shapes/star.mdx",
- compId: "articles-docs-shapes-star",
- crumb: "@remotion/shapes",
- },
- {
- id: "shapes/triangle",
- title: "<Triangle />",
- relativePath: "docs/shapes/triangle.mdx",
- compId: "articles-docs-shapes-triangle",
- crumb: "@remotion/shapes",
- },
- {
- id: "skia/enable-skia",
- title: "enableSkia()",
- relativePath: "docs/skia/enable-skia.mdx",
- compId: "articles-docs-skia-enable-skia",
- crumb: "@remotion/skia",
- },
- {
- id: "skia/skia-canvas",
- title: "<SkiaCanvas />",
- relativePath: "docs/skia/skia-canvas.mdx",
- compId: "articles-docs-skia-skia-canvas",
- crumb: "@remotion/skia",
- },
- {
- id: "skia",
- title: "@remotion/skia",
- relativePath: "docs/skia/skia.mdx",
- compId: "articles-docs-skia-skia",
- crumb: null,
- },
- {
- id: "slow-method-to-extract-frame",
- title: "Slow method to extract frame",
- relativePath: "docs/slow-method-to-extract-frame.mdx",
- compId: "articles-docs-slow-method-to-extract-frame",
- crumb: "Troubleshooting",
- },
- {
- id: "spline",
- title: "Import from Spline",
- relativePath: "docs/spline.mdx",
- compId: "articles-docs-spline",
- crumb: "Integrations",
- },
- {
- id: "spring",
- title: "spring()",
- relativePath: "docs/spring.mdx",
- compId: "articles-docs-spring",
- crumb: "API",
- },
- {
- id: "ssr-legacy",
- title: "Server-Side Rendering (v1 and v2)",
- relativePath: "docs/ssr-legacy.mdx",
- compId: "articles-docs-ssr-legacy",
- crumb: "Legacy docs",
- },
- {
- id: "ssr-node",
- title: "Rendering using SSR APIs",
- relativePath: "docs/ssr-node.mdx",
- compId: "articles-docs-ssr-node",
- crumb: "Server-side rendering",
- },
- {
- id: "ssr",
- title: "Server-Side Rendering",
- relativePath: "docs/ssr.mdx",
- compId: "articles-docs-ssr",
- crumb: "The power of",
- },
- {
- id: "standalone",
- title: "Useful functions outside of Remotion",
- relativePath: "docs/standalone.mdx",
- compId: "articles-docs-standalone",
- crumb: null,
- },
- {
- id: "staticfile-relative-paths",
- title: "staticFile() does not support relative paths",
- relativePath: "docs/static-file-relative-paths.mdx",
- compId: "articles-docs-static-file-relative-paths",
- crumb: "Troubleshooting",
- },
- {
- id: "staticfile-remote-urls",
- title: "staticFile() does not support remote URLs",
- relativePath: "docs/static-file-remote-urls.mdx",
- compId: "articles-docs-static-file-remote-urls",
- crumb: "Troubleshooting",
- },
- {
- id: "staticfile",
- title: "staticFile()",
- relativePath: "docs/staticfile.mdx",
- compId: "articles-docs-staticfile",
- crumb: "API",
- },
- {
- id: "still",
- title: "<Still>",
- relativePath: "docs/still.mdx",
- compId: "articles-docs-still",
- crumb: "API",
- },
- {
- id: "stills",
- title: "Still images",
- relativePath: "docs/stills.mdx",
- compId: "articles-docs-stills",
- crumb: "How to generate",
- },
- {
- id: "studio/api",
- title: "@remotion/studio",
- relativePath: "docs/studio/api.mdx",
- compId: "articles-docs-studio-api",
- crumb: null,
- },
- {
- id: "studio/delete-static-file",
- title: "deleteStaticFile()",
- relativePath: "docs/studio/delete-static-file.mdx",
- compId: "articles-docs-studio-delete-static-file",
- crumb: "@remotion/studio",
- },
- {
- id: "studio/deploy-server",
- title: "Deploy the Remotion Studio on a VPS",
- relativePath: "docs/studio/deploy-server.mdx",
- compId: "articles-docs-studio-deploy-server",
- crumb: "Remotion Studio",
- },
- {
- id: "studio/deploy-static",
- title: "Deploy Remotion Studio as static site",
- relativePath: "docs/studio/deploy-static.mdx",
- compId: "articles-docs-studio-deploy-static",
- crumb: "Remotion Studio",
- },
- {
- id: "studio/focus-default-props-path",
- title: "focusDefaultPropsPath()",
- relativePath: "docs/studio/focus-default-props-path.mdx",
- compId: "articles-docs-studio-focus-default-props-path",
- crumb: "@remotion/studio",
- },
- {
- id: "studio/get-static-files",
- title: "getStaticFiles()",
- relativePath: "docs/studio/get-static-files.mdx",
- compId: "articles-docs-studio-get-static-files",
- crumb: "@remotion/studio",
- },
- {
- id: "studio/quick-switcher",
- title: "Quick Switcher",
- relativePath: "docs/studio/quick-switcher.mdx",
- compId: "articles-docs-studio-quick-switcher",
- crumb: "Remotion Studio",
- },
- {
- id: "studio/reevaluate-composition",
- title: "reevaluateComposition()",
- relativePath: "docs/studio/reevaluate-composition.mdx",
- compId: "articles-docs-studio-reevaluate-composition",
- crumb: "@remotion/studio",
- },
- {
- id: "studio/restart-studio",
- title: "restartStudio()",
- relativePath: "docs/studio/restart-studio.mdx",
- compId: "articles-docs-studio-restart-studio",
- crumb: "@remotion/studio",
- },
- {
- id: "studio/save-default-props",
- title: "saveDefaultProps()",
- relativePath: "docs/studio/save-default-props.mdx",
- compId: "articles-docs-studio-save-default-props",
- crumb: "@remotion/studio",
- },
- {
- id: "studio/shortcuts",
- title: "Keyboard navigation",
- relativePath: "docs/studio/shortcuts.mdx",
- compId: "articles-docs-studio-shortcuts",
- crumb: "Remotion Studio",
- },
- {
- id: "studio/studio",
- title: "Starting the Studio",
- relativePath: "docs/studio/studio.mdx",
- compId: "articles-docs-studio-studio",
- crumb: "Timeline basics",
- },
- {
- id: "studio/update-default-props",
- title: "updateDefaultProps()",
- relativePath: "docs/studio/update-default-props.mdx",
- compId: "articles-docs-studio-update-default-props",
- crumb: "@remotion/studio",
- },
- {
- id: "studio/watch-public-folder",
- title: "watchPublicFolder()",
- relativePath: "docs/studio/watch-public-folder.mdx",
- compId: "articles-docs-studio-watch-public-folder",
- crumb: "@remotion/studio",
- },
- {
- id: "studio/watch-static-file",
- title: "watchStaticFile()",
- relativePath: "docs/studio/watch-static-file.mdx",
- compId: "articles-docs-studio-watch-static-file",
- crumb: "@remotion/studio",
- },
- {
- id: "studio/write-static-file",
- title: "writeStaticFile()",
- relativePath: "docs/studio/write-static-file.mdx",
- compId: "articles-docs-studio-write-static-file",
- crumb: "@remotion/studio",
- },
- {
- id: "support",
- title: "Support Policy",
- relativePath: "docs/support.mdx",
- compId: "articles-docs-support",
- crumb: "Let us help you",
- },
- {
- id: "tailwind/enable-tailwind",
- title: "enableTailwind()",
- relativePath: "docs/tailwind/enable-tailwind.mdx",
- compId: "articles-docs-tailwind-enable-tailwind",
- crumb: "@remotion/tailwind",
- },
- {
- id: "tailwind",
- title: "@remotion/tailwind",
- relativePath: "docs/tailwind/overview.mdx",
- compId: "articles-docs-tailwind-overview",
- crumb: null,
- },
- {
- id: "tailwind-legacy",
- title: "TailwindCSS v2 (Legacy)",
- relativePath: "docs/tailwind-2.mdx",
- compId: "articles-docs-tailwind-2",
- crumb: "Legacy docs",
- },
- {
- id: "tailwind",
- title: "TailwindCSS",
- relativePath: "docs/tailwind.mdx",
- compId: "articles-docs-tailwind",
- crumb: "text-lg font-bold",
- },
- {
- id: "target-closed",
- title: "'Target closed' error message",
- relativePath: "docs/target-closed.mdx",
- compId: "articles-docs-target-closed",
- crumb: "Troubleshooting",
- },
- {
- id: "terminology/bundle",
- title: "Remotion Bundle",
- relativePath: "docs/terminology/bundle.mdx",
- compId: "articles-docs-terminology-bundle",
- crumb: "Terminology",
- },
- {
- id: "terminology/cloud-run-url",
- title: "Cloud Run URL",
- relativePath: "docs/terminology/cloud-run-url.mdx",
- compId: "articles-docs-terminology-cloud-run-url",
- crumb: "Terminology",
- },
- {
- id: "terminology/composition",
- title: "Composition",
- relativePath: "docs/terminology/composition.mdx",
- compId: "articles-docs-terminology-composition",
- crumb: "Terminology",
- },
- {
- id: "terminology/concurrency",
- title: "Concurrency",
- relativePath: "docs/terminology/concurrency.mdx",
- compId: "articles-docs-terminology-concurrency",
- crumb: "Terminology",
- },
- {
- id: "terminology/entry-point",
- title: "Entry point",
- relativePath: "docs/terminology/entry-point.mdx",
- compId: "articles-docs-terminology-entry-point",
- crumb: "Terminology",
- },
- {
- id: "terminology/input-props",
- title: "Input Props",
- relativePath: "docs/terminology/input-props.mdx",
- compId: "articles-docs-terminology-input-props",
- crumb: "Terminology",
- },
- {
- id: "terminology/player",
- title: "Remotion Player",
- relativePath: "docs/terminology/player.mdx",
- compId: "articles-docs-terminology-player",
- crumb: "Terminology",
- },
- {
- id: "terminology/public-dir",
- title: "Public directory",
- relativePath: "docs/terminology/public-dir.mdx",
- compId: "articles-docs-terminology-public-dir",
- crumb: "Terminology",
- },
- {
- id: "terminology/remotion-root",
- title: "Remotion Root",
- relativePath: "docs/terminology/remotion-root.mdx",
- compId: "articles-docs-terminology-remotion-root",
- crumb: "Terminology",
- },
- {
- id: "terminology/root-file",
- title: "Root file",
- relativePath: "docs/terminology/root-file.mdx",
- compId: "articles-docs-terminology-root-file",
- crumb: "Terminology",
- },
- {
- id: "terminology/sequence",
- title: "Sequence",
- relativePath: "docs/terminology/sequence.mdx",
- compId: "articles-docs-terminology-sequence",
- crumb: "Terminology",
- },
- {
- id: "terminology/serve-url",
- title: "Serve URL",
- relativePath: "docs/terminology/serve-url.mdx",
- compId: "articles-docs-terminology-serve-url",
- crumb: "Terminology",
- },
- {
- id: "terminology/service-name",
- title: "Service Name",
- relativePath: "docs/terminology/service-name.mdx",
- compId: "articles-docs-terminology-service-name",
- crumb: "Terminology",
- },
- {
- id: "terminology/studio",
- title: "Remotion Studio",
- relativePath: "docs/terminology/studio.mdx",
- compId: "articles-docs-terminology-studio",
- crumb: "Terminology",
- },
- {
- id: "terminology",
- title: "Terminology",
- relativePath: "docs/terminology.mdx",
- compId: "articles-docs-terminology",
- crumb: "The Remotion dictionary",
- },
- {
- id: "the-fundamentals",
- title: "The fundamentals",
- relativePath: "docs/the-fundamentals.mdx",
- compId: "articles-docs-the-fundamentals",
- crumb: "Getting started",
- },
- {
- id: "third-party",
- title: "Third party integrations",
- relativePath: "docs/third-party.mdx",
- compId: "articles-docs-third-party",
- crumb: "Integrations",
- },
- {
- id: "three-canvas",
- title: "<ThreeCanvas>",
- relativePath: "docs/three-canvas.mdx",
- compId: "articles-docs-three-canvas",
- crumb: "@remotion/three",
- },
- {
- id: "three",
- title: "@remotion/three",
- relativePath: "docs/three.mdx",
- compId: "articles-docs-three",
- crumb: null,
- },
- {
- id: "timeout",
- title: "Debugging timeouts",
- relativePath: "docs/timeout.mdx",
- compId: "articles-docs-timeout",
- crumb: "Troubleshooting",
- },
- {
- id: "transforms",
- title: "Transforms",
- relativePath: "docs/transforms.mdx",
- compId: "articles-docs-transforms",
- crumb: "The fundamentals",
- },
- {
- id: "transitions/audio-transitions",
- title: "Transitioning with audio",
- relativePath: "docs/transitions/audio-transitions.mdx",
- compId: "articles-docs-transitions-audio-transitions",
- crumb: "@remotion/transitions",
- },
- {
- id: "transitions/index",
- title: "@remotion/transitions",
- relativePath: "docs/transitions/index.mdx",
- compId: "articles-docs-transitions-index",
- crumb: null,
- },
- {
- id: "transitions/presentations/clock-wipe",
- title: "clockWipe()",
- relativePath: "docs/transitions/presentations/clock-wipe.mdx",
- compId: "articles-docs-transitions-presentations-clock-wipe",
- crumb: "@remotion/transitions - Presentations",
- },
- {
- id: "transitions/presentations/cube",
- title: "cube()",
- relativePath: "docs/transitions/presentations/cube.mdx",
- compId: "articles-docs-transitions-presentations-cube",
- crumb: "@remotion/transitions - Presentations",
- },
- {
- id: "transitions/presentations/custom",
- title: "Custom presentations",
- relativePath: "docs/transitions/presentations/custom.mdx",
- compId: "articles-docs-transitions-presentations-custom",
- crumb: "@remotion/transitions",
- },
- {
- id: "transitions/presentations/fade",
- title: "fade()",
- relativePath: "docs/transitions/presentations/fade.mdx",
- compId: "articles-docs-transitions-presentations-fade",
- crumb: "@remotion/transitions - Presentations",
- },
- {
- id: "transitions/presentations/flip",
- title: "flip()",
- relativePath: "docs/transitions/presentations/flip.mdx",
- compId: "articles-docs-transitions-presentations-flip",
- crumb: "@remotion/transitions - Presentations",
- },
- {
- id: "transitions/presentations/index",
- title: "Presentations",
- relativePath: "docs/transitions/presentations/index.mdx",
- compId: "articles-docs-transitions-presentations-index",
- crumb: "@remotion/transitions",
- },
- {
- id: "transitions/presentations/none",
- title: "none()",
- relativePath: "docs/transitions/presentations/none.mdx",
- compId: "articles-docs-transitions-presentations-none",
- crumb: "@remotion/transitions - Presentations",
- },
- {
- id: "transitions/presentations/slide",
- title: "slide()",
- relativePath: "docs/transitions/presentations/slide.mdx",
- compId: "articles-docs-transitions-presentations-slide",
- crumb: "@remotion/transitions - Presentations",
- },
- {
- id: "transitions/presentations/wipe",
- title: "wipe()",
- relativePath: "docs/transitions/presentations/wipe.mdx",
- compId: "articles-docs-transitions-presentations-wipe",
- crumb: "@remotion/transitions - Presentations",
- },
- {
- id: "transitions/timings/custom",
- title: "Custom timings",
- relativePath: "docs/transitions/timings/custom.mdx",
- compId: "articles-docs-transitions-timings-custom",
- crumb: "@remotion/transitions",
- },
- {
- id: "transitions/timings/index",
- title: "Timings",
- relativePath: "docs/transitions/timings/index.mdx",
- compId: "articles-docs-transitions-timings-index",
- crumb: "@remotion/transitions",
- },
- {
- id: "transitions/timings/lineartiming",
- title: "linearTiming()",
- relativePath: "docs/transitions/timings/lineartiming.mdx",
- compId: "articles-docs-transitions-timings-lineartiming",
- crumb: "@remotion/transitions - Timings",
- },
- {
- id: "transitions/timings/springtiming",
- title: "springTiming()",
- relativePath: "docs/transitions/timings/springtiming.mdx",
- compId: "articles-docs-transitions-timings-springtiming",
- crumb: "@remotion/transitions - Timings",
- },
- {
- id: "transitions/transitionseries",
- title: "<TransitionSeries>",
- relativePath: "docs/transitions/transitionseries.mdx",
- compId: "articles-docs-transitions-transitionseries",
- crumb: "@remotion/transitions",
- },
- {
- id: "transitions/use-transition-progress",
- title: "useTransitionProgress()",
- relativePath: "docs/transitions/use-transition-progress.mdx",
- compId: "articles-docs-transitions-use-transition-progress",
- crumb: "@remotion/transitions",
- },
- {
- id: "transitioning",
- title: "Transitions",
- relativePath: "docs/transitions.mdx",
- compId: "articles-docs-transitions",
- crumb: "Techniques",
- },
- {
- id: "transparent-videos",
- title: "Transparent videos",
- relativePath: "docs/transparent-videos.mdx",
- compId: "articles-docs-transparent-videos",
- crumb: "Techniques",
- },
- {
- id: "troubleshooting/background-image",
- title: "Flickering when using background-image or mask-image",
- relativePath: "docs/troubleshooting/background-image.mdx",
- compId: "articles-docs-troubleshooting-background-image",
- crumb: "Common mistakes",
- },
- {
- id: "broken-fast-refresh",
- title: "Fast Refresh not working",
- relativePath: "docs/troubleshooting/broken-fast-refresh.mdx",
- compId: "articles-docs-troubleshooting-broken-fast-refresh",
- crumb: "Troubleshooting",
- },
- {
- id: "troubleshooting/browser-launch",
- title: "Failed to launch the browser process",
- relativePath: "docs/troubleshooting/browser-launch.mdx",
- compId: "articles-docs-troubleshooting-browser-launch",
- crumb: "Troubleshooting",
- },
- {
- id: "troubleshooting/bundling-bundle",
- title: "Calling bundle() in bundled code",
- relativePath: "docs/troubleshooting/bundling-bundle.mdx",
- compId: "articles-docs-troubleshooting-bundling-bundle",
- crumb: "Troubleshooting",
- },
- {
- id: "troubleshooting/could-not-be-parsed-as-a-value-list",
- title: "The source provided could not be parsed as a value list",
- relativePath:
- "docs/troubleshooting/could-not-be-parsed-as-a-value-list.mdx",
- compId: "articles-docs-troubleshooting-could-not-be-parsed-as-a-value-list",
- crumb: "Browser quirks",
- },
- {
- id: "troubleshooting/could-not-find-executable-to-run",
- title: "Could not determine executable to run",
- relativePath: "docs/troubleshooting/could-not-find-executable-to-run.mdx",
- compId: "articles-docs-troubleshooting-could-not-find-executable-to-run",
- crumb: "Troubleshooting",
- },
- {
- id: "troubleshooting/debug-failed-render",
- title: "Debugging render failures",
- relativePath: "docs/troubleshooting/debug-failed-render.mdx",
- compId: "articles-docs-troubleshooting-debug-failed-render",
- crumb: "Troubleshooting",
- },
- {
- id: "defaultprops-too-big",
- title: "defaultProps too big - could not serialize",
- relativePath: "docs/troubleshooting/defaultprops-too-big.mdx",
- compId: "articles-docs-troubleshooting-defaultprops-too-big",
- crumb: "Troubleshooting",
- },
- {
- id: "troubleshooting/delay-render-proxy",
- title: "Loading <Img> with src http://localhost:3000/proxy",
- relativePath: "docs/troubleshooting/delay-render-proxy.mdx",
- compId: "articles-docs-troubleshooting-delay-render-proxy",
- crumb: "Troubleshooting",
- },
- {
- id: "loading-root-component",
- title: "Root component Timeout",
- relativePath: "docs/troubleshooting/loading-root-component.mdx",
- compId: "articles-docs-troubleshooting-loading-root-component",
- crumb: "Troubleshooting",
- },
- {
- id: "troubleshooting/nextjs-image",
- title: "Flickering when using Next.js <Image> tag",
- relativePath: "docs/troubleshooting/nextjs-image.mdx",
- compId: "articles-docs-troubleshooting-nextjs-image",
- crumb: "Common mistakes",
- },
- {
- id: "rosetta",
- title: "Apple Silicon under Rosetta",
- relativePath: "docs/troubleshooting/rosetta.mdx",
- compId: "articles-docs-troubleshooting-rosetta",
- crumb: "Troubleshooting",
- },
- {
- id: "troubleshooting/sigkill",
- title: "Process quit with signal SIGKILL",
- relativePath: "docs/troubleshooting/sigkill.mdx",
- compId: "articles-docs-troubleshooting-sigkill",
- crumb: "Troubleshooting",
- },
- {
- id: "troubleshooting/timed-out-page-function",
- title: "Timed out evaluating page function",
- relativePath: "docs/troubleshooting/timed-out-page-function.mdx",
- compId: "articles-docs-troubleshooting-timed-out-page-function",
- crumb: "Troubleshooting",
- },
- {
- id: "player-flicker",
- title: "Avoiding flickering in <Player>",
- relativePath: "docs/troubleshooting/video-flicker.mdx",
- compId: "articles-docs-troubleshooting-video-flicker",
- crumb: "Frame-perfection",
- },
- {
- id: "upgrading",
- title: "Upgrading Remotion",
- relativePath: "docs/upgrading.mdx",
- compId: "articles-docs-upgrading",
- crumb: "upgrade remotion",
- },
- {
- id: "use-audio-data",
- title: "useAudioData()",
- relativePath: "docs/use-audio-data.mdx",
- compId: "articles-docs-use-audio-data",
- crumb: "@remotion/media-utils",
- },
- {
- id: "use-buffer-state",
- title: "useBufferState()",
- relativePath: "docs/use-buffer-state.mdx",
- compId: "articles-docs-use-buffer-state",
- crumb: "API",
- },
- {
- id: "use-current-frame",
- title: "useCurrentFrame()",
- relativePath: "docs/use-current-frame.mdx",
- compId: "articles-docs-use-current-frame",
- crumb: "API",
- },
- {
- id: "use-current-scale",
- title: "useCurrentScale()",
- relativePath: "docs/use-current-scale.mdx",
- compId: "articles-docs-use-current-scale",
- crumb: "API",
- },
- {
- id: "use-img-and-iframe",
- title: "<Img>, <Video> and <Audio>",
- relativePath: "docs/use-img-and-iframe.mdx",
- compId: "articles-docs-use-img-and-iframe",
- crumb: "Best practices",
- },
- {
- id: "use-offthread-video-texture",
- title: "useOffthreadVideoTexture()",
- relativePath: "docs/use-offthread-video-texture.mdx",
- compId: "articles-docs-use-offthread-video-texture",
- crumb: "@remotion/three",
- },
- {
- id: "use-video-config",
- title: "useVideoConfig()",
- relativePath: "docs/use-video-config.mdx",
- compId: "articles-docs-use-video-config",
- crumb: "API",
- },
- {
- id: "use-video-texture",
- title: "useVideoTexture()",
- relativePath: "docs/use-video-texture.mdx",
- compId: "articles-docs-use-video-texture",
- crumb: "@remotion/three",
- },
- {
- id: "using-audio",
- title: "Using audio",
- relativePath: "docs/using-audio.mdx",
- compId: "articles-docs-using-audio",
- crumb: "Techniques",
- },
- {
- id: "using-randomness",
- title: "Using randomness",
- relativePath: "docs/using-randomness.mdx",
- compId: "articles-docs-using-randomness",
- crumb: "Roll the dice",
- },
- {
- id: "version-mismatch",
- title: "Version mismatch",
- relativePath: "docs/version-mismatch.mdx",
- compId: "articles-docs-version-mismatch",
- crumb: "How to fix a",
- },
- {
- id: "version",
- title: "VERSION",
- relativePath: "docs/version.mdx",
- compId: "articles-docs-version",
- crumb: "API",
- },
- {
- id: "video-manipulation",
- title: "Video manipulation",
- relativePath: "docs/video-manipulation.mdx",
- compId: "articles-docs-video-manipulation",
- crumb: "How To",
- },
- {
- id: "video-uploads",
- title: "Handling user video uploads",
- relativePath: "docs/video-uploads.mdx",
- compId: "articles-docs-video-uploads",
- crumb: "Building video apps",
- },
- {
- id: "video-vs-offthreadvideo",
- title: "<Video> vs. <OffthreadVideo>",
- relativePath: "docs/video-vs-offthreadvideo.mdx",
- compId: "articles-docs-video-vs-offthreadvideo",
- crumb: "Comparison",
- },
- {
- id: "video",
- title: "<Video>",
- relativePath: "docs/video.mdx",
- compId: "articles-docs-video",
- crumb: "API",
- },
- {
- id: "visual-editing",
- title: "Edit default props visually",
- relativePath: "docs/visual-editing.mdx",
- compId: "articles-docs-visual-editing",
- crumb: "How To",
- },
- {
- id: "visualize-audio",
- title: "visualizeAudio()",
- relativePath: "docs/visualize-audio.mdx",
- compId: "articles-docs-visualize-audio",
- crumb: "@remotion/media-utils",
- },
- {
- id: "watchstaticfile",
- title: "watchStaticFile()",
- relativePath: "docs/watch-static-file.mdx",
- compId: "articles-docs-watch-static-file",
- crumb: "API",
- },
- {
- id: "wrong-composition-mount",
- title: "Wrongly mounted <Composition>",
- relativePath: "docs/wrong-composition-mount.mdx",
- compId: "articles-docs-wrong-composition-mount",
- crumb: "Troubleshooting",
- },
- {
- id: "zod-types/index",
- title: "@remotion/zod-types",
- relativePath: "docs/zod-types/index.mdx",
- compId: "articles-docs-zod-types-index",
- crumb: "Schema",
- },
- {
- id: "zod-types/z-color",
- title: "zColor()",
- relativePath: "docs/zod-types/z-color.mdx",
- compId: "articles-docs-zod-types-z-color",
- crumb: null,
- },
- {
- id: "zod-types/z-textarea",
- title: "zTextarea()",
- relativePath: "docs/zod-types/z-textarea.mdx",
- compId: "articles-docs-zod-types-z-textarea",
- crumb: null,
- },
+ {
+ id: '2-0-migration',
+ title: 'v2.0 Migration',
+ relativePath: 'docs/2-0-migration.mdx',
+ compId: 'articles-docs-2-0-migration',
+ crumb: 'Version Upgrade',
+ },
+ {
+ id: '3-0-migration',
+ title: 'v3.0 Migration',
+ relativePath: 'docs/3-0-migration.mdx',
+ compId: 'articles-docs-3-0-migration',
+ crumb: 'Version Upgrade',
+ },
+ {
+ id: '4-0-alpha',
+ title: 'v4.0 Alpha',
+ relativePath: 'docs/4-0-alpha.mdx',
+ compId: 'articles-docs-4-0-alpha',
+ crumb: 'Version Upgrade',
+ },
+ {
+ id: '4-0-migration',
+ title: 'v4.0 Migration',
+ relativePath: 'docs/4-0-migration.mdx',
+ compId: 'articles-docs-4-0-migration',
+ crumb: 'Version Upgrade',
+ },
+ {
+ id: '5-0-migration',
+ title: 'v5.0 Migration',
+ relativePath: 'docs/5-0-migration.mdx',
+ compId: 'articles-docs-5-0-migration',
+ crumb: 'Version Upgrade',
+ },
+ {
+ id: 'absolute-fill',
+ title: '<AbsoluteFill>',
+ relativePath: 'docs/absolute-fill.mdx',
+ compId: 'articles-docs-absolute-fill',
+ crumb: 'API',
+ },
+ {
+ id: 'acknowledgements',
+ title: 'Acknowledgements',
+ relativePath: 'docs/acknowledgements.mdx',
+ compId: 'articles-docs-acknowledgements',
+ crumb: 'Credits',
+ },
+ {
+ id: 'after-effects',
+ title: 'Import from After Effects',
+ relativePath: 'docs/after-effects.mdx',
+ compId: 'articles-docs-after-effects',
+ crumb: 'Integrations',
+ },
+ {
+ id: 'animating-properties',
+ title: 'Animating properties',
+ relativePath: 'docs/animating-properties.mdx',
+ compId: 'articles-docs-animating-properties',
+ crumb: 'The basics',
+ },
+ {
+ id: 'animation-math',
+ title: 'Animation math',
+ relativePath: 'docs/animation-math.mdx',
+ compId: 'articles-docs-animation-math',
+ crumb: 'Techniques',
+ },
+ {
+ id: 'animation-utils/index',
+ title: '@remotion/animation-utils',
+ relativePath: 'docs/animation-utils/index.mdx',
+ compId: 'articles-docs-animation-utils-index',
+ crumb: null,
+ },
+ {
+ id: 'interpolate-styles',
+ title: 'interpolateStyles()',
+ relativePath: 'docs/animation-utils/interpolate-styles.mdx',
+ compId: 'articles-docs-animation-utils-interpolate-styles',
+ crumb: '@remotion/animation-utils',
+ },
+ {
+ id: 'make-transform',
+ title: 'makeTransform()',
+ relativePath: 'docs/animation-utils/make-transform.mdx',
+ compId: 'articles-docs-animation-utils-make-transform',
+ crumb: '@remotion/animation-utils',
+ },
+ {
+ id: 'api',
+ title: 'API overview',
+ relativePath: 'docs/api.mdx',
+ compId: 'articles-docs-api',
+ crumb: null,
+ },
+ {
+ id: 'artifact',
+ title: '<Artifact>',
+ relativePath: 'docs/artifact.mdx',
+ compId: 'articles-docs-artifact',
+ crumb: 'API',
+ },
+ {
+ id: 'artifacts',
+ title: 'Emitting Artifacts',
+ relativePath: 'docs/artifacts.mdx',
+ compId: 'articles-docs-artifacts',
+ crumb: 'Techniques',
+ },
+ {
+ id: 'get-help',
+ title: 'Get help',
+ relativePath: 'docs/ask-for-help.mdx',
+ compId: 'articles-docs-ask-for-help',
+ crumb: null,
+ },
+ {
+ id: 'audio-visualization',
+ title: 'Audio visualization',
+ relativePath: 'docs/audio-visualization.mdx',
+ compId: 'articles-docs-audio-visualization',
+ crumb: 'Techniques',
+ },
+ {
+ id: 'audio',
+ title: '<Audio>',
+ relativePath: 'docs/audio.mdx',
+ compId: 'articles-docs-audio',
+ crumb: 'How to',
+ },
+ {
+ id: 'audio-buffer-to-data-url',
+ title: 'audioBufferToDataUrl()',
+ relativePath: 'docs/audiobuffertodataurl.mdx',
+ compId: 'articles-docs-audiobuffertodataurl',
+ crumb: '@remotion/media-utils',
+ },
+ {
+ id: 'brownfield',
+ title: 'Installing Remotion in an existing project',
+ relativePath: 'docs/brownfield-installation.mdx',
+ compId: 'articles-docs-brownfield-installation',
+ crumb: 'Brownfield integration',
+ },
+ {
+ id: 'buffer-state',
+ title: 'Display a buffer state',
+ relativePath: 'docs/buffer-state.mdx',
+ compId: 'articles-docs-buffer-state',
+ crumb: 'Building video apps',
+ },
+ {
+ id: 'bun',
+ title: 'Bun support',
+ relativePath: 'docs/bun.mdx',
+ compId: 'articles-docs-bun',
+ crumb: 'bun bun bun bun bun',
+ },
+ {
+ id: 'bundle',
+ title: 'bundle()',
+ relativePath: 'docs/bundle.mdx',
+ compId: 'articles-docs-bundle',
+ crumb: '@remotion/bundler',
+ },
+ {
+ id: 'bundler',
+ title: '@remotion/bundler',
+ relativePath: 'docs/bundler.mdx',
+ compId: 'articles-docs-bundler',
+ crumb: null,
+ },
+ {
+ id: 'calculate-metadata',
+ title: 'calculateMetadata()',
+ relativePath: 'docs/calculate-metadata.mdx',
+ compId: 'articles-docs-calculate-metadata',
+ crumb: 'API',
+ },
+ {
+ id: 'cancel-render',
+ title: 'cancelRender()',
+ relativePath: 'docs/cancel-render.mdx',
+ compId: 'articles-docs-cancel-render',
+ crumb: 'How to',
+ },
+ {
+ id: 'chromium-flags',
+ title: 'Chromium flags',
+ relativePath: 'docs/chromium-flags.mdx',
+ compId: 'articles-docs-chromium-flags',
+ crumb: 'Tweaks',
+ },
+ {
+ id: 'cli/benchmark',
+ title: 'npx remotion benchmark',
+ relativePath: 'docs/cli/benchmark.mdx',
+ compId: 'articles-docs-cli-benchmark',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'cli/browser/ensure',
+ title: 'npx remotion browser ensure',
+ relativePath: 'docs/cli/browser/ensure.mdx',
+ compId: 'articles-docs-cli-browser-ensure',
+ crumb: '@remotion/cli',
+ },
+ {
+ id: 'cli/browser/index',
+ title: 'npx remotion browser',
+ relativePath: 'docs/cli/browser/index.mdx',
+ compId: 'articles-docs-cli-browser-index',
+ crumb: '@remotion/cli',
+ },
+ {
+ id: 'cli/bundle',
+ title: 'npx remotion bundle',
+ relativePath: 'docs/cli/bundle.mdx',
+ compId: 'articles-docs-cli-bundle',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'cli',
+ title: 'Command line reference',
+ relativePath: 'docs/cli/cli.mdx',
+ compId: 'articles-docs-cli-cli',
+ crumb: null,
+ },
+ {
+ id: 'cli/compositions',
+ title: 'npx remotion compositions',
+ relativePath: 'docs/cli/compositions.mdx',
+ compId: 'articles-docs-cli-compositions',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'ffmpeg',
+ title: 'npx remotion ffmpeg',
+ relativePath: 'docs/cli/ffmpeg.mdx',
+ compId: 'articles-docs-cli-ffmpeg',
+ crumb: '@remotion/cli',
+ },
+ {
+ id: 'ffprobe',
+ title: 'npx remotion ffprobe',
+ relativePath: 'docs/cli/ffprobe.mdx',
+ compId: 'articles-docs-cli-ffprobe',
+ crumb: '@remotion/cli',
+ },
+ {
+ id: 'cli/gpu',
+ title: 'npx remotion gpu',
+ relativePath: 'docs/cli/gpu.mdx',
+ compId: 'articles-docs-cli-gpu',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'cli/help',
+ title: 'npx remotion help',
+ relativePath: 'docs/cli/help.mdx',
+ compId: 'articles-docs-cli-help',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'cli/install',
+ title: 'npx remotion install',
+ relativePath: 'docs/cli/install.mdx',
+ compId: 'articles-docs-cli-install',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'cli/render',
+ title: 'npx remotion render',
+ relativePath: 'docs/cli/render.mdx',
+ compId: 'articles-docs-cli-render',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'cli/still',
+ title: 'npx remotion still',
+ relativePath: 'docs/cli/still.mdx',
+ compId: 'articles-docs-cli-still',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'cli/studio',
+ title: 'npx remotion studio',
+ relativePath: 'docs/cli/studio.mdx',
+ compId: 'articles-docs-cli-studio',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'cli/upgrade',
+ title: 'npx remotion upgrade',
+ relativePath: 'docs/cli/upgrade.mdx',
+ compId: 'articles-docs-cli-upgrade',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'cli/versions',
+ title: 'npx remotion versions',
+ relativePath: 'docs/cli/versions.mdx',
+ compId: 'articles-docs-cli-versions',
+ crumb: 'CLI Reference',
+ },
+ {
+ id: 'clipper',
+ title: '<Experimental.Clipper>',
+ relativePath: 'docs/clipper.mdx',
+ compId: 'articles-docs-clipper',
+ crumb: 'Experimental API',
+ },
+ {
+ id: 'cloudrun/api',
+ title: '@remotion/cloudrun',
+ relativePath: 'docs/cloudrun/api.mdx',
+ compId: 'articles-docs-cloudrun-api',
+ crumb: 'Render videos without servers on GCP',
+ },
+ {
+ id: 'checklist',
+ title: 'Production Checklist',
+ relativePath: 'docs/cloudrun/checklist.mdx',
+ compId: 'articles-docs-cloudrun-checklist',
+ crumb: 'Cloud Run',
+ },
+ {
+ id: 'permissions',
+ title: 'npx remotion cloudrun permissions',
+ relativePath: 'docs/cloudrun/cli/permissions.mdx',
+ compId: 'articles-docs-cloudrun-cli-permissions',
+ crumb: 'Cloud Run CLI Reference',
+ },
+ {
+ id: 'regions',
+ title: 'npx remotion cloudrun regions',
+ relativePath: 'docs/cloudrun/cli/regions.mdx',
+ compId: 'articles-docs-cloudrun-cli-regions',
+ crumb: 'Cloud Run CLI Reference',
+ },
+ {
+ id: 'render',
+ title: 'npx remotion cloudrun render',
+ relativePath: 'docs/cloudrun/cli/render.mdx',
+ compId: 'articles-docs-cloudrun-cli-render',
+ crumb: 'Cloud Run CLI Reference',
+ },
+ {
+ id: 'services',
+ title: 'npx remotion cloudrun services',
+ relativePath: 'docs/cloudrun/cli/services.mdx',
+ compId: 'articles-docs-cloudrun-cli-services',
+ crumb: 'Cloud Run CLI Reference',
+ },
+ {
+ id: 'sites',
+ title: 'npx remotion cloudrun sites',
+ relativePath: 'docs/cloudrun/cli/sites.mdx',
+ compId: 'articles-docs-cloudrun-cli-sites',
+ crumb: 'Cloud Run CLI Reference',
+ },
+ {
+ id: 'still',
+ title: 'npx remotion cloudrun still',
+ relativePath: 'docs/cloudrun/cli/still.mdx',
+ compId: 'articles-docs-cloudrun-cli-still',
+ crumb: 'Cloud Run CLI Reference',
+ },
+ {
+ id: 'cli',
+ title: '@remotion/cloudrun - CLI',
+ relativePath: 'docs/cloudrun/cli.mdx',
+ compId: 'articles-docs-cloudrun-cli',
+ crumb: null,
+ },
+ {
+ id: 'deleteservice',
+ title: 'deleteService()',
+ relativePath: 'docs/cloudrun/deleteservice.mdx',
+ compId: 'articles-docs-cloudrun-deleteservice',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'deletesite',
+ title: 'deleteSite()',
+ relativePath: 'docs/cloudrun/deletesite.mdx',
+ compId: 'articles-docs-cloudrun-deletesite',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'deployservice',
+ title: 'deployService()',
+ relativePath: 'docs/cloudrun/deployservice.mdx',
+ compId: 'articles-docs-cloudrun-deployservice',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'deploysite',
+ title: 'deploySite()',
+ relativePath: 'docs/cloudrun/deploysite.mdx',
+ compId: 'articles-docs-cloudrun-deploysite',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'generate-env',
+ title: 'Generate .env File',
+ relativePath: 'docs/cloudrun/generate-env.mdx',
+ compId: 'articles-docs-cloudrun-generate-env',
+ crumb: 'Cloud Run',
+ },
+ {
+ id: 'getserviceinfo',
+ title: 'getServiceInfo()',
+ relativePath: 'docs/cloudrun/getServiceinfo.mdx',
+ compId: 'articles-docs-cloudrun-getServiceinfo',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'getorcreatebucket',
+ title: 'getOrCreateBucket()',
+ relativePath: 'docs/cloudrun/getorcreatebucket.mdx',
+ compId: 'articles-docs-cloudrun-getorcreatebucket',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'getregions',
+ title: 'getRegions()',
+ relativePath: 'docs/cloudrun/getregions.mdx',
+ compId: 'articles-docs-cloudrun-getregions',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'getservices',
+ title: 'getServices()',
+ relativePath: 'docs/cloudrun/getservices.mdx',
+ compId: 'articles-docs-cloudrun-getservices',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'getsites',
+ title: 'getSites()',
+ relativePath: 'docs/cloudrun/getsites.mdx',
+ compId: 'articles-docs-cloudrun-getsites',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'instancecount',
+ title: 'Instance Count',
+ relativePath: 'docs/cloudrun/instancecount.mdx',
+ compId: 'articles-docs-cloudrun-instancecount',
+ crumb: 'Cloud Run',
+ },
+ {
+ id: 'cloudrun/light-client',
+ title: 'Light client',
+ relativePath: 'docs/cloudrun/light-client.mdx',
+ compId: 'articles-docs-cloudrun-light-client',
+ crumb: 'Cloud Run',
+ },
+ {
+ id: 'cloudrun/limits',
+ title: 'Cloud Run Limits',
+ relativePath: 'docs/cloudrun/limits.mdx',
+ compId: 'articles-docs-cloudrun-limits',
+ crumb: 'Cloud Run',
+ },
+ {
+ id: 'cloudrun/multiple-buckets',
+ title: 'Multiple buckets in Remotion Cloud Run',
+ relativePath: 'docs/cloudrun/multiple-buckets.mdx',
+ compId: 'articles-docs-cloudrun-multiple-buckets',
+ crumb: '@remotion/cloudrun',
+ },
+ {
+ id: 'cloudrun/permissions',
+ title: 'Permissions',
+ relativePath: 'docs/cloudrun/permissions.mdx',
+ compId: 'articles-docs-cloudrun-permissions',
+ crumb: 'Cloud Run',
+ },
+ {
+ id: 'region-selection',
+ title: 'Region selection',
+ relativePath: 'docs/cloudrun/region-selection.mdx',
+ compId: 'articles-docs-cloudrun-region-selection',
+ crumb: 'Cloud Run',
+ },
+ {
+ id: 'rendermediaoncloudrun',
+ title: 'renderMediaOnCloudrun()',
+ relativePath: 'docs/cloudrun/rendermediaoncloudrun.mdx',
+ compId: 'articles-docs-cloudrun-rendermediaoncloudrun',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'renderstilloncloudrun',
+ title: 'renderStillOnCloudrun()',
+ relativePath: 'docs/cloudrun/renderstilloncloudrun.mdx',
+ compId: 'articles-docs-cloudrun-renderstilloncloudrun',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'setup',
+ title: 'Setup',
+ relativePath: 'docs/cloudrun/setup.mdx',
+ compId: 'articles-docs-cloudrun-setup',
+ crumb: 'Cloud Run',
+ },
+ {
+ id: 'speculateservicename',
+ title: 'speculateServiceName()',
+ relativePath: 'docs/cloudrun/speculateservicename.mdx',
+ compId: 'articles-docs-cloudrun-speculateservicename',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'testpermissions',
+ title: 'testPermissions()',
+ relativePath: 'docs/cloudrun/testpermissions.mdx',
+ compId: 'articles-docs-cloudrun-testpermissions',
+ crumb: 'Cloud Run API',
+ },
+ {
+ id: 'uninstall',
+ title: 'Uninstall Cloud Run',
+ relativePath: 'docs/cloudrun/uninstall.mdx',
+ compId: 'articles-docs-cloudrun-uninstall',
+ crumb: null,
+ },
+ {
+ id: 'upgrading',
+ title: 'Upgrading Cloud Run',
+ relativePath: 'docs/cloudrun/upgrading.mdx',
+ compId: 'articles-docs-cloudrun-upgrading',
+ crumb: null,
+ },
+ {
+ id: 'cloudrun-alpha',
+ title: 'Cloud Run Alpha',
+ relativePath: 'docs/cloudrun-alpha.mdx',
+ compId: 'articles-docs-cloudrun-alpha',
+ crumb: 'Version Upgrade',
+ },
+ {
+ id: 'cloudrun',
+ title: '@remotion/cloudrun',
+ relativePath: 'docs/cloudrun.mdx',
+ compId: 'articles-docs-cloudrun',
+ crumb: null,
+ },
+ {
+ id: 'compare/motion-canvas',
+ title: 'How does Remotion compare to Motion Canvas?',
+ relativePath: 'docs/compare/motion-canvas.mdx',
+ compId: 'articles-docs-compare-motion-canvas',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'composition',
+ title: '<Composition>',
+ relativePath: 'docs/composition.mdx',
+ compId: 'articles-docs-composition',
+ crumb: 'API',
+ },
+ {
+ id: 'config',
+ title: 'Configuration file',
+ relativePath: 'docs/config.mdx',
+ compId: 'articles-docs-config',
+ crumb: 'remotion.config.ts',
+ },
+ {
+ id: 'continue-render',
+ title: 'continueRender()',
+ relativePath: 'docs/continue-render.mdx',
+ compId: 'articles-docs-continue-render',
+ crumb: 'API',
+ },
+ {
+ id: 'contributing/bounty',
+ title: 'Take and solve bounty issues',
+ relativePath: 'docs/contributing/bounty.mdx',
+ compId: 'articles-docs-contributing-bounty',
+ crumb: 'Contributing',
+ },
+ {
+ id: 'contributing/docs',
+ title: 'Contributing to the documentation',
+ relativePath: 'docs/contributing/docs.mdx',
+ compId: 'articles-docs-contributing-docs',
+ crumb: 'Contributing',
+ },
+ {
+ id: 'contributing/feature',
+ title: 'Implementing a new feature',
+ relativePath: 'docs/contributing/feature.mdx',
+ compId: 'articles-docs-contributing-feature',
+ crumb: 'Contributing',
+ },
+ {
+ id: 'contributing/formatting',
+ title: 'Formatting in the Remotion repo',
+ relativePath: 'docs/contributing/formatting.mdx',
+ compId: 'articles-docs-contributing-formatting',
+ crumb: 'Contributing',
+ },
+ {
+ id: 'contributing/index',
+ title: 'Contributing to Remotion',
+ relativePath: 'docs/contributing/index.mdx',
+ compId: 'articles-docs-contributing-index',
+ crumb: 'How to be awesome',
+ },
+ {
+ id: 'contributing/ineligible',
+ title: 'Ineligible for bounties',
+ relativePath: 'docs/contributing/ineligible.mdx',
+ compId: 'articles-docs-contributing-ineligible',
+ crumb: 'Contributing',
+ },
+ {
+ id: 'contributing/option',
+ title: 'Implementing a new option',
+ relativePath: 'docs/contributing/option.mdx',
+ compId: 'articles-docs-contributing-option',
+ crumb: 'Contributing',
+ },
+ {
+ id: 'contributing/presentation',
+ title: 'Contribute your own presentation',
+ relativePath: 'docs/contributing/presentation.mdx',
+ compId: 'articles-docs-contributing-presentation',
+ crumb: 'Contributing',
+ },
+ {
+ id: 'contributing/rust',
+ title: 'Contributing Rust code',
+ relativePath: 'docs/contributing/rust.mdx',
+ compId: 'articles-docs-contributing-rust',
+ crumb: 'Contributing',
+ },
+ {
+ id: 'authoring-packages',
+ title: 'Authoring a Remotion library',
+ relativePath: 'docs/creating-a-library.mdx',
+ compId: 'articles-docs-creating-a-library',
+ crumb: 'How to',
+ },
+ {
+ id: 'data-fetching',
+ title: 'Data fetching',
+ relativePath: 'docs/data-fetching.mdx',
+ compId: 'articles-docs-data-fetching',
+ crumb: 'How to',
+ },
+ {
+ id: 'dataset-render',
+ title: 'Render videos programmatically from a dataset',
+ relativePath: 'docs/dataset-render.mdx',
+ compId: 'articles-docs-dataset-render',
+ crumb: 'Tutorials',
+ },
+ {
+ id: 'delay-render',
+ title: 'delayRender() and continueRender()',
+ relativePath: 'docs/delay-render.mdx',
+ compId: 'articles-docs-delay-render',
+ crumb: 'How to',
+ },
+ {
+ id: 'docker',
+ title: 'Dockerizing a Remotion app',
+ relativePath: 'docs/docker.mdx',
+ compId: 'articles-docs-docker',
+ crumb: 'Building video apps',
+ },
+ {
+ id: 'webpack-dynamic-imports',
+ title: 'Webpack dynamic imports',
+ relativePath: 'docs/dynamic-import.mdx',
+ compId: 'articles-docs-dynamic-import',
+ crumb: 'Knowledge Base',
+ },
+ {
+ id: 'dynamic-metadata',
+ title: 'Variable duration and dimensions',
+ relativePath: 'docs/dynamic-metadata.mdx',
+ compId: 'articles-docs-dynamic-metadata',
+ crumb: 'How To',
+ },
+ {
+ id: 'easing',
+ title: 'Easing',
+ relativePath: 'docs/easing.mdx',
+ compId: 'articles-docs-easing',
+ crumb: 'API',
+ },
+ {
+ id: 'enable-scss/enable-scss',
+ title: 'enableScss()',
+ relativePath: 'docs/enable-scss/enable-scss.mdx',
+ compId: 'articles-docs-enable-scss-enable-scss',
+ crumb: '@remotion/enable-scss',
+ },
+ {
+ id: 'enable-scss/overview',
+ title: '@remotion/enable-scss',
+ relativePath: 'docs/enable-scss/overview.mdx',
+ compId: 'articles-docs-enable-scss-overview',
+ crumb: null,
+ },
+ {
+ id: 'enametoolong',
+ title: 'ENAMETOOLONG',
+ relativePath: 'docs/enametoolong.mdx',
+ compId: 'articles-docs-enametoolong',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'encoding',
+ title: 'Encoding Guide',
+ relativePath: 'docs/encoding.mdx',
+ compId: 'articles-docs-encoding',
+ crumb: 'Codecs and more',
+ },
+ {
+ id: 'env-variables',
+ title: 'Environment variables',
+ relativePath: 'docs/env-variables.mdx',
+ compId: 'articles-docs-env-variables',
+ crumb: 'How To',
+ },
+ {
+ id: 'ffmpeg',
+ title: 'Installing FFmpeg',
+ relativePath: 'docs/ffmpeg.mdx',
+ compId: 'articles-docs-ffmpeg',
+ crumb: "(you don't have to)",
+ },
+ {
+ id: 'figma',
+ title: 'Import from Figma',
+ relativePath: 'docs/figma.mdx',
+ compId: 'articles-docs-figma',
+ crumb: 'The best of both',
+ },
+ {
+ id: 'flickering',
+ title: 'Flickering',
+ relativePath: 'docs/flickering.mdx',
+ compId: 'articles-docs-flickering',
+ crumb: 'How to avoid',
+ },
+ {
+ id: 'folder',
+ title: '<Folder>',
+ relativePath: 'docs/folder.mdx',
+ compId: 'articles-docs-folder',
+ crumb: 'API',
+ },
+ {
+ id: 'font-picker',
+ title: 'Build a Google Font picker',
+ relativePath: 'docs/font-picker.mdx',
+ compId: 'articles-docs-font-picker',
+ crumb: 'Building video apps',
+ },
+ {
+ id: 'fonts-api',
+ title: '@remotion/fonts',
+ relativePath: 'docs/fonts-api/index.mdx',
+ compId: 'articles-docs-fonts-api-index',
+ crumb: null,
+ },
+ {
+ id: 'fonts-api/load-font',
+ title: 'loadFont()',
+ relativePath: 'docs/fonts-api/load-font.mdx',
+ compId: 'articles-docs-fonts-api-load-font',
+ crumb: '@remotion/fonts',
+ },
+ {
+ id: 'fonts',
+ title: 'Using fonts',
+ relativePath: 'docs/fonts.mdx',
+ compId: 'articles-docs-fonts',
+ crumb: 'Techniques',
+ },
+ {
+ id: 'freeze',
+ title: '<Freeze>',
+ relativePath: 'docs/freeze.mdx',
+ compId: 'articles-docs-freeze',
+ crumb: 'API',
+ },
+ {
+ id: 'get-audio-data',
+ title: 'getAudioData()',
+ relativePath: 'docs/get-audio-data.mdx',
+ compId: 'articles-docs-get-audio-data',
+ crumb: '@remotion/media-utils',
+ },
+ {
+ id: 'get-audio-duration-in-seconds',
+ title: 'getAudioDurationInSeconds()',
+ relativePath: 'docs/get-audio-duration-in-seconds.mdx',
+ compId: 'articles-docs-get-audio-duration-in-seconds',
+ crumb: '@remotion/media-utils',
+ },
+ {
+ id: 'get-image-dimensions',
+ title: 'getImageDimensions()',
+ relativePath: 'docs/get-image-dimensions.mdx',
+ compId: 'articles-docs-get-image-dimensions',
+ crumb: '@remotion/media-utils',
+ },
+ {
+ id: 'get-input-props',
+ title: 'getInputProps()',
+ relativePath: 'docs/get-input-props.mdx',
+ compId: 'articles-docs-get-input-props',
+ crumb: 'API',
+ },
+ {
+ id: 'get-remotion-environment',
+ title: 'getRemotionEnvironment()',
+ relativePath: 'docs/get-remotion-environment.mdx',
+ compId: 'articles-docs-get-remotion-environment',
+ crumb: 'API',
+ },
+ {
+ id: 'getstaticfiles',
+ title: 'getStaticFiles()',
+ relativePath: 'docs/get-static-files.mdx',
+ compId: 'articles-docs-get-static-files',
+ crumb: 'API',
+ },
+ {
+ id: 'get-video-metadata',
+ title: 'getVideoMetadata()',
+ relativePath: 'docs/get-video-metadata.mdx',
+ compId: 'articles-docs-get-video-metadata',
+ crumb: '@remotion/media-utils',
+ },
+ {
+ id: 'get-waveform-portion',
+ title: 'getWaveformPortion()',
+ relativePath: 'docs/get-waveform-portion.mdx',
+ compId: 'articles-docs-get-waveform-portion',
+ crumb: '@remotion/media-utils',
+ },
+ {
+ id: 'getting-started',
+ title: 'Creating a new project',
+ relativePath: 'docs/getting-started.mdx',
+ compId: 'articles-docs-getting-started',
+ crumb: "Let's begin!",
+ },
+ {
+ id: 'get-gif-duration-in-seconds',
+ title: 'getGifDurationInSeconds()',
+ relativePath: 'docs/gif/get-gif-duration-in-seconds.mdx',
+ compId: 'articles-docs-gif-get-gif-duration-in-seconds',
+ crumb: '@remotion/gif',
+ },
+ {
+ id: 'gif/gif',
+ title: '<Gif>',
+ relativePath: 'docs/gif/gif.mdx',
+ compId: 'articles-docs-gif-gif',
+ crumb: '@remotion/gif',
+ },
+ {
+ id: 'gif/index',
+ title: '@remotion/gif',
+ relativePath: 'docs/gif/index.mdx',
+ compId: 'articles-docs-gif-index',
+ crumb: null,
+ },
+ {
+ id: 'gif/preload-gif',
+ title: 'preloadGif()',
+ relativePath: 'docs/gif/preload-gif.mdx',
+ compId: 'articles-docs-gif-preload-gif',
+ crumb: '@remotion/gif',
+ },
+ {
+ id: 'google-fonts/get-available-fonts',
+ title: 'getAvailableFonts()',
+ relativePath: 'docs/google-fonts/get-available-fonts.mdx',
+ compId: 'articles-docs-google-fonts-get-available-fonts',
+ crumb: '@remotion/google-fonts',
+ },
+ {
+ id: 'google-fonts/get-info',
+ title: 'getInfo()',
+ relativePath: 'docs/google-fonts/get-info.mdx',
+ compId: 'articles-docs-google-fonts-get-info',
+ crumb: '@remotion/google-fonts',
+ },
+ {
+ id: 'google-fonts',
+ title: '@remotion/google-fonts',
+ relativePath: 'docs/google-fonts/index.mdx',
+ compId: 'articles-docs-google-fonts-index',
+ crumb: null,
+ },
+ {
+ id: 'google-fonts/load-font',
+ title: 'loadFont()',
+ relativePath: 'docs/google-fonts/load-font.mdx',
+ compId: 'articles-docs-google-fonts-load-font',
+ crumb: '@remotion/google-fonts',
+ },
+ {
+ id: 'gpu',
+ title: 'Using the GPU',
+ relativePath: 'docs/gpu.mdx',
+ compId: 'articles-docs-gpu',
+ crumb: 'Need for Speed',
+ },
+ {
+ id: 'props-resolution',
+ title: 'How props get resolved',
+ relativePath: 'docs/how-props-flow.mdx',
+ compId: 'articles-docs-how-props-flow',
+ crumb: 'Parameterized videos',
+ },
+ {
+ id: 'iframe',
+ title: '<IFrame>',
+ relativePath: 'docs/iframe.mdx',
+ compId: 'articles-docs-iframe',
+ crumb: 'API',
+ },
+ {
+ id: 'img',
+ title: '<Img>',
+ relativePath: 'docs/img.mdx',
+ compId: 'articles-docs-img',
+ crumb: 'API',
+ },
+ {
+ id: 'assets',
+ title: 'Importing assets',
+ relativePath: 'docs/importing-assets.mdx',
+ compId: 'articles-docs-importing-assets',
+ crumb: 'How To',
+ },
+ {
+ id: 'install-whisper-cpp/convert-to-captions',
+ title: 'convertToCaptions()',
+ relativePath: 'docs/install-whisper-cpp/convert-to-captions.mdx',
+ compId: 'articles-docs-install-whisper-cpp-convert-to-captions',
+ crumb: '@remotion/install-whisper-cpp',
+ },
+ {
+ id: 'install-whisper-cpp/download-whisper-model',
+ title: 'downloadWhisperModel()',
+ relativePath: 'docs/install-whisper-cpp/download-whisper-model.mdx',
+ compId: 'articles-docs-install-whisper-cpp-download-whisper-model',
+ crumb: '@remotion/install-whisper-cpp',
+ },
+ {
+ id: 'install-whisper-cpp/index',
+ title: '@remotion/install-whisper-cpp',
+ relativePath: 'docs/install-whisper-cpp/index.mdx',
+ compId: 'articles-docs-install-whisper-cpp-index',
+ crumb: 'Transcribe audio locally',
+ },
+ {
+ id: 'install-whisper-cpp/install-whisper-cpp',
+ title: 'installWhisperCpp()',
+ relativePath: 'docs/install-whisper-cpp/install-whisper-cpp.mdx',
+ compId: 'articles-docs-install-whisper-cpp-install-whisper-cpp',
+ crumb: '@remotion/install-whisper-cpp',
+ },
+ {
+ id: 'install-whisper-cpp/transcribe',
+ title: 'transcribe()',
+ relativePath: 'docs/install-whisper-cpp/transcribe.mdx',
+ compId: 'articles-docs-install-whisper-cpp-transcribe',
+ crumb: '@remotion/install-whisper-cpp',
+ },
+ {
+ id: 'interpolate-colors',
+ title: 'interpolateColors()',
+ relativePath: 'docs/interpolate-colors.mdx',
+ compId: 'articles-docs-interpolate-colors',
+ crumb: 'API',
+ },
+ {
+ id: 'interpolate',
+ title: 'interpolate()',
+ relativePath: 'docs/interpolate.mdx',
+ compId: 'articles-docs-interpolate',
+ crumb: 'API',
+ },
+ {
+ id: 'javascript',
+ title: 'Plain JavaScript',
+ relativePath: 'docs/jsx-support.mdx',
+ compId: 'articles-docs-jsx-support',
+ crumb: 'How To',
+ },
+ {
+ id: 'lambda/api',
+ title: '@remotion/lambda',
+ relativePath: 'docs/lambda/api.mdx',
+ compId: 'articles-docs-lambda-api',
+ crumb: 'Render videos without servers on AWS',
+ },
+ {
+ id: 'authentication',
+ title: 'Authentication',
+ relativePath: 'docs/lambda/authentication.mdx',
+ compId: 'articles-docs-lambda-authentication',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'autodelete',
+ title: 'Auto-delete renders',
+ relativePath: 'docs/lambda/autodelete.mdx',
+ compId: 'articles-docs-lambda-autodelete',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'lambda/bucket-naming',
+ title: 'Bucket names in Remotion Lambda',
+ relativePath: 'docs/lambda/bucket-naming.mdx',
+ compId: 'articles-docs-lambda-bucket-naming',
+ crumb: '@remotion/lambda',
+ },
+ {
+ id: 'changelog',
+ title: 'Prerelease Changelog',
+ relativePath: 'docs/lambda/changelog.mdx',
+ compId: 'articles-docs-lambda-changelog',
+ crumb: null,
+ },
+ {
+ id: 'checklist',
+ title: 'Production Checklist',
+ relativePath: 'docs/lambda/checklist.mdx',
+ compId: 'articles-docs-lambda-checklist',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/cli/compositions',
+ title: 'npx remotion lambda compositions',
+ relativePath: 'docs/lambda/cli/compositions.mdx',
+ compId: 'articles-docs-lambda-cli-compositions',
+ crumb: 'Lambda CLI Reference',
+ },
+ {
+ id: 'functions',
+ title: 'npx remotion lambda functions',
+ relativePath: 'docs/lambda/cli/functions.mdx',
+ compId: 'articles-docs-lambda-cli-functions',
+ crumb: 'Lambda CLI Reference',
+ },
+ {
+ id: 'policies',
+ title: 'npx remotion lambda policies',
+ relativePath: 'docs/lambda/cli/policies.mdx',
+ compId: 'articles-docs-lambda-cli-policies',
+ crumb: 'Lambda CLI Reference',
+ },
+ {
+ id: 'quotas',
+ title: 'npx remotion lambda quotas',
+ relativePath: 'docs/lambda/cli/quotas.mdx',
+ compId: 'articles-docs-lambda-cli-quotas',
+ crumb: 'Lambda CLI Reference',
+ },
+ {
+ id: 'regions',
+ title: 'npx remotion lambda regions',
+ relativePath: 'docs/lambda/cli/regions.mdx',
+ compId: 'articles-docs-lambda-cli-regions',
+ crumb: 'Lambda CLI Reference',
+ },
+ {
+ id: 'render',
+ title: 'npx remotion lambda render',
+ relativePath: 'docs/lambda/cli/render.mdx',
+ compId: 'articles-docs-lambda-cli-render',
+ crumb: 'Lambda CLI Reference',
+ },
+ {
+ id: 'sites',
+ title: 'npx remotion lambda sites',
+ relativePath: 'docs/lambda/cli/sites.mdx',
+ compId: 'articles-docs-lambda-cli-sites',
+ crumb: 'Lambda CLI Reference',
+ },
+ {
+ id: 'still',
+ title: 'npx remotion lambda still',
+ relativePath: 'docs/lambda/cli/still.mdx',
+ compId: 'articles-docs-lambda-cli-still',
+ crumb: 'Lambda CLI Reference',
+ },
+ {
+ id: 'cli',
+ title: '@remotion/lambda - CLI',
+ relativePath: 'docs/lambda/cli.mdx',
+ compId: 'articles-docs-lambda-cli',
+ crumb: null,
+ },
+ {
+ id: 'concurrency',
+ title: 'Concurrency',
+ relativePath: 'docs/lambda/concurrency.mdx',
+ compId: 'articles-docs-lambda-concurrency',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'optimizing-cost',
+ title: 'Optimizing for cost',
+ relativePath: 'docs/lambda/cost.mdx',
+ compId: 'articles-docs-lambda-cost',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'custom-destination',
+ title: 'Customizing Lambda output destination',
+ relativePath: 'docs/lambda/custom-destination.mdx',
+ compId: 'articles-docs-lambda-custom-destination',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/custom-layers',
+ title: 'Custom Layers',
+ relativePath: 'docs/lambda/custom-layers.mdx',
+ compId: 'articles-docs-lambda-custom-layers',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'deletefunction',
+ title: 'deleteFunction()',
+ relativePath: 'docs/lambda/deletefunction.mdx',
+ compId: 'articles-docs-lambda-deletefunction',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'deleterender',
+ title: 'deleteRender()',
+ relativePath: 'docs/lambda/deleterender.mdx',
+ compId: 'articles-docs-lambda-deleterender',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'deletesite',
+ title: 'deleteSite()',
+ relativePath: 'docs/lambda/deletesite.mdx',
+ compId: 'articles-docs-lambda-deletesite',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'deployfunction',
+ title: 'deployFunction()',
+ relativePath: 'docs/lambda/deployfunction.mdx',
+ compId: 'articles-docs-lambda-deployfunction',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'deploysite',
+ title: 'deploySite()',
+ relativePath: 'docs/lambda/deploysite.mdx',
+ compId: 'articles-docs-lambda-deploysite',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'disk-size',
+ title: 'Disk size',
+ relativePath: 'docs/lambda/disk-size.mdx',
+ compId: 'articles-docs-lambda-disk-size',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'downloadmedia',
+ title: 'downloadMedia()',
+ relativePath: 'docs/lambda/downloadmedia.mdx',
+ compId: 'articles-docs-lambda-downloadmedia',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'downloadvideo',
+ title: 'downloadVideo()',
+ relativePath: 'docs/lambda/downloadvideo.mdx',
+ compId: 'articles-docs-lambda-downloadvideo',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'estimateprice',
+ title: 'estimatePrice()',
+ relativePath: 'docs/lambda/estimateprice.mdx',
+ compId: 'articles-docs-lambda-estimateprice',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'lambda/faq',
+ title: 'FAQ',
+ relativePath: 'docs/lambda/faq.mdx',
+ compId: 'articles-docs-lambda-faq',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'feb-2022-outage',
+ title: 'February 2022 Outage',
+ relativePath: 'docs/lambda/feb-2022-outage.mdx',
+ compId: 'articles-docs-lambda-feb-2022-outage',
+ crumb: null,
+ },
+ {
+ id: 'lambda/feb-2023-incident',
+ title: 'Upgrade your Lambda functions to prevent breakage',
+ relativePath: 'docs/lambda/feb-2023-incident.mdx',
+ compId: 'articles-docs-lambda-feb-2023-incident',
+ crumb: 'DevOps advisory',
+ },
+ {
+ id: 'getawsclient',
+ title: 'getAwsClient()',
+ relativePath: 'docs/lambda/getawsclient.mdx',
+ compId: 'articles-docs-lambda-getawsclient',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'getcompositionsonlambda',
+ title: 'getCompositionsOnLambda()',
+ relativePath: 'docs/lambda/getcompositionsonlambda.mdx',
+ compId: 'articles-docs-lambda-getcompositionsonlambda',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'getfunctioninfo',
+ title: 'getFunctionInfo()',
+ relativePath: 'docs/lambda/getfunctioninfo.mdx',
+ compId: 'articles-docs-lambda-getfunctioninfo',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'getfunctions',
+ title: 'getFunctions()',
+ relativePath: 'docs/lambda/getfunctions.mdx',
+ compId: 'articles-docs-lambda-getfunctions',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'getorcreatebucket',
+ title: 'getOrCreateBucket()',
+ relativePath: 'docs/lambda/getorcreatebucket.mdx',
+ compId: 'articles-docs-lambda-getorcreatebucket',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'getregions',
+ title: 'getRegions()',
+ relativePath: 'docs/lambda/getregions.mdx',
+ compId: 'articles-docs-lambda-getregions',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'getrenderprogress',
+ title: 'getRenderProgress()',
+ relativePath: 'docs/lambda/getrenderprogress.mdx',
+ compId: 'articles-docs-lambda-getrenderprogress',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'getrolepolicy',
+ title: 'getRolePolicy()',
+ relativePath: 'docs/lambda/getrolepolicy.mdx',
+ compId: 'articles-docs-lambda-getrolepolicy',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'getsites',
+ title: 'getSites()',
+ relativePath: 'docs/lambda/getsites.mdx',
+ compId: 'articles-docs-lambda-getsites',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'getuserpolicy',
+ title: 'getUserPolicy()',
+ relativePath: 'docs/lambda/getuserpolicy.mdx',
+ compId: 'articles-docs-lambda-getuserpolicy',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'lambda/go',
+ title: 'Triggering renders from Go',
+ relativePath: 'docs/lambda/go.mdx',
+ compId: 'articles-docs-lambda-go',
+ crumb: '@remotion/lambda',
+ },
+ {
+ id: 'how-lambda-works',
+ title: 'How Remotion Lambda works',
+ relativePath: 'docs/lambda/how-lambda-works.mdx',
+ compId: 'articles-docs-lambda-how-lambda-works',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/insights',
+ title: 'Enable Lambda Insights',
+ relativePath: 'docs/lambda/insights.mdx',
+ compId: 'articles-docs-lambda-insights',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/light-client',
+ title: 'Light client',
+ relativePath: 'docs/lambda/light-client.mdx',
+ compId: 'articles-docs-lambda-light-client',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/limits',
+ title: 'Lambda Limits',
+ relativePath: 'docs/lambda/limits.mdx',
+ compId: 'articles-docs-lambda-limits',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/multiple-buckets',
+ title: 'Multiple buckets in Remotion Lambda',
+ relativePath: 'docs/lambda/multiple-buckets.mdx',
+ compId: 'articles-docs-lambda-multiple-buckets',
+ crumb: '@remotion/lambda',
+ },
+ {
+ id: 'naming-convention',
+ title: 'Function naming convention',
+ relativePath: 'docs/lambda/naming-convention.mdx',
+ compId: 'articles-docs-lambda-naming-convention',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/permissions',
+ title: 'Permissions',
+ relativePath: 'docs/lambda/permissions.mdx',
+ compId: 'articles-docs-lambda-permissions',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/php',
+ title: 'Triggering renders from PHP',
+ relativePath: 'docs/lambda/php.mdx',
+ compId: 'articles-docs-lambda-php',
+ crumb: '@remotion/lambda',
+ },
+ {
+ id: 'presignurl',
+ title: 'presignUrl()',
+ relativePath: 'docs/lambda/presignurl.mdx',
+ compId: 'articles-docs-lambda-presignurl',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'lambda/python',
+ title: 'Triggering renders from Python',
+ relativePath: 'docs/lambda/python.mdx',
+ compId: 'articles-docs-lambda-python',
+ crumb: '@remotion/lambda',
+ },
+ {
+ id: 'region-selection',
+ title: 'Region selection',
+ relativePath: 'docs/lambda/region-selection.mdx',
+ compId: 'articles-docs-lambda-region-selection',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'rendermediaonlambda',
+ title: 'renderMediaOnLambda()',
+ relativePath: 'docs/lambda/rendermediaonlambda.mdx',
+ compId: 'articles-docs-lambda-rendermediaonlambda',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'renderstillonlambda',
+ title: 'renderStillOnLambda()',
+ relativePath: 'docs/lambda/renderstillonlambda.mdx',
+ compId: 'articles-docs-lambda-renderstillonlambda',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'rendervideoonlambda',
+ title: 'renderVideoOnLambda()',
+ relativePath: 'docs/lambda/rendervideoonlambda.mdx',
+ compId: 'articles-docs-lambda-rendervideoonlambda',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'runtime',
+ title: 'Runtime',
+ relativePath: 'docs/lambda/runtime.mdx',
+ compId: 'articles-docs-lambda-runtime',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/s3-public-access',
+ title: 'Cannot create a S3 bucket using Remotion',
+ relativePath: 'docs/lambda/s3-public-access.mdx',
+ compId: 'articles-docs-lambda-s3-public-access',
+ crumb: 'DevOps advisory',
+ },
+ {
+ id: 'lambda/serverless-framework-integration',
+ title: 'Using the Serverless Framework with Remotion Lambda',
+ relativePath: 'docs/lambda/serverless-framework-integration.mdx',
+ compId: 'articles-docs-lambda-serverless-framework-integration',
+ crumb: '@remotion/lambda',
+ },
+ {
+ id: 'setup',
+ title: 'Setup',
+ relativePath: 'docs/lambda/setup.mdx',
+ compId: 'articles-docs-lambda-setup',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'simulatepermissions',
+ title: 'simulatePermissions()',
+ relativePath: 'docs/lambda/simulatepermissions.mdx',
+ compId: 'articles-docs-lambda-simulatepermissions',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'speculatefunctionname',
+ title: 'speculateFunctionName()',
+ relativePath: 'docs/lambda/speculateFunctionName.mdx',
+ compId: 'articles-docs-lambda-speculateFunctionName',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'optimizing-speed',
+ title: 'Optimizing for speed',
+ relativePath: 'docs/lambda/speed.mdx',
+ compId: 'articles-docs-lambda-speed',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/sqs',
+ title: 'Using Lambda with SQS',
+ relativePath: 'docs/lambda/sqs.mdx',
+ compId: 'articles-docs-lambda-sqs',
+ crumb: '@remotion/lambda',
+ },
+ {
+ id: 'bucket-disallows-acl',
+ title: 'The bucket does not allow ACLs',
+ relativePath: 'docs/lambda/troubleshooting/bucket-disallows-acl.mdx',
+ compId: 'articles-docs-lambda-troubleshooting-bucket-disallows-acl',
+ crumb: 'Lambda Troubleshooting',
+ },
+ {
+ id: 'debug',
+ title: 'Debugging failed Lambda renders',
+ relativePath: 'docs/lambda/troubleshooting/debug.mdx',
+ compId: 'articles-docs-lambda-troubleshooting-debug',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'permissions',
+ title: 'AWS Permissions Troubleshooting',
+ relativePath: 'docs/lambda/troubleshooting/permissions.mdx',
+ compId: 'articles-docs-lambda-troubleshooting-permissions',
+ crumb: 'Lambda Troubleshooting',
+ },
+ {
+ id: 'rate-limit',
+ title: 'AWS Rate Limit Troubleshooting',
+ relativePath: 'docs/lambda/troubleshooting/rate-limit.mdx',
+ compId: 'articles-docs-lambda-troubleshooting-rate-limit',
+ crumb: 'Lambda Troubleshooting',
+ },
+ {
+ id: 'lambda/troubleshooting/security-token',
+ title: '\'"The security token included in the request is invalid"\'',
+ relativePath: 'docs/lambda/troubleshooting/security-token.mdx',
+ compId: 'articles-docs-lambda-troubleshooting-security-token',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'unrecognizedclientexception',
+ title: 'UnrecognizedClientException',
+ relativePath: 'docs/lambda/troubleshooting/unrecognizedclientexception.mdx',
+ compId: 'articles-docs-lambda-troubleshooting-unrecognizedclientexception',
+ crumb: 'Lambda Troubleshooting',
+ },
+ {
+ id: 'uninstall',
+ title: 'Uninstall Lambda',
+ relativePath: 'docs/lambda/uninstall.mdx',
+ compId: 'articles-docs-lambda-uninstall',
+ crumb: null,
+ },
+ {
+ id: 'upgrading',
+ title: 'Upgrading Lambda',
+ relativePath: 'docs/lambda/upgrading.mdx',
+ compId: 'articles-docs-lambda-upgrading',
+ crumb: null,
+ },
+ {
+ id: 'validatewebhooksignature',
+ title: 'validateWebhookSignature()',
+ relativePath: 'docs/lambda/validatewebhooksignature.mdx',
+ compId: 'articles-docs-lambda-validatewebhooksignature',
+ crumb: 'Lambda API',
+ },
+ {
+ id: 'lambda/webhooks',
+ title: 'Webhooks',
+ relativePath: 'docs/lambda/webhooks.mdx',
+ compId: 'articles-docs-lambda-webhooks',
+ crumb: 'Lambda',
+ },
+ {
+ id: 'lambda/without-iam/ec2',
+ title: 'Authenticating Lambda with EC2',
+ relativePath: 'docs/lambda/without-iam/ec2.mdx',
+ compId: 'articles-docs-lambda-without-iam-ec2',
+ crumb: '@remotion/lambda',
+ },
+ {
+ id: 'lambda/without-iam/example',
+ title: 'Example setup without IAM user',
+ relativePath: 'docs/lambda/without-iam/example.mdx',
+ compId: 'articles-docs-lambda-without-iam-example',
+ crumb: 'IAM Roles Example',
+ },
+ {
+ id: 'lambda/without-iam/index',
+ title: 'Using Lambda with IAM roles',
+ relativePath: 'docs/lambda/without-iam/index.mdx',
+ compId: 'articles-docs-lambda-without-iam-index',
+ crumb: 'Lambda without IAM',
+ },
+ {
+ id: 'lambda',
+ title: '@remotion/lambda',
+ relativePath: 'docs/lambda.mdx',
+ compId: 'articles-docs-lambda',
+ crumb: null,
+ },
+ {
+ id: 'layers',
+ title: 'Layers',
+ relativePath: 'docs/layers.mdx',
+ compId: 'articles-docs-layers',
+ crumb: 'Designing videos',
+ },
+ {
+ id: 'layout-utils/best-practices',
+ title: 'Best practices for @remotion/layout-utils',
+ relativePath: 'docs/layout-utils/best-practices.mdx',
+ compId: 'articles-docs-layout-utils-best-practices',
+ crumb: '@remotion/layout-utils',
+ },
+ {
+ id: 'layout-utils/fill-text-box',
+ title: 'fillTextBox()',
+ relativePath: 'docs/layout-utils/fill-text-box.mdx',
+ compId: 'articles-docs-layout-utils-fill-text-box',
+ crumb: '@remotion/layout-utils',
+ },
+ {
+ id: 'layout-utils/fit-text',
+ title: 'fitText()',
+ relativePath: 'docs/layout-utils/fit-text.mdx',
+ compId: 'articles-docs-layout-utils-fit-text',
+ crumb: '@remotion/layout-utils',
+ },
+ {
+ id: 'layout-utils/index',
+ title: '@remotion/layout-utils',
+ relativePath: 'docs/layout-utils/index.mdx',
+ compId: 'articles-docs-layout-utils-index',
+ crumb: null,
+ },
+ {
+ id: 'layout-utils/measure-text',
+ title: 'measureText()',
+ relativePath: 'docs/layout-utils/measure-text.mdx',
+ compId: 'articles-docs-layout-utils-measure-text',
+ crumb: '@remotion/layout-utils',
+ },
+ {
+ id: 'legacy-babel',
+ title: 'Using legacy Babel transpilation',
+ relativePath: 'docs/legacy-babel-loader.mdx',
+ compId: 'articles-docs-legacy-babel-loader',
+ crumb: 'How To',
+ },
+ {
+ id: 'license',
+ title: 'License & Pricing',
+ relativePath: 'docs/license.mdx',
+ compId: 'articles-docs-license',
+ crumb: null,
+ },
+ {
+ id: 'loop',
+ title: '<Loop>',
+ relativePath: 'docs/loop.mdx',
+ compId: 'articles-docs-loop',
+ crumb: 'API',
+ },
+ {
+ id: 'getlottiemetadata',
+ title: 'getLottieMetadata()',
+ relativePath: 'docs/lottie/getlottiemetadata.mdx',
+ compId: 'articles-docs-lottie-getlottiemetadata',
+ crumb: '@remotion/lottie',
+ },
+ {
+ id: 'lottie-index',
+ title: '@remotion/lottie',
+ relativePath: 'docs/lottie/index.mdx',
+ compId: 'articles-docs-lottie-index',
+ crumb: null,
+ },
+ {
+ id: 'lottie-comp',
+ title: '<Lottie>',
+ relativePath: 'docs/lottie/lottie-comp.mdx',
+ compId: 'articles-docs-lottie-lottie-comp',
+ crumb: '@remotion/lottie',
+ },
+ {
+ id: 'lottie-lottiefiles',
+ title: 'Finding Lottie files to use',
+ relativePath: 'docs/lottie/lottie-lottiefiles.mdx',
+ compId: 'articles-docs-lottie-lottie-lottiefiles',
+ crumb: 'Resources',
+ },
+ {
+ id: 'lottie-remote',
+ title: 'Loading Lottie animations from a URL',
+ relativePath: 'docs/lottie/lottie-remote.mdx',
+ compId: 'articles-docs-lottie-lottie-remote',
+ crumb: '@remotion/lottie',
+ },
+ {
+ id: 'lottie-staticfile',
+ title: 'Loading Lottie animations from staticFile()',
+ relativePath: 'docs/lottie/lottie-staticfile.mdx',
+ compId: 'articles-docs-lottie-lottie-staticfile',
+ crumb: '@remotion/lottie',
+ },
+ {
+ id: 'measure-spring',
+ title: 'measureSpring()',
+ relativePath: 'docs/measure-spring.mdx',
+ compId: 'articles-docs-measure-spring',
+ crumb: 'API',
+ },
+ {
+ id: 'measuring',
+ title: 'Measuring DOM nodes',
+ relativePath: 'docs/measuring.mdx',
+ compId: 'articles-docs-measuring',
+ crumb: 'How To',
+ },
+ {
+ id: 'media-playback-error',
+ title: 'Could not play video/audio with src',
+ relativePath: 'docs/media-playback-error.mdx',
+ compId: 'articles-docs-media-playback-error',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'media-utils/index',
+ title: '@remotion/media-utils',
+ relativePath: 'docs/media-utils/index.mdx',
+ compId: 'articles-docs-media-utils-index',
+ crumb: null,
+ },
+ {
+ id: 'miscellaneous/absolute-paths',
+ title: 'Files with absolute paths',
+ relativePath: 'docs/miscellaneous/absolute-paths.mdx',
+ compId: 'articles-docs-miscellaneous-absolute-paths',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/automatic-duration',
+ title: 'Calculating the duration of a composition automatically',
+ relativePath: 'docs/miscellaneous/automatic-duration.mdx',
+ compId: 'articles-docs-miscellaneous-automatic-duration',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/changing-temp-dir',
+ title: 'Changing the temporary directory',
+ relativePath: 'docs/miscellaneous/changing-temp-dir.mdx',
+ compId: 'articles-docs-miscellaneous-changing-temp-dir',
+ crumb: 'Advanced configuration',
+ },
+ {
+ id: 'miscellaneous/chrome-headless-shell',
+ title: 'Chrome Headless Shell',
+ relativePath: 'docs/miscellaneous/chrome-headless-shell.mdx',
+ compId: 'articles-docs-miscellaneous-chrome-headless-shell',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/cloud-gpu-docker',
+ title: 'Setup EC2 for Docker with GPU',
+ relativePath: 'docs/miscellaneous/cloud-gpu-docker.mdx',
+ compId: 'articles-docs-miscellaneous-cloud-gpu-docker',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/cloud-gpu',
+ title: 'Using the GPU in the cloud',
+ relativePath: 'docs/miscellaneous/cloud-gpu.mdx',
+ compId: 'articles-docs-miscellaneous-cloud-gpu',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'embed-studio',
+ title: 'Can I embed the Remotion Studio?',
+ relativePath: 'docs/miscellaneous/embed-remotion-studio.mdx',
+ compId: 'articles-docs-miscellaneous-embed-remotion-studio',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/linux-dependencies',
+ title: 'Linux Dependencies',
+ relativePath: 'docs/miscellaneous/linux-dependencies.mdx',
+ compId: 'articles-docs-miscellaneous-linux-dependencies',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/linux-single-process',
+ title: 'Multiple cores on Linux',
+ relativePath: 'docs/miscellaneous/linux-single-process.mdx',
+ compId: 'articles-docs-miscellaneous-linux-single-process',
+ crumb: 'Server-side rendering',
+ },
+ {
+ id: 'miscellaneous/live-streaming',
+ title: 'Can Remotion be used for live streaming?',
+ relativePath: 'docs/miscellaneous/live-streaming.mdx',
+ compId: 'articles-docs-miscellaneous-live-streaming',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/render-in-browser',
+ title: 'Can I render videos in the browser?',
+ relativePath: 'docs/miscellaneous/render-in-browser.mdx',
+ compId: 'articles-docs-miscellaneous-render-in-browser',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/render-on-edge',
+ title: 'Can I render videos on the edge?',
+ relativePath: 'docs/miscellaneous/render-on-edge.mdx',
+ compId: 'articles-docs-miscellaneous-render-on-edge',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/snippets/accelerated-video',
+ title: 'Change the speed of a video over time',
+ relativePath: 'docs/miscellaneous/snippets/accelerated-video.mdx',
+ compId: 'articles-docs-miscellaneous-snippets-accelerated-video',
+ crumb: 'Snippets',
+ },
+ {
+ id: 'miscellaneous/snippets/align-duration',
+ title: 'How do I make the composition the same duration as my video?',
+ relativePath: 'docs/miscellaneous/snippets/align-duration.mdx',
+ compId: 'articles-docs-miscellaneous-snippets-align-duration',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/snippets/combine-compositions',
+ title: 'How do I combine compositions?',
+ relativePath: 'docs/miscellaneous/snippets/combine-compositions.mdx',
+ compId: 'articles-docs-miscellaneous-snippets-combine-compositions',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/snippets/fps-converter',
+ title: 'FPS converter',
+ relativePath: 'docs/miscellaneous/snippets/fps-converter.mdx',
+ compId: 'articles-docs-miscellaneous-snippets-fps-converter',
+ crumb: 'Snippets',
+ },
+ {
+ id: 'hls',
+ title: 'HLS support (HTTP Live Streaming)',
+ relativePath: 'docs/miscellaneous/snippets/hls.mdx',
+ compId: 'articles-docs-miscellaneous-snippets-hls',
+ crumb: 'Video',
+ },
+ {
+ id: 'miscellaneous/snippets/offthread-video-while-rendering',
+ title: '<OffthreadVideo /> while rendering',
+ relativePath:
+ 'docs/miscellaneous/snippets/offthread-video-while-rendering.mdx',
+ compId:
+ 'articles-docs-miscellaneous-snippets-offthread-video-while-rendering',
+ crumb: 'Snippets',
+ },
+ {
+ id: 'miscellaneous/snippets/player-in-iframe',
+ title: 'Embedding a <Player> into an <iframe>',
+ relativePath: 'docs/miscellaneous/snippets/player-in-iframe.mdx',
+ compId: 'articles-docs-miscellaneous-snippets-player-in-iframe',
+ crumb: 'Snippets',
+ },
+ {
+ id: 'miscellaneous/snippets/use-delay-render',
+ title: 'useDelayRender()',
+ relativePath: 'docs/miscellaneous/snippets/use-delay-render.mdx',
+ compId: 'articles-docs-miscellaneous-snippets-use-delay-render',
+ crumb: 'Snippets',
+ },
+ {
+ id: 'typescript-aliases',
+ title: 'TypeScript aliases',
+ relativePath: 'docs/miscellaneous/ts-aliases.mdx',
+ compId: 'articles-docs-miscellaneous-ts-aliases',
+ crumb: 'How to',
+ },
+ {
+ id: 'miscellaneous/vercel-functions',
+ title: 'Can I render videos using Vercel Serverless functions?',
+ relativePath: 'docs/miscellaneous/vercel-functions.mdx',
+ compId: 'articles-docs-miscellaneous-vercel-functions',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'miscellaneous/video-formats',
+ title: 'Which video formats does Remotion support?',
+ relativePath: 'docs/miscellaneous/video-formats.mdx',
+ compId: 'articles-docs-miscellaneous-video-formats',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'motion-blur/camera-motion-blur',
+ title: '<CameraMotionBlur>',
+ relativePath: 'docs/motion-blur/camera-motion-blur.mdx',
+ compId: 'articles-docs-motion-blur-camera-motion-blur',
+ crumb: 'Realistic camera effect',
+ },
+ {
+ id: 'motion-blur/index',
+ title: '@remotion/motion-blur',
+ relativePath: 'docs/motion-blur/index.mdx',
+ compId: 'articles-docs-motion-blur-index',
+ crumb: null,
+ },
+ {
+ id: 'motion-blur/motion-blur',
+ title: '<MotionBlur>',
+ relativePath: 'docs/motion-blur/motion-blur.mdx',
+ compId: 'articles-docs-motion-blur-motion-blur',
+ crumb: null,
+ },
+ {
+ id: 'motion-blur/trail',
+ title: '<Trail>',
+ relativePath: 'docs/motion-blur/trail.mdx',
+ compId: 'articles-docs-motion-blur-trail',
+ crumb: 'Motion blur',
+ },
+ {
+ id: 'noise/index',
+ title: '@remotion/noise',
+ relativePath: 'docs/noise/index.mdx',
+ compId: 'articles-docs-noise-index',
+ crumb: null,
+ },
+ {
+ id: 'noise/noise-2d',
+ title: 'noise2D()',
+ relativePath: 'docs/noise/noise-2d.mdx',
+ compId: 'articles-docs-noise-noise-2d',
+ crumb: 'Make some',
+ },
+ {
+ id: 'noise/noise-3d',
+ title: 'noise3D()',
+ relativePath: 'docs/noise/noise-3d.mdx',
+ compId: 'articles-docs-noise-noise-3d',
+ crumb: 'Make some',
+ },
+ {
+ id: 'noise/noise-4d',
+ title: 'noise4D()',
+ relativePath: 'docs/noise/noise-4d.mdx',
+ compId: 'articles-docs-noise-noise-4d',
+ crumb: 'Make some',
+ },
+ {
+ id: 'noise-visualization',
+ title: 'Noise visualization',
+ relativePath: 'docs/noise-visualization.mdx',
+ compId: 'articles-docs-noise-visualization',
+ crumb: 'Techniques',
+ },
+ {
+ id: 'non-seekable-media',
+ title: 'Non-seekable media',
+ relativePath: 'docs/non-seekable-media.mdx',
+ compId: 'articles-docs-non-seekable-media',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: '"null"',
+ title: '<Experimental.Null>',
+ relativePath: 'docs/null.mdx',
+ compId: 'articles-docs-null',
+ crumb: 'Experimental API',
+ },
+ {
+ id: 'offthreadvideo',
+ title: '<OffthreadVideo>',
+ relativePath: 'docs/offthreadvideo.mdx',
+ compId: 'articles-docs-offthreadvideo',
+ crumb: 'API',
+ },
+ {
+ id: 'gl-options',
+ title: '--gl flag',
+ relativePath: 'docs/open-gl.mdx',
+ compId: 'articles-docs-open-gl',
+ crumb: 'Flags',
+ },
+ {
+ id: 'overlay',
+ title: 'Creating overlays',
+ relativePath: 'docs/overlay.mdx',
+ compId: 'articles-docs-overlay',
+ crumb: null,
+ },
+ {
+ id: 'webpack',
+ title: 'Custom Webpack config',
+ relativePath: 'docs/overwriting-webpack-config.mdx',
+ compId: 'articles-docs-overwriting-webpack-config',
+ crumb: 'How To',
+ },
+ {
+ id: 'parameterized-rendering',
+ title: 'Parameterized videos',
+ relativePath: 'docs/parameterized-rendering.mdx',
+ compId: 'articles-docs-parameterized-rendering',
+ crumb: 'How To',
+ },
+ {
+ id: 'passing-props',
+ title: 'Passing props to a composition',
+ relativePath: 'docs/passing-props.mdx',
+ compId: 'articles-docs-passing-props',
+ crumb: 'How To',
+ },
+ {
+ id: 'paths/evolve-path',
+ title: 'evolvePath()',
+ relativePath: 'docs/paths/evolve-path.mdx',
+ compId: 'articles-docs-paths-evolve-path',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/extend-viewbox',
+ title: 'extendViewBox()',
+ relativePath: 'docs/paths/extend-viewbox.mdx',
+ compId: 'articles-docs-paths-extend-viewbox',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/get-bounding-box',
+ title: 'getBoundingBox()',
+ relativePath: 'docs/paths/get-bounding-box.mdx',
+ compId: 'articles-docs-paths-get-bounding-box',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/get-instruction-index-at-length',
+ title: 'getInstructionIndexAtLength()',
+ relativePath: 'docs/paths/get-instruction-index-at-length.mdx',
+ compId: 'articles-docs-paths-get-instruction-index-at-length',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/get-length',
+ title: 'getLength()',
+ relativePath: 'docs/paths/get-length.mdx',
+ compId: 'articles-docs-paths-get-length',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/get-parts',
+ title: 'getParts()',
+ relativePath: 'docs/paths/get-parts.mdx',
+ compId: 'articles-docs-paths-get-parts',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/get-point-at-length',
+ title: 'getPointAtLength()',
+ relativePath: 'docs/paths/get-point-at-length.mdx',
+ compId: 'articles-docs-paths-get-point-at-length',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/get-subpaths',
+ title: 'getSubpaths()',
+ relativePath: 'docs/paths/get-subpaths.mdx',
+ compId: 'articles-docs-paths-get-subpaths',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/get-tangent-at-length',
+ title: 'getTangentAtLength()',
+ relativePath: 'docs/paths/get-tangent-at-length.mdx',
+ compId: 'articles-docs-paths-get-tangent-at-length',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/index',
+ title: '@remotion/paths',
+ relativePath: 'docs/paths/index.mdx',
+ compId: 'articles-docs-paths-index',
+ crumb: 'SVG',
+ },
+ {
+ id: 'paths/interpolate-path',
+ title: 'interpolatePath()',
+ relativePath: 'docs/paths/interpolate-path.mdx',
+ compId: 'articles-docs-paths-interpolate-path',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/normalize-path',
+ title: 'normalizePath()',
+ relativePath: 'docs/paths/normalize-path.mdx',
+ compId: 'articles-docs-paths-normalize-path',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/parse-path',
+ title: 'parsePath()',
+ relativePath: 'docs/paths/parse-path.mdx',
+ compId: 'articles-docs-paths-parse-path',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/reduce-instructions',
+ title: 'reduceInstructions()',
+ relativePath: 'docs/paths/reduce-instructions.mdx',
+ compId: 'articles-docs-paths-reduce-instructions',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/reset-path',
+ title: 'resetPath()',
+ relativePath: 'docs/paths/reset-path.mdx',
+ compId: 'articles-docs-paths-reset-path',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/reverse-path',
+ title: 'reversePath()',
+ relativePath: 'docs/paths/reverse-path.mdx',
+ compId: 'articles-docs-paths-reverse-path',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/scale-path',
+ title: 'scalePath()',
+ relativePath: 'docs/paths/scale-path.mdx',
+ compId: 'articles-docs-paths-scale-path',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/serialize-instructions',
+ title: 'serializeInstructions()',
+ relativePath: 'docs/paths/serialize-instructions.mdx',
+ compId: 'articles-docs-paths-serialize-instructions',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/translate-path',
+ title: 'translatePath()',
+ relativePath: 'docs/paths/translate-path.mdx',
+ compId: 'articles-docs-paths-translate-path',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'paths/warp-path',
+ title: 'warpPath()',
+ relativePath: 'docs/paths/warp-path.mdx',
+ compId: 'articles-docs-paths-warp-path',
+ crumb: '@remotion/paths',
+ },
+ {
+ id: 'performance',
+ title: 'Performance Tips',
+ relativePath: 'docs/performance.mdx',
+ compId: 'articles-docs-performance',
+ crumb: 'Need for Speed',
+ },
+ {
+ id: 'player/api',
+ title: '<Player>',
+ relativePath: 'docs/player/api.mdx',
+ compId: 'articles-docs-player-api',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'autoplay',
+ title: 'Combatting autoplay issues',
+ relativePath: 'docs/player/autoplay.mdx',
+ compId: 'articles-docs-player-autoplay',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'best-practices',
+ title: 'Player - Best practices',
+ relativePath: 'docs/player/best-practices.mdx',
+ compId: 'articles-docs-player-best-practices',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'buffer-state',
+ title: 'The Player buffer state',
+ relativePath: 'docs/player/buffer-state.mdx',
+ compId: 'articles-docs-player-buffer-state',
+ crumb: 'Best practices',
+ },
+ {
+ id: 'current-time',
+ title: 'Displaying the current time',
+ relativePath: 'docs/player/current-time.mdx',
+ compId: 'articles-docs-player-current-time',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'player/index',
+ title: '@remotion/player',
+ relativePath: 'docs/player/index.mdx',
+ compId: 'articles-docs-player-index',
+ crumb: null,
+ },
+ {
+ id: 'installation',
+ title: 'Installation',
+ relativePath: 'docs/player/installation.mdx',
+ compId: 'articles-docs-player-installation',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'examples',
+ title: 'Examples for @remotion/player',
+ relativePath: 'docs/player/player-examples.mdx',
+ compId: 'articles-docs-player-player-examples',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'integration',
+ title: 'Code sharing',
+ relativePath: 'docs/player/player-integration.mdx',
+ compId: 'articles-docs-player-player-integration',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'player/preloading',
+ title: 'Preloading assets',
+ relativePath: 'docs/player/preloading.mdx',
+ compId: 'articles-docs-player-preloading',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'player/premounting',
+ title: 'Premounting',
+ relativePath: 'docs/player/premounting.mdx',
+ compId: 'articles-docs-player-premounting',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'scaling',
+ title: 'Sizing',
+ relativePath: 'docs/player/scaling.mdx',
+ compId: 'articles-docs-player-scaling',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'thumbnail',
+ title: '<Thumbnail>',
+ relativePath: 'docs/player/thumbnail.mdx',
+ compId: 'articles-docs-player-thumbnail',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'prefetch',
+ title: 'prefetch()',
+ relativePath: 'docs/prefetch.mdx',
+ compId: 'articles-docs-prefetch',
+ crumb: 'API',
+ },
+ {
+ id: 'preload-audio',
+ title: 'preloadAudio()',
+ relativePath: 'docs/preload/preload-audio.mdx',
+ compId: 'articles-docs-preload-preload-audio',
+ crumb: '@remotion/preload',
+ },
+ {
+ id: 'preload-font',
+ title: 'preloadFont()',
+ relativePath: 'docs/preload/preload-font.mdx',
+ compId: 'articles-docs-preload-preload-font',
+ crumb: '@remotion/preload',
+ },
+ {
+ id: 'preload-image',
+ title: 'preloadImage()',
+ relativePath: 'docs/preload/preload-image.mdx',
+ compId: 'articles-docs-preload-preload-image',
+ crumb: '@remotion/preload',
+ },
+ {
+ id: 'preload-video',
+ title: 'preloadVideo()',
+ relativePath: 'docs/preload/preload-video.mdx',
+ compId: 'articles-docs-preload-preload-video',
+ crumb: '@remotion/player',
+ },
+ {
+ id: 'preload',
+ title: '@remotion/preload',
+ relativePath: 'docs/preload/preload.mdx',
+ compId: 'articles-docs-preload-preload',
+ crumb: null,
+ },
+ {
+ id: 'prereleases',
+ title: 'Testing prereleases',
+ relativePath: 'docs/prereleases.mdx',
+ compId: 'articles-docs-prereleases',
+ crumb: 'Only the brave',
+ },
+ {
+ id: 'presigned-urls',
+ title: 'Upload with a presigned URL',
+ relativePath: 'docs/presigned-urls.mdx',
+ compId: 'articles-docs-presigned-urls',
+ crumb: 'Building video apps',
+ },
+ {
+ id: 'preview',
+ title: 'Preview your video',
+ relativePath: 'docs/preview.mdx',
+ compId: 'articles-docs-preview',
+ crumb: 'Timeline basics',
+ },
+ {
+ id: 'quality',
+ title: 'Quality Guide',
+ relativePath: 'docs/quality.mdx',
+ compId: 'articles-docs-quality',
+ crumb: 'Make it look good',
+ },
+ {
+ id: 'random',
+ title: 'random()',
+ relativePath: 'docs/random.mdx',
+ compId: 'articles-docs-random',
+ crumb: 'API',
+ },
+ {
+ id: 'react-18',
+ title: 'Upgrade to React 18',
+ relativePath: 'docs/react-18.mdx',
+ compId: 'articles-docs-react-18',
+ crumb: 'The new and shiny',
+ },
+ {
+ id: 'react-native',
+ title: 'React Native',
+ relativePath: 'docs/react-native.mdx',
+ compId: 'articles-docs-react-native',
+ crumb: null,
+ },
+ {
+ id: 'recorder/before-you-buy',
+ title: 'Before you buy',
+ relativePath: 'docs/recorder/before-you-buy.mdx',
+ compId: 'articles-docs-recorder-before-you-buy',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/buy',
+ title: 'Buy',
+ relativePath: 'docs/recorder/buy.mdx',
+ compId: 'articles-docs-recorder-buy',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/captions',
+ title: 'Generate captions',
+ relativePath: 'docs/recorder/captions.mdx',
+ compId: 'articles-docs-recorder-captions',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/create',
+ title: 'Create a new video',
+ relativePath: 'docs/recorder/create.mdx',
+ compId: 'articles-docs-recorder-create',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/b-roll',
+ title: 'B-Roll',
+ relativePath: 'docs/recorder/editing/b-roll.mdx',
+ compId: 'articles-docs-recorder-editing-b-roll',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/captions',
+ title: 'Edit captions',
+ relativePath: 'docs/recorder/editing/captions.mdx',
+ compId: 'articles-docs-recorder-editing-captions',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/chapters',
+ title: 'Chapters',
+ relativePath: 'docs/recorder/editing/chapters.mdx',
+ compId: 'articles-docs-recorder-editing-chapters',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/cutting-clips',
+ title: 'Cutting clips',
+ relativePath: 'docs/recorder/editing/cutting-clips.mdx',
+ compId: 'articles-docs-recorder-editing-cutting-clips',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/editing',
+ title: 'Start editing',
+ relativePath: 'docs/recorder/editing/editing.mdx',
+ compId: 'articles-docs-recorder-editing-editing',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/endcard',
+ title: 'Endcard',
+ relativePath: 'docs/recorder/editing/endcard.mdx',
+ compId: 'articles-docs-recorder-editing-endcard',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/layout',
+ title: 'Layout',
+ relativePath: 'docs/recorder/editing/layout.mdx',
+ compId: 'articles-docs-recorder-editing-layout',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/music',
+ title: 'Adding music',
+ relativePath: 'docs/recorder/editing/music.mdx',
+ compId: 'articles-docs-recorder-editing-music',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/normalizing-audio',
+ title: 'Normalizing audio levels',
+ relativePath: 'docs/recorder/editing/normalizing-audio.mdx',
+ compId: 'articles-docs-recorder-editing-normalizing-audio',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/scenes',
+ title: 'Scenes',
+ relativePath: 'docs/recorder/editing/scenes.mdx',
+ compId: 'articles-docs-recorder-editing-scenes',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/silence-removal',
+ title: 'Silence removal',
+ relativePath: 'docs/recorder/editing/silence-removal.mdx',
+ compId: 'articles-docs-recorder-editing-silence-removal',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/editing/transitions',
+ title: 'Transitions',
+ relativePath: 'docs/recorder/editing/transitions.mdx',
+ compId: 'articles-docs-recorder-editing-transitions',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/exporting-subtitles',
+ title: 'Exporting subtitles',
+ relativePath: 'docs/recorder/exporting-subtitles.mdx',
+ compId: 'articles-docs-recorder-exporting-subtitles',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/exporting',
+ title: 'Exporting a video',
+ relativePath: 'docs/recorder/exporting.mdx',
+ compId: 'articles-docs-recorder-exporting',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/external-recordings',
+ title: 'External recordings',
+ relativePath: 'docs/recorder/external-recordings.mdx',
+ compId: 'articles-docs-recorder-external-recordings',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/gear',
+ title: 'Our Gear',
+ relativePath: 'docs/recorder/gear.mdx',
+ compId: 'articles-docs-recorder-gear',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/index',
+ title: 'Remotion Recorder',
+ relativePath: 'docs/recorder/index.mdx',
+ compId: 'articles-docs-recorder-index',
+ crumb: 'Templates',
+ },
+ {
+ id: 'recorder/lambda-rendering',
+ title: 'Render on Lambda',
+ relativePath: 'docs/recorder/lambda-rendering.mdx',
+ compId: 'articles-docs-recorder-lambda-rendering',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/our-recorder',
+ title: 'Our Recorder',
+ relativePath: 'docs/recorder/our-recorder.mdx',
+ compId: 'articles-docs-recorder-our-recorder',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/record/cropping',
+ title: 'Cropping sources',
+ relativePath: 'docs/recorder/record/cropping.mdx',
+ compId: 'articles-docs-recorder-record-cropping',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/record/delete',
+ title: 'Delete a recording',
+ relativePath: 'docs/recorder/record/delete.mdx',
+ compId: 'articles-docs-recorder-record-delete',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/record/index',
+ title: 'Record using the interface',
+ relativePath: 'docs/recorder/record/index.mdx',
+ compId: 'articles-docs-recorder-record-index',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/record/manually',
+ title: 'Manually add recordings',
+ relativePath: 'docs/recorder/record/manually.mdx',
+ compId: 'articles-docs-recorder-record-manually',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/roadmap',
+ title: 'Roadmap',
+ relativePath: 'docs/recorder/roadmap.mdx',
+ compId: 'articles-docs-recorder-roadmap',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/setup',
+ title: 'Setup',
+ relativePath: 'docs/recorder/setup.mdx',
+ compId: 'articles-docs-recorder-setup',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/source-control',
+ title: 'Source Control',
+ relativePath: 'docs/recorder/source-control.mdx',
+ compId: 'articles-docs-recorder-source-control',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/support',
+ title: 'Get Help',
+ relativePath: 'docs/recorder/support.mdx',
+ compId: 'articles-docs-recorder-support',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/troubleshooting/cannot-read-properties-of-undefined',
+ title: "Cannot read properties of undefined (reading 'decode')",
+ relativePath:
+ 'docs/recorder/troubleshooting/cannot-read-properties-of-undefined.mdx',
+ compId:
+ 'articles-docs-recorder-troubleshooting-cannot-read-properties-of-undefined',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/troubleshooting/failed-to-execute-get-video-metadata',
+ title: 'Failed to execute getVideoMetadata()',
+ relativePath:
+ 'docs/recorder/troubleshooting/failed-to-execute-get-video-metadata.mdx',
+ compId:
+ 'articles-docs-recorder-troubleshooting-failed-to-execute-get-video-metadata',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'recorder/upgrading',
+ title: 'Upgrading',
+ relativePath: 'docs/recorder/upgrading.mdx',
+ compId: 'articles-docs-recorder-upgrading',
+ crumb: 'Recorder',
+ },
+ {
+ id: 'register-root',
+ title: 'registerRoot()',
+ relativePath: 'docs/register-root.mdx',
+ compId: 'articles-docs-register-root',
+ crumb: 'API',
+ },
+ {
+ id: 'remotion',
+ title: 'remotion',
+ relativePath: 'docs/remotion.mdx',
+ compId: 'articles-docs-remotion',
+ crumb: 'Core API Reference',
+ },
+ {
+ id: 'render-all',
+ title: 'Render all compositions',
+ relativePath: 'docs/render-all.mdx',
+ compId: 'articles-docs-render-all',
+ crumb: 'Techniques',
+ },
+ {
+ id: 'render-as-gif',
+ title: 'Rendering GIFs',
+ relativePath: 'docs/render-as-gif.mdx',
+ compId: 'articles-docs-render-as-gif',
+ crumb: 'Techniques',
+ },
+ {
+ id: 'render',
+ title: 'Render your video',
+ relativePath: 'docs/render.mdx',
+ compId: 'articles-docs-render',
+ crumb: 'How To',
+ },
+ {
+ id: 'ensure-browser',
+ title: 'ensureBrowser()',
+ relativePath: 'docs/renderer/ensure-browser.mdx',
+ compId: 'articles-docs-renderer-ensure-browser',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'ensure-ffmpeg',
+ title: 'ensureFfmpeg()',
+ relativePath: 'docs/renderer/ensure-ffmpeg.mdx',
+ compId: 'articles-docs-renderer-ensure-ffmpeg',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'ensure-ffprobe',
+ title: 'ensureFfprobe()',
+ relativePath: 'docs/renderer/ensure-ffprobe.mdx',
+ compId: 'articles-docs-renderer-ensure-ffprobe',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'extract-audio',
+ title: 'extractAudio()',
+ relativePath: 'docs/renderer/extract-audio.mdx',
+ compId: 'articles-docs-renderer-extract-audio',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'get-can-extract-frames-fast',
+ title: 'getCanExtractFramesFast()',
+ relativePath: 'docs/renderer/get-can-extract-frames-fast.mdx',
+ compId: 'articles-docs-renderer-get-can-extract-frames-fast',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'get-compositions',
+ title: 'getCompositions()',
+ relativePath: 'docs/renderer/get-compositions.mdx',
+ compId: 'articles-docs-renderer-get-compositions',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'get-silent-parts',
+ title: 'getSilentParts()',
+ relativePath: 'docs/renderer/get-silent-parts.mdx',
+ compId: 'articles-docs-renderer-get-silent-parts',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'get-video-metadata',
+ title: 'getVideoMetadata()',
+ relativePath: 'docs/renderer/get-video-metadata.mdx',
+ compId: 'articles-docs-renderer-get-video-metadata',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'make-cancel-signal',
+ title: 'makeCancelSignal()',
+ relativePath: 'docs/renderer/make-cancel-signal.mdx',
+ compId: 'articles-docs-renderer-make-cancel-signal',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'open-browser',
+ title: 'openBrowser()',
+ relativePath: 'docs/renderer/open-browser.mdx',
+ compId: 'articles-docs-renderer-open-browser',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'render-frames',
+ title: 'renderFrames()',
+ relativePath: 'docs/renderer/render-frames.mdx',
+ compId: 'articles-docs-renderer-render-frames',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'render-media',
+ title: 'renderMedia()',
+ relativePath: 'docs/renderer/render-media.mdx',
+ compId: 'articles-docs-renderer-render-media',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'render-still',
+ title: 'renderStill()',
+ relativePath: 'docs/renderer/render-still.mdx',
+ compId: 'articles-docs-renderer-render-still',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'select-composition',
+ title: 'selectComposition()',
+ relativePath: 'docs/renderer/select-composition.mdx',
+ compId: 'articles-docs-renderer-select-composition',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'stitch-frames-to-video',
+ title: 'stitchFramesToVideo()',
+ relativePath: 'docs/renderer/stitch-frames-to-video.mdx',
+ compId: 'articles-docs-renderer-stitch-frames-to-video',
+ crumb: '@remotion/renderer',
+ },
+ {
+ id: 'renderer',
+ title: '@remotion/renderer',
+ relativePath: 'docs/renderer.mdx',
+ compId: 'articles-docs-renderer',
+ crumb: null,
+ },
+ {
+ id: 'resources',
+ title: 'List of resources',
+ relativePath: 'docs/resources.mdx',
+ compId: 'articles-docs-resources',
+ crumb: 'Ecosystem',
+ },
+ {
+ id: 'rive/index',
+ title: '@remotion/rive',
+ relativePath: 'docs/rive/index.mdx',
+ compId: 'articles-docs-rive-index',
+ crumb: 'Integrations',
+ },
+ {
+ id: 'rive/remotionrivecanvas',
+ title: '<RemotionRiveCanvas>',
+ relativePath: 'docs/rive/remotionrivecanvas.mdx',
+ compId: 'articles-docs-rive-remotionrivecanvas',
+ crumb: '@remotion/rive',
+ },
+ {
+ id: 'scaling',
+ title: 'Output scaling',
+ relativePath: 'docs/scaling.mdx',
+ compId: 'articles-docs-scaling',
+ crumb: 'How To',
+ },
+ {
+ id: 'schemas',
+ title: 'Defining a schema for your props',
+ relativePath: 'docs/schemas.mdx',
+ compId: 'articles-docs-schemas',
+ crumb: 'How To',
+ },
+ {
+ id: 'security',
+ title: 'Security Best Practices',
+ relativePath: 'docs/security.mdx',
+ compId: 'articles-docs-security',
+ crumb: 'FAQ',
+ },
+ {
+ id: 'sequence',
+ title: '<Sequence>',
+ relativePath: 'docs/sequence.mdx',
+ compId: 'articles-docs-sequence',
+ crumb: 'API',
+ },
+ {
+ id: 'reusability',
+ title: 'Making components reusable',
+ relativePath: 'docs/sequences.mdx',
+ compId: 'articles-docs-sequences',
+ crumb: 'The power of React',
+ },
+ {
+ id: 'series',
+ title: '<Series>',
+ relativePath: 'docs/series.mdx',
+ compId: 'articles-docs-series',
+ crumb: 'API',
+ },
+ {
+ id: 'shapes/circle',
+ title: '<Circle />',
+ relativePath: 'docs/shapes/circle.mdx',
+ compId: 'articles-docs-shapes-circle',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/ellipse',
+ title: '<Ellipse />',
+ relativePath: 'docs/shapes/ellipse.mdx',
+ compId: 'articles-docs-shapes-ellipse',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/index',
+ title: '@remotion/shapes',
+ relativePath: 'docs/shapes/index.mdx',
+ compId: 'articles-docs-shapes-index',
+ crumb: 'SVG component library',
+ },
+ {
+ id: 'shapes/make-circle',
+ title: 'makeCircle()',
+ relativePath: 'docs/shapes/make-circle.mdx',
+ compId: 'articles-docs-shapes-make-circle',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/make-ellipse',
+ title: 'makeEllipse()',
+ relativePath: 'docs/shapes/make-ellipse.mdx',
+ compId: 'articles-docs-shapes-make-ellipse',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/make-pie',
+ title: 'makePie()',
+ relativePath: 'docs/shapes/make-pie.mdx',
+ compId: 'articles-docs-shapes-make-pie',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/make-polygon',
+ title: 'makePolygon()',
+ relativePath: 'docs/shapes/make-polygon.mdx',
+ compId: 'articles-docs-shapes-make-polygon',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/make-rect',
+ title: 'makeRect()',
+ relativePath: 'docs/shapes/make-rect.mdx',
+ compId: 'articles-docs-shapes-make-rect',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/make-star',
+ title: 'makeStar()',
+ relativePath: 'docs/shapes/make-star.mdx',
+ compId: 'articles-docs-shapes-make-star',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/make-triangle',
+ title: 'makeTriangle()',
+ relativePath: 'docs/shapes/make-triangle.mdx',
+ compId: 'articles-docs-shapes-make-triangle',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/pie',
+ title: '<Pie />',
+ relativePath: 'docs/shapes/pie.mdx',
+ compId: 'articles-docs-shapes-pie',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/polygon',
+ title: '<Polygon />',
+ relativePath: 'docs/shapes/polygon.mdx',
+ compId: 'articles-docs-shapes-polygon',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/rect',
+ title: '<Rect />',
+ relativePath: 'docs/shapes/rect.mdx',
+ compId: 'articles-docs-shapes-rect',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/star',
+ title: '<Star />',
+ relativePath: 'docs/shapes/star.mdx',
+ compId: 'articles-docs-shapes-star',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'shapes/triangle',
+ title: '<Triangle />',
+ relativePath: 'docs/shapes/triangle.mdx',
+ compId: 'articles-docs-shapes-triangle',
+ crumb: '@remotion/shapes',
+ },
+ {
+ id: 'skia/enable-skia',
+ title: 'enableSkia()',
+ relativePath: 'docs/skia/enable-skia.mdx',
+ compId: 'articles-docs-skia-enable-skia',
+ crumb: '@remotion/skia',
+ },
+ {
+ id: 'skia/skia-canvas',
+ title: '<SkiaCanvas />',
+ relativePath: 'docs/skia/skia-canvas.mdx',
+ compId: 'articles-docs-skia-skia-canvas',
+ crumb: '@remotion/skia',
+ },
+ {
+ id: 'skia',
+ title: '@remotion/skia',
+ relativePath: 'docs/skia/skia.mdx',
+ compId: 'articles-docs-skia-skia',
+ crumb: null,
+ },
+ {
+ id: 'slow-method-to-extract-frame',
+ title: 'Slow method to extract frame',
+ relativePath: 'docs/slow-method-to-extract-frame.mdx',
+ compId: 'articles-docs-slow-method-to-extract-frame',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'spline',
+ title: 'Import from Spline',
+ relativePath: 'docs/spline.mdx',
+ compId: 'articles-docs-spline',
+ crumb: 'Integrations',
+ },
+ {
+ id: 'spring',
+ title: 'spring()',
+ relativePath: 'docs/spring.mdx',
+ compId: 'articles-docs-spring',
+ crumb: 'API',
+ },
+ {
+ id: 'ssr-legacy',
+ title: 'Server-Side Rendering (v1 and v2)',
+ relativePath: 'docs/ssr-legacy.mdx',
+ compId: 'articles-docs-ssr-legacy',
+ crumb: 'Legacy docs',
+ },
+ {
+ id: 'ssr-node',
+ title: 'Rendering using SSR APIs',
+ relativePath: 'docs/ssr-node.mdx',
+ compId: 'articles-docs-ssr-node',
+ crumb: 'Server-side rendering',
+ },
+ {
+ id: 'ssr',
+ title: 'Server-Side Rendering',
+ relativePath: 'docs/ssr.mdx',
+ compId: 'articles-docs-ssr',
+ crumb: 'The power of',
+ },
+ {
+ id: 'standalone',
+ title: 'Useful functions outside of Remotion',
+ relativePath: 'docs/standalone.mdx',
+ compId: 'articles-docs-standalone',
+ crumb: null,
+ },
+ {
+ id: 'staticfile-relative-paths',
+ title: 'staticFile() does not support relative paths',
+ relativePath: 'docs/static-file-relative-paths.mdx',
+ compId: 'articles-docs-static-file-relative-paths',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'staticfile-remote-urls',
+ title: 'staticFile() does not support remote URLs',
+ relativePath: 'docs/static-file-remote-urls.mdx',
+ compId: 'articles-docs-static-file-remote-urls',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'staticfile',
+ title: 'staticFile()',
+ relativePath: 'docs/staticfile.mdx',
+ compId: 'articles-docs-staticfile',
+ crumb: 'API',
+ },
+ {
+ id: 'still',
+ title: '<Still>',
+ relativePath: 'docs/still.mdx',
+ compId: 'articles-docs-still',
+ crumb: 'API',
+ },
+ {
+ id: 'stills',
+ title: 'Still images',
+ relativePath: 'docs/stills.mdx',
+ compId: 'articles-docs-stills',
+ crumb: 'How to generate',
+ },
+ {
+ id: 'studio/api',
+ title: '@remotion/studio',
+ relativePath: 'docs/studio/api.mdx',
+ compId: 'articles-docs-studio-api',
+ crumb: null,
+ },
+ {
+ id: 'studio/delete-static-file',
+ title: 'deleteStaticFile()',
+ relativePath: 'docs/studio/delete-static-file.mdx',
+ compId: 'articles-docs-studio-delete-static-file',
+ crumb: '@remotion/studio',
+ },
+ {
+ id: 'studio/deploy-server',
+ title: 'Deploy the Remotion Studio on a VPS',
+ relativePath: 'docs/studio/deploy-server.mdx',
+ compId: 'articles-docs-studio-deploy-server',
+ crumb: 'Remotion Studio',
+ },
+ {
+ id: 'studio/deploy-static',
+ title: 'Deploy Remotion Studio as static site',
+ relativePath: 'docs/studio/deploy-static.mdx',
+ compId: 'articles-docs-studio-deploy-static',
+ crumb: 'Remotion Studio',
+ },
+ {
+ id: 'studio/focus-default-props-path',
+ title: 'focusDefaultPropsPath()',
+ relativePath: 'docs/studio/focus-default-props-path.mdx',
+ compId: 'articles-docs-studio-focus-default-props-path',
+ crumb: '@remotion/studio',
+ },
+ {
+ id: 'studio/get-static-files',
+ title: 'getStaticFiles()',
+ relativePath: 'docs/studio/get-static-files.mdx',
+ compId: 'articles-docs-studio-get-static-files',
+ crumb: '@remotion/studio',
+ },
+ {
+ id: 'studio/quick-switcher',
+ title: 'Quick Switcher',
+ relativePath: 'docs/studio/quick-switcher.mdx',
+ compId: 'articles-docs-studio-quick-switcher',
+ crumb: 'Remotion Studio',
+ },
+ {
+ id: 'studio/reevaluate-composition',
+ title: 'reevaluateComposition()',
+ relativePath: 'docs/studio/reevaluate-composition.mdx',
+ compId: 'articles-docs-studio-reevaluate-composition',
+ crumb: '@remotion/studio',
+ },
+ {
+ id: 'studio/restart-studio',
+ title: 'restartStudio()',
+ relativePath: 'docs/studio/restart-studio.mdx',
+ compId: 'articles-docs-studio-restart-studio',
+ crumb: '@remotion/studio',
+ },
+ {
+ id: 'studio/save-default-props',
+ title: 'saveDefaultProps()',
+ relativePath: 'docs/studio/save-default-props.mdx',
+ compId: 'articles-docs-studio-save-default-props',
+ crumb: '@remotion/studio',
+ },
+ {
+ id: 'studio/shortcuts',
+ title: 'Keyboard navigation',
+ relativePath: 'docs/studio/shortcuts.mdx',
+ compId: 'articles-docs-studio-shortcuts',
+ crumb: 'Remotion Studio',
+ },
+ {
+ id: 'studio/studio',
+ title: 'Starting the Studio',
+ relativePath: 'docs/studio/studio.mdx',
+ compId: 'articles-docs-studio-studio',
+ crumb: 'Timeline basics',
+ },
+ {
+ id: 'studio/update-default-props',
+ title: 'updateDefaultProps()',
+ relativePath: 'docs/studio/update-default-props.mdx',
+ compId: 'articles-docs-studio-update-default-props',
+ crumb: '@remotion/studio',
+ },
+ {
+ id: 'studio/watch-public-folder',
+ title: 'watchPublicFolder()',
+ relativePath: 'docs/studio/watch-public-folder.mdx',
+ compId: 'articles-docs-studio-watch-public-folder',
+ crumb: '@remotion/studio',
+ },
+ {
+ id: 'studio/watch-static-file',
+ title: 'watchStaticFile()',
+ relativePath: 'docs/studio/watch-static-file.mdx',
+ compId: 'articles-docs-studio-watch-static-file',
+ crumb: '@remotion/studio',
+ },
+ {
+ id: 'studio/write-static-file',
+ title: 'writeStaticFile()',
+ relativePath: 'docs/studio/write-static-file.mdx',
+ compId: 'articles-docs-studio-write-static-file',
+ crumb: '@remotion/studio',
+ },
+ {
+ id: 'support',
+ title: 'Support Policy',
+ relativePath: 'docs/support.mdx',
+ compId: 'articles-docs-support',
+ crumb: 'Let us help you',
+ },
+ {
+ id: 'tailwind/enable-tailwind',
+ title: 'enableTailwind()',
+ relativePath: 'docs/tailwind/enable-tailwind.mdx',
+ compId: 'articles-docs-tailwind-enable-tailwind',
+ crumb: '@remotion/tailwind',
+ },
+ {
+ id: 'tailwind',
+ title: '@remotion/tailwind',
+ relativePath: 'docs/tailwind/overview.mdx',
+ compId: 'articles-docs-tailwind-overview',
+ crumb: null,
+ },
+ {
+ id: 'tailwind-legacy',
+ title: 'TailwindCSS v2 (Legacy)',
+ relativePath: 'docs/tailwind-2.mdx',
+ compId: 'articles-docs-tailwind-2',
+ crumb: 'Legacy docs',
+ },
+ {
+ id: 'tailwind',
+ title: 'TailwindCSS',
+ relativePath: 'docs/tailwind.mdx',
+ compId: 'articles-docs-tailwind',
+ crumb: 'text-lg font-bold',
+ },
+ {
+ id: 'target-closed',
+ title: "'Target closed' error message",
+ relativePath: 'docs/target-closed.mdx',
+ compId: 'articles-docs-target-closed',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'terminology/bundle',
+ title: 'Remotion Bundle',
+ relativePath: 'docs/terminology/bundle.mdx',
+ compId: 'articles-docs-terminology-bundle',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/cloud-run-url',
+ title: 'Cloud Run URL',
+ relativePath: 'docs/terminology/cloud-run-url.mdx',
+ compId: 'articles-docs-terminology-cloud-run-url',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/composition',
+ title: 'Composition',
+ relativePath: 'docs/terminology/composition.mdx',
+ compId: 'articles-docs-terminology-composition',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/concurrency',
+ title: 'Concurrency',
+ relativePath: 'docs/terminology/concurrency.mdx',
+ compId: 'articles-docs-terminology-concurrency',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/entry-point',
+ title: 'Entry point',
+ relativePath: 'docs/terminology/entry-point.mdx',
+ compId: 'articles-docs-terminology-entry-point',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/input-props',
+ title: 'Input Props',
+ relativePath: 'docs/terminology/input-props.mdx',
+ compId: 'articles-docs-terminology-input-props',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/player',
+ title: 'Remotion Player',
+ relativePath: 'docs/terminology/player.mdx',
+ compId: 'articles-docs-terminology-player',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/public-dir',
+ title: 'Public directory',
+ relativePath: 'docs/terminology/public-dir.mdx',
+ compId: 'articles-docs-terminology-public-dir',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/remotion-root',
+ title: 'Remotion Root',
+ relativePath: 'docs/terminology/remotion-root.mdx',
+ compId: 'articles-docs-terminology-remotion-root',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/root-file',
+ title: 'Root file',
+ relativePath: 'docs/terminology/root-file.mdx',
+ compId: 'articles-docs-terminology-root-file',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/sequence',
+ title: 'Sequence',
+ relativePath: 'docs/terminology/sequence.mdx',
+ compId: 'articles-docs-terminology-sequence',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/serve-url',
+ title: 'Serve URL',
+ relativePath: 'docs/terminology/serve-url.mdx',
+ compId: 'articles-docs-terminology-serve-url',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/service-name',
+ title: 'Service Name',
+ relativePath: 'docs/terminology/service-name.mdx',
+ compId: 'articles-docs-terminology-service-name',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology/studio',
+ title: 'Remotion Studio',
+ relativePath: 'docs/terminology/studio.mdx',
+ compId: 'articles-docs-terminology-studio',
+ crumb: 'Terminology',
+ },
+ {
+ id: 'terminology',
+ title: 'Terminology',
+ relativePath: 'docs/terminology.mdx',
+ compId: 'articles-docs-terminology',
+ crumb: 'The Remotion dictionary',
+ },
+ {
+ id: 'the-fundamentals',
+ title: 'The fundamentals',
+ relativePath: 'docs/the-fundamentals.mdx',
+ compId: 'articles-docs-the-fundamentals',
+ crumb: 'Getting started',
+ },
+ {
+ id: 'third-party',
+ title: 'Third party integrations',
+ relativePath: 'docs/third-party.mdx',
+ compId: 'articles-docs-third-party',
+ crumb: 'Integrations',
+ },
+ {
+ id: 'three-canvas',
+ title: '<ThreeCanvas>',
+ relativePath: 'docs/three-canvas.mdx',
+ compId: 'articles-docs-three-canvas',
+ crumb: '@remotion/three',
+ },
+ {
+ id: 'three',
+ title: '@remotion/three',
+ relativePath: 'docs/three.mdx',
+ compId: 'articles-docs-three',
+ crumb: null,
+ },
+ {
+ id: 'timeout',
+ title: 'Debugging timeouts',
+ relativePath: 'docs/timeout.mdx',
+ compId: 'articles-docs-timeout',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'transforms',
+ title: 'Transforms',
+ relativePath: 'docs/transforms.mdx',
+ compId: 'articles-docs-transforms',
+ crumb: 'The fundamentals',
+ },
+ {
+ id: 'transitions/audio-transitions',
+ title: 'Transitioning with audio',
+ relativePath: 'docs/transitions/audio-transitions.mdx',
+ compId: 'articles-docs-transitions-audio-transitions',
+ crumb: '@remotion/transitions',
+ },
+ {
+ id: 'transitions/index',
+ title: '@remotion/transitions',
+ relativePath: 'docs/transitions/index.mdx',
+ compId: 'articles-docs-transitions-index',
+ crumb: null,
+ },
+ {
+ id: 'transitions/presentations/clock-wipe',
+ title: 'clockWipe()',
+ relativePath: 'docs/transitions/presentations/clock-wipe.mdx',
+ compId: 'articles-docs-transitions-presentations-clock-wipe',
+ crumb: '@remotion/transitions - Presentations',
+ },
+ {
+ id: 'transitions/presentations/cube',
+ title: 'cube()',
+ relativePath: 'docs/transitions/presentations/cube.mdx',
+ compId: 'articles-docs-transitions-presentations-cube',
+ crumb: '@remotion/transitions - Presentations',
+ },
+ {
+ id: 'transitions/presentations/custom',
+ title: 'Custom presentations',
+ relativePath: 'docs/transitions/presentations/custom.mdx',
+ compId: 'articles-docs-transitions-presentations-custom',
+ crumb: '@remotion/transitions',
+ },
+ {
+ id: 'transitions/presentations/fade',
+ title: 'fade()',
+ relativePath: 'docs/transitions/presentations/fade.mdx',
+ compId: 'articles-docs-transitions-presentations-fade',
+ crumb: '@remotion/transitions - Presentations',
+ },
+ {
+ id: 'transitions/presentations/flip',
+ title: 'flip()',
+ relativePath: 'docs/transitions/presentations/flip.mdx',
+ compId: 'articles-docs-transitions-presentations-flip',
+ crumb: '@remotion/transitions - Presentations',
+ },
+ {
+ id: 'transitions/presentations/index',
+ title: 'Presentations',
+ relativePath: 'docs/transitions/presentations/index.mdx',
+ compId: 'articles-docs-transitions-presentations-index',
+ crumb: '@remotion/transitions',
+ },
+ {
+ id: 'transitions/presentations/none',
+ title: 'none()',
+ relativePath: 'docs/transitions/presentations/none.mdx',
+ compId: 'articles-docs-transitions-presentations-none',
+ crumb: '@remotion/transitions - Presentations',
+ },
+ {
+ id: 'transitions/presentations/slide',
+ title: 'slide()',
+ relativePath: 'docs/transitions/presentations/slide.mdx',
+ compId: 'articles-docs-transitions-presentations-slide',
+ crumb: '@remotion/transitions - Presentations',
+ },
+ {
+ id: 'transitions/presentations/wipe',
+ title: 'wipe()',
+ relativePath: 'docs/transitions/presentations/wipe.mdx',
+ compId: 'articles-docs-transitions-presentations-wipe',
+ crumb: '@remotion/transitions - Presentations',
+ },
+ {
+ id: 'transitions/timings/custom',
+ title: 'Custom timings',
+ relativePath: 'docs/transitions/timings/custom.mdx',
+ compId: 'articles-docs-transitions-timings-custom',
+ crumb: '@remotion/transitions',
+ },
+ {
+ id: 'transitions/timings/index',
+ title: 'Timings',
+ relativePath: 'docs/transitions/timings/index.mdx',
+ compId: 'articles-docs-transitions-timings-index',
+ crumb: '@remotion/transitions',
+ },
+ {
+ id: 'transitions/timings/lineartiming',
+ title: 'linearTiming()',
+ relativePath: 'docs/transitions/timings/lineartiming.mdx',
+ compId: 'articles-docs-transitions-timings-lineartiming',
+ crumb: '@remotion/transitions - Timings',
+ },
+ {
+ id: 'transitions/timings/springtiming',
+ title: 'springTiming()',
+ relativePath: 'docs/transitions/timings/springtiming.mdx',
+ compId: 'articles-docs-transitions-timings-springtiming',
+ crumb: '@remotion/transitions - Timings',
+ },
+ {
+ id: 'transitions/transitionseries',
+ title: '<TransitionSeries>',
+ relativePath: 'docs/transitions/transitionseries.mdx',
+ compId: 'articles-docs-transitions-transitionseries',
+ crumb: '@remotion/transitions',
+ },
+ {
+ id: 'transitions/use-transition-progress',
+ title: 'useTransitionProgress()',
+ relativePath: 'docs/transitions/use-transition-progress.mdx',
+ compId: 'articles-docs-transitions-use-transition-progress',
+ crumb: '@remotion/transitions',
+ },
+ {
+ id: 'transitioning',
+ title: 'Transitions',
+ relativePath: 'docs/transitions.mdx',
+ compId: 'articles-docs-transitions',
+ crumb: 'Techniques',
+ },
+ {
+ id: 'transparent-videos',
+ title: 'Transparent videos',
+ relativePath: 'docs/transparent-videos.mdx',
+ compId: 'articles-docs-transparent-videos',
+ crumb: 'Techniques',
+ },
+ {
+ id: 'troubleshooting/background-image',
+ title: 'Flickering when using background-image or mask-image',
+ relativePath: 'docs/troubleshooting/background-image.mdx',
+ compId: 'articles-docs-troubleshooting-background-image',
+ crumb: 'Common mistakes',
+ },
+ {
+ id: 'broken-fast-refresh',
+ title: 'Fast Refresh not working',
+ relativePath: 'docs/troubleshooting/broken-fast-refresh.mdx',
+ compId: 'articles-docs-troubleshooting-broken-fast-refresh',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'troubleshooting/browser-launch',
+ title: 'Failed to launch the browser process',
+ relativePath: 'docs/troubleshooting/browser-launch.mdx',
+ compId: 'articles-docs-troubleshooting-browser-launch',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'troubleshooting/bundling-bundle',
+ title: 'Calling bundle() in bundled code',
+ relativePath: 'docs/troubleshooting/bundling-bundle.mdx',
+ compId: 'articles-docs-troubleshooting-bundling-bundle',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'troubleshooting/could-not-be-parsed-as-a-value-list',
+ title: 'The source provided could not be parsed as a value list',
+ relativePath:
+ 'docs/troubleshooting/could-not-be-parsed-as-a-value-list.mdx',
+ compId: 'articles-docs-troubleshooting-could-not-be-parsed-as-a-value-list',
+ crumb: 'Browser quirks',
+ },
+ {
+ id: 'troubleshooting/could-not-find-executable-to-run',
+ title: 'Could not determine executable to run',
+ relativePath: 'docs/troubleshooting/could-not-find-executable-to-run.mdx',
+ compId: 'articles-docs-troubleshooting-could-not-find-executable-to-run',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'troubleshooting/debug-failed-render',
+ title: 'Debugging render failures',
+ relativePath: 'docs/troubleshooting/debug-failed-render.mdx',
+ compId: 'articles-docs-troubleshooting-debug-failed-render',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'defaultprops-too-big',
+ title: 'defaultProps too big - could not serialize',
+ relativePath: 'docs/troubleshooting/defaultprops-too-big.mdx',
+ compId: 'articles-docs-troubleshooting-defaultprops-too-big',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'troubleshooting/delay-render-proxy',
+ title: 'Loading <Img> with src http://localhost:3000/proxy',
+ relativePath: 'docs/troubleshooting/delay-render-proxy.mdx',
+ compId: 'articles-docs-troubleshooting-delay-render-proxy',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'loading-root-component',
+ title: 'Root component Timeout',
+ relativePath: 'docs/troubleshooting/loading-root-component.mdx',
+ compId: 'articles-docs-troubleshooting-loading-root-component',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'troubleshooting/nextjs-image',
+ title: 'Flickering when using Next.js <Image> tag',
+ relativePath: 'docs/troubleshooting/nextjs-image.mdx',
+ compId: 'articles-docs-troubleshooting-nextjs-image',
+ crumb: 'Common mistakes',
+ },
+ {
+ id: 'rosetta',
+ title: 'Apple Silicon under Rosetta',
+ relativePath: 'docs/troubleshooting/rosetta.mdx',
+ compId: 'articles-docs-troubleshooting-rosetta',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'troubleshooting/sigkill',
+ title: 'Process quit with signal SIGKILL',
+ relativePath: 'docs/troubleshooting/sigkill.mdx',
+ compId: 'articles-docs-troubleshooting-sigkill',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'troubleshooting/timed-out-page-function',
+ title: 'Timed out evaluating page function',
+ relativePath: 'docs/troubleshooting/timed-out-page-function.mdx',
+ compId: 'articles-docs-troubleshooting-timed-out-page-function',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'player-flicker',
+ title: 'Avoiding flickering in <Player>',
+ relativePath: 'docs/troubleshooting/video-flicker.mdx',
+ compId: 'articles-docs-troubleshooting-video-flicker',
+ crumb: 'Frame-perfection',
+ },
+ {
+ id: 'upgrading',
+ title: 'Upgrading Remotion',
+ relativePath: 'docs/upgrading.mdx',
+ compId: 'articles-docs-upgrading',
+ crumb: 'upgrade remotion',
+ },
+ {
+ id: 'use-audio-data',
+ title: 'useAudioData()',
+ relativePath: 'docs/use-audio-data.mdx',
+ compId: 'articles-docs-use-audio-data',
+ crumb: '@remotion/media-utils',
+ },
+ {
+ id: 'use-buffer-state',
+ title: 'useBufferState()',
+ relativePath: 'docs/use-buffer-state.mdx',
+ compId: 'articles-docs-use-buffer-state',
+ crumb: 'API',
+ },
+ {
+ id: 'use-current-frame',
+ title: 'useCurrentFrame()',
+ relativePath: 'docs/use-current-frame.mdx',
+ compId: 'articles-docs-use-current-frame',
+ crumb: 'API',
+ },
+ {
+ id: 'use-current-scale',
+ title: 'useCurrentScale()',
+ relativePath: 'docs/use-current-scale.mdx',
+ compId: 'articles-docs-use-current-scale',
+ crumb: 'API',
+ },
+ {
+ id: 'use-img-and-iframe',
+ title: '<Img>, <Video> and <Audio>',
+ relativePath: 'docs/use-img-and-iframe.mdx',
+ compId: 'articles-docs-use-img-and-iframe',
+ crumb: 'Best practices',
+ },
+ {
+ id: 'use-offthread-video-texture',
+ title: 'useOffthreadVideoTexture()',
+ relativePath: 'docs/use-offthread-video-texture.mdx',
+ compId: 'articles-docs-use-offthread-video-texture',
+ crumb: '@remotion/three',
+ },
+ {
+ id: 'use-video-config',
+ title: 'useVideoConfig()',
+ relativePath: 'docs/use-video-config.mdx',
+ compId: 'articles-docs-use-video-config',
+ crumb: 'API',
+ },
+ {
+ id: 'use-video-texture',
+ title: 'useVideoTexture()',
+ relativePath: 'docs/use-video-texture.mdx',
+ compId: 'articles-docs-use-video-texture',
+ crumb: '@remotion/three',
+ },
+ {
+ id: 'using-audio',
+ title: 'Using audio',
+ relativePath: 'docs/using-audio.mdx',
+ compId: 'articles-docs-using-audio',
+ crumb: 'Techniques',
+ },
+ {
+ id: 'using-randomness',
+ title: 'Using randomness',
+ relativePath: 'docs/using-randomness.mdx',
+ compId: 'articles-docs-using-randomness',
+ crumb: 'Roll the dice',
+ },
+ {
+ id: 'version-mismatch',
+ title: 'Version mismatch',
+ relativePath: 'docs/version-mismatch.mdx',
+ compId: 'articles-docs-version-mismatch',
+ crumb: 'How to fix a',
+ },
+ {
+ id: 'version',
+ title: 'VERSION',
+ relativePath: 'docs/version.mdx',
+ compId: 'articles-docs-version',
+ crumb: 'API',
+ },
+ {
+ id: 'video-manipulation',
+ title: 'Video manipulation',
+ relativePath: 'docs/video-manipulation.mdx',
+ compId: 'articles-docs-video-manipulation',
+ crumb: 'How To',
+ },
+ {
+ id: 'video-uploads',
+ title: 'Handling user video uploads',
+ relativePath: 'docs/video-uploads.mdx',
+ compId: 'articles-docs-video-uploads',
+ crumb: 'Building video apps',
+ },
+ {
+ id: 'video-vs-offthreadvideo',
+ title: '<Video> vs. <OffthreadVideo>',
+ relativePath: 'docs/video-vs-offthreadvideo.mdx',
+ compId: 'articles-docs-video-vs-offthreadvideo',
+ crumb: 'Comparison',
+ },
+ {
+ id: 'video',
+ title: '<Video>',
+ relativePath: 'docs/video.mdx',
+ compId: 'articles-docs-video',
+ crumb: 'API',
+ },
+ {
+ id: 'visual-editing',
+ title: 'Edit default props visually',
+ relativePath: 'docs/visual-editing.mdx',
+ compId: 'articles-docs-visual-editing',
+ crumb: 'How To',
+ },
+ {
+ id: 'visualize-audio',
+ title: 'visualizeAudio()',
+ relativePath: 'docs/visualize-audio.mdx',
+ compId: 'articles-docs-visualize-audio',
+ crumb: '@remotion/media-utils',
+ },
+ {
+ id: 'watchstaticfile',
+ title: 'watchStaticFile()',
+ relativePath: 'docs/watch-static-file.mdx',
+ compId: 'articles-docs-watch-static-file',
+ crumb: 'API',
+ },
+ {
+ id: 'wrong-composition-mount',
+ title: 'Wrongly mounted <Composition>',
+ relativePath: 'docs/wrong-composition-mount.mdx',
+ compId: 'articles-docs-wrong-composition-mount',
+ crumb: 'Troubleshooting',
+ },
+ {
+ id: 'zod-types/index',
+ title: '@remotion/zod-types',
+ relativePath: 'docs/zod-types/index.mdx',
+ compId: 'articles-docs-zod-types-index',
+ crumb: 'Schema',
+ },
+ {
+ id: 'zod-types/z-color',
+ title: 'zColor()',
+ relativePath: 'docs/zod-types/z-color.mdx',
+ compId: 'articles-docs-zod-types-z-color',
+ crumb: null,
+ },
+ {
+ id: 'zod-types/z-textarea',
+ title: 'zTextarea()',
+ relativePath: 'docs/zod-types/z-textarea.mdx',
+ compId: 'articles-docs-zod-types-z-textarea',
+ crumb: null,
+ },
];
diff --git a/packages/docs/src/data/experts.tsx b/packages/docs/src/data/experts.tsx
index ee2d84c9b0..adfccc0b0a 100644
--- a/packages/docs/src/data/experts.tsx
+++ b/packages/docs/src/data/experts.tsx
@@ -1,468 +1,468 @@
-import React from "react";
+import React from 'react';
export type Expert = {
- name: string;
- image: string;
- website: string | null;
- description: React.ReactNode;
- x: React.ReactNode;
- github: React.ReactNode;
- linkedin: React.ReactNode;
- email: React.ReactNode;
- videocall: React.ReactNode;
- slug: string;
- since: number;
+ name: string;
+ image: string;
+ website: string | null;
+ description: React.ReactNode;
+ x: React.ReactNode;
+ github: React.ReactNode;
+ linkedin: React.ReactNode;
+ email: React.ReactNode;
+ videocall: React.ReactNode;
+ slug: string;
+ since: number;
};
export const experts: Expert[] = [
- {
- slug: "florent-pergoud",
- name: "Florent Pergoud",
- image: "/img/freelancers/florent.jpeg",
- website: "https://pergoud.com/",
- x: "florentpergoud",
- github: "florentpergoud",
- linkedin: "in/florent-pergoud/",
- email: "[email protected]",
- videocall: null,
- since: new Date("2022-08-15").getTime(),
- description: (
- <div>
- I made: Hello Météo, HugoDécrypteSport, Crowdfunding VFB, Cinéma Le
- Vincennes and Piano MIDI visualizer. You can check them{" "}
- <a
- target={"_blank"}
- href="https://florentpergoud.notion.site/Florent-Pergoud-s-Remotion-showcase-b0ef4299d389401aab21bbc62516cafe"
- >
- here
- </a>
- .
- </div>
- ),
- },
- {
- slug: "stephen-sullivan",
- name: "Stephen Sullivan",
- image: "/img/freelancers/stephen.png",
- website: null,
- x: null,
- github: null,
- linkedin: "in/sterv/",
- email: "[email protected]",
- videocall: null,
- since: new Date("2022-08-15").getTime(),
- description: (
- <div>
- I made:{" "}
- <a target={"_blank"} href="https://middy.com">
- middy.com
- </a>
- !
- </div>
- ),
- },
- {
- slug: "mohit-yadav",
- name: "Mohit Yadav",
- image: "/img/freelancers/mohit.jpeg",
- website: null,
- x: "Just_Moh_it",
- github: "Just-Moh-it",
- linkedin: "in/just-moh-it/",
- email: "[email protected]",
- videocall: null,
- since: new Date("2022-08-15").getTime(),
- description: (
- <div>
- I made:{" "}
- <a target={"_blank"} href="https://mockoops.mohitya.dev">
- Mockoops
- </a>
- ! <br />
- My services: SaaS platform from scratch including SSR, creating
- individual videos and templates, and creating integrations for Remotion
- with existing infrastructure <br />
- Availability: 4 to 5 hours/day on weekdays, 5 to 6 hours/day on weekends{" "}
- </div>
- ),
- },
- {
- slug: "yehor-misiats",
- name: "Yehor Misiats",
- image: "/img/freelancers/yehor.jpeg",
- website: null,
- x: "isatelllte",
- github: "satelllte",
- linkedin: "in/satelllte/",
- email: "[email protected]",
- videocall: null,
- since: new Date("2022-09-16").getTime(),
+ {
+ slug: 'florent-pergoud',
+ name: 'Florent Pergoud',
+ image: '/img/freelancers/florent.jpeg',
+ website: 'https://pergoud.com/',
+ x: 'florentpergoud',
+ github: 'florentpergoud',
+ linkedin: 'in/florent-pergoud/',
+ email: '[email protected]',
+ videocall: null,
+ since: new Date('2022-08-15').getTime(),
+ description: (
+ <div>
+ I made: Hello Météo, HugoDécrypteSport, Crowdfunding VFB, Cinéma Le
+ Vincennes and Piano MIDI visualizer. You can check them{' '}
+ <a
+ target={'_blank'}
+ href="https://florentpergoud.notion.site/Florent-Pergoud-s-Remotion-showcase-b0ef4299d389401aab21bbc62516cafe"
+ >
+ here
+ </a>
+ .
+ </div>
+ ),
+ },
+ {
+ slug: 'stephen-sullivan',
+ name: 'Stephen Sullivan',
+ image: '/img/freelancers/stephen.png',
+ website: null,
+ x: null,
+ github: null,
+ linkedin: 'in/sterv/',
+ email: '[email protected]',
+ videocall: null,
+ since: new Date('2022-08-15').getTime(),
+ description: (
+ <div>
+ I made:{' '}
+ <a target={'_blank'} href="https://middy.com">
+ middy.com
+ </a>
+ !
+ </div>
+ ),
+ },
+ {
+ slug: 'mohit-yadav',
+ name: 'Mohit Yadav',
+ image: '/img/freelancers/mohit.jpeg',
+ website: null,
+ x: 'Just_Moh_it',
+ github: 'Just-Moh-it',
+ linkedin: 'in/just-moh-it/',
+ email: '[email protected]',
+ videocall: null,
+ since: new Date('2022-08-15').getTime(),
+ description: (
+ <div>
+ I made:{' '}
+ <a target={'_blank'} href="https://mockoops.mohitya.dev">
+ Mockoops
+ </a>
+ ! <br />
+ My services: SaaS platform from scratch including SSR, creating
+ individual videos and templates, and creating integrations for Remotion
+ with existing infrastructure <br />
+ Availability: 4 to 5 hours/day on weekdays, 5 to 6 hours/day on weekends{' '}
+ </div>
+ ),
+ },
+ {
+ slug: 'yehor-misiats',
+ name: 'Yehor Misiats',
+ image: '/img/freelancers/yehor.jpeg',
+ website: null,
+ x: 'isatelllte',
+ github: 'satelllte',
+ linkedin: 'in/satelllte/',
+ email: '[email protected]',
+ videocall: null,
+ since: new Date('2022-09-16').getTime(),
- description: (
- <div>
- I made:{" "}
- <a
- target={"_blank"}
- href="https://github.com/satelllte/remotion-audio-visualizer"
- >
- Minimalistic audio visualizations
- </a>
- {" and "}
- <a
- target={"_blank"}
- href="https://github.com/satelllte/remotion-template"
- >
- Template for crafting programmatic videos
- </a>
- .
- </div>
- ),
- },
- {
- slug: "benjamin-jameson",
- name: "Benjamin Jameson",
- image: "/img/freelancers/benjamin.jpeg",
- x: null,
- github: "BenjaminJameson",
- linkedin: null,
- email: "[email protected]",
- videocall: null,
- since: new Date("2022-11-03").getTime(),
- description: (
- <div>
- Creator of{" "}
- <a target={"_blank"} href="https://www.captok.ai">
- CapTok
- </a>
- <br />I specialize in creating serverless AI web applications using AWS,
- Javascript and Python.
- </div>
- ),
- website: null,
- },
- {
- slug: "karel-nagel",
- name: "Karel Nagel",
- image: "/img/freelancers/karel.jpeg",
- website: "https://asius.ai/",
- x: "AsiusAI",
- github: "karelnagel",
- linkedin: "in/karelnagel/",
- since: new Date("2022-08-22").getTime(),
- email: "[email protected]",
- videocall: null,
- description: (
- <div>
- I have created Remotion videos for many companies and helped them with
- deployment, some examples are visible{" "}
- <a target={"_blank"} href="https://asius.ai/#portfolio">
- here
- </a>
- . Additionally, I am the creator of the{" "}
- <a target={"_blank"} href="https://github.com/karelnagel/remotion-sst">
- remotion-sst
- </a>{" "}
- package, which simplifies the deployment of Remotion Lambda to AWS using
- SST.
- <br />I am available for contract opportunities in Remotion projects and
- web development.
- </div>
- ),
- },
- {
- slug: "alex-fernandez",
- name: "Alex Fernandez",
- image: "/img/freelancers/alex.jpeg",
- website: null,
- x: null,
- github: "alexfernandez803",
- linkedin: "in/alex-f-17a5bb56/",
- email: "[email protected]",
- videocall: "remotion-expert-alex-fernandez",
- since: new Date("2022-12-02").getTime(),
- description: (
- <div>
- I am an experienced integration developer using Mulesoft, a backend
- developer and on the side frontend and animation enthusiast.
- </div>
- ),
- },
- {
- slug: "matthew-mcgillivray",
- name: "Matt McGillivray",
- image: "/img/freelancers/umungo.png",
- website: "https://mattm9y.com",
- x: null,
- github: "UmungoBungo",
- linkedin: "in/matthew-mcgillivray-68295a55",
- email: "[email protected]",
- videocall: "remotion-expert-matt-mcgillivray",
- since: new Date("2023-01-30").getTime(),
- description: (
- <div>
- <p>
- I&apos;m a full stack web dev, strongest in cloud architecture and
- front-end web development, which has been perfect for building editors
- with the Remotion player as well as rendering videos on the cloud. I
- have helped out some forward-thinking businesses in the Remotion
- community, like{" "}
- <a target={"_blank"} href="https://studio.momento.fm/">
- Momento.fm
- </a>
- {", "}
- <a target={"_blank"} href="https://viddyoze.com/">
- Viddyoze
- </a>
- {" and "}
- <a target={"_blank"} href="https://djema.ai/">
- Djema
- </a>
- {". "}
- <br />
- <br />I am also the creator of the official{" "}
- <a
- target={"_blank"}
- href="https://www.npmjs.com/package/@remotion/cloudrun"
- >
- @remotion/cloudrun package
- </a>
- , which I built in collaboration with Jonny and the team. This package
- allows users to easily render videos on Google Cloud Platform, as an
- alternative to using Lambda with AWS. I have also built my own
- products, like{" "}
- <a target={"_blank"} href="https://thatwas.pro/">
- ThatWas.Pro
- </a>
- {", "}
- <a target={"_blank"} href="https://splitscreen.video/">
- SplitScreen.Video
- </a>{" "}
- and a neat audio player for{" "}
- <a target={"_blank"} href="https://sub50k.com/">
- Sub50k
- </a>
- {". "}
- Feel free to send me an email, book some time, or shoot me a DM on
- Discord!
- </p>
- </div>
- ),
- },
- {
- slug: "ray-lotmar",
- name: "Ray Lotmar",
- image: "/img/freelancers/ray.jpeg",
- website: null,
- x: "romrif",
- github: "rayBlock",
- linkedin: "in/raymond-lotmar/",
- email: "[email protected]",
- videocall: "remotion-expert-ray-lotmar",
- since: new Date("2023-01-30").getTime(),
- description: (
- <div>
- I made{" "}
- <a target={"_blank"} href="https://www.romrif.com/">
- Romrif
- </a>
- !<br />I build Websites & Videos with Remotion. I&apos;m alway
- interested in the latest Tech and love building stuff. Feel free to
- contact me - I&apos;m available for hire.
- </div>
- ),
- },
- {
- slug: "lorenzo-bertolini",
- name: "Lorenzo Bertolini",
- image: "/img/freelancers/lorenzo.jpeg",
- website: "https://www.lorenzobertolini.com/",
- x: "MagoDiSegrate",
- github: "encho",
- linkedin: "in/lorenzobertolini/",
- email: "[email protected]",
- videocall: null,
- since: new Date("2023-03-14").getTime(),
- description: (
- <div>
- I made:{" "}
- <a target={"_blank"} href="https://www.dataflics.com/">
- DataFlics
- </a>{" "}
- and{" "}
- <a target={"_blank"} href="https://nerdy.finance/">
- Nerdy Finance
- </a>
- ! This is my personal website:{" "}
- <a target={"_blank"} href="https://www.lorenzobertolini.com/">
- Lorenzo Bertolini
- </a>
- <br />
- Reach out to me for data-driven video generation, data visualization,
- and web app prototyping with React.js and d3.js.
- </div>
- ),
- },
- {
- slug: "antoine-caron",
- name: "Antoine Caron",
- image: "/img/freelancers/antoine.jpeg",
- website: "https://blog.slashgear.dev/",
- x: "Slashgear_",
- github: "Slashgear",
- linkedin: "in/antoine-caron-slash/",
- email: "[email protected]",
- videocall: null,
- since: new Date("2023-03-17").getTime(),
- description: (
- <div>
- <p>
- I made:{" "}
- <a
- target={"_blank"}
- href="https://social-video-generator.vercel.app/"
- >
- Social Video Generator
- </a>
- , with Mickaël Alves
- </p>
- </div>
- ),
- },
- {
- slug: "mickael-alves",
- name: "Mickaël Alves",
- image: "/img/freelancers/mickael.jpeg",
- website: "https://cruuzazul.dev/",
- x: "CruuzAzul",
- github: "CruuzAzul",
- linkedin: "in/mickaelalves/",
- email: "[email protected]",
- videocall: null,
- since: new Date("2023-03-17").getTime(),
- description: (
- <div>
- <p>
- I made:{" "}
- <a
- target={"_blank"}
- href="https://social-video-generator.vercel.app/"
- >
- Social Video Generator
- </a>
- , with Antoine Caron
- </p>
- </div>
- ),
- },
- {
- slug: "pranav-kulkarni",
- name: "Pranav Kulkarni",
- image: "/img/freelancers/pranav.jpg",
- website: "https://pranava.dev/",
- x: "thecmdrunner",
- github: "thecmdrunner",
- linkedin: "in/pranavk7/",
- email: "[email protected]",
- videocall: null,
- since: new Date("2023-07-03").getTime(),
- description: (
- <div>
- Launched apps that combine Remotion & AI for generative video -{" "}
- <a target={"_blank"} href="https://maxroom.co/">
- MaxRoom
- </a>{" "}
- and{" "}
- <a target={"_blank"} href="https://swiftube.vercel.app/">
- Swiftube
- </a>
- .
- <br />
- Looking at leveraging the power of Remotion for your projects?
- Let&apos;s join forces!
- </div>
- ),
- },
- {
- slug: "rahul-bansal",
- name: "Rahul Bansal",
- image: "/img/freelancers/rahul.png",
- website: "https://bansalrahul.com/",
- x: "BansalRahul14",
- github: "rahulbansal16",
- linkedin: "in/rahulbansalrb/",
- email: "[email protected]",
- videocall: "remotion-expert-rahul-bansal",
- since: new Date("2023-08-04").getTime(),
- description: (
- <div>
- I can help you with building products using Remotion, Firebase, Antd,
- and Typescripts. I have made{" "}
- <a target={"_blank"} href="https://app.blinkcuts.com/">
- Blinkcuts
- </a>{" "}
- an AI video editor for short talking head videos. I have worked in
- companies like Microsoft and early-stage startups like Directi. I can
- build products super fast from scratch. Looking forward to helping you.
- </div>
- ),
- },
- {
- slug: "pramod-kumar",
- name: "Pramod Kumar",
- image: "/img/freelancers/pramod.jpg",
- website: "https://www.pramod73.in/",
- x: "pramodk73",
- github: "pskd73",
- linkedin: "in/pramod-kumar-1a135b74/",
- email: "[email protected]",
- videocall: "remotion-expert-pramod-kumar",
- since: new Date("2024-03-10").getTime(),
- description: (
- <div>
- I have been building software for the last 10 years across multiple
- technologies with strong software architecture skills. I have built two
- products that are based on Remotion.{" "}
- <a target={"_blank"} href="https://slickwid.com">
- SlickWid
- </a>{" "}
- a quick way to make videos for your social media, and{" "}
- <a target={"_blank"} href="https://motionshot.app">
- MotionShot
- </a>{" "}
- through which you can make informative walkthrough guides for your
- products, tutorials, and how-tos. <br />I made{" "}
- <a
- target={"_blank"}
- href="https://github.com/pskd73/remotion-animate-text"
- >
- remotion-animate-text
- </a>{" "}
- for Remotion to animate text. I build products in public on X. I love
- helping the community. Feel free to reach out. Looking forward!
- </div>
- ),
- },
- {
- slug: "ayush-soni",
- name: "Ayush Soni",
- image: "/img/freelancers/ayush.png",
- website: "https://ayushsoni.com/",
- x: "ayysoni",
- github: null,
- linkedin: "in/ayushsoni1001/",
- email: "[email protected]",
- videocall: "remotion-expert-ayush-soni",
- since: new Date("2024-03-17").getTime(),
- description: (
- <div>
- I’ve been coding and building cool projects since 5th grade (software
- and hardware both) across multiple technologies. Currently I’m building{" "}
- <a target={"_blank"} href="https://www.typeframes.com/">
- Typeframes
- </a>{" "}
- using Remotion, it is a tool to create videos. I build products in
- public on X. I’d love to hear your story.
- </div>
- ),
- },
+ description: (
+ <div>
+ I made:{' '}
+ <a
+ target={'_blank'}
+ href="https://github.com/satelllte/remotion-audio-visualizer"
+ >
+ Minimalistic audio visualizations
+ </a>
+ {' and '}
+ <a
+ target={'_blank'}
+ href="https://github.com/satelllte/remotion-template"
+ >
+ Template for crafting programmatic videos
+ </a>
+ .
+ </div>
+ ),
+ },
+ {
+ slug: 'benjamin-jameson',
+ name: 'Benjamin Jameson',
+ image: '/img/freelancers/benjamin.jpeg',
+ x: null,
+ github: 'BenjaminJameson',
+ linkedin: null,
+ email: '[email protected]',
+ videocall: null,
+ since: new Date('2022-11-03').getTime(),
+ description: (
+ <div>
+ Creator of{' '}
+ <a target={'_blank'} href="https://www.captok.ai">
+ CapTok
+ </a>
+ <br />I specialize in creating serverless AI web applications using AWS,
+ Javascript and Python.
+ </div>
+ ),
+ website: null,
+ },
+ {
+ slug: 'karel-nagel',
+ name: 'Karel Nagel',
+ image: '/img/freelancers/karel.jpeg',
+ website: 'https://asius.ai/',
+ x: 'AsiusAI',
+ github: 'karelnagel',
+ linkedin: 'in/karelnagel/',
+ since: new Date('2022-08-22').getTime(),
+ email: '[email protected]',
+ videocall: null,
+ description: (
+ <div>
+ I have created Remotion videos for many companies and helped them with
+ deployment, some examples are visible{' '}
+ <a target={'_blank'} href="https://asius.ai/#portfolio">
+ here
+ </a>
+ . Additionally, I am the creator of the{' '}
+ <a target={'_blank'} href="https://github.com/karelnagel/remotion-sst">
+ remotion-sst
+ </a>{' '}
+ package, which simplifies the deployment of Remotion Lambda to AWS using
+ SST.
+ <br />I am available for contract opportunities in Remotion projects and
+ web development.
+ </div>
+ ),
+ },
+ {
+ slug: 'alex-fernandez',
+ name: 'Alex Fernandez',
+ image: '/img/freelancers/alex.jpeg',
+ website: null,
+ x: null,
+ github: 'alexfernandez803',
+ linkedin: 'in/alex-f-17a5bb56/',
+ email: '[email protected]',
+ videocall: 'remotion-expert-alex-fernandez',
+ since: new Date('2022-12-02').getTime(),
+ description: (
+ <div>
+ I am an experienced integration developer using Mulesoft, a backend
+ developer and on the side frontend and animation enthusiast.
+ </div>
+ ),
+ },
+ {
+ slug: 'matthew-mcgillivray',
+ name: 'Matt McGillivray',
+ image: '/img/freelancers/umungo.png',
+ website: 'https://mattm9y.com',
+ x: null,
+ github: 'UmungoBungo',
+ linkedin: 'in/matthew-mcgillivray-68295a55',
+ email: '[email protected]',
+ videocall: 'remotion-expert-matt-mcgillivray',
+ since: new Date('2023-01-30').getTime(),
+ description: (
+ <div>
+ <p>
+ I&apos;m a full stack web dev, strongest in cloud architecture and
+ front-end web development, which has been perfect for building editors
+ with the Remotion player as well as rendering videos on the cloud. I
+ have helped out some forward-thinking businesses in the Remotion
+ community, like{' '}
+ <a target={'_blank'} href="https://studio.momento.fm/">
+ Momento.fm
+ </a>
+ {', '}
+ <a target={'_blank'} href="https://viddyoze.com/">
+ Viddyoze
+ </a>
+ {' and '}
+ <a target={'_blank'} href="https://djema.ai/">
+ Djema
+ </a>
+ {'. '}
+ <br />
+ <br />I am also the creator of the official{' '}
+ <a
+ target={'_blank'}
+ href="https://www.npmjs.com/package/@remotion/cloudrun"
+ >
+ @remotion/cloudrun package
+ </a>
+ , which I built in collaboration with Jonny and the team. This package
+ allows users to easily render videos on Google Cloud Platform, as an
+ alternative to using Lambda with AWS. I have also built my own
+ products, like{' '}
+ <a target={'_blank'} href="https://thatwas.pro/">
+ ThatWas.Pro
+ </a>
+ {', '}
+ <a target={'_blank'} href="https://splitscreen.video/">
+ SplitScreen.Video
+ </a>{' '}
+ and a neat audio player for{' '}
+ <a target={'_blank'} href="https://sub50k.com/">
+ Sub50k
+ </a>
+ {'. '}
+ Feel free to send me an email, book some time, or shoot me a DM on
+ Discord!
+ </p>
+ </div>
+ ),
+ },
+ {
+ slug: 'ray-lotmar',
+ name: 'Ray Lotmar',
+ image: '/img/freelancers/ray.jpeg',
+ website: null,
+ x: 'romrif',
+ github: 'rayBlock',
+ linkedin: 'in/raymond-lotmar/',
+ email: '[email protected]',
+ videocall: 'remotion-expert-ray-lotmar',
+ since: new Date('2023-01-30').getTime(),
+ description: (
+ <div>
+ I made{' '}
+ <a target={'_blank'} href="https://www.romrif.com/">
+ Romrif
+ </a>
+ !<br />I build Websites & Videos with Remotion. I&apos;m alway
+ interested in the latest Tech and love building stuff. Feel free to
+ contact me - I&apos;m available for hire.
+ </div>
+ ),
+ },
+ {
+ slug: 'lorenzo-bertolini',
+ name: 'Lorenzo Bertolini',
+ image: '/img/freelancers/lorenzo.jpeg',
+ website: 'https://www.lorenzobertolini.com/',
+ x: 'MagoDiSegrate',
+ github: 'encho',
+ linkedin: 'in/lorenzobertolini/',
+ email: '[email protected]',
+ videocall: null,
+ since: new Date('2023-03-14').getTime(),
+ description: (
+ <div>
+ I made:{' '}
+ <a target={'_blank'} href="https://www.dataflics.com/">
+ DataFlics
+ </a>{' '}
+ and{' '}
+ <a target={'_blank'} href="https://nerdy.finance/">
+ Nerdy Finance
+ </a>
+ ! This is my personal website:{' '}
+ <a target={'_blank'} href="https://www.lorenzobertolini.com/">
+ Lorenzo Bertolini
+ </a>
+ <br />
+ Reach out to me for data-driven video generation, data visualization,
+ and web app prototyping with React.js and d3.js.
+ </div>
+ ),
+ },
+ {
+ slug: 'antoine-caron',
+ name: 'Antoine Caron',
+ image: '/img/freelancers/antoine.jpeg',
+ website: 'https://blog.slashgear.dev/',
+ x: 'Slashgear_',
+ github: 'Slashgear',
+ linkedin: 'in/antoine-caron-slash/',
+ email: '[email protected]',
+ videocall: null,
+ since: new Date('2023-03-17').getTime(),
+ description: (
+ <div>
+ <p>
+ I made:{' '}
+ <a
+ target={'_blank'}
+ href="https://social-video-generator.vercel.app/"
+ >
+ Social Video Generator
+ </a>
+ , with Mickaël Alves
+ </p>
+ </div>
+ ),
+ },
+ {
+ slug: 'mickael-alves',
+ name: 'Mickaël Alves',
+ image: '/img/freelancers/mickael.jpeg',
+ website: 'https://cruuzazul.dev/',
+ x: 'CruuzAzul',
+ github: 'CruuzAzul',
+ linkedin: 'in/mickaelalves/',
+ email: '[email protected]',
+ videocall: null,
+ since: new Date('2023-03-17').getTime(),
+ description: (
+ <div>
+ <p>
+ I made:{' '}
+ <a
+ target={'_blank'}
+ href="https://social-video-generator.vercel.app/"
+ >
+ Social Video Generator
+ </a>
+ , with Antoine Caron
+ </p>
+ </div>
+ ),
+ },
+ {
+ slug: 'pranav-kulkarni',
+ name: 'Pranav Kulkarni',
+ image: '/img/freelancers/pranav.jpg',
+ website: 'https://pranava.dev/',
+ x: 'thecmdrunner',
+ github: 'thecmdrunner',
+ linkedin: 'in/pranavk7/',
+ email: '[email protected]',
+ videocall: null,
+ since: new Date('2023-07-03').getTime(),
+ description: (
+ <div>
+ Launched apps that combine Remotion & AI for generative video -{' '}
+ <a target={'_blank'} href="https://maxroom.co/">
+ MaxRoom
+ </a>{' '}
+ and{' '}
+ <a target={'_blank'} href="https://swiftube.vercel.app/">
+ Swiftube
+ </a>
+ .
+ <br />
+ Looking at leveraging the power of Remotion for your projects?
+ Let&apos;s join forces!
+ </div>
+ ),
+ },
+ {
+ slug: 'rahul-bansal',
+ name: 'Rahul Bansal',
+ image: '/img/freelancers/rahul.png',
+ website: 'https://bansalrahul.com/',
+ x: 'BansalRahul14',
+ github: 'rahulbansal16',
+ linkedin: 'in/rahulbansalrb/',
+ email: '[email protected]',
+ videocall: 'remotion-expert-rahul-bansal',
+ since: new Date('2023-08-04').getTime(),
+ description: (
+ <div>
+ I can help you with building products using Remotion, Firebase, Antd,
+ and Typescripts. I have made{' '}
+ <a target={'_blank'} href="https://app.blinkcuts.com/">
+ Blinkcuts
+ </a>{' '}
+ an AI video editor for short talking head videos. I have worked in
+ companies like Microsoft and early-stage startups like Directi. I can
+ build products super fast from scratch. Looking forward to helping you.
+ </div>
+ ),
+ },
+ {
+ slug: 'pramod-kumar',
+ name: 'Pramod Kumar',
+ image: '/img/freelancers/pramod.jpg',
+ website: 'https://www.pramod73.in/',
+ x: 'pramodk73',
+ github: 'pskd73',
+ linkedin: 'in/pramod-kumar-1a135b74/',
+ email: '[email protected]',
+ videocall: 'remotion-expert-pramod-kumar',
+ since: new Date('2024-03-10').getTime(),
+ description: (
+ <div>
+ I have been building software for the last 10 years across multiple
+ technologies with strong software architecture skills. I have built two
+ products that are based on Remotion.{' '}
+ <a target={'_blank'} href="https://slickwid.com">
+ SlickWid
+ </a>{' '}
+ a quick way to make videos for your social media, and{' '}
+ <a target={'_blank'} href="https://motionshot.app">
+ MotionShot
+ </a>{' '}
+ through which you can make informative walkthrough guides for your
+ products, tutorials, and how-tos. <br />I made{' '}
+ <a
+ target={'_blank'}
+ href="https://github.com/pskd73/remotion-animate-text"
+ >
+ remotion-animate-text
+ </a>{' '}
+ for Remotion to animate text. I build products in public on X. I love
+ helping the community. Feel free to reach out. Looking forward!
+ </div>
+ ),
+ },
+ {
+ slug: 'ayush-soni',
+ name: 'Ayush Soni',
+ image: '/img/freelancers/ayush.png',
+ website: 'https://ayushsoni.com/',
+ x: 'ayysoni',
+ github: null,
+ linkedin: 'in/ayushsoni1001/',
+ email: '[email protected]',
+ videocall: 'remotion-expert-ayush-soni',
+ since: new Date('2024-03-17').getTime(),
+ description: (
+ <div>
+ I’ve been coding and building cool projects since 5th grade (software
+ and hardware both) across multiple technologies. Currently I’m building{' '}
+ <a target={'_blank'} href="https://www.typeframes.com/">
+ Typeframes
+ </a>{' '}
+ using Remotion, it is a tool to create videos. I build products in
+ public on X. I’d love to hear your story.
+ </div>
+ ),
+ },
];
diff --git a/packages/docs/src/data/showcase-videos.tsx b/packages/docs/src/data/showcase-videos.tsx
index 0fd4ab567b..7958cd9eca 100644
--- a/packages/docs/src/data/showcase-videos.tsx
+++ b/packages/docs/src/data/showcase-videos.tsx
@@ -1,376 +1,376 @@
-import { random } from "remotion";
+import {random} from 'remotion';
-export type ShowcaseLink = "tutorial" | "source_code" | "website" | "video";
+export type ShowcaseLink = 'tutorial' | 'source_code' | 'website' | 'video';
export type ShowcaseVideo = {
- title: string;
- description: string;
- height: number;
- width: number;
- links: {
- url: string;
- type: ShowcaseLink;
- }[];
- submittedOn: Date;
- type: "mux_video";
- time?: string | null;
- muxId: string;
- author?: {
- name: string;
- url: string;
- };
+ title: string;
+ description: string;
+ height: number;
+ width: number;
+ links: {
+ url: string;
+ type: ShowcaseLink;
+ }[];
+ submittedOn: Date;
+ type: 'mux_video';
+ time?: string | null;
+ muxId: string;
+ author?: {
+ name: string;
+ url: string;
+ };
};
export const showcaseVideos: ShowcaseVideo[] = [
- {
- title: "Hackreels - Animate your code",
- type: "mux_video",
- time: "0",
- muxId: "IOSwIZiNUsdfcg9ccN3E2vqzen92L99VgoP3Q5p9On8",
- description:
- "Create effortlessly beautiful code animations in seconds. Hackreels detects code changes automatically and makes stunning animations based on those changes. ",
- height: 1080,
- width: 1920,
- submittedOn: new Date("04-22-2024"),
- links: [
- {
- type: "video",
- url: "https://twitter.com/dparksdev/status/1715725060324073582",
- },
- {
- type: "website",
- url: "https://www.hackreels.com/",
- },
- ],
- author: {
- url: "https://davidparks.dev/",
- name: "David Parks",
- },
- },
- {
- title: "MUX - Vizualise video stats",
- type: "mux_video",
- time: "3",
- muxId: "DDgXb2KfPk7xdvxEoyPkrl7GcybohNon",
- description:
- "An article on how to showcase your video stats by creating a dynamic animated video using Remotion and the Mux Data API.",
- height: 270,
- width: 480,
- submittedOn: new Date("19-01-2022"),
- links: [
- {
- type: "source_code",
- url: "https://github.com/davekiss/mux-remotion-demo/",
- },
- {
- type: "video",
- url: "https://twitter.com/MuxHQ/status/1483514610380644357",
- },
- {
- type: "tutorial",
- url: "https://mux.com/blog/visualize-mux-data-with-remotion/",
- },
- ],
- author: {
- url: "https://davekiss.com/",
- name: "Dave Kiss",
- },
- },
- {
- title: "Next.js - Video tutorial",
- type: "mux_video",
- time: "10",
- muxId: "dWxzp02gvlUM42a6GSQ02g006qiW2T43QGeuszqimY0200AE",
- description:
- "Delba Oliveira visually explains Vercel's Next.js and the concept of React.",
- height: 1080,
- width: 1920,
- submittedOn: new Date("10-09-2023"),
- links: [
- {
- type: "video",
- url: "https://twitter.com/delba_oliveira/status/1707439537054535867",
- },
- {
- type: "website",
- url: "https://www.youtube.com/@Delba",
- },
- ],
- author: {
- url: "https://delba.dev/",
- name: "Delba Oliveira",
- },
- },
- {
- title: "GitHub Unwrapped - Campaign",
- type: "mux_video",
- time: "6",
- muxId: "OwQFvqomOR00q6yj5SWwaA7DBg01NaCPKcOvczoZqCty00",
- description:
- "A year-in-review video campaign for GitHub, where each user gets a personalized video based on their GitHub activity.",
- height: 1080,
- width: 1080,
- submittedOn: new Date("04-23-2024"),
- links: [
- {
- type: "website",
- url: "https://githubunwrapped.com/",
- },
- {
- type: "source_code",
- url: "https://github.com/remotion-dev/github-unwrapped-2023",
- },
- ],
- author: {
- url: "https://www.remotion.dev/",
- name: "Remotion",
- },
- },
- {
- title: "Revid - Animated social media videos",
- type: "mux_video",
- time: "13",
- muxId: "AQJeyQ00njF88JNevZ2Xf00KGOX01zBLBa4Xisvu9M00ynM",
- description:
- "Create stunning social media videos with Revid, an AI-powered tool that transforms text into editable videos in minutes. ",
- height: 1152,
- width: 2048,
- submittedOn: new Date("04-24-2024"),
- links: [
- {
- type: "website",
- url: "https://www.revid.ai/",
- },
- ],
- author: {
- url: "https://twitter.com/tibo_maker",
- name: "Tibo",
- },
- },
- {
- title: "AnimStats - Animated statistics",
- type: "mux_video",
- time: "8",
- muxId: "DudsRLermQWA5JMpF6Z49AwuAjrvO00vxmsgSyS00neo00",
- description:
- "With AnimStats, you can transform your statistics into captivating animated GIFs and Videos within minutes. The user-friendly interface and powerful editing feature make the process quick and effortless.",
- height: 1152,
- width: 2048,
- submittedOn: new Date("04-24-2024"),
- links: [
- {
- type: "website",
- url: "https://www.animstats.com/",
- },
- ],
- author: {
- url: "https://twitter.com/audiencon",
- name: "Audiencon",
- },
- },
- {
- title: "Banger Show - Music visuals",
- type: "mux_video",
- time: "0",
- muxId: "nDU01DSCFdvie6l9Z8u557TwSvJMsnhO3pfTqqXDuPbQ",
- description:
- "High quality music visuals without learning 3D or video editing software.",
- height: 1080,
- width: 1920,
- submittedOn: new Date("04-24-2024"),
- links: [
- {
- type: "website",
- url: "https://banger.show/",
- },
- ],
- },
- {
- title: "MotionShot - Video guides",
- type: "mux_video",
- time: "0",
- muxId: "q8DK3k322cMIfMwPTSu5GYEnovEvoYA4aprLH8cp5pY",
- description:
- "Make guides & tutorials for your products, internal tools, SOPs, step-by-step processing and export them into MP4, GIF, PDF, or embed into your own webpage.",
- height: 1080,
- width: 1920,
- submittedOn: new Date("04-24-2024"),
- links: [
- {
- type: "website",
- url: "https://www.motionshot.app/",
- },
- ],
- author: {
- url: "https://twitter.com/pramodk73",
- name: "Pramod Kumar",
- },
- },
- {
- title: "Watercolor Map - Animated map",
- type: "mux_video",
- time: "1",
- muxId: "Wd02W8GdZsjQ3JSKUsOjKtpEGxXBNbXRg8hiwmYx7cTM",
- description:
- "A travel animation showing the journey on a map, with watercolor effects. Perfect for adding b-roll footage to travel vlogs or video projects.",
- height: 1080,
- width: 1080,
- submittedOn: new Date("04-23-2024"),
- links: [
- {
- type: "source_code",
- url: "https://github.com/remotion-dev/github-unwrapped-2023",
- },
- ],
- author: {
- url: "https://www.remotion.dev/",
- name: "Remotion",
- },
- },
- {
- title: "Clippulse - Animated social media videos",
- type: "mux_video",
- time: "4.5",
- muxId: "vQSX6I8lo5SPIEj02jcw6OVKb01V8WcYwB01GUC02PqMHxI",
- description:
- "Clippulse is a dynamic tool to easily produce fully customizable videos for brands, without any prior video editing experience required.",
- height: 1080,
- width: 1920,
- submittedOn: new Date("04-24-2024"),
- links: [
- {
- type: "website",
- url: "https://www.clippulse.com/",
- },
- ],
- author: {
- url: "https://twitter.com/andrei_terteci",
- name: "Andrei Terteci",
- },
- },
- {
- title: "Submagic - Viral shorts",
- type: "mux_video",
- time: "0",
- muxId: "CjBZygWogZoMptDHSOgYFZ9019oQMIkQqliQlgpWpyP4",
- description:
- "Make your short-form videos more captivating with Captions, B-Rolls, Zooms and Sound Effects.",
- height: 1080,
- width: 1920,
- submittedOn: new Date("04-25-2024"),
- links: [
- {
- type: "video",
- url: "https://www.youtube.com/watch?v=hNKola6xpqQ",
- },
- ],
- author: {
- url: "https://www.submagic.co/",
- name: "Submagic",
- },
- },
- {
- title: "Polygon - Campaign",
- type: "mux_video",
- time: "10",
- muxId: "tswSoVoFUjryYX8702phE801Fv00VwtB018cIy3a25fNo01c",
- description:
- "A year-in-review for stock performance provided by Polygon Stock API.",
- height: 1194,
- width: 2048,
- submittedOn: new Date("01-02-2023"),
- links: [],
- author: {
- url: "https://polygon.io",
- name: "Polygon",
- },
- },
- {
- title: "Hello Météo - Weather app",
- type: "mux_video",
- time: "5",
- muxId: "6ZdkFhso67CenQGpVtjTf300VsYMD01gvag6G6hV6UD00M",
- description:
- "A weather report generator, which gets OpenWeather data and renders a video with the forecast on a daily basis. It also creates a story on social media.",
- height: 1920,
- width: 1080,
- submittedOn: new Date("04-25-2024"),
- links: [
- {
- type: "website",
- url: "https://www.instagram.com/hellometeo/",
- },
- ],
- author: {
- url: "https://www.pergoud.com/",
- name: "Florent Pergoud",
- },
- },
- {
- title: "Electricity Maps - Data visualization",
- type: "mux_video",
- time: "2.9",
- muxId: "63euRVDpjG02pCGuf02LDJXKLzLrGW3j400GE3kVZRYDgI",
- description:
- "A visualization of heavy electricity data in Europe. It shows fluctuations in grid emissions on the map, as well as the daily country variations in a chart.",
- height: 1080,
- width: 1920,
- submittedOn: new Date("04-26-2024"),
- links: [
- {
- type: "video",
- url: "https://www.youtube.com/watch?v=5m48kkhak-M",
- },
- {
- type: "website",
- url: "https://www.electricitymaps.com/electricity-mapped",
- },
- ],
- author: {
- url: "https://www.electricitymaps.com/",
- name: "Electricity Maps",
- },
- },
- {
- title: "Remotion Recorder - Screencast videos",
- type: "mux_video",
- time: "0",
- muxId: "HCA9phm4tUVjYm9dFWj1GpYTwIGrse00yg01SwaM2PbJU",
- description:
- "Fully featured screen recording software built with Remotion. Record your screen, webcam, and audio. Edit and render the video for multiple platforms quickly in the same tool.",
- height: 1080,
- width: 1920,
- submittedOn: new Date("04-26-2024"),
- links: [
- {
- type: "website",
- url: "https://www.remotion.pro/recorder",
- },
- ],
- author: {
- url: "https://www.remotion.dev",
- name: "Remotion",
- },
- },
- {
- title: "Fluidmotion - Animated video backgrounds",
- type: "mux_video",
- time: "0",
- muxId: "eLyQruncRGvNahd3n9hB44OuziMYqGgS8R1xyhbz02s4",
- description:
- "Create beautiful animated background for apps, videos or presentations.",
- height: 1080,
- width: 1920,
- submittedOn: new Date("05-15-2024"),
- links: [
- {
- type: "website",
- url: "https://fluidmotion.app/",
- },
- ],
- },
+ {
+ title: 'Hackreels - Animate your code',
+ type: 'mux_video',
+ time: '0',
+ muxId: 'IOSwIZiNUsdfcg9ccN3E2vqzen92L99VgoP3Q5p9On8',
+ description:
+ 'Create effortlessly beautiful code animations in seconds. Hackreels detects code changes automatically and makes stunning animations based on those changes. ',
+ height: 1080,
+ width: 1920,
+ submittedOn: new Date('04-22-2024'),
+ links: [
+ {
+ type: 'video',
+ url: 'https://twitter.com/dparksdev/status/1715725060324073582',
+ },
+ {
+ type: 'website',
+ url: 'https://www.hackreels.com/',
+ },
+ ],
+ author: {
+ url: 'https://davidparks.dev/',
+ name: 'David Parks',
+ },
+ },
+ {
+ title: 'MUX - Vizualise video stats',
+ type: 'mux_video',
+ time: '3',
+ muxId: 'DDgXb2KfPk7xdvxEoyPkrl7GcybohNon',
+ description:
+ 'An article on how to showcase your video stats by creating a dynamic animated video using Remotion and the Mux Data API.',
+ height: 270,
+ width: 480,
+ submittedOn: new Date('19-01-2022'),
+ links: [
+ {
+ type: 'source_code',
+ url: 'https://github.com/davekiss/mux-remotion-demo/',
+ },
+ {
+ type: 'video',
+ url: 'https://twitter.com/MuxHQ/status/1483514610380644357',
+ },
+ {
+ type: 'tutorial',
+ url: 'https://mux.com/blog/visualize-mux-data-with-remotion/',
+ },
+ ],
+ author: {
+ url: 'https://davekiss.com/',
+ name: 'Dave Kiss',
+ },
+ },
+ {
+ title: 'Next.js - Video tutorial',
+ type: 'mux_video',
+ time: '10',
+ muxId: 'dWxzp02gvlUM42a6GSQ02g006qiW2T43QGeuszqimY0200AE',
+ description:
+ "Delba Oliveira visually explains Vercel's Next.js and the concept of React.",
+ height: 1080,
+ width: 1920,
+ submittedOn: new Date('10-09-2023'),
+ links: [
+ {
+ type: 'video',
+ url: 'https://twitter.com/delba_oliveira/status/1707439537054535867',
+ },
+ {
+ type: 'website',
+ url: 'https://www.youtube.com/@Delba',
+ },
+ ],
+ author: {
+ url: 'https://delba.dev/',
+ name: 'Delba Oliveira',
+ },
+ },
+ {
+ title: 'GitHub Unwrapped - Campaign',
+ type: 'mux_video',
+ time: '6',
+ muxId: 'OwQFvqomOR00q6yj5SWwaA7DBg01NaCPKcOvczoZqCty00',
+ description:
+ 'A year-in-review video campaign for GitHub, where each user gets a personalized video based on their GitHub activity.',
+ height: 1080,
+ width: 1080,
+ submittedOn: new Date('04-23-2024'),
+ links: [
+ {
+ type: 'website',
+ url: 'https://githubunwrapped.com/',
+ },
+ {
+ type: 'source_code',
+ url: 'https://github.com/remotion-dev/github-unwrapped-2023',
+ },
+ ],
+ author: {
+ url: 'https://www.remotion.dev/',
+ name: 'Remotion',
+ },
+ },
+ {
+ title: 'Revid - Animated social media videos',
+ type: 'mux_video',
+ time: '13',
+ muxId: 'AQJeyQ00njF88JNevZ2Xf00KGOX01zBLBa4Xisvu9M00ynM',
+ description:
+ 'Create stunning social media videos with Revid, an AI-powered tool that transforms text into editable videos in minutes. ',
+ height: 1152,
+ width: 2048,
+ submittedOn: new Date('04-24-2024'),
+ links: [
+ {
+ type: 'website',
+ url: 'https://www.revid.ai/',
+ },
+ ],
+ author: {
+ url: 'https://twitter.com/tibo_maker',
+ name: 'Tibo',
+ },
+ },
+ {
+ title: 'AnimStats - Animated statistics',
+ type: 'mux_video',
+ time: '8',
+ muxId: 'DudsRLermQWA5JMpF6Z49AwuAjrvO00vxmsgSyS00neo00',
+ description:
+ 'With AnimStats, you can transform your statistics into captivating animated GIFs and Videos within minutes. The user-friendly interface and powerful editing feature make the process quick and effortless.',
+ height: 1152,
+ width: 2048,
+ submittedOn: new Date('04-24-2024'),
+ links: [
+ {
+ type: 'website',
+ url: 'https://www.animstats.com/',
+ },
+ ],
+ author: {
+ url: 'https://twitter.com/audiencon',
+ name: 'Audiencon',
+ },
+ },
+ {
+ title: 'Banger Show - Music visuals',
+ type: 'mux_video',
+ time: '0',
+ muxId: 'nDU01DSCFdvie6l9Z8u557TwSvJMsnhO3pfTqqXDuPbQ',
+ description:
+ 'High quality music visuals without learning 3D or video editing software.',
+ height: 1080,
+ width: 1920,
+ submittedOn: new Date('04-24-2024'),
+ links: [
+ {
+ type: 'website',
+ url: 'https://banger.show/',
+ },
+ ],
+ },
+ {
+ title: 'MotionShot - Video guides',
+ type: 'mux_video',
+ time: '0',
+ muxId: 'q8DK3k322cMIfMwPTSu5GYEnovEvoYA4aprLH8cp5pY',
+ description:
+ 'Make guides & tutorials for your products, internal tools, SOPs, step-by-step processing and export them into MP4, GIF, PDF, or embed into your own webpage.',
+ height: 1080,
+ width: 1920,
+ submittedOn: new Date('04-24-2024'),
+ links: [
+ {
+ type: 'website',
+ url: 'https://www.motionshot.app/',
+ },
+ ],
+ author: {
+ url: 'https://twitter.com/pramodk73',
+ name: 'Pramod Kumar',
+ },
+ },
+ {
+ title: 'Watercolor Map - Animated map',
+ type: 'mux_video',
+ time: '1',
+ muxId: 'Wd02W8GdZsjQ3JSKUsOjKtpEGxXBNbXRg8hiwmYx7cTM',
+ description:
+ 'A travel animation showing the journey on a map, with watercolor effects. Perfect for adding b-roll footage to travel vlogs or video projects.',
+ height: 1080,
+ width: 1080,
+ submittedOn: new Date('04-23-2024'),
+ links: [
+ {
+ type: 'source_code',
+ url: 'https://github.com/remotion-dev/github-unwrapped-2023',
+ },
+ ],
+ author: {
+ url: 'https://www.remotion.dev/',
+ name: 'Remotion',
+ },
+ },
+ {
+ title: 'Clippulse - Animated social media videos',
+ type: 'mux_video',
+ time: '4.5',
+ muxId: 'vQSX6I8lo5SPIEj02jcw6OVKb01V8WcYwB01GUC02PqMHxI',
+ description:
+ 'Clippulse is a dynamic tool to easily produce fully customizable videos for brands, without any prior video editing experience required.',
+ height: 1080,
+ width: 1920,
+ submittedOn: new Date('04-24-2024'),
+ links: [
+ {
+ type: 'website',
+ url: 'https://www.clippulse.com/',
+ },
+ ],
+ author: {
+ url: 'https://twitter.com/andrei_terteci',
+ name: 'Andrei Terteci',
+ },
+ },
+ {
+ title: 'Submagic - Viral shorts',
+ type: 'mux_video',
+ time: '0',
+ muxId: 'CjBZygWogZoMptDHSOgYFZ9019oQMIkQqliQlgpWpyP4',
+ description:
+ 'Make your short-form videos more captivating with Captions, B-Rolls, Zooms and Sound Effects.',
+ height: 1080,
+ width: 1920,
+ submittedOn: new Date('04-25-2024'),
+ links: [
+ {
+ type: 'video',
+ url: 'https://www.youtube.com/watch?v=hNKola6xpqQ',
+ },
+ ],
+ author: {
+ url: 'https://www.submagic.co/',
+ name: 'Submagic',
+ },
+ },
+ {
+ title: 'Polygon - Campaign',
+ type: 'mux_video',
+ time: '10',
+ muxId: 'tswSoVoFUjryYX8702phE801Fv00VwtB018cIy3a25fNo01c',
+ description:
+ 'A year-in-review for stock performance provided by Polygon Stock API.',
+ height: 1194,
+ width: 2048,
+ submittedOn: new Date('01-02-2023'),
+ links: [],
+ author: {
+ url: 'https://polygon.io',
+ name: 'Polygon',
+ },
+ },
+ {
+ title: 'Hello Météo - Weather app',
+ type: 'mux_video',
+ time: '5',
+ muxId: '6ZdkFhso67CenQGpVtjTf300VsYMD01gvag6G6hV6UD00M',
+ description:
+ 'A weather report generator, which gets OpenWeather data and renders a video with the forecast on a daily basis. It also creates a story on social media.',
+ height: 1920,
+ width: 1080,
+ submittedOn: new Date('04-25-2024'),
+ links: [
+ {
+ type: 'website',
+ url: 'https://www.instagram.com/hellometeo/',
+ },
+ ],
+ author: {
+ url: 'https://www.pergoud.com/',
+ name: 'Florent Pergoud',
+ },
+ },
+ {
+ title: 'Electricity Maps - Data visualization',
+ type: 'mux_video',
+ time: '2.9',
+ muxId: '63euRVDpjG02pCGuf02LDJXKLzLrGW3j400GE3kVZRYDgI',
+ description:
+ 'A visualization of heavy electricity data in Europe. It shows fluctuations in grid emissions on the map, as well as the daily country variations in a chart.',
+ height: 1080,
+ width: 1920,
+ submittedOn: new Date('04-26-2024'),
+ links: [
+ {
+ type: 'video',
+ url: 'https://www.youtube.com/watch?v=5m48kkhak-M',
+ },
+ {
+ type: 'website',
+ url: 'https://www.electricitymaps.com/electricity-mapped',
+ },
+ ],
+ author: {
+ url: 'https://www.electricitymaps.com/',
+ name: 'Electricity Maps',
+ },
+ },
+ {
+ title: 'Remotion Recorder - Screencast videos',
+ type: 'mux_video',
+ time: '0',
+ muxId: 'HCA9phm4tUVjYm9dFWj1GpYTwIGrse00yg01SwaM2PbJU',
+ description:
+ 'Fully featured screen recording software built with Remotion. Record your screen, webcam, and audio. Edit and render the video for multiple platforms quickly in the same tool.',
+ height: 1080,
+ width: 1920,
+ submittedOn: new Date('04-26-2024'),
+ links: [
+ {
+ type: 'website',
+ url: 'https://www.remotion.pro/recorder',
+ },
+ ],
+ author: {
+ url: 'https://www.remotion.dev',
+ name: 'Remotion',
+ },
+ },
+ {
+ title: 'Fluidmotion - Animated video backgrounds',
+ type: 'mux_video',
+ time: '0',
+ muxId: 'eLyQruncRGvNahd3n9hB44OuziMYqGgS8R1xyhbz02s4',
+ description:
+ 'Create beautiful animated background for apps, videos or presentations.',
+ height: 1080,
+ width: 1920,
+ submittedOn: new Date('05-15-2024'),
+ links: [
+ {
+ type: 'website',
+ url: 'https://fluidmotion.app/',
+ },
+ ],
+ },
- /*
+ /*
{
title: "Exemplary AI - Viral shorts",
type: "mux_video",
@@ -1805,13 +1805,13 @@ export const showcaseVideos: ShowcaseVideo[] = [
];
const dateString = (date: Date) =>
- date.getDate() + "-" + date.getMonth() + "-" + date.getFullYear();
+ date.getDate() + '-' + date.getMonth() + '-' + date.getFullYear();
const todayHash = dateString(new Date());
export const shuffledShowcaseVideos =
- typeof window === "undefined"
- ? []
- : showcaseVideos.slice(0).sort((a, b) => {
- return random(a.muxId + todayHash) - random(b.muxId + todayHash);
- });
+ typeof window === 'undefined'
+ ? []
+ : showcaseVideos.slice(0).sort((a, b) => {
+ return random(a.muxId + todayHash) - random(b.muxId + todayHash);
+ });
diff --git a/packages/docs/src/helpers/chunk.ts b/packages/docs/src/helpers/chunk.ts
index 129919a2fe..165ce6bfef 100644
--- a/packages/docs/src/helpers/chunk.ts
+++ b/packages/docs/src/helpers/chunk.ts
@@ -1,6 +1,6 @@
export function chunk<T>(array: T[], chunkSize: number): T[][] {
- const R = [];
- for (let i = 0, len = array.length; i < len; i += chunkSize)
- R.push(array.slice(i, i + chunkSize));
- return R;
+ const R = [];
+ for (let i = 0, len = array.length; i < len; i += chunkSize)
+ R.push(array.slice(i, i + chunkSize));
+ return R;
}
diff --git a/packages/docs/src/helpers/mobile-layout.ts b/packages/docs/src/helpers/mobile-layout.ts
index bef9ea6593..e60b1e0d66 100644
--- a/packages/docs/src/helpers/mobile-layout.ts
+++ b/packages/docs/src/helpers/mobile-layout.ts
@@ -1,8 +1,8 @@
-import { useElementSize } from "./use-el-size";
+import {useElementSize} from './use-el-size';
export const useMobileLayout = () => {
- const containerSize = useElementSize(
- typeof document === "undefined" ? null : document.body,
- );
- return (containerSize?.width ?? Infinity) < 900;
+ const containerSize = useElementSize(
+ typeof document === 'undefined' ? null : document.body,
+ );
+ return (containerSize?.width ?? Infinity) < 900;
};
diff --git a/packages/docs/src/helpers/use-el-size.ts b/packages/docs/src/helpers/use-el-size.ts
index af2243eee3..7580586849 100644
--- a/packages/docs/src/helpers/use-el-size.ts
+++ b/packages/docs/src/helpers/use-el-size.ts
@@ -1,51 +1,51 @@
-import { useCallback, useEffect, useMemo, useState } from "react";
+import {useCallback, useEffect, useMemo, useState} from 'react';
export type Size = {
- width: number;
- height: number;
+ width: number;
+ height: number;
};
export const useElementSize = (ref: HTMLElement | null): Size | null => {
- const [size, setSize] = useState<Size | null>(null);
- const observer = useMemo(() => {
- if (typeof ResizeObserver === "undefined") {
- return;
- }
+ const [size, setSize] = useState<Size | null>(null);
+ const observer = useMemo(() => {
+ if (typeof ResizeObserver === 'undefined') {
+ return;
+ }
- return new ResizeObserver((entries) => {
- setSize({
- width: entries[0].contentRect.width,
- height: entries[0].contentRect.height,
- });
- });
- }, []);
- const updateSize = useCallback(() => {
- if (ref === null) {
- return;
- }
+ return new ResizeObserver((entries) => {
+ setSize({
+ width: entries[0].contentRect.width,
+ height: entries[0].contentRect.height,
+ });
+ });
+ }, []);
+ const updateSize = useCallback(() => {
+ if (ref === null) {
+ return;
+ }
- const rect = ref.getClientRects();
- setSize({
- width: rect[0].width as number,
- height: rect[0].height as number,
- });
- }, [ref]);
+ const rect = ref.getClientRects();
+ setSize({
+ width: rect[0].width as number,
+ height: rect[0].height as number,
+ });
+ }, [ref]);
- useEffect(() => {
- updateSize();
- if (!observer) {
- return;
- }
+ useEffect(() => {
+ updateSize();
+ if (!observer) {
+ return;
+ }
- if (ref) {
- observer.observe(ref);
- }
+ if (ref) {
+ observer.observe(ref);
+ }
- return (): void => {
- if (ref) {
- observer.unobserve(ref);
- }
- };
- }, [observer, ref, updateSize]);
- return size;
+ return (): void => {
+ if (ref) {
+ observer.unobserve(ref);
+ }
+ };
+ }, [observer, ref, updateSize]);
+ return size;
};
diff --git a/packages/docs/src/icons/arrows.tsx b/packages/docs/src/icons/arrows.tsx
index 4eb766bed8..e5b3a4087e 100644
--- a/packages/docs/src/icons/arrows.tsx
+++ b/packages/docs/src/icons/arrows.tsx
@@ -1,61 +1,61 @@
-import type { SVGProps } from "react";
-import React from "react";
+import type {SVGProps} from 'react';
+import React from 'react';
export const IconLeft: React.FC<SVGProps<SVGSVGElement>> = (props) => (
- <svg viewBox="0 0 320 512" {...props}>
- <path
- fill="currentColor"
- d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"
- />
- </svg>
+ <svg viewBox="0 0 320 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"
+ />
+ </svg>
);
export const IconRight: React.FC<SVGProps<SVGSVGElement>> = (props) => (
- <svg viewBox="0 0 320 512" {...props}>
- <path
- fill="currentColor"
- d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"
- />
- </svg>
+ <svg viewBox="0 0 320 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"
+ />
+ </svg>
);
export const CancelIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg
- aria-hidden="true"
- focusable="false"
- data-prefix="fas"
- data-icon="times"
- className="svg-inline--fa fa-times fa-w-11"
- role="img"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 352 512"
- {...props}
- >
- <path
- fill="currentColor"
- d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
- />
- </svg>
- );
+ return (
+ <svg
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fas"
+ data-icon="times"
+ className="svg-inline--fa fa-times fa-w-11"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 352 512"
+ {...props}
+ >
+ <path
+ fill="currentColor"
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
+ />
+ </svg>
+ );
};
export const PausedIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg
- aria-hidden="true"
- focusable="false"
- data-prefix="fas"
- data-icon="play"
- className="svg-inline--fa fa-play fa-w-14"
- role="img"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 448 512"
- {...props}
- >
- <path
- fill="currentColor"
- d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"
- />
- </svg>
- );
+ return (
+ <svg
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fas"
+ data-icon="play"
+ className="svg-inline--fa fa-play fa-w-14"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ {...props}
+ >
+ <path
+ fill="currentColor"
+ d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"
+ />
+ </svg>
+ );
};
diff --git a/packages/docs/src/pages/4/index.tsx b/packages/docs/src/pages/4/index.tsx
index 53ffd0efc3..1e13b9a959 100644
--- a/packages/docs/src/pages/4/index.tsx
+++ b/packages/docs/src/pages/4/index.tsx
@@ -1,241 +1,241 @@
/* eslint-disable no-alert */
-import Head from "@docusaurus/Head";
-import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
-import Layout from "@theme/Layout";
-import React, { useCallback, useMemo, useState } from "react";
-import { CoolInput } from "../../../components/TextInput";
-import { PlainButton } from "../../../components/layout/Button";
-import { Spacer } from "../../../components/layout/Spacer";
-import { DoMoreHero } from "../../components/DoMoreHero/DoMoreHero";
-import { Seo } from "../../components/Seo";
-import styles from "./v4.module.css";
+import Head from '@docusaurus/Head';
+import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
+import Layout from '@theme/Layout';
+import React, {useCallback, useMemo, useState} from 'react';
+import {CoolInput} from '../../../components/TextInput';
+import {PlainButton} from '../../../components/layout/Button';
+import {Spacer} from '../../../components/layout/Spacer';
+import {DoMoreHero} from '../../components/DoMoreHero/DoMoreHero';
+import {Seo} from '../../components/Seo';
+import styles from './v4.module.css';
const spacer: React.CSSProperties = {
- height: "10px",
+ height: '10px',
};
const errorStyle: React.CSSProperties = {
- color: "#FF3232",
- textAlign: "center",
+ color: '#FF3232',
+ textAlign: 'center',
};
export const EventComp: React.FC<{
- date: string;
- title: string;
- description: string;
- youtubeId?: string;
-}> = ({ date, title, description, youtubeId }) => {
- return (
- <div
- style={{
- border: "2px solid var(--ifm-font-color-base)",
- borderBottomWidth: 4,
- borderRadius: 8,
- padding: 10,
- }}
- >
- <p className={styles.date}>{date}</p>
- <p className={styles.eventtitle}>{title}</p>
- <p>{description}</p>
- {youtubeId ? (
- <iframe
- style={{
- width: "100%",
- aspectRatio: "16 / 9",
- }}
- src={`https://www.youtube.com/embed/${youtubeId}`}
- title="YouTube video player"
- frameBorder="0"
- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
- allowFullScreen
- />
- ) : (
- <div
- style={{
- width: "100%",
- aspectRatio: "16 / 9",
- backgroundColor: "var(--ifm-out-of-focus)",
- borderRadius: 5,
- display: "flex",
- justifyContent: "center",
- alignItems: "center",
- }}
- >
- <div
- style={{
- color: "var(--ifm-subtitle)",
- justifyContent: "center",
- alignItems: "center",
- fontWeight: "bold",
- }}
- >
- Check back {date}
- </div>
- </div>
- )}
- </div>
- );
+ date: string;
+ title: string;
+ description: string;
+ youtubeId?: string;
+}> = ({date, title, description, youtubeId}) => {
+ return (
+ <div
+ style={{
+ border: '2px solid var(--ifm-font-color-base)',
+ borderBottomWidth: 4,
+ borderRadius: 8,
+ padding: 10,
+ }}
+ >
+ <p className={styles.date}>{date}</p>
+ <p className={styles.eventtitle}>{title}</p>
+ <p>{description}</p>
+ {youtubeId ? (
+ <iframe
+ style={{
+ width: '100%',
+ aspectRatio: '16 / 9',
+ }}
+ src={`https://www.youtube.com/embed/${youtubeId}`}
+ title="YouTube video player"
+ frameBorder="0"
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
+ allowFullScreen
+ />
+ ) : (
+ <div
+ style={{
+ width: '100%',
+ aspectRatio: '16 / 9',
+ backgroundColor: 'var(--ifm-out-of-focus)',
+ borderRadius: 5,
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <div
+ style={{
+ color: 'var(--ifm-subtitle)',
+ justifyContent: 'center',
+ alignItems: 'center',
+ fontWeight: 'bold',
+ }}
+ >
+ Check back {date}
+ </div>
+ </div>
+ )}
+ </div>
+ );
};
const V4: React.FC = () => {
- const context = useDocusaurusContext();
+ const context = useDocusaurusContext();
- const [email, setEmail] = useState<string>(null);
- const [loading, setLoading] = useState<boolean>(false);
- const [subscribed, setSubscribed] = useState<boolean>(false);
- const [error, setError] = useState<string | null>(null);
- const buttonLabel = useMemo(() => {
- if (subscribed) {
- return "You're signed up!";
- }
+ const [email, setEmail] = useState<string>(null);
+ const [loading, setLoading] = useState<boolean>(false);
+ const [subscribed, setSubscribed] = useState<boolean>(false);
+ const [error, setError] = useState<string | null>(null);
+ const buttonLabel = useMemo(() => {
+ if (subscribed) {
+ return "You're signed up!";
+ }
- return loading ? "Signing up..." : "Sign up";
- }, [loading, subscribed]);
- const isValidEmail = (inputMail: string) =>
- /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(inputMail);
+ return loading ? 'Signing up...' : 'Sign up';
+ }, [loading, subscribed]);
+ const isValidEmail = (inputMail: string) =>
+ /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(inputMail);
- const onChange: React.ChangeEventHandler<HTMLInputElement> = useCallback(
- (e) => {
- setEmail(e.target.value);
- },
- [],
- );
+ const onChange: React.ChangeEventHandler<HTMLInputElement> = useCallback(
+ (e) => {
+ setEmail(e.target.value);
+ },
+ [],
+ );
- const onSubmit: React.FormEventHandler = useCallback(
- async (e) => {
- try {
- e.preventDefault();
- setSubscribed(false);
- setError(null);
+ const onSubmit: React.FormEventHandler = useCallback(
+ async (e) => {
+ try {
+ e.preventDefault();
+ setSubscribed(false);
+ setError(null);
- if (isValidEmail(email)) {
- setLoading(true);
- const res = await fetch("https://www.remotion.pro/api/newsletter", {
- method: "POST",
- body: JSON.stringify({ email }),
- headers: { "content-type": "application/json" },
- });
- const json = await res.json();
- if (json.success) {
- setSubscribed(true);
- } else {
- setLoading(false);
- alert("Something went wrong. Please try again later.");
- }
- } else {
- setError("Invalid email provided");
- }
- } catch (err) {
- setLoading(false);
- alert("Something went wrong. Please try again later");
- console.error(err);
- }
- },
- [email],
- );
+ if (isValidEmail(email)) {
+ setLoading(true);
+ const res = await fetch('https://www.remotion.pro/api/newsletter', {
+ method: 'POST',
+ body: JSON.stringify({email}),
+ headers: {'content-type': 'application/json'},
+ });
+ const json = await res.json();
+ if (json.success) {
+ setSubscribed(true);
+ } else {
+ setLoading(false);
+ alert('Something went wrong. Please try again later.');
+ }
+ } else {
+ setError('Invalid email provided');
+ }
+ } catch (err) {
+ setLoading(false);
+ alert('Something went wrong. Please try again later');
+ console.error(err);
+ }
+ },
+ [email],
+ );
- return (
- <Layout>
- <Head>
- {Seo.renderTitle("Do more with React | Remotion 4.0")}
- {Seo.renderImage("/img/remotion4.png", context.siteConfig.url)}
- </Head>
- <DoMoreHero />
+ return (
+ <Layout>
+ <Head>
+ {Seo.renderTitle('Do more with React | Remotion 4.0')}
+ {Seo.renderImage('/img/remotion4.png', context.siteConfig.url)}
+ </Head>
+ <DoMoreHero />
- <div className={styles.container}>
- <div className={styles.wrapper}>
- <h1 className={styles.pagetitle}>Do more with React</h1>
- <div style={{ display: "flex", justifyContent: "center" }}>
- <p className={styles.title}>
- Discover the new capabilities of Remotion 4.0 from July 3 – July 7
- </p>
- </div>
- <br />
- <div
- style={{
- textAlign: "center",
- display: "flex",
- justifyContent: "center",
- }}
- >
- <a
- style={{
- textDecoration: "none",
- }}
- className={styles.a}
- href="/blog/4-0"
- >
- <PlainButton size="sm" loading={false} fullWidth={false}>
- View announcement blog post
- </PlainButton>
- </a>
- </div>
+ <div className={styles.container}>
+ <div className={styles.wrapper}>
+ <h1 className={styles.pagetitle}>Do more with React</h1>
+ <div style={{display: 'flex', justifyContent: 'center'}}>
+ <p className={styles.title}>
+ Discover the new capabilities of Remotion 4.0 from July 3 – July 7
+ </p>
+ </div>
+ <br />
+ <div
+ style={{
+ textAlign: 'center',
+ display: 'flex',
+ justifyContent: 'center',
+ }}
+ >
+ <a
+ style={{
+ textDecoration: 'none',
+ }}
+ className={styles.a}
+ href="/blog/4-0"
+ >
+ <PlainButton size="sm" loading={false} fullWidth={false}>
+ View announcement blog post
+ </PlainButton>
+ </a>
+ </div>
- <br />
- <div className={styles.grid}>
- <EventComp
- description="Celebrate the launch of Remotion 4.0 and experience the new possibilities of media creation with React."
- date="July 3rd"
- title="Keynote"
- youtubeId="S3C9wlPNhkQ"
- />
- <EventComp
- date="July 4th"
- title="Visual editing"
- description="Expose parameters to the user interface, edit them, see the result in real-time and save them back to code."
- youtubeId="NX9YTOsLGpQ"
- />
- <EventComp
- date="July 5th"
- title="Render button"
- description="Configure, queue and track renders with the newest way to render using Remotion."
- youtubeId="ywRZvG94SPI"
- />
- <EventComp
- description="Leverage the new system for data fetching and dynamically calculating the duration and dimensions of your video."
- date="July 6th"
- title="Data-driven videos"
- youtubeId="JrxL3mYY22c"
- />
- <EventComp
- description="A rundown of the remaining improvements coming with Remotion 4.0."
- date="July 7th"
- title="Last but not least"
- youtubeId="UCJn8uiWNxQ"
- />
- <div className={styles.panel}>
- <div style={{ marginBottom: 10 }}>
- Sign up for our newsletter to stay up to date:
- </div>
- <form style={{ width: "100%" }} onSubmit={onSubmit}>
- <CoolInput
- type="email"
- autoComplete="none"
- onChange={onChange}
- placeholder="Your email adress"
- style={{ width: "100%", fontFamily: "GTPlanar" }}
- />
- <Spacer />
- <div>
- <button
- type="submit"
- className={styles.submitbutton}
- disabled={loading || subscribed}
- >
- {buttonLabel}
- </button>
- </div>
- </form>
- <Spacer />
- <div style={errorStyle}>{error}</div>
- </div>
- </div>
- <div style={spacer} />
- <div style={spacer} />
- </div>
- </div>
- </Layout>
- );
+ <br />
+ <div className={styles.grid}>
+ <EventComp
+ description="Celebrate the launch of Remotion 4.0 and experience the new possibilities of media creation with React."
+ date="July 3rd"
+ title="Keynote"
+ youtubeId="S3C9wlPNhkQ"
+ />
+ <EventComp
+ date="July 4th"
+ title="Visual editing"
+ description="Expose parameters to the user interface, edit them, see the result in real-time and save them back to code."
+ youtubeId="NX9YTOsLGpQ"
+ />
+ <EventComp
+ date="July 5th"
+ title="Render button"
+ description="Configure, queue and track renders with the newest way to render using Remotion."
+ youtubeId="ywRZvG94SPI"
+ />
+ <EventComp
+ description="Leverage the new system for data fetching and dynamically calculating the duration and dimensions of your video."
+ date="July 6th"
+ title="Data-driven videos"
+ youtubeId="JrxL3mYY22c"
+ />
+ <EventComp
+ description="A rundown of the remaining improvements coming with Remotion 4.0."
+ date="July 7th"
+ title="Last but not least"
+ youtubeId="UCJn8uiWNxQ"
+ />
+ <div className={styles.panel}>
+ <div style={{marginBottom: 10}}>
+ Sign up for our newsletter to stay up to date:
+ </div>
+ <form style={{width: '100%'}} onSubmit={onSubmit}>
+ <CoolInput
+ type="email"
+ autoComplete="none"
+ onChange={onChange}
+ placeholder="Your email adress"
+ style={{width: '100%', fontFamily: 'GTPlanar'}}
+ />
+ <Spacer />
+ <div>
+ <button
+ type="submit"
+ className={styles.submitbutton}
+ disabled={loading || subscribed}
+ >
+ {buttonLabel}
+ </button>
+ </div>
+ </form>
+ <Spacer />
+ <div style={errorStyle}>{error}</div>
+ </div>
+ </div>
+ <div style={spacer} />
+ <div style={spacer} />
+ </div>
+ </div>
+ </Layout>
+ );
};
export default V4;
diff --git a/packages/docs/src/pages/4/v4.module.css b/packages/docs/src/pages/4/v4.module.css
index 19d764b369..08a8c699aa 100644
--- a/packages/docs/src/pages/4/v4.module.css
+++ b/packages/docs/src/pages/4/v4.module.css
@@ -1,137 +1,137 @@
.container {
- position: relative;
- z-index: 1;
- margin-top: -5vw;
+ position: relative;
+ z-index: 1;
+ margin-top: -5vw;
}
.wrapper {
- max-width: 1000px;
- margin: auto;
- padding-left: 20px;
- padding-right: 20px;
- display: flex;
- flex-direction: column;
+ max-width: 1000px;
+ margin: auto;
+ padding-left: 20px;
+ padding-right: 20px;
+ display: flex;
+ flex-direction: column;
}
.panel {
- border: 2px solid var(--ifm-font-color-base);
- border-bottom-width: 4px;
- padding: 14px;
- border-radius: 8px;
- flex: 1;
- padding-bottom: 10px;
- display: flex;
- flex-direction: column;
- min-height: 100px;
- position: relative;
+ border: 2px solid var(--ifm-font-color-base);
+ border-bottom-width: 4px;
+ padding: 14px;
+ border-radius: 8px;
+ flex: 1;
+ padding-bottom: 10px;
+ display: flex;
+ flex-direction: column;
+ min-height: 100px;
+ position: relative;
}
.title {
- font-size: 1.2rem;
- margin-bottom: 0;
- font-weight: 500;
- margin-top: -5px;
- font-weight: 600;
- margin-bottom: 10px;
- text-align: center;
+ font-size: 1.2rem;
+ margin-bottom: 0;
+ font-weight: 500;
+ margin-top: -5px;
+ font-weight: 600;
+ margin-bottom: 10px;
+ text-align: center;
}
.eventtitle {
- font-size: 1.2rem;
- margin-bottom: 0;
- font-weight: 500;
- margin-top: -5px;
- font-weight: 600;
- margin-bottom: 10px;
- margin-left: 70px;
+ font-size: 1.2rem;
+ margin-bottom: 0;
+ font-weight: 500;
+ margin-top: -5px;
+ font-weight: 600;
+ margin-bottom: 10px;
+ margin-left: 70px;
}
.pagetitle {
- font-size: 5em;
- text-align: center;
- font-weight: 900;
+ font-size: 5em;
+ text-align: center;
+ font-weight: 900;
}
@media screen and (max-width: 900px) {
- .pagetitle {
- font-size: 3em;
- }
+ .pagetitle {
+ font-size: 3em;
+ }
}
.button {
- background-color: var(--ifm-color-primary);
- border: none;
- border-radius: 8px;
- padding: 3px 12px;
- font-size: 1.1rem;
- font-weight: 500;
- cursor: pointer;
- margin-top: 10px;
- margin-bottom: 10px;
- display: inline-block;
- text-align: center;
- border: 2px solid black;
- border-bottom-width: 4px;
+ background-color: var(--ifm-color-primary);
+ border: none;
+ border-radius: 8px;
+ padding: 3px 12px;
+ font-size: 1.1rem;
+ font-weight: 500;
+ cursor: pointer;
+ margin-top: 10px;
+ margin-bottom: 10px;
+ display: inline-block;
+ text-align: center;
+ border: 2px solid black;
+ border-bottom-width: 4px;
}
.button:focus {
- border-bottom-width: 2px;
+ border-bottom-width: 2px;
}
.calendarbutton {
- margin-top: -20px;
- position: relative;
- color: white;
+ margin-top: -20px;
+ position: relative;
+ color: white;
}
.button a {
- color: white;
- font-family: "GTPlanar";
- text-decoration: none;
+ color: white;
+ font-family: 'GTPlanar';
+ text-decoration: none;
}
.date {
- background-color: var(--ifm-color-primary);
- border: 2px solid black;
- border-bottom: 3px solid black;
- color: white;
- border-radius: 8px;
- font-family: "GTPlanar";
- padding: 3px 8px;
- display: inline;
- font-weight: bold;
- position: absolute;
- margin-left: -20px;
- margin-top: -8px;
+ background-color: var(--ifm-color-primary);
+ border: 2px solid black;
+ border-bottom: 3px solid black;
+ color: white;
+ border-radius: 8px;
+ font-family: 'GTPlanar';
+ padding: 3px 8px;
+ display: inline;
+ font-weight: bold;
+ position: absolute;
+ margin-left: -20px;
+ margin-top: -8px;
}
.grid {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- grid-gap: 20px;
- margin-top: 20px;
- grid-auto-rows: 1fr;
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ grid-gap: 20px;
+ margin-top: 20px;
+ grid-auto-rows: 1fr;
}
@media screen and (max-width: 900px) {
- .grid {
- grid-template-columns: repeat(1, 1fr);
- }
+ .grid {
+ grid-template-columns: repeat(1, 1fr);
+ }
}
.submitbutton {
- background-color: var(--ifm-color-primary);
- color: white;
- font-family: GTPlanar;
- border: none;
- border-radius: 8px;
- padding: 3px 12px;
- font-size: 1rem;
- font-weight: 500;
- cursor: pointer;
- display: inline;
- position: absolute;
- right: 20px;
- border: 2px solid black;
- margin-top: -30px;
+ background-color: var(--ifm-color-primary);
+ color: white;
+ font-family: GTPlanar;
+ border: none;
+ border-radius: 8px;
+ padding: 3px 12px;
+ font-size: 1rem;
+ font-weight: 500;
+ cursor: pointer;
+ display: inline;
+ position: absolute;
+ right: 20px;
+ border: 2px solid black;
+ margin-top: -30px;
}
diff --git a/packages/docs/src/pages/about/index.tsx b/packages/docs/src/pages/about/index.tsx
index 58ffa1ed2c..254a1f0911 100644
--- a/packages/docs/src/pages/about/index.tsx
+++ b/packages/docs/src/pages/about/index.tsx
@@ -1,32 +1,32 @@
-import Layout from "@theme/Layout";
-import React from "react";
-import { AboutUsHeader } from "../../components/AboutUsHeader";
+import Layout from '@theme/Layout';
+import React from 'react';
+import {AboutUsHeader} from '../../components/AboutUsHeader';
-import Head from "@docusaurus/Head";
-import { TitleTeamCards } from "../../components/TitleTeamCards";
+import Head from '@docusaurus/Head';
+import {TitleTeamCards} from '../../components/TitleTeamCards';
const container: React.CSSProperties = {
- maxWidth: 1000,
- margin: "auto",
- paddingLeft: 16,
- paddingRight: 16,
+ maxWidth: 1000,
+ margin: 'auto',
+ paddingLeft: 16,
+ paddingRight: 16,
};
export default () => {
- return (
- <Layout>
- <br />
- <Head>
- <title>Remotion | About</title>
- <meta name="description" content="Remotion's story." />
- </Head>
- <div style={container}>
- <br />
- <AboutUsHeader />
- <br />
- <TitleTeamCards />
- <br />
- </div>
- </Layout>
- );
+ return (
+ <Layout>
+ <br />
+ <Head>
+ <title>Remotion | About</title>
+ <meta name="description" content="Remotion's story." />
+ </Head>
+ <div style={container}>
+ <br />
+ <AboutUsHeader />
+ <br />
+ <TitleTeamCards />
+ <br />
+ </div>
+ </Layout>
+ );
};
diff --git a/packages/docs/src/pages/contact/index.tsx b/packages/docs/src/pages/contact/index.tsx
index be703e4175..42619de039 100644
--- a/packages/docs/src/pages/contact/index.tsx
+++ b/packages/docs/src/pages/contact/index.tsx
@@ -1,87 +1,87 @@
-import Layout from "@theme/Layout";
-import React from "react";
-import { PlainButton } from "../../../components/layout/Button";
-import { Spacer } from "../../../components/layout/Spacer";
-import { ContactUsHeader } from "../../components/ContactUsHeader";
-import GoogleMaps from "../../components/GoogleMaps";
+import Layout from '@theme/Layout';
+import React from 'react';
+import {PlainButton} from '../../../components/layout/Button';
+import {Spacer} from '../../../components/layout/Spacer';
+import {ContactUsHeader} from '../../components/ContactUsHeader';
+import GoogleMaps from '../../components/GoogleMaps';
-import Head from "@docusaurus/Head";
+import Head from '@docusaurus/Head';
const container: React.CSSProperties = {
- maxWidth: 1000,
- margin: "auto",
- paddingLeft: 16,
- paddingRight: 16,
+ maxWidth: 1000,
+ margin: 'auto',
+ paddingLeft: 16,
+ paddingRight: 16,
};
const button: React.CSSProperties = {
- color: "white",
- fontFamily: "GTPlanar",
- textDecoration: "none",
+ color: 'white',
+ fontFamily: 'GTPlanar',
+ textDecoration: 'none',
};
export default () => {
- return (
- <Layout>
- <br />
- <Head>
- <title>Remotion | Contact</title>
- <meta name="description" content="Contact Remotion" />
- </Head>
- <div style={container}>
- <br />
- <ContactUsHeader />
- <div
- style={{
- textAlign: "center",
- display: "flex",
- justifyContent: "left",
- }}
- >
- <a style={button} target="_blank" href="mailto:[email protected]">
- <PlainButton size="sm" loading={false} fullWidth={false}>
- Contact via email
- </PlainButton>
- </a>
- <Spacer />
- <Spacer />
- <a
- style={button}
- target="_blank"
- href="https://cal.com/remotion/evaluate"
- >
- <PlainButton size="sm" loading={false} fullWidth={false}>
- Schedule evaluation call
- </PlainButton>
- </a>
- </div>
- <br />
- <h2>Do you need technical support and want to chat?</h2>
- <p>
- On Discord, we provide technical support for Remotion. There we can
- quickly write messages back and forth in a public channel.
- </p>
+ return (
+ <Layout>
+ <br />
+ <Head>
+ <title>Remotion | Contact</title>
+ <meta name="description" content="Contact Remotion" />
+ </Head>
+ <div style={container}>
+ <br />
+ <ContactUsHeader />
+ <div
+ style={{
+ textAlign: 'center',
+ display: 'flex',
+ justifyContent: 'left',
+ }}
+ >
+ <a style={button} target="_blank" href="mailto:[email protected]">
+ <PlainButton size="sm" loading={false} fullWidth={false}>
+ Contact via email
+ </PlainButton>
+ </a>
+ <Spacer />
+ <Spacer />
+ <a
+ style={button}
+ target="_blank"
+ href="https://cal.com/remotion/evaluate"
+ >
+ <PlainButton size="sm" loading={false} fullWidth={false}>
+ Schedule evaluation call
+ </PlainButton>
+ </a>
+ </div>
+ <br />
+ <h2>Do you need technical support and want to chat?</h2>
+ <p>
+ On Discord, we provide technical support for Remotion. There we can
+ quickly write messages back and forth in a public channel.
+ </p>
- <p>
- Note: Please read our <a href="docs/support">Support Policy</a>.{" "}
- {"It's"} important to know that we {"don't"} offer troubleshooting
- help via DMs on Discord.
- </p>
- <div
- style={{
- textAlign: "center",
- display: "flex",
- justifyContent: "left",
- }}
- >
- <a style={button} target="_blank" href="https://remotion.dev/discord">
- <PlainButton size="sm" loading={false} fullWidth={false}>
- Join Discord
- </PlainButton>
- </a>
- </div>
- </div>
- <GoogleMaps />
- </Layout>
- );
+ <p>
+ Note: Please read our <a href="docs/support">Support Policy</a>.{' '}
+ {"It's"} important to know that we {"don't"} offer troubleshooting
+ help via DMs on Discord.
+ </p>
+ <div
+ style={{
+ textAlign: 'center',
+ display: 'flex',
+ justifyContent: 'left',
+ }}
+ >
+ <a style={button} target="_blank" href="https://remotion.dev/discord">
+ <PlainButton size="sm" loading={false} fullWidth={false}>
+ Join Discord
+ </PlainButton>
+ </a>
+ </div>
+ </div>
+ <GoogleMaps />
+ </Layout>
+ );
};
diff --git a/packages/docs/src/pages/experts/experts.module.css b/packages/docs/src/pages/experts/experts.module.css
index debe6b9ab1..0787602b02 100644
--- a/packages/docs/src/pages/experts/experts.module.css
+++ b/packages/docs/src/pages/experts/experts.module.css
@@ -1,109 +1,109 @@
.container {
- position: relative;
+ position: relative;
}
.background {
- position: fixed;
- inset: 0;
- z-index: -1;
- background-image: url("/img/background-hire-page.svg");
- background-size: 100%;
- background-repeat: no-repeat;
+ position: fixed;
+ inset: 0;
+ z-index: -1;
+ background-image: url('/img/background-hire-page.svg');
+ background-size: 100%;
+ background-repeat: no-repeat;
}
.wrapper {
- max-width: 1000px;
- margin: auto;
- padding-top: 60px;
- padding-left: 20px;
- padding-right: 20px;
+ max-width: 1000px;
+ margin: auto;
+ padding-top: 60px;
+ padding-left: 20px;
+ padding-right: 20px;
}
.card {
- box-shadow: var(--box-shadow);
- padding: 16px;
- border-radius: 6px;
- margin-bottom: 16px;
- display: flex;
- flex-direction: column;
- align-items: center;
- background-color: var(--ifm-navbar-background-color);
- transition: all 0.3s ease-in-out;
+ box-shadow: var(--box-shadow);
+ padding: 16px;
+ border-radius: 6px;
+ margin-bottom: 16px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ background-color: var(--ifm-navbar-background-color);
+ transition: all 0.3s ease-in-out;
}
.card:hover {
- transform: scale(1.02);
- box-shadow: 0 4px 8px 0 rgb(84, 84, 84);
+ transform: scale(1.02);
+ box-shadow: 0 4px 8px 0 rgb(84, 84, 84);
}
.docsButton {
- text-decoration: none;
- transition: all 0.3s ease;
+ text-decoration: none;
+ transition: all 0.3s ease;
}
.docsButton:hover {
- transform: scale(0.987);
+ transform: scale(0.987);
}
.profile {
- height: 200px;
- border-radius: 100px;
+ height: 200px;
+ border-radius: 100px;
}
.spacer {
- height: 20px;
- width: 20px;
+ height: 20px;
+ width: 20px;
}
.title {
- font-size: 1.2rem;
- margin-bottom: 0;
- font-weight: bold;
+ font-size: 1.2rem;
+ margin-bottom: 0;
+ font-weight: bold;
}
.right {
- width: 100%;
+ width: 100%;
}
.socialmedia {
- display: flex;
- flex-direction: row;
- align-items: center;
- color: var(--light-text-color);
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ color: var(--light-text-color);
}
.pagetitle {
- font-size: 3em;
- text-align: center;
+ font-size: 3em;
+ text-align: center;
}
.tagline {
- text-align: center;
+ text-align: center;
}
@media screen and (max-width: 900px) {
- .pagetitle,
- .tagline {
- text-align: left;
- }
+ .pagetitle,
+ .tagline {
+ text-align: left;
+ }
}
@media screen and (max-width: 600px) {
- .card .buttonsInColumn {
- flex-direction: column !important;
- }
+ .card .buttonsInColumn {
+ flex-direction: column !important;
+ }
}
@media screen and (max-width: 600px) {
- .cardContent {
- flex-direction: column !important;
- align-items: center;
- justify-content: center;
- }
+ .cardContent {
+ flex-direction: column !important;
+ align-items: center;
+ justify-content: center;
+ }
}
@media screen and (max-width: 600px) {
- .profile {
- width: 150px;
- height: auto;
- }
+ .profile {
+ width: 150px;
+ height: auto;
+ }
}
diff --git a/packages/docs/src/pages/experts/index.tsx b/packages/docs/src/pages/experts/index.tsx
index d441e95b7a..22dc816f9a 100644
--- a/packages/docs/src/pages/experts/index.tsx
+++ b/packages/docs/src/pages/experts/index.tsx
@@ -1,253 +1,253 @@
-import Head from "@docusaurus/Head";
-import Link from "@docusaurus/Link";
-import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
-import Layout from "@theme/Layout";
-import React, { useMemo } from "react";
-import { random } from "remotion";
-import { BlueButton } from "../../../components/layout/Button";
-import { Spacer } from "../../../components/layout/Spacer";
-import { Seo } from "../../components/Seo";
+import Head from '@docusaurus/Head';
+import Link from '@docusaurus/Link';
+import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
+import Layout from '@theme/Layout';
+import React, {useMemo} from 'react';
+import {random} from 'remotion';
+import {BlueButton} from '../../../components/layout/Button';
+import {Spacer} from '../../../components/layout/Spacer';
+import {Seo} from '../../components/Seo';
import {
- EmailLogo,
- GitHubLogo,
- LinkedInLogo,
- PersonalWebsite,
- TwitterLogo,
- VideoCallLogo,
-} from "../../components/icons";
-import { experts } from "../../data/experts";
-import styles from "./experts.module.css";
+ EmailLogo,
+ GitHubLogo,
+ LinkedInLogo,
+ PersonalWebsite,
+ TwitterLogo,
+ VideoCallLogo,
+} from '../../components/icons';
+import {experts} from '../../data/experts';
+import styles from './experts.module.css';
const dateString = (date: Date) =>
- date.getDate() + "-" + date.getMonth() + "-" + date.getFullYear();
+ date.getDate() + '-' + date.getMonth() + '-' + date.getFullYear();
const todayHash = dateString(new Date());
const docsButton: React.CSSProperties = {
- textDecoration: "none",
+ textDecoration: 'none',
};
const flex: React.CSSProperties = {
- flex: 1,
+ flex: 1,
};
const link: React.CSSProperties = {
- textDecoration: "none",
- color: "inherit",
- width: "100%",
- display: "flex",
- flexDirection: "row",
- paddingTop: 8,
+ textDecoration: 'none',
+ color: 'inherit',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'row',
+ paddingTop: 8,
};
const Experts: React.FC = () => {
- const expertsInRandomOrder = useMemo(() => {
- if (typeof window === "undefined") {
- return [];
- }
-
- // Have a different order every day.
- return experts.sort(
- (a, b) => random(a.name + todayHash) - random(b.name + todayHash),
- );
- }, []);
-
- const context = useDocusaurusContext();
-
- return (
- <Layout>
- <Head>
- {Seo.renderTitle("Remotion Experts | Hire Remotion freelancers")}
- {Seo.renderDescription(
- "Find Remotion freelancers and hire them to create, progress or unblock your Remotion project.",
- )}
- {Seo.renderImage(
- "/img/remotion-experts-og-image.png",
- context.siteConfig.url,
- )}
- </Head>
- <div className={styles.container}>
- <div className={styles.wrapper}>
- <h1 className={styles.pagetitle}>Find a Remotion Expert</h1>
- <p className={styles.tagline}>
- Get help by booking a call or hiring these freelancers to work on
- your Remotion project.
- <br />
- They appear in random order.{" "}
- </p>
- <p className={styles.tagline}>
- <a href="mailto:[email protected]?subject=Remotion+Experts+directory">
- <strong>Are you available for hire? Let us know!</strong>
- </a>
- </p>
- <br />
- <br />
- {expertsInRandomOrder.map((e) => {
- return (
- <div key={e.name} className={styles.card}>
- <Link
- style={link}
- className={styles.cardContent}
- href={`/experts/${e.slug}`}
- >
- <img className={styles.profile} src={e.image} />
- <div className={styles.spacer} />
- <div className={styles.right}>
- <div className={styles.title}>{e.name}</div>
- <p>{e.description}</p>
- </div>
- </Link>
- <Spacer />
- <Spacer />
- <Spacer />
- <Spacer />
- <div
- style={{
- display: "flex",
- flexDirection: "row",
- width: "100%",
- }}
- className={`${styles.buttonsInColumn}`}
- >
- {e.website ? (
- <div style={flex} className={styles.docsButton}>
- <a
- style={docsButton}
- target={"_blank"}
- href={`${e.website}`}
- >
- <BlueButton loading={false} fullWidth size="sm">
- <PersonalWebsite /> Website
- </BlueButton>
- </a>
- </div>
- ) : null}
-
- {e.x ? (
- <>
- {e.website ? (
- <>
- <Spacer />
- <Spacer />
- </>
- ) : null}
-
- <div style={flex} className={styles.docsButton}>
- <a
- style={docsButton}
- target={"_blank"}
- href={`https://x.com/${e.x}`}
- >
- <BlueButton loading={false} fullWidth size="sm">
- <TwitterLogo /> X
- </BlueButton>
- </a>
- </div>
- </>
- ) : null}
-
- {e.github ? (
- <>
- {/* Check if the expert has a website and a GitHub profile, but not a Twitter */}
- {e.website && !e.x ? (
- <>
- <Spacer />
- <Spacer />
- </>
- ) : null}
-
- {e.x ? (
- <>
- <Spacer />
- <Spacer />
- </>
- ) : null}
-
- <div style={flex} className={styles.docsButton}>
- <a
- style={docsButton}
- target={"_blank"}
- href={`https://github.com/${e.github}`}
- >
- <BlueButton loading={false} fullWidth size="sm">
- <GitHubLogo /> GitHub
- </BlueButton>
- </a>
- </div>
- </>
- ) : null}
- </div>
- <Spacer />
- <Spacer />
- <div
- style={{
- display: "flex",
- flexDirection: "row",
- width: "100%",
- }}
- className={`${styles.buttonsInColumn}`}
- >
- {e.linkedin ? (
- <div style={flex} className={styles.docsButton}>
- <a
- style={docsButton}
- target={"_blank"}
- href={`https://www.linkedin.com/${e.linkedin}`}
- >
- <BlueButton loading={false} fullWidth size="sm">
- <LinkedInLogo /> LinkedIn
- </BlueButton>
- </a>
- </div>
- ) : null}
-
- {e.email ? (
- <>
- {e.linkedin ? (
- <>
- <Spacer />
- <Spacer />
- </>
- ) : null}
- <div style={flex} className={styles.docsButton}>
- <a
- style={docsButton}
- target={"_blank"}
- href={`mailto:${e.email}`}
- >
- <BlueButton loading={false} fullWidth size="sm">
- <EmailLogo /> Email
- </BlueButton>
- </a>
- </div>
- </>
- ) : null}
-
- {e.videocall ? (
- <>
- <Spacer />
- <Spacer />
- <div style={flex} className={styles.docsButton}>
- <a
- style={docsButton}
- target={"_blank"}
- href={`https://cal.com/${e.videocall}`}
- >
- <BlueButton loading={false} fullWidth size="sm">
- <VideoCallLogo /> Call
- </BlueButton>
- </a>
- </div>
- </>
- ) : null}
- </div>
- </div>
- );
- })}
- </div>
- </div>
- </Layout>
- );
+ const expertsInRandomOrder = useMemo(() => {
+ if (typeof window === 'undefined') {
+ return [];
+ }
+
+ // Have a different order every day.
+ return experts.sort(
+ (a, b) => random(a.name + todayHash) - random(b.name + todayHash),
+ );
+ }, []);
+
+ const context = useDocusaurusContext();
+
+ return (
+ <Layout>
+ <Head>
+ {Seo.renderTitle('Remotion Experts | Hire Remotion freelancers')}
+ {Seo.renderDescription(
+ 'Find Remotion freelancers and hire them to create, progress or unblock your Remotion project.',
+ )}
+ {Seo.renderImage(
+ '/img/remotion-experts-og-image.png',
+ context.siteConfig.url,
+ )}
+ </Head>
+ <div className={styles.container}>
+ <div className={styles.wrapper}>
+ <h1 className={styles.pagetitle}>Find a Remotion Expert</h1>
+ <p className={styles.tagline}>
+ Get help by booking a call or hiring these freelancers to work on
+ your Remotion project.
+ <br />
+ They appear in random order.{' '}
+ </p>
+ <p className={styles.tagline}>
+ <a href="mailto:[email protected]?subject=Remotion+Experts+directory">
+ <strong>Are you available for hire? Let us know!</strong>
+ </a>
+ </p>
+ <br />
+ <br />
+ {expertsInRandomOrder.map((e) => {
+ return (
+ <div key={e.name} className={styles.card}>
+ <Link
+ style={link}
+ className={styles.cardContent}
+ href={`/experts/${e.slug}`}
+ >
+ <img className={styles.profile} src={e.image} />
+ <div className={styles.spacer} />
+ <div className={styles.right}>
+ <div className={styles.title}>{e.name}</div>
+ <p>{e.description}</p>
+ </div>
+ </Link>
+ <Spacer />
+ <Spacer />
+ <Spacer />
+ <Spacer />
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'row',
+ width: '100%',
+ }}
+ className={`${styles.buttonsInColumn}`}
+ >
+ {e.website ? (
+ <div style={flex} className={styles.docsButton}>
+ <a
+ style={docsButton}
+ target={'_blank'}
+ href={`${e.website}`}
+ >
+ <BlueButton loading={false} fullWidth size="sm">
+ <PersonalWebsite /> Website
+ </BlueButton>
+ </a>
+ </div>
+ ) : null}
+
+ {e.x ? (
+ <>
+ {e.website ? (
+ <>
+ <Spacer />
+ <Spacer />
+ </>
+ ) : null}
+
+ <div style={flex} className={styles.docsButton}>
+ <a
+ style={docsButton}
+ target={'_blank'}
+ href={`https://x.com/${e.x}`}
+ >
+ <BlueButton loading={false} fullWidth size="sm">
+ <TwitterLogo /> X
+ </BlueButton>
+ </a>
+ </div>
+ </>
+ ) : null}
+
+ {e.github ? (
+ <>
+ {/* Check if the expert has a website and a GitHub profile, but not a Twitter */}
+ {e.website && !e.x ? (
+ <>
+ <Spacer />
+ <Spacer />
+ </>
+ ) : null}
+
+ {e.x ? (
+ <>
+ <Spacer />
+ <Spacer />
+ </>
+ ) : null}
+
+ <div style={flex} className={styles.docsButton}>
+ <a
+ style={docsButton}
+ target={'_blank'}
+ href={`https://github.com/${e.github}`}
+ >
+ <BlueButton loading={false} fullWidth size="sm">
+ <GitHubLogo /> GitHub
+ </BlueButton>
+ </a>
+ </div>
+ </>
+ ) : null}
+ </div>
+ <Spacer />
+ <Spacer />
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'row',
+ width: '100%',
+ }}
+ className={`${styles.buttonsInColumn}`}
+ >
+ {e.linkedin ? (
+ <div style={flex} className={styles.docsButton}>
+ <a
+ style={docsButton}
+ target={'_blank'}
+ href={`https://www.linkedin.com/${e.linkedin}`}
+ >
+ <BlueButton loading={false} fullWidth size="sm">
+ <LinkedInLogo /> LinkedIn
+ </BlueButton>
+ </a>
+ </div>
+ ) : null}
+
+ {e.email ? (
+ <>
+ {e.linkedin ? (
+ <>
+ <Spacer />
+ <Spacer />
+ </>
+ ) : null}
+ <div style={flex} className={styles.docsButton}>
+ <a
+ style={docsButton}
+ target={'_blank'}
+ href={`mailto:${e.email}`}
+ >
+ <BlueButton loading={false} fullWidth size="sm">
+ <EmailLogo /> Email
+ </BlueButton>
+ </a>
+ </div>
+ </>
+ ) : null}
+
+ {e.videocall ? (
+ <>
+ <Spacer />
+ <Spacer />
+ <div style={flex} className={styles.docsButton}>
+ <a
+ style={docsButton}
+ target={'_blank'}
+ href={`https://cal.com/${e.videocall}`}
+ >
+ <BlueButton loading={false} fullWidth size="sm">
+ <VideoCallLogo /> Call
+ </BlueButton>
+ </a>
+ </div>
+ </>
+ ) : null}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ </Layout>
+ );
};
export default Experts;
diff --git a/packages/docs/src/pages/index.tsx b/packages/docs/src/pages/index.tsx
index f48081eb15..0125c252d2 100644
--- a/packages/docs/src/pages/index.tsx
+++ b/packages/docs/src/pages/index.tsx
@@ -1,77 +1,77 @@
-import Head from "@docusaurus/Head";
-import Layout from "@theme/Layout";
-import React from "react";
-import { VideoApps } from "../../components/LambdaSplash/VideoApps";
+import Head from '@docusaurus/Head';
+import Layout from '@theme/Layout';
+import React from 'react';
+import {VideoApps} from '../../components/LambdaSplash/VideoApps';
import {
- PricingTitle,
- VideoAppsTitle,
-} from "../../components/LambdaSplash/VideoAppsTitle";
-import { BackgroundAnimation } from "../../components/LandingPage/BackgroundAnimation";
-import { NewsletterButton } from "../../components/LandingPage/NewsletterButton";
-import { Pricing } from "../../components/LandingPage/Pricing";
-import { WriteInReact } from "../../components/LandingPage/WriteInReact";
-import { LightningFastEditor } from "../../components/LandingPage/editor";
-import { IfYouKnowReact } from "../../components/LandingPage/if-you-know-react";
-import { Parametrize } from "../../components/LandingPage/parametrize";
-import { RealMP4Videos } from "../../components/LandingPage/real-mp4-videos";
-import styles from "./landing.module.css";
+ PricingTitle,
+ VideoAppsTitle,
+} from '../../components/LambdaSplash/VideoAppsTitle';
+import {BackgroundAnimation} from '../../components/LandingPage/BackgroundAnimation';
+import {NewsletterButton} from '../../components/LandingPage/NewsletterButton';
+import {Pricing} from '../../components/LandingPage/Pricing';
+import {WriteInReact} from '../../components/LandingPage/WriteInReact';
+import {LightningFastEditor} from '../../components/LandingPage/editor';
+import {IfYouKnowReact} from '../../components/LandingPage/if-you-know-react';
+import {Parametrize} from '../../components/LandingPage/parametrize';
+import {RealMP4Videos} from '../../components/LandingPage/real-mp4-videos';
+import styles from './landing.module.css';
const NewLanding: React.FC = () => {
- return (
- <Layout>
- <div>
- <Head>
- <title>Remotion | Make videos programmatically</title>
- <meta
- name="description"
- content="Create MP4 motion graphics in React. Leverage CSS, SVG, WebGL and more
+ return (
+ <Layout>
+ <div>
+ <Head>
+ <title>Remotion | Make videos programmatically</title>
+ <meta
+ name="description"
+ content="Create MP4 motion graphics in React. Leverage CSS, SVG, WebGL and more
technologies to render videos programmatically!"
- />
- </Head>
- <BackgroundAnimation />
- <br />
- <br />
- <br />
- <br />
+ />
+ </Head>
+ <BackgroundAnimation />
+ <br />
+ <br />
+ <br />
+ <br />
- <div className={styles.content}>
- <WriteInReact />
- <br />
- <br />
- <IfYouKnowReact />
- <br />
- <br />
- <br />
- <br />
- <br />
- <RealMP4Videos />
- <br />
- <br />
- <br />
- <br />
- <LightningFastEditor />
- <br />
- <br />
- <br />
- <br />
- <Parametrize />
- <br />
- <br />
- <VideoAppsTitle />
- <VideoApps active="remotion" />
- <br />
- <br />
- <PricingTitle />
- <Pricing />
+ <div className={styles.content}>
+ <WriteInReact />
+ <br />
+ <br />
+ <IfYouKnowReact />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <RealMP4Videos />
+ <br />
+ <br />
+ <br />
+ <br />
+ <LightningFastEditor />
+ <br />
+ <br />
+ <br />
+ <br />
+ <Parametrize />
+ <br />
+ <br />
+ <VideoAppsTitle />
+ <VideoApps active="remotion" />
+ <br />
+ <br />
+ <PricingTitle />
+ <Pricing />
- <NewsletterButton />
- <br />
- <br />
- <br />
- </div>
- </div>
- </Layout>
- );
+ <NewsletterButton />
+ <br />
+ <br />
+ <br />
+ </div>
+ </div>
+ </Layout>
+ );
};
export default NewLanding;
diff --git a/packages/docs/src/pages/lambda/index.tsx b/packages/docs/src/pages/lambda/index.tsx
index 270bd69362..c5fe1b165c 100644
--- a/packages/docs/src/pages/lambda/index.tsx
+++ b/packages/docs/src/pages/lambda/index.tsx
@@ -1,55 +1,55 @@
-import Head from "@docusaurus/Head";
-import Layout from "@theme/Layout";
-import React from "react";
-import { BuildApps } from "../../../components/LambdaSplash/BuildApps";
-import { Disclaimers } from "../../../components/LambdaSplash/Disclaimers";
-import { LambdaEasy } from "../../../components/LambdaSplash/Easy";
-import { LambdaFast } from "../../../components/LambdaSplash/Fast";
-import { LambdaHeader } from "../../../components/LambdaSplash/LambdaHeader";
-import { RenderTimes } from "../../../components/LambdaSplash/RenderTimes";
+import Head from '@docusaurus/Head';
+import Layout from '@theme/Layout';
+import React from 'react';
+import {BuildApps} from '../../../components/LambdaSplash/BuildApps';
+import {Disclaimers} from '../../../components/LambdaSplash/Disclaimers';
+import {LambdaEasy} from '../../../components/LambdaSplash/Easy';
+import {LambdaFast} from '../../../components/LambdaSplash/Fast';
+import {LambdaHeader} from '../../../components/LambdaSplash/LambdaHeader';
+import {RenderTimes} from '../../../components/LambdaSplash/RenderTimes';
const container: React.CSSProperties = {
- maxWidth: 1000,
- margin: "auto",
- paddingLeft: 16,
- paddingRight: 16,
+ maxWidth: 1000,
+ margin: 'auto',
+ paddingLeft: 16,
+ paddingRight: 16,
};
export default () => {
- return (
- <Layout>
- <Head>
- <title>Remotion Lambda - A distributed video renderer</title>
- <meta
- name="description"
- content="Render Remotion videos fast and at scale on AWS Lambda."
- />
- <meta name="og:image" content="/img/lambda-og.png" />
- <meta name="twitter:image" content="/img/lambda-og.png" />
- <meta property="og:image" content="/img/lambda-og.png" />
- <meta property="twitter:image" content="/img/lambda-og.png" />
- </Head>
- <div style={container}>
- <br />
- <br />
- <LambdaHeader />
- <br />
- <br />
- <div>
- <RenderTimes />
- </div>
- <br />
- <div>
- <LambdaFast />
- <br />
- <LambdaEasy />
- </div>
+ return (
+ <Layout>
+ <Head>
+ <title>Remotion Lambda - A distributed video renderer</title>
+ <meta
+ name="description"
+ content="Render Remotion videos fast and at scale on AWS Lambda."
+ />
+ <meta name="og:image" content="/img/lambda-og.png" />
+ <meta name="twitter:image" content="/img/lambda-og.png" />
+ <meta property="og:image" content="/img/lambda-og.png" />
+ <meta property="twitter:image" content="/img/lambda-og.png" />
+ </Head>
+ <div style={container}>
+ <br />
+ <br />
+ <LambdaHeader />
+ <br />
+ <br />
+ <div>
+ <RenderTimes />
+ </div>
+ <br />
+ <div>
+ <LambdaFast />
+ <br />
+ <LambdaEasy />
+ </div>
- <BuildApps />
- <div>
- <Disclaimers />
- </div>
- </div>
- </Layout>
- );
+ <BuildApps />
+ <div>
+ <Disclaimers />
+ </div>
+ </div>
+ </Layout>
+ );
};
diff --git a/packages/docs/src/pages/landing.module.css b/packages/docs/src/pages/landing.module.css
index 577d968a77..ae0be9f69b 100644
--- a/packages/docs/src/pages/landing.module.css
+++ b/packages/docs/src/pages/landing.module.css
@@ -1,11 +1,11 @@
.content {
- max-width: 1000px;
- margin: auto;
- padding-left: 20px;
- padding-right: 20px;
+ max-width: 1000px;
+ margin: auto;
+ padding-left: 20px;
+ padding-right: 20px;
}
@media (max-width: 900px) {
- .content {
- max-width: 500px;
- }
+ .content {
+ max-width: 500px;
+ }
}
diff --git a/packages/docs/src/pages/player/index.tsx b/packages/docs/src/pages/player/index.tsx
index 21a9e7c7b4..310c040280 100644
--- a/packages/docs/src/pages/player/index.tsx
+++ b/packages/docs/src/pages/player/index.tsx
@@ -1,50 +1,50 @@
-import Head from "@docusaurus/Head";
-import Layout from "@theme/Layout";
-import React from "react";
-import { VideoApps } from "../../../components/LambdaSplash/VideoApps";
-import { VideoAppsTitle } from "../../../components/LambdaSplash/VideoAppsTitle";
-import { PlayerPageFooter } from "../../../components/Player/Footer";
-import { LandingHeader } from "../../../components/Player/LandingHeader";
-import { PoweredByRemotion } from "../../../components/Player/PoweredByRemotion";
-import { WrappedBanner } from "../../../components/Player/Wrapped";
-import { PlayerFeatures } from "../../../components/Player/features";
+import Head from '@docusaurus/Head';
+import Layout from '@theme/Layout';
+import React from 'react';
+import {VideoApps} from '../../../components/LambdaSplash/VideoApps';
+import {VideoAppsTitle} from '../../../components/LambdaSplash/VideoAppsTitle';
+import {PlayerPageFooter} from '../../../components/Player/Footer';
+import {LandingHeader} from '../../../components/Player/LandingHeader';
+import {PoweredByRemotion} from '../../../components/Player/PoweredByRemotion';
+import {WrappedBanner} from '../../../components/Player/Wrapped';
+import {PlayerFeatures} from '../../../components/Player/features';
const container: React.CSSProperties = {
- maxWidth: 1000,
- margin: "auto",
- paddingLeft: 16,
- paddingRight: 16,
+ maxWidth: 1000,
+ margin: 'auto',
+ paddingLeft: 16,
+ paddingRight: 16,
};
export default () => {
- return (
- <Layout>
- <Head>
- <title>@remotion/player</title>
- <meta
- name="description"
- content="Embed videos that are written in React, and change them at runtime. Connect it to server-side rendering to turn them into real MP4 videos."
- />
- <meta name="og:image" content="/img/player-og.png" />
- <meta name="twitter:image" content="/img/player-og.png" />
- <meta property="og:image" content="/img/player-og.png" />
- <meta property="twitter:image" content="/img/player-og.png" />
- </Head>
- <div style={container}>
- <LandingHeader />
- </div>
- <PoweredByRemotion />
- <div style={container}>
- <PlayerFeatures />
- </div>
- <div style={container}>
- <VideoAppsTitle />
- <VideoApps active="player" />
- </div>
- <br />
- <br />
- <WrappedBanner />
- <PlayerPageFooter />
- </Layout>
- );
+ return (
+ <Layout>
+ <Head>
+ <title>@remotion/player</title>
+ <meta
+ name="description"
+ content="Embed videos that are written in React, and change them at runtime. Connect it to server-side rendering to turn them into real MP4 videos."
+ />
+ <meta name="og:image" content="/img/player-og.png" />
+ <meta name="twitter:image" content="/img/player-og.png" />
+ <meta property="og:image" content="/img/player-og.png" />
+ <meta property="twitter:image" content="/img/player-og.png" />
+ </Head>
+ <div style={container}>
+ <LandingHeader />
+ </div>
+ <PoweredByRemotion />
+ <div style={container}>
+ <PlayerFeatures />
+ </div>
+ <div style={container}>
+ <VideoAppsTitle />
+ <VideoApps active="player" />
+ </div>
+ <br />
+ <br />
+ <WrappedBanner />
+ <PlayerPageFooter />
+ </Layout>
+ );
};
diff --git a/packages/docs/src/pages/showcase/add.tsx b/packages/docs/src/pages/showcase/add.tsx
index 0460c8d2ef..b4b3d7c46f 100644
--- a/packages/docs/src/pages/showcase/add.tsx
+++ b/packages/docs/src/pages/showcase/add.tsx
@@ -1,110 +1,110 @@
-import Head from "@docusaurus/Head";
-import Layout from "@theme/Layout";
-import clsx from "clsx";
-import React from "react";
-import headerStyles from "./header.module.css";
-import styles from "./styles.module.css";
+import Head from '@docusaurus/Head';
+import Layout from '@theme/Layout';
+import clsx from 'clsx';
+import React from 'react';
+import headerStyles from './header.module.css';
+import styles from './styles.module.css';
const PageHeader: React.FC = () => {
- return (
- <div>
- <h1 className={headerStyles.title}>Add to showcase</h1>
- <p>
- The <a href="/showcase">Showcase</a> features videos made with Remotion
- to show use cases, share code and celebrate the creations of the
- Remotion community.
- </p>
- <p>
- You too can add your creations to the showcase! Please read carefully
- the instructions to make it as effortlessly as possible for us to accept
- your video to the showcase.
- </p>
- <h2>Guidelines</h2>
- <ul>
- <li>Metadata:</li>
- <ul>
- <li>Title: Max 80 characters, no emojis, no CAPS text</li>
- <li>
- Description: Max 280 characters, use descriptive and neutral
- language, focusing on how Remotion was used for your project. To
- plug your project, use the links section.
- </li>
- <li>
- There are 4 types of links that you can add - all of them are
- optional:
- </li>
- <ul>
- <li>Video: A link to where you published your video originally.</li>
- <li>
- Source code: A direct link to the source code of the video if it
- is public.
- </li>
- <li>
- Website: An opportunity to link to your product if you have one
- </li>
- <li>
- Tutorial: If you have a blog or video tutorial about the process
- of your video, you can link it.
- </li>
- </ul>
- </ul>
- <li>
- Order: The videos will be reshuffled every day again to balance out
- the videos who appear on top.
- </li>
- <li>
- Quality: We aim to keep a minimum bar of quality for the showcase,
- therefore we will sometimes reject submissions. Don{"'"}t submit
- videos that are overly simplistic, similar to videos already in the
- showcase or don{"'"}t live up to your ability. Only submit your best
- videos and if you submit multiple videos, remove the ones that you
- like the least.
- </li>
- <li>
- Permission: By submitting, you allow us to host your video and to
- repost it on other channels like Twitter and Instagram (we will always
- attribute you).
- </li>
- </ul>
- <h2>How to submit</h2>
- <ol>
- <li>
- <a href="https://showcase-upload.remotion.dev/" target="_blank">
- Click here
- </a>{" "}
- to upload your video.
- </li>
- <li>
- We will automatically host your video, and create static and animated
- preview images. These assets are associated with the{" "}
- <code>muxId</code>. Once uploaded, you will see a JSON markup and a
- GitHub link where you can edit the list of showcase videos.
- </li>
- <li>
- Edit the list of showcase videos on GitHub by adding the JSON object
- to the bottom of the list. Fill in the placeholders in angle brackets
- according to the guidelines above and send your pull request.
- </li>
- </ol>
- <p>We look forward to your submissions! 🙌</p>
- </div>
- );
+ return (
+ <div>
+ <h1 className={headerStyles.title}>Add to showcase</h1>
+ <p>
+ The <a href="/showcase">Showcase</a> features videos made with Remotion
+ to show use cases, share code and celebrate the creations of the
+ Remotion community.
+ </p>
+ <p>
+ You too can add your creations to the showcase! Please read carefully
+ the instructions to make it as effortlessly as possible for us to accept
+ your video to the showcase.
+ </p>
+ <h2>Guidelines</h2>
+ <ul>
+ <li>Metadata:</li>
+ <ul>
+ <li>Title: Max 80 characters, no emojis, no CAPS text</li>
+ <li>
+ Description: Max 280 characters, use descriptive and neutral
+ language, focusing on how Remotion was used for your project. To
+ plug your project, use the links section.
+ </li>
+ <li>
+ There are 4 types of links that you can add - all of them are
+ optional:
+ </li>
+ <ul>
+ <li>Video: A link to where you published your video originally.</li>
+ <li>
+ Source code: A direct link to the source code of the video if it
+ is public.
+ </li>
+ <li>
+ Website: An opportunity to link to your product if you have one
+ </li>
+ <li>
+ Tutorial: If you have a blog or video tutorial about the process
+ of your video, you can link it.
+ </li>
+ </ul>
+ </ul>
+ <li>
+ Order: The videos will be reshuffled every day again to balance out
+ the videos who appear on top.
+ </li>
+ <li>
+ Quality: We aim to keep a minimum bar of quality for the showcase,
+ therefore we will sometimes reject submissions. Don{"'"}t submit
+ videos that are overly simplistic, similar to videos already in the
+ showcase or don{"'"}t live up to your ability. Only submit your best
+ videos and if you submit multiple videos, remove the ones that you
+ like the least.
+ </li>
+ <li>
+ Permission: By submitting, you allow us to host your video and to
+ repost it on other channels like Twitter and Instagram (we will always
+ attribute you).
+ </li>
+ </ul>
+ <h2>How to submit</h2>
+ <ol>
+ <li>
+ <a href="https://showcase-upload.remotion.dev/" target="_blank">
+ Click here
+ </a>{' '}
+ to upload your video.
+ </li>
+ <li>
+ We will automatically host your video, and create static and animated
+ preview images. These assets are associated with the{' '}
+ <code>muxId</code>. Once uploaded, you will see a JSON markup and a
+ GitHub link where you can edit the list of showcase videos.
+ </li>
+ <li>
+ Edit the list of showcase videos on GitHub by adding the JSON object
+ to the bottom of the list. Fill in the placeholders in angle brackets
+ according to the guidelines above and send your pull request.
+ </li>
+ </ol>
+ <p>We look forward to your submissions! 🙌</p>
+ </div>
+ );
};
const ShowcaseAdd: React.FC = () => {
- return (
- <Layout>
- <Head>
- <title>Add to showcase</title>
- </Head>
+ return (
+ <Layout>
+ <Head>
+ <title>Add to showcase</title>
+ </Head>
- <header className={clsx("hero ", styles.heroBanner)}>
- <div className="container">
- <PageHeader />
- </div>
- </header>
- </Layout>
- );
+ <header className={clsx('hero ', styles.heroBanner)}>
+ <div className="container">
+ <PageHeader />
+ </div>
+ </header>
+ </Layout>
+ );
};
export default ShowcaseAdd;
diff --git a/packages/docs/src/pages/showcase/header.module.css b/packages/docs/src/pages/showcase/header.module.css
index 027b775a51..61a05f5ec6 100644
--- a/packages/docs/src/pages/showcase/header.module.css
+++ b/packages/docs/src/pages/showcase/header.module.css
@@ -1,5 +1,5 @@
.title {
- font-size: 3em;
- font-weight: 700;
- line-height: 1.2;
+ font-size: 3em;
+ font-weight: 700;
+ line-height: 1.2;
}
diff --git a/packages/docs/src/pages/showcase/index.tsx b/packages/docs/src/pages/showcase/index.tsx
index ec89794eef..54892b3203 100644
--- a/packages/docs/src/pages/showcase/index.tsx
+++ b/packages/docs/src/pages/showcase/index.tsx
@@ -1,187 +1,187 @@
-import Head from "@docusaurus/Head";
-import Layout from "@theme/Layout";
-import React, { useCallback, useEffect, useMemo, useState } from "react";
-import { VideoPlayer } from "../../components/VideoPlayer";
-import { VideoPreview } from "../../components/VideoPreview";
-import type { ShowcaseVideo } from "../../data/showcase-videos";
+import Head from '@docusaurus/Head';
+import Layout from '@theme/Layout';
+import React, {useCallback, useEffect, useMemo, useState} from 'react';
+import {VideoPlayer} from '../../components/VideoPlayer';
+import {VideoPreview} from '../../components/VideoPreview';
+import type {ShowcaseVideo} from '../../data/showcase-videos';
import {
- showcaseVideos,
- shuffledShowcaseVideos,
-} from "../../data/showcase-videos";
-import { useMobileLayout } from "../../helpers/mobile-layout";
-import headerStyles from "./header.module.css";
-import styles from "./styles.module.css";
+ showcaseVideos,
+ shuffledShowcaseVideos,
+} from '../../data/showcase-videos';
+import {useMobileLayout} from '../../helpers/mobile-layout';
+import headerStyles from './header.module.css';
+import styles from './styles.module.css';
const PageHeader: React.FC = () => {
- return (
- <div
- style={{
- maxWidth: "var(--ifm-container-width)",
- paddingLeft: 20,
- paddingRight: 20,
- margin: "auto",
- marginTop: 50,
- }}
- >
- <div style={{ flex: 1 }}>
- <h1 className={headerStyles.title}>Showcase</h1>
-
- <p>
- This page showcases products and campaigns crafted with Remotion. From
- dynamic video content to engaging animations, each project highlights
- the versatility and creativity enabled by Remotion.{" "}
- </p>
- <p>
- Have you leveraged {"Remotion's"} capabilities for your own project?
- <a
- target="_blank"
- href="mailto:[email protected]?subject=Showcase+page"
- >
- {" "}
- Contact us
- </a>{" "}
- to feature your Remotion-based creation right here.
- </p>
- <p>
- See more projects, applications, examples and libraries on the{" "}
- <a href="/docs/resources">Resources</a> page.
- </p>
- </div>
- </div>
- );
+ return (
+ <div
+ style={{
+ maxWidth: 'var(--ifm-container-width)',
+ paddingLeft: 20,
+ paddingRight: 20,
+ margin: 'auto',
+ marginTop: 50,
+ }}
+ >
+ <div style={{flex: 1}}>
+ <h1 className={headerStyles.title}>Showcase</h1>
+
+ <p>
+ This page showcases products and campaigns crafted with Remotion. From
+ dynamic video content to engaging animations, each project highlights
+ the versatility and creativity enabled by Remotion.{' '}
+ </p>
+ <p>
+ Have you leveraged {"Remotion's"} capabilities for your own project?
+ <a
+ target="_blank"
+ href="mailto:[email protected]?subject=Showcase+page"
+ >
+ {' '}
+ Contact us
+ </a>{' '}
+ to feature your Remotion-based creation right here.
+ </p>
+ <p>
+ See more projects, applications, examples and libraries on the{' '}
+ <a href="/docs/resources">Resources</a> page.
+ </p>
+ </div>
+ </div>
+ );
};
const container: React.CSSProperties = {
- maxWidth: "var(--ifm-container-width)",
- width: "100%",
- margin: "auto",
- marginTop: 50,
- paddingLeft: 20,
- paddingRight: 20,
+ maxWidth: 'var(--ifm-container-width)',
+ width: '100%',
+ margin: 'auto',
+ marginTop: 50,
+ paddingLeft: 20,
+ paddingRight: 20,
};
const Showcase = () => {
- const mobileLayout = useMobileLayout();
-
- const [userHasInteractedWithPage, setUserHasInteractedWithPage] =
- useState(false);
- const [video, setVideo] = useState<ShowcaseVideo | null>(() => {
- if (typeof window === "undefined") {
- return null;
- }
-
- if (!window.location.hash) {
- return null;
- }
-
- return (
- showcaseVideos.find(
- (v) => v.muxId === window.location.hash.replace("#", ""),
- ) ?? null
- );
- });
-
- const currentIndex = useMemo(() => {
- if (video === null) {
- return -1;
- }
-
- return showcaseVideos.findIndex((v) => v.muxId === video.muxId);
- }, [video]);
-
- useEffect(() => {
- if (video) {
- window.location.hash = video.muxId;
- } else if (window.location.href.includes("#")) {
- window.history.replaceState(
- {},
- document.title,
- window.location.href.substr(0, window.location.href.indexOf("#")),
- );
- }
- }, [video]);
-
- const hasNext = currentIndex < showcaseVideos.length - 1;
- const hasPrevious = currentIndex > 0;
-
- const goToNextVideo = useCallback(() => {
- if (!hasNext) {
- return;
- }
-
- setVideo(showcaseVideos[currentIndex + 1]);
- setUserHasInteractedWithPage(true);
- }, [currentIndex, hasNext]);
-
- const goToPreviousVideo = useCallback(() => {
- if (!hasPrevious) {
- return;
- }
-
- setVideo(showcaseVideos[currentIndex - 1]);
- setUserHasInteractedWithPage(true);
- }, [currentIndex, hasPrevious]);
-
- const dismiss = useCallback(() => {
- setVideo(null);
- }, []);
-
- const layoutStyle: React.CSSProperties = useMemo(() => {
- if (mobileLayout) {
- return {
- width: "100%",
- marginBottom: 20,
- };
- }
-
- return {
- display: "inline-block",
- width: "100%",
- };
- }, [mobileLayout]);
-
- return (
- <Layout>
- <Head>
- <title>Showcase</title>
- <meta name="og:image" content="/img/showcase.png" />
- <meta name="twitter:image" content="/img/showcase.png" />
- <meta property="og:image" content="/img/showcase.png" />
- <meta property="twitter:image" content="/img/showcase.png" />
- </Head>
- <div>
- <PageHeader />
- </div>
- <VideoPlayer
- hasNext={hasNext}
- hasPrevious={hasPrevious}
- toNext={goToNextVideo}
- toPrevious={goToPreviousVideo}
- dismiss={dismiss}
- video={video}
- userHasInteractedWithPage={userHasInteractedWithPage}
- />
- <main>
- <section className={styles.videos}>
- <div className={styles.container} style={container}>
- {shuffledShowcaseVideos.map((vid) => {
- return (
- <div key={vid.muxId} style={layoutStyle}>
- <VideoPreview
- onClick={() => {
- setVideo(vid);
- setUserHasInteractedWithPage(true);
- }}
- {...vid}
- />
- </div>
- );
- })}
- </div>
- </section>
- </main>
- </Layout>
- );
+ const mobileLayout = useMobileLayout();
+
+ const [userHasInteractedWithPage, setUserHasInteractedWithPage] =
+ useState(false);
+ const [video, setVideo] = useState<ShowcaseVideo | null>(() => {
+ if (typeof window === 'undefined') {
+ return null;
+ }
+
+ if (!window.location.hash) {
+ return null;
+ }
+
+ return (
+ showcaseVideos.find(
+ (v) => v.muxId === window.location.hash.replace('#', ''),
+ ) ?? null
+ );
+ });
+
+ const currentIndex = useMemo(() => {
+ if (video === null) {
+ return -1;
+ }
+
+ return showcaseVideos.findIndex((v) => v.muxId === video.muxId);
+ }, [video]);
+
+ useEffect(() => {
+ if (video) {
+ window.location.hash = video.muxId;
+ } else if (window.location.href.includes('#')) {
+ window.history.replaceState(
+ {},
+ document.title,
+ window.location.href.substr(0, window.location.href.indexOf('#')),
+ );
+ }
+ }, [video]);
+
+ const hasNext = currentIndex < showcaseVideos.length - 1;
+ const hasPrevious = currentIndex > 0;
+
+ const goToNextVideo = useCallback(() => {
+ if (!hasNext) {
+ return;
+ }
+
+ setVideo(showcaseVideos[currentIndex + 1]);
+ setUserHasInteractedWithPage(true);
+ }, [currentIndex, hasNext]);
+
+ const goToPreviousVideo = useCallback(() => {
+ if (!hasPrevious) {
+ return;
+ }
+
+ setVideo(showcaseVideos[currentIndex - 1]);
+ setUserHasInteractedWithPage(true);
+ }, [currentIndex, hasPrevious]);
+
+ const dismiss = useCallback(() => {
+ setVideo(null);
+ }, []);
+
+ const layoutStyle: React.CSSProperties = useMemo(() => {
+ if (mobileLayout) {
+ return {
+ width: '100%',
+ marginBottom: 20,
+ };
+ }
+
+ return {
+ display: 'inline-block',
+ width: '100%',
+ };
+ }, [mobileLayout]);
+
+ return (
+ <Layout>
+ <Head>
+ <title>Showcase</title>
+ <meta name="og:image" content="/img/showcase.png" />
+ <meta name="twitter:image" content="/img/showcase.png" />
+ <meta property="og:image" content="/img/showcase.png" />
+ <meta property="twitter:image" content="/img/showcase.png" />
+ </Head>
+ <div>
+ <PageHeader />
+ </div>
+ <VideoPlayer
+ hasNext={hasNext}
+ hasPrevious={hasPrevious}
+ toNext={goToNextVideo}
+ toPrevious={goToPreviousVideo}
+ dismiss={dismiss}
+ video={video}
+ userHasInteractedWithPage={userHasInteractedWithPage}
+ />
+ <main>
+ <section className={styles.videos}>
+ <div className={styles.container} style={container}>
+ {shuffledShowcaseVideos.map((vid) => {
+ return (
+ <div key={vid.muxId} style={layoutStyle}>
+ <VideoPreview
+ onClick={() => {
+ setVideo(vid);
+ setUserHasInteractedWithPage(true);
+ }}
+ {...vid}
+ />
+ </div>
+ );
+ })}
+ </div>
+ </section>
+ </main>
+ </Layout>
+ );
};
export default Showcase;
diff --git a/packages/docs/src/pages/showcase/styles.module.css b/packages/docs/src/pages/showcase/styles.module.css
index 7b1b60ba2b..c9646911e3 100644
--- a/packages/docs/src/pages/showcase/styles.module.css
+++ b/packages/docs/src/pages/showcase/styles.module.css
@@ -6,25 +6,25 @@
*/
.heroBanner {
- padding-top: 4rem;
- padding-bottom: 0;
- position: relative;
- overflow: hidden;
+ padding-top: 4rem;
+ padding-bottom: 0;
+ position: relative;
+ overflow: hidden;
}
.videos {
- display: flex;
- align-items: center;
- width: 100%;
+ display: flex;
+ align-items: center;
+ width: 100%;
}
.container {
- column-count: 3;
- column-gap: 20px;
+ column-count: 3;
+ column-gap: 20px;
}
@media (max-width: 900px) {
- .container {
- column-count: 1;
- }
+ .container {
+ column-count: 1;
+ }
}
diff --git a/packages/docs/src/pages/styles.module.css b/packages/docs/src/pages/styles.module.css
index e1df11461f..0f173d4242 100644
--- a/packages/docs/src/pages/styles.module.css
+++ b/packages/docs/src/pages/styles.module.css
@@ -6,97 +6,97 @@
*/
.heroBanner {
- padding: 4rem 0;
- text-align: center;
- position: relative;
- overflow: hidden;
+ padding: 4rem 0;
+ text-align: center;
+ position: relative;
+ overflow: hidden;
}
@media screen and (max-width: 966px) {
- .heroBanner {
- padding: 2rem;
- }
+ .heroBanner {
+ padding: 2rem;
+ }
}
.buttons {
- display: flex;
- align-items: center;
- justify-content: center;
+ display: flex;
+ align-items: center;
+ justify-content: center;
}
.featureImage {
- height: 200px;
- width: 300px;
+ height: 200px;
+ width: 300px;
}
.container * {
- color: white;
+ color: white;
}
/* snippets part : */
.snippets {
- max-width: 450px;
- margin-top: 40px;
- margin-bottom: 30px;
- margin-left: auto;
- margin-right: auto;
+ max-width: 450px;
+ margin-top: 40px;
+ margin-bottom: 30px;
+ margin-left: auto;
+ margin-right: auto;
}
.snippetsTitle {
- font-size: 1.3em;
- font-weight: 700;
- line-height: 1.4;
- margin-bottom: 20px;
+ font-size: 1.3em;
+ font-weight: 700;
+ line-height: 1.4;
+ margin-bottom: 20px;
}
.snippet {
- max-width: 400px;
- padding: 12px 12px 10px 20px;
- background-color: #111111;
- margin-bottom: 10px;
- display: flex;
- flex-direction: row;
- align-items: center;
- position: relative;
- border-radius: 0.4rem;
+ max-width: 400px;
+ padding: 12px 12px 10px 20px;
+ background-color: #111111;
+ margin-bottom: 10px;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ position: relative;
+ border-radius: 0.4rem;
}
.snippetValue {
- color: white;
- font-size: 1.5em;
- font-family: monospace;
+ color: white;
+ font-size: 1.5em;
+ font-family: monospace;
}
.copySnippet {
- color: white;
- right: 15px;
- padding: 2px 10px;
- border-radius: 0.4rem;
- position: absolute;
- width: fit-content;
+ color: white;
+ right: 15px;
+ padding: 2px 10px;
+ border-radius: 0.4rem;
+ position: absolute;
+ width: fit-content;
}
.copySnippet:hover {
- cursor: pointer;
- background-color: rgba(255, 255, 255, 0.15);
+ cursor: pointer;
+ background-color: rgba(255, 255, 255, 0.15);
}
@media screen and (max-width: 1200px) {
- .snippet {
- margin: 0 auto;
- margin-bottom: 3rem;
- }
+ .snippet {
+ margin: 0 auto;
+ margin-bottom: 3rem;
+ }
}
@media screen and (max-width: 600px) {
- .heroBanner {
- padding: 1rem;
- }
- .snippetValue {
- font-size: 1.25em;
- }
- .copySnippet {
- font-size: 0.75em;
- }
+ .heroBanner {
+ padding: 1rem;
+ }
+ .snippetValue {
+ font-size: 1.25em;
+ }
+ .copySnippet {
+ font-size: 0.75em;
+ }
}
diff --git a/packages/docs/src/pages/templates/index.tsx b/packages/docs/src/pages/templates/index.tsx
index a983eab0d5..8e9f6bed07 100644
--- a/packages/docs/src/pages/templates/index.tsx
+++ b/packages/docs/src/pages/templates/index.tsx
@@ -1,168 +1,168 @@
-import Head from "@docusaurus/Head";
-import Link from "@docusaurus/Link";
-import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
-import Layout from "@theme/Layout";
-import { CreateVideoInternals } from "create-video";
-import React from "react";
-import { IconForTemplate } from "../../components/IconForTemplate";
-import { Seo } from "../../components/Seo";
-import { SkiaIcon } from "../../components/icons/skia";
-import styles from "./styles.module.css";
+import Head from '@docusaurus/Head';
+import Link from '@docusaurus/Link';
+import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
+import Layout from '@theme/Layout';
+import {CreateVideoInternals} from 'create-video';
+import React from 'react';
+import {IconForTemplate} from '../../components/IconForTemplate';
+import {Seo} from '../../components/Seo';
+import {SkiaIcon} from '../../components/icons/skia';
+import styles from './styles.module.css';
const content: React.CSSProperties = {
- maxWidth: 1000,
- margin: "auto",
- padding: "0 20px",
+ maxWidth: 1000,
+ margin: 'auto',
+ padding: '0 20px',
};
const para: React.CSSProperties = {
- textAlign: "center",
- marginBottom: 50,
+ textAlign: 'center',
+ marginBottom: 50,
};
const lowerpara: React.CSSProperties = {
- textAlign: "center",
- color: "var(--light-text-color)",
+ textAlign: 'center',
+ color: 'var(--light-text-color)',
};
const outer: React.CSSProperties = {
- display: "flex",
- cursor: "pointer",
- color: "var(--text-color)",
- textDecoration: "none",
+ display: 'flex',
+ cursor: 'pointer',
+ color: 'var(--text-color)',
+ textDecoration: 'none',
};
const icon: React.CSSProperties = {
- display: "flex",
- margin: 0,
- marginRight: 10,
- height: 30,
- width: 30,
- justifyContent: "center",
- alignItems: "center",
+ display: 'flex',
+ margin: 0,
+ marginRight: 10,
+ height: 30,
+ width: 30,
+ justifyContent: 'center',
+ alignItems: 'center',
};
const labelStyle: React.CSSProperties = {
- fontWeight: "bold",
+ fontWeight: 'bold',
};
const descriptionStyle: React.CSSProperties = {
- fontSize: 14,
- marginTop: 10,
- color: "var(--light-text-color)",
- marginBottom: 10,
+ fontSize: 14,
+ marginTop: 10,
+ color: 'var(--light-text-color)',
+ marginBottom: 10,
};
const Item: React.FC<{
- readonly label: string;
- readonly description: React.ReactNode;
- readonly children: React.ReactNode;
-}> = ({ children, label, description }) => {
- return (
- <div>
- <div
- style={{ flexDirection: "row", display: "flex", alignItems: "center" }}
- >
- <div style={icon}>{children}</div>
- <div style={labelStyle}>{label}</div>
- </div>
- <div>
- <p style={descriptionStyle}>{description}</p>
- </div>
- </div>
- );
+ readonly label: string;
+ readonly description: React.ReactNode;
+ readonly children: React.ReactNode;
+}> = ({children, label, description}) => {
+ return (
+ <div>
+ <div
+ style={{flexDirection: 'row', display: 'flex', alignItems: 'center'}}
+ >
+ <div style={icon}>{children}</div>
+ <div style={labelStyle}>{label}</div>
+ </div>
+ <div>
+ <p style={descriptionStyle}>{description}</p>
+ </div>
+ </div>
+ );
};
export default () => {
- const imgSrc = `/generated/template-all.png`;
- const context = useDocusaurusContext();
+ const imgSrc = `/generated/template-all.png`;
+ const context = useDocusaurusContext();
- return (
- <Layout>
- <Head>
- {Seo.renderTitle(`Starter Templates | Remotion`)}
- {Seo.renderDescription(
- "Jumpstart your Remotion project with a template.",
- )}
- {Seo.renderImage(imgSrc, context.siteConfig.url)}
- </Head>
- <div style={content}>
- <h1 className={styles.title}>
- Find the right
- <br />
- template
- </h1>
- <p style={para}>
- Jumpstart your project with a template that fits your usecase.
- </p>
- <h3>Free templates</h3>
- <div className={styles.grid}>
- {CreateVideoInternals.FEATURED_TEMPLATES.map((template) => {
- return (
- <Link
- key={template.cliId}
- className={styles.item}
- style={outer}
- to={`/templates/${template.cliId}`}
- >
- <Item
- label={template.homePageLabel}
- description={template.description}
- >
- <IconForTemplate scale={0.7} template={template} />
- </Item>
- </Link>
- );
- })}
- </div>
- <br />
- <br />
- <h3>Paid templates</h3>
- <div className={styles.grid}>
- <Link
- key={"map"}
- className={styles.item}
- style={outer}
- to={`https://www.remotion.pro/mapbox-globe`}
- >
- <Item
- label={"Mapbox Globe"}
- description={"A rotateable and zoomeable 3D Globe"}
- >
- <svg style={{ height: 0.7 * 36 }} viewBox="0 0 512 512">
- <path
- fill="currentcolor"
- d="M256 464c7.4 0 27-7.2 47.6-48.4c8.8-17.7 16.4-39.2 22-63.6H186.4c5.6 24.4 13.2 45.9 22 63.6C229 456.8 248.6 464 256 464zM178.5 304h155c1.6-15.3 2.5-31.4 2.5-48s-.9-32.7-2.5-48h-155c-1.6 15.3-2.5 31.4-2.5 48s.9 32.7 2.5 48zm7.9-144H325.6c-5.6-24.4-13.2-45.9-22-63.6C283 55.2 263.4 48 256 48s-27 7.2-47.6 48.4c-8.8 17.7-16.4 39.2-22 63.6zm195.3 48c1.5 15.5 2.2 31.6 2.2 48s-.8 32.5-2.2 48h76.7c3.6-15.4 5.6-31.5 5.6-48s-1.9-32.6-5.6-48H381.8zm58.8-48c-21.4-41.1-56.1-74.1-98.4-93.4c14.1 25.6 25.3 57.5 32.6 93.4h65.9zm-303.3 0c7.3-35.9 18.5-67.7 32.6-93.4c-42.3 19.3-77 52.3-98.4 93.4h65.9zM53.6 208c-3.6 15.4-5.6 31.5-5.6 48s1.9 32.6 5.6 48h76.7c-1.5-15.5-2.2-31.6-2.2-48s.8-32.5 2.2-48H53.6zM342.1 445.4c42.3-19.3 77-52.3 98.4-93.4H374.7c-7.3 35.9-18.5 67.7-32.6 93.4zm-172.2 0c-14.1-25.6-25.3-57.5-32.6-93.4H71.4c21.4 41.1 56.1 74.1 98.4 93.4zM256 512A256 256 0 1 1 256 0a256 256 0 1 1 0 512z"
- />
- </svg>
- </Item>
- </Link>
- <Link
- key={"map"}
- className={styles.item}
- style={outer}
- to={`https://www.remotion.pro/watercolor-map`}
- >
- <Item
- label={"Watercolor Map"}
- description={"A beautiful 2D map for travel videos"}
- >
- <SkiaIcon
- style={{
- height: 0.7 * 32,
- }}
- />
- </Item>
- </Link>
- </div>
+ return (
+ <Layout>
+ <Head>
+ {Seo.renderTitle(`Starter Templates | Remotion`)}
+ {Seo.renderDescription(
+ 'Jumpstart your Remotion project with a template.',
+ )}
+ {Seo.renderImage(imgSrc, context.siteConfig.url)}
+ </Head>
+ <div style={content}>
+ <h1 className={styles.title}>
+ Find the right
+ <br />
+ template
+ </h1>
+ <p style={para}>
+ Jumpstart your project with a template that fits your usecase.
+ </p>
+ <h3>Free templates</h3>
+ <div className={styles.grid}>
+ {CreateVideoInternals.FEATURED_TEMPLATES.map((template) => {
+ return (
+ <Link
+ key={template.cliId}
+ className={styles.item}
+ style={outer}
+ to={`/templates/${template.cliId}`}
+ >
+ <Item
+ label={template.homePageLabel}
+ description={template.description}
+ >
+ <IconForTemplate scale={0.7} template={template} />
+ </Item>
+ </Link>
+ );
+ })}
+ </div>
+ <br />
+ <br />
+ <h3>Paid templates</h3>
+ <div className={styles.grid}>
+ <Link
+ key={'map'}
+ className={styles.item}
+ style={outer}
+ to={`https://www.remotion.pro/mapbox-globe`}
+ >
+ <Item
+ label={'Mapbox Globe'}
+ description={'A rotateable and zoomeable 3D Globe'}
+ >
+ <svg style={{height: 0.7 * 36}} viewBox="0 0 512 512">
+ <path
+ fill="currentcolor"
+ d="M256 464c7.4 0 27-7.2 47.6-48.4c8.8-17.7 16.4-39.2 22-63.6H186.4c5.6 24.4 13.2 45.9 22 63.6C229 456.8 248.6 464 256 464zM178.5 304h155c1.6-15.3 2.5-31.4 2.5-48s-.9-32.7-2.5-48h-155c-1.6 15.3-2.5 31.4-2.5 48s.9 32.7 2.5 48zm7.9-144H325.6c-5.6-24.4-13.2-45.9-22-63.6C283 55.2 263.4 48 256 48s-27 7.2-47.6 48.4c-8.8 17.7-16.4 39.2-22 63.6zm195.3 48c1.5 15.5 2.2 31.6 2.2 48s-.8 32.5-2.2 48h76.7c3.6-15.4 5.6-31.5 5.6-48s-1.9-32.6-5.6-48H381.8zm58.8-48c-21.4-41.1-56.1-74.1-98.4-93.4c14.1 25.6 25.3 57.5 32.6 93.4h65.9zm-303.3 0c7.3-35.9 18.5-67.7 32.6-93.4c-42.3 19.3-77 52.3-98.4 93.4h65.9zM53.6 208c-3.6 15.4-5.6 31.5-5.6 48s1.9 32.6 5.6 48h76.7c-1.5-15.5-2.2-31.6-2.2-48s.8-32.5 2.2-48H53.6zM342.1 445.4c42.3-19.3 77-52.3 98.4-93.4H374.7c-7.3 35.9-18.5 67.7-32.6 93.4zm-172.2 0c-14.1-25.6-25.3-57.5-32.6-93.4H71.4c21.4 41.1 56.1 74.1 98.4 93.4zM256 512A256 256 0 1 1 256 0a256 256 0 1 1 0 512z"
+ />
+ </svg>
+ </Item>
+ </Link>
+ <Link
+ key={'map'}
+ className={styles.item}
+ style={outer}
+ to={`https://www.remotion.pro/watercolor-map`}
+ >
+ <Item
+ label={'Watercolor Map'}
+ description={'A beautiful 2D map for travel videos'}
+ >
+ <SkiaIcon
+ style={{
+ height: 0.7 * 32,
+ }}
+ />
+ </Item>
+ </Link>
+ </div>
- <br />
- <p style={lowerpara}>
- {"Couldn't"} find what you need? Check out the list of{" "}
- <Link to={"/docs/resources"}>Resources</Link>.
- </p>
- </div>
- <br />
- </Layout>
- );
+ <br />
+ <p style={lowerpara}>
+ {"Couldn't"} find what you need? Check out the list of{' '}
+ <Link to={'/docs/resources'}>Resources</Link>.
+ </p>
+ </div>
+ <br />
+ </Layout>
+ );
};
diff --git a/packages/docs/src/pages/templates/styles.module.css b/packages/docs/src/pages/templates/styles.module.css
index 54474d3da9..08495a8fd6 100644
--- a/packages/docs/src/pages/templates/styles.module.css
+++ b/packages/docs/src/pages/templates/styles.module.css
@@ -1,41 +1,41 @@
.title {
- font-size: 5em;
- font-weight: 900;
- line-height: 1;
- margin-top: 75px;
- text-align: center;
- margin-bottom: 40px;
+ font-size: 5em;
+ font-weight: 900;
+ line-height: 1;
+ margin-top: 75px;
+ text-align: center;
+ margin-bottom: 40px;
}
.grid {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
- grid-auto-rows: 1fr;
- grid-gap: 15px;
+ display: grid;
+ grid-template-columns: 1fr 1fr 1fr;
+ grid-auto-rows: 1fr;
+ grid-gap: 15px;
}
.item {
- border-radius: 5px;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- position: relative;
- color: var(--text-color);
- border: 1px solid var(--ifm-color-emphasis-300);
- padding: 14px;
+ border-radius: 5px;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ position: relative;
+ color: var(--text-color);
+ border: 1px solid var(--ifm-color-emphasis-300);
+ padding: 14px;
}
.item:hover {
- border: 1px solid var(--ifm-color-emphasis-500);
+ border: 1px solid var(--ifm-color-emphasis-500);
}
@media (max-width: 1000px) {
- .grid {
- grid-template-columns: 1fr 1fr;
- }
+ .grid {
+ grid-template-columns: 1fr 1fr;
+ }
}
@media (max-width: 600px) {
- .grid {
- grid-template-columns: 1fr;
- }
+ .grid {
+ grid-template-columns: 1fr;
+ }
}
diff --git a/packages/docs/src/remotion/AllTemplates.tsx b/packages/docs/src/remotion/AllTemplates.tsx
index 0981701b13..b6d1042d5f 100644
--- a/packages/docs/src/remotion/AllTemplates.tsx
+++ b/packages/docs/src/remotion/AllTemplates.tsx
@@ -1,143 +1,143 @@
-import { CreateVideoInternals } from "create-video";
-import React from "react";
-import { AbsoluteFill, Img } from "remotion";
-import { IconForTemplate } from "../components/IconForTemplate";
-import "./font.css";
+import {CreateVideoInternals} from 'create-video';
+import React from 'react';
+import {AbsoluteFill, Img} from 'remotion';
+import {IconForTemplate} from '../components/IconForTemplate';
+import './font.css';
export const AllTemplates: React.FC = () => {
- return (
- <AbsoluteFill
- style={{
- height: "100%",
- width: "100%",
- display: "flex",
- backgroundColor: "#fff",
- fontSize: 32,
- fontWeight: 700,
- justifyContent: "center",
- alignItems: "center",
- padding: 60,
- fontFamily: "GTPlanar",
- }}
- >
- <div>
- <AbsoluteFill>
- <div
- style={{
- display: "flex",
- flex: 1,
- flexDirection: "row",
- }}
- >
- <div
- style={{
- backgroundColor: "#0B84F3",
- display: "flex",
- padding: 50,
- minWidth: 400,
- color: "white",
- fontFamily: "GTPlanar",
- fontSize: 56,
- alignItems: "center",
- }}
- >
- Starter Templates
- </div>
- <div
- style={{
- flex: 1,
- justifyContent: "center",
- alignItems: "center",
- display: "flex",
- }}
- >
- <div
- style={{
- padding: 50,
- color: "#444",
- fontFamily: "GTPlanar",
- fontSize: 50,
- display: "grid",
- gridTemplateColumns: "repeat(6, 1fr)",
- }}
- >
- {CreateVideoInternals.FEATURED_TEMPLATES.map((template) => {
- if (template.cliId === "next") {
- // Delete duplicate
- return null;
- }
+ return (
+ <AbsoluteFill
+ style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ backgroundColor: '#fff',
+ fontSize: 32,
+ fontWeight: 700,
+ justifyContent: 'center',
+ alignItems: 'center',
+ padding: 60,
+ fontFamily: 'GTPlanar',
+ }}
+ >
+ <div>
+ <AbsoluteFill>
+ <div
+ style={{
+ display: 'flex',
+ flex: 1,
+ flexDirection: 'row',
+ }}
+ >
+ <div
+ style={{
+ backgroundColor: '#0B84F3',
+ display: 'flex',
+ padding: 50,
+ minWidth: 400,
+ color: 'white',
+ fontFamily: 'GTPlanar',
+ fontSize: 56,
+ alignItems: 'center',
+ }}
+ >
+ Starter Templates
+ </div>
+ <div
+ style={{
+ flex: 1,
+ justifyContent: 'center',
+ alignItems: 'center',
+ display: 'flex',
+ }}
+ >
+ <div
+ style={{
+ padding: 50,
+ color: '#444',
+ fontFamily: 'GTPlanar',
+ fontSize: 50,
+ display: 'grid',
+ gridTemplateColumns: 'repeat(6, 1fr)',
+ }}
+ >
+ {CreateVideoInternals.FEATURED_TEMPLATES.map((template) => {
+ if (template.cliId === 'next') {
+ // Delete duplicate
+ return null;
+ }
- if (template.cliId === "google-tts") {
- // Delete duplicate
- return null;
- }
+ if (template.cliId === 'google-tts') {
+ // Delete duplicate
+ return null;
+ }
- return (
- <div
- key={template.cliId}
- style={{
- height: 80,
- width: 80,
- margin: 20,
- justifyContent: "center",
- alignItems: "center",
- display: "flex",
- }}
- >
- <IconForTemplate scale={1.6} template={template} />
- </div>
- );
- })}
- </div>
- </div>
- </div>
- <div
- style={{
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
- height: 120,
- backgroundColor: "#222",
- paddingRight: 40,
- }}
- >
- <div
- style={{
- flex: 1,
- fontFamily: "GTPlanar",
- color: "white",
- height: "100%",
- display: "flex",
- alignItems: "center",
- paddingLeft: 40,
- fontWeight: 300,
- fontSize: 20,
- marginRight: 200,
- }}
- >
- <div>
- <div style={{}}>Create videos</div>
- <div style={{}}>programmatically</div>
- </div>
- </div>
- <div
- style={{
- height: "100%",
- display: "flex",
- justifyContent: "center",
- alignItems: "center",
- }}
- >
- <Img
- style={{
- height: 60,
- }}
- src="https://www.remotion.dev/img/remotion-white.png"
- />
- </div>
- </div>
- </AbsoluteFill>
- </div>
- </AbsoluteFill>
- );
+ return (
+ <div
+ key={template.cliId}
+ style={{
+ height: 80,
+ width: 80,
+ margin: 20,
+ justifyContent: 'center',
+ alignItems: 'center',
+ display: 'flex',
+ }}
+ >
+ <IconForTemplate scale={1.6} template={template} />
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ </div>
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'center',
+ height: 120,
+ backgroundColor: '#222',
+ paddingRight: 40,
+ }}
+ >
+ <div
+ style={{
+ flex: 1,
+ fontFamily: 'GTPlanar',
+ color: 'white',
+ height: '100%',
+ display: 'flex',
+ alignItems: 'center',
+ paddingLeft: 40,
+ fontWeight: 300,
+ fontSize: 20,
+ marginRight: 200,
+ }}
+ >
+ <div>
+ <div style={{}}>Create videos</div>
+ <div style={{}}>programmatically</div>
+ </div>
+ </div>
+ <div
+ style={{
+ height: '100%',
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <Img
+ style={{
+ height: 60,
+ }}
+ src="https://www.remotion.dev/img/remotion-white.png"
+ />
+ </div>
+ </div>
+ </AbsoluteFill>
+ </div>
+ </AbsoluteFill>
+ );
};
diff --git a/packages/docs/src/remotion/Article.tsx b/packages/docs/src/remotion/Article.tsx
index 2fa152bc7f..bbb74b11df 100644
--- a/packages/docs/src/remotion/Article.tsx
+++ b/packages/docs/src/remotion/Article.tsx
@@ -1,130 +1,130 @@
-import React from "react";
-import { AbsoluteFill, Img } from "remotion";
-import { articles } from "../data/articles";
-import "./font.css";
+import React from 'react';
+import {AbsoluteFill, Img} from 'remotion';
+import {articles} from '../data/articles';
+import './font.css';
export const Article: React.FC<{
- articleRelativePath: string;
-}> = ({ articleRelativePath }) => {
- const article = articles.find((e) => e.relativePath === articleRelativePath);
- const longestTitle = Math.max(
- ...article.title.split(" ").map((p) => p.length),
- );
+ articleRelativePath: string;
+}> = ({articleRelativePath}) => {
+ const article = articles.find((e) => e.relativePath === articleRelativePath);
+ const longestTitle = Math.max(
+ ...article.title.split(' ').map((p) => p.length),
+ );
- const fontSize = longestTitle > 20 ? 70 : 80;
+ const fontSize = longestTitle > 20 ? 70 : 80;
- return (
- <AbsoluteFill
- style={{
- height: "100%",
- width: "100%",
- display: "flex",
- backgroundColor: "#fff",
- fontSize: 32,
- fontWeight: 700,
- justifyContent: "center",
- alignItems: "center",
- padding: 60,
- fontFamily: "GTPlanar",
- }}
- >
- <div>
- {article.crumb ? (
- <div
- style={{
- flexDirection: "row",
- display: "flex",
- paddingLeft: 30,
- }}
- >
- <div
- style={{
- display: "inline-flex",
- flexDirection: "row",
- alignItems: "center",
- padding: "15px 30px",
- translate: "0px 30px",
- backgroundColor: "white",
- }}
- >
- {article.crumb}
- </div>
- </div>
- ) : null}
+ return (
+ <AbsoluteFill
+ style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ backgroundColor: '#fff',
+ fontSize: 32,
+ fontWeight: 700,
+ justifyContent: 'center',
+ alignItems: 'center',
+ padding: 60,
+ fontFamily: 'GTPlanar',
+ }}
+ >
+ <div>
+ {article.crumb ? (
+ <div
+ style={{
+ flexDirection: 'row',
+ display: 'flex',
+ paddingLeft: 30,
+ }}
+ >
+ <div
+ style={{
+ display: 'inline-flex',
+ flexDirection: 'row',
+ alignItems: 'center',
+ padding: '15px 30px',
+ translate: '0px 30px',
+ backgroundColor: 'white',
+ }}
+ >
+ {article.crumb}
+ </div>
+ </div>
+ ) : null}
- <div
- style={{
- display: "flex",
- flex: 1,
- flexDirection: "row",
- }}
- >
- <div
- style={{
- backgroundColor: "#0B84F3",
- display: "flex",
- padding: 50,
- minWidth: 500,
- width: "100%",
- }}
- >
- <div
- style={{
- color: "white",
- fontFamily: "GTPlanar",
- fontSize,
- }}
- >
- {article.title}
- </div>
- </div>
- </div>
+ <div
+ style={{
+ display: 'flex',
+ flex: 1,
+ flexDirection: 'row',
+ }}
+ >
+ <div
+ style={{
+ backgroundColor: '#0B84F3',
+ display: 'flex',
+ padding: 50,
+ minWidth: 500,
+ width: '100%',
+ }}
+ >
+ <div
+ style={{
+ color: 'white',
+ fontFamily: 'GTPlanar',
+ fontSize,
+ }}
+ >
+ {article.title}
+ </div>
+ </div>
+ </div>
- <div
- style={{
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
- height: 120,
- backgroundColor: "#222",
- paddingRight: 40,
- }}
- >
- <div
- style={{
- flex: 1,
- fontFamily: "GTPlanar",
- color: "white",
- height: "100%",
- display: "flex",
- alignItems: "center",
- paddingLeft: 40,
- fontWeight: 300,
- fontSize: 20,
- marginRight: 200,
- }}
- >
- Make videos
- <br />
- programmatically
- </div>
- <div
- style={{
- height: "100%",
- display: "flex",
- justifyContent: "center",
- alignItems: "center",
- }}
- >
- <Img
- style={{
- height: 60,
- }}
- src="https://www.remotion.dev/img/remotion-white.png"
- />
- </div>
- </div>
- </div>
- </AbsoluteFill>
- );
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'center',
+ height: 120,
+ backgroundColor: '#222',
+ paddingRight: 40,
+ }}
+ >
+ <div
+ style={{
+ flex: 1,
+ fontFamily: 'GTPlanar',
+ color: 'white',
+ height: '100%',
+ display: 'flex',
+ alignItems: 'center',
+ paddingLeft: 40,
+ fontWeight: 300,
+ fontSize: 20,
+ marginRight: 200,
+ }}
+ >
+ Make videos
+ <br />
+ programmatically
+ </div>
+ <div
+ style={{
+ height: '100%',
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <Img
+ style={{
+ height: 60,
+ }}
+ src="https://www.remotion.dev/img/remotion-white.png"
+ />
+ </div>
+ </div>
+ </div>
+ </AbsoluteFill>
+ );
};
diff --git a/packages/docs/src/remotion/Expert.tsx b/packages/docs/src/remotion/Expert.tsx
index cedd0c09c9..00ae8a993e 100644
--- a/packages/docs/src/remotion/Expert.tsx
+++ b/packages/docs/src/remotion/Expert.tsx
@@ -1,97 +1,97 @@
-import React from "react";
-import { AbsoluteFill, Img, staticFile } from "remotion";
-import { experts } from "../data/experts";
-import "./font.css";
+import React from 'react';
+import {AbsoluteFill, Img, staticFile} from 'remotion';
+import {experts} from '../data/experts';
+import './font.css';
export const Expert: React.FC<{
- expertId: string;
-}> = ({ expertId }) => {
- const expert = experts.find((e) => e.slug === expertId);
+ expertId: string;
+}> = ({expertId}) => {
+ const expert = experts.find((e) => e.slug === expertId);
- return (
- <AbsoluteFill
- style={{
- height: "100%",
- width: "100%",
- display: "flex",
- backgroundColor: "#fff",
- fontSize: 32,
- fontWeight: 600,
- justifyContent: "center",
- alignItems: "center",
- }}
- >
- <div>
- <div
- style={{
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
- height: 150,
- backgroundColor: "#222",
- paddingRight: 40,
- }}
- >
- <div
- style={{
- flex: 1,
- fontFamily: "GTPlanar",
- color: "white",
- height: "100%",
- display: "flex",
- alignItems: "center",
- paddingLeft: 40,
- fontSize: 40,
- }}
- >
- Experts
- </div>
- <div
- style={{
- height: "100%",
- display: "flex",
- justifyContent: "center",
- alignItems: "center",
- }}
- >
- <Img
- style={{
- height: 60,
- }}
- src="https://www.remotion.dev/img/remotion-white.png"
- />
- </div>
- </div>
- <div
- style={{
- height: 350,
- display: "flex",
- flexDirection: "row",
- }}
- >
- <Img height="350" src={staticFile(expert.image)} />
- <div
- style={{
- width: 700,
- backgroundColor: "#0B84F3",
- display: "flex",
- justifyContent: "flex-end",
- alignItems: "flex-end",
- padding: 50,
- }}
- >
- <div
- style={{
- color: "white",
- fontFamily: "GTPlanar",
- fontSize: 60,
- }}
- >
- {expert.name}
- </div>
- </div>
- </div>
- </div>
- </AbsoluteFill>
- );
+ return (
+ <AbsoluteFill
+ style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ backgroundColor: '#fff',
+ fontSize: 32,
+ fontWeight: 600,
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <div>
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'center',
+ height: 150,
+ backgroundColor: '#222',
+ paddingRight: 40,
+ }}
+ >
+ <div
+ style={{
+ flex: 1,
+ fontFamily: 'GTPlanar',
+ color: 'white',
+ height: '100%',
+ display: 'flex',
+ alignItems: 'center',
+ paddingLeft: 40,
+ fontSize: 40,
+ }}
+ >
+ Experts
+ </div>
+ <div
+ style={{
+ height: '100%',
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <Img
+ style={{
+ height: 60,
+ }}
+ src="https://www.remotion.dev/img/remotion-white.png"
+ />
+ </div>
+ </div>
+ <div
+ style={{
+ height: 350,
+ display: 'flex',
+ flexDirection: 'row',
+ }}
+ >
+ <Img height="350" src={staticFile(expert.image)} />
+ <div
+ style={{
+ width: 700,
+ backgroundColor: '#0B84F3',
+ display: 'flex',
+ justifyContent: 'flex-end',
+ alignItems: 'flex-end',
+ padding: 50,
+ }}
+ >
+ <div
+ style={{
+ color: 'white',
+ fontFamily: 'GTPlanar',
+ fontSize: 60,
+ }}
+ >
+ {expert.name}
+ </div>
+ </div>
+ </div>
+ </div>
+ </AbsoluteFill>
+ );
};
diff --git a/packages/docs/src/remotion/Root.tsx b/packages/docs/src/remotion/Root.tsx
index bac8077ab9..5920b7964c 100644
--- a/packages/docs/src/remotion/Root.tsx
+++ b/packages/docs/src/remotion/Root.tsx
@@ -1,70 +1,70 @@
-import { CreateVideoInternals } from "create-video";
-import React from "react";
-import { Folder, Still } from "remotion";
-import { articles } from "../data/articles";
-import { experts } from "../data/experts";
-import { AllTemplates } from "./AllTemplates";
-import { Article } from "./Article";
-import { Expert } from "./Expert";
-import { TemplateComp } from "./Template";
+import {CreateVideoInternals} from 'create-video';
+import React from 'react';
+import {Folder, Still} from 'remotion';
+import {articles} from '../data/articles';
+import {experts} from '../data/experts';
+import {AllTemplates} from './AllTemplates';
+import {Article} from './Article';
+import {Expert} from './Expert';
+import {TemplateComp} from './Template';
export const RemotionRoot: React.FC = () => {
- return (
- <>
- <Folder name="experts">
- {experts.map((e) => {
- return (
- <Still
- key={e.slug}
- component={Expert}
- defaultProps={{
- expertId: e.slug,
- }}
- height={630}
- width={1200}
- id={`experts-${e.slug}`}
- />
- );
- })}
- </Folder>
- <Folder name="articles">
- {articles.map((e) => {
- return (
- <Still
- key={e.compId}
- component={Article}
- defaultProps={{
- articleRelativePath: e.relativePath,
- }}
- height={630}
- width={1200}
- id={e.compId}
- />
- );
- })}
- </Folder>
- <Folder name="templates">
- {CreateVideoInternals.FEATURED_TEMPLATES.map((e) => {
- return (
- <Still
- key={e.cliId}
- component={TemplateComp}
- defaultProps={{
- templateId: e.cliId,
- }}
- height={630}
- width={1200}
- id={`template-${e.cliId}`}
- />
- );
- })}
- </Folder>
- <Still
- component={AllTemplates}
- width={1200}
- height={630}
- id="template-all"
- />
- </>
- );
+ return (
+ <>
+ <Folder name="experts">
+ {experts.map((e) => {
+ return (
+ <Still
+ key={e.slug}
+ component={Expert}
+ defaultProps={{
+ expertId: e.slug,
+ }}
+ height={630}
+ width={1200}
+ id={`experts-${e.slug}`}
+ />
+ );
+ })}
+ </Folder>
+ <Folder name="articles">
+ {articles.map((e) => {
+ return (
+ <Still
+ key={e.compId}
+ component={Article}
+ defaultProps={{
+ articleRelativePath: e.relativePath,
+ }}
+ height={630}
+ width={1200}
+ id={e.compId}
+ />
+ );
+ })}
+ </Folder>
+ <Folder name="templates">
+ {CreateVideoInternals.FEATURED_TEMPLATES.map((e) => {
+ return (
+ <Still
+ key={e.cliId}
+ component={TemplateComp}
+ defaultProps={{
+ templateId: e.cliId,
+ }}
+ height={630}
+ width={1200}
+ id={`template-${e.cliId}`}
+ />
+ );
+ })}
+ </Folder>
+ <Still
+ component={AllTemplates}
+ width={1200}
+ height={630}
+ id="template-all"
+ />
+ </>
+ );
};
diff --git a/packages/docs/src/remotion/Template.tsx b/packages/docs/src/remotion/Template.tsx
index c5ce9a9e06..5145a77718 100644
--- a/packages/docs/src/remotion/Template.tsx
+++ b/packages/docs/src/remotion/Template.tsx
@@ -1,136 +1,136 @@
-import { CreateVideoInternals } from "create-video";
-import React from "react";
-import { AbsoluteFill, Img } from "remotion";
-import { IconForTemplate } from "../components/IconForTemplate";
-import "./font.css";
+import {CreateVideoInternals} from 'create-video';
+import React from 'react';
+import {AbsoluteFill, Img} from 'remotion';
+import {IconForTemplate} from '../components/IconForTemplate';
+import './font.css';
export const TemplateComp: React.FC<{
- templateId: string;
-}> = ({ templateId }) => {
- const template = CreateVideoInternals.FEATURED_TEMPLATES.find(
- (t) => t.cliId === templateId,
- );
- return (
- <AbsoluteFill
- style={{
- height: "100%",
- width: "100%",
- display: "flex",
- backgroundColor: "#fff",
- fontSize: 32,
- fontWeight: 700,
- justifyContent: "center",
- alignItems: "center",
- padding: 60,
- fontFamily: "GTPlanar",
- }}
- >
- <div>
- <div
- style={{
- flexDirection: "row",
- display: "flex",
- paddingLeft: 30,
- }}
- >
- <div
- style={{
- display: "inline-flex",
- flexDirection: "row",
- alignItems: "center",
- padding: "15px 30px",
- translate: "0px 30px",
- backgroundColor: "white",
- }}
- >
- Starter Template
- </div>
- </div>
+ templateId: string;
+}> = ({templateId}) => {
+ const template = CreateVideoInternals.FEATURED_TEMPLATES.find(
+ (t) => t.cliId === templateId,
+ );
+ return (
+ <AbsoluteFill
+ style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ backgroundColor: '#fff',
+ fontSize: 32,
+ fontWeight: 700,
+ justifyContent: 'center',
+ alignItems: 'center',
+ padding: 60,
+ fontFamily: 'GTPlanar',
+ }}
+ >
+ <div>
+ <div
+ style={{
+ flexDirection: 'row',
+ display: 'flex',
+ paddingLeft: 30,
+ }}
+ >
+ <div
+ style={{
+ display: 'inline-flex',
+ flexDirection: 'row',
+ alignItems: 'center',
+ padding: '15px 30px',
+ translate: '0px 30px',
+ backgroundColor: 'white',
+ }}
+ >
+ Starter Template
+ </div>
+ </div>
- <div
- style={{
- display: "flex",
- flex: 1,
- flexDirection: "row",
- }}
- >
- <div
- style={{
- backgroundColor: "#0B84F3",
- display: "flex",
- padding: 50,
- minWidth: 500,
- width: "100%",
- color: "white",
- fontFamily: "GTPlanar",
- fontSize: 50,
- alignItems: "center",
- }}
- >
- {template.cliId === "next" ||
- template.cliId === "next-tailwind" ||
- template.cliId === "next-pages-dir" ? null : (
- <>
- <IconForTemplate scale={1.6} template={template} />{" "}
- <div
- style={{
- width: 25,
- display: "inline-block",
- }}
- />
- </>
- )}
+ <div
+ style={{
+ display: 'flex',
+ flex: 1,
+ flexDirection: 'row',
+ }}
+ >
+ <div
+ style={{
+ backgroundColor: '#0B84F3',
+ display: 'flex',
+ padding: 50,
+ minWidth: 500,
+ width: '100%',
+ color: 'white',
+ fontFamily: 'GTPlanar',
+ fontSize: 50,
+ alignItems: 'center',
+ }}
+ >
+ {template.cliId === 'next' ||
+ template.cliId === 'next-tailwind' ||
+ template.cliId === 'next-pages-dir' ? null : (
+ <>
+ <IconForTemplate scale={1.6} template={template} />{' '}
+ <div
+ style={{
+ width: 25,
+ display: 'inline-block',
+ }}
+ />
+ </>
+ )}
- {template.shortName}
- </div>
- </div>
+ {template.shortName}
+ </div>
+ </div>
- <div
- style={{
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
- height: 120,
- backgroundColor: "#222",
- paddingRight: 40,
- }}
- >
- <div
- style={{
- flex: 1,
- fontFamily: "GTPlanar",
- color: "white",
- height: "100%",
- display: "flex",
- alignItems: "center",
- paddingLeft: 40,
- fontWeight: 300,
- fontSize: 20,
- marginRight: 200,
- }}
- >
- <div>
- <div style={{ opacity: 0.7 }}>Install this template</div>
- <div>npx create-video@latest --template {template.cliId}</div>
- </div>
- </div>
- <div
- style={{
- height: "100%",
- display: "flex",
- justifyContent: "center",
- alignItems: "center",
- }}
- >
- <Img
- style={{
- height: 60,
- }}
- src="https://www.remotion.dev/img/remotion-white.png"
- />
- </div>
- </div>
- </div>
- </AbsoluteFill>
- );
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'center',
+ height: 120,
+ backgroundColor: '#222',
+ paddingRight: 40,
+ }}
+ >
+ <div
+ style={{
+ flex: 1,
+ fontFamily: 'GTPlanar',
+ color: 'white',
+ height: '100%',
+ display: 'flex',
+ alignItems: 'center',
+ paddingLeft: 40,
+ fontWeight: 300,
+ fontSize: 20,
+ marginRight: 200,
+ }}
+ >
+ <div>
+ <div style={{opacity: 0.7}}>Install this template</div>
+ <div>npx create-video@latest --template {template.cliId}</div>
+ </div>
+ </div>
+ <div
+ style={{
+ height: '100%',
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <Img
+ style={{
+ height: 60,
+ }}
+ src="https://www.remotion.dev/img/remotion-white.png"
+ />
+ </div>
+ </div>
+ </div>
+ </AbsoluteFill>
+ );
};
diff --git a/packages/docs/src/remotion/entry.ts b/packages/docs/src/remotion/entry.ts
index f31c790edb..d831f7b0f1 100644
--- a/packages/docs/src/remotion/entry.ts
+++ b/packages/docs/src/remotion/entry.ts
@@ -1,4 +1,4 @@
-import { registerRoot } from "remotion";
-import { RemotionRoot } from "./Root";
+import {registerRoot} from 'remotion';
+import {RemotionRoot} from './Root';
registerRoot(RemotionRoot);
diff --git a/packages/docs/src/remotion/font.css b/packages/docs/src/remotion/font.css
index da000fa38d..b6f10693cd 100644
--- a/packages/docs/src/remotion/font.css
+++ b/packages/docs/src/remotion/font.css
@@ -1,11 +1,11 @@
@font-face {
- font-family: "GTPlanar";
- src: url("../../static/img/gt-planar-bold.woff2") format("woff2");
- font-weight: 900;
- font-style: normal;
- font-feature-settings: "ss03" on;
+ font-family: 'GTPlanar';
+ src: url('../../static/img/gt-planar-bold.woff2') format('woff2');
+ font-weight: 900;
+ font-style: normal;
+ font-feature-settings: 'ss03' on;
}
:root {
- --background: white;
+ --background: white;
}
diff --git a/packages/docs/src/test/showcase.test.ts b/packages/docs/src/test/showcase.test.ts
index 02e65779a9..a564350643 100644
--- a/packages/docs/src/test/showcase.test.ts
+++ b/packages/docs/src/test/showcase.test.ts
@@ -1,15 +1,15 @@
-import { describe, expect, test } from "vitest";
-import { showcaseVideos } from "../data/showcase-videos";
+import {describe, expect, test} from 'vitest';
+import {showcaseVideos} from '../data/showcase-videos';
-describe("Showcase videos should adhere to format guidelines", () => {
- for (const video of showcaseVideos) {
- test(video.title, () => {
- expect(video.description.length).toBeLessThanOrEqual(280);
- expect(video.title.length).toBeLessThanOrEqual(80);
- for (const link of video.links) {
- expect(link.url).not.toContain("<");
- expect(link.url).not.toContain(">");
- }
- });
- }
+describe('Showcase videos should adhere to format guidelines', () => {
+ for (const video of showcaseVideos) {
+ test(video.title, () => {
+ expect(video.description.length).toBeLessThanOrEqual(280);
+ expect(video.title.length).toBeLessThanOrEqual(80);
+ for (const link of video.links) {
+ expect(link.url).not.toContain('<');
+ expect(link.url).not.toContain('>');
+ }
+ });
+ }
});
diff --git a/packages/docs/src/theme/EditThisPage/index.js b/packages/docs/src/theme/EditThisPage/index.js
index 8bdce81263..7bb0cb1447 100644
--- a/packages/docs/src/theme/EditThisPage/index.js
+++ b/packages/docs/src/theme/EditThisPage/index.js
@@ -4,75 +4,75 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
-import { ThemeClassNames } from "@docusaurus/theme-common";
-import Translate from "@docusaurus/Translate";
-import IconEdit from "@theme/Icon/Edit";
-import React from "react";
+import {ThemeClassNames} from '@docusaurus/theme-common';
+import Translate from '@docusaurus/Translate';
+import IconEdit from '@theme/Icon/Edit';
+import React from 'react';
const row = {
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'center',
};
const spacer = {
- width: 24,
+ width: 24,
};
-export default ({ editUrl }) => {
- return (
- <div style={row}>
- <a
- href={editUrl}
- target="_blank"
- rel="noreferrer noopener"
- className={ThemeClassNames.common.editThisPage}
- >
- <IconEdit />
- <Translate
- id="theme.common.editThisPage"
- description="The link label to edit the current page"
- >
- Improve this page
- </Translate>
- </a>
- <div style={spacer} />
- <a
- href="https://remotion.dev/discord"
- target="_blank"
- rel="noreferrer noopener"
- className={ThemeClassNames.common.editThisPage}
- >
- <svg
- style={{ verticalAlign: "sub", marginRight: "0.3em" }}
- height="20"
- width="20"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 640 512"
- >
- <path
- fill="currentcolor"
- d="M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"
- />
- </svg>
- Ask on Discord
- </a>
- <div style={spacer} />
+export default ({editUrl}) => {
+ return (
+ <div style={row}>
+ <a
+ href={editUrl}
+ target="_blank"
+ rel="noreferrer noopener"
+ className={ThemeClassNames.common.editThisPage}
+ >
+ <IconEdit />
+ <Translate
+ id="theme.common.editThisPage"
+ description="The link label to edit the current page"
+ >
+ Improve this page
+ </Translate>
+ </a>
+ <div style={spacer} />
+ <a
+ href="https://remotion.dev/discord"
+ target="_blank"
+ rel="noreferrer noopener"
+ className={ThemeClassNames.common.editThisPage}
+ >
+ <svg
+ style={{verticalAlign: 'sub', marginRight: '0.3em'}}
+ height="20"
+ width="20"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 640 512"
+ >
+ <path
+ fill="currentcolor"
+ d="M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"
+ />
+ </svg>
+ Ask on Discord
+ </a>
+ <div style={spacer} />
- <a href="/docs/get-help" className={ThemeClassNames.common.editThisPage}>
- <svg
- style={{ verticalAlign: "middle", marginRight: "0.3em" }}
- xmlns="http://www.w3.org/2000/svg"
- height="1em"
- viewBox="0 0 512 512"
- >
- <path
- fill="currentcolor"
- d="M385.1 419.1C349.7 447.2 304.8 464 256 464s-93.7-16.8-129.1-44.9l80.4-80.4c14.3 8.4 31 13.3 48.8 13.3s34.5-4.8 48.8-13.3l80.4 80.4zm68.1 .2C489.9 374.9 512 318.1 512 256s-22.1-118.9-58.8-163.3L465 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L419.3 58.8C374.9 22.1 318.1 0 256 0S137.1 22.1 92.7 58.8L81 47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L58.8 92.7C22.1 137.1 0 193.9 0 256s22.1 118.9 58.8 163.3L47 431c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l11.8-11.8C137.1 489.9 193.9 512 256 512s118.9-22.1 163.3-58.8L431 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-11.8-11.8zm-34.1-34.1l-80.4-80.4c8.4-14.3 13.3-31 13.3-48.8s-4.8-34.5-13.3-48.8l80.4-80.4C447.2 162.3 464 207.2 464 256s-16.8 93.7-44.9 129.1zM385.1 92.9l-80.4 80.4c-14.3-8.4-31-13.3-48.8-13.3s-34.5 4.8-48.8 13.3L126.9 92.9C162.3 64.8 207.2 48 256 48s93.7 16.8 129.1 44.9zM173.3 304.8L92.9 385.1C64.8 349.7 48 304.8 48 256s16.8-93.7 44.9-129.1l80.4 80.4c-8.4 14.3-13.3 31-13.3 48.8s4.8 34.5 13.3 48.8zM208 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0z"
- />
- </svg>
- Get help
- </a>
- </div>
- );
+ <a href="/docs/get-help" className={ThemeClassNames.common.editThisPage}>
+ <svg
+ style={{verticalAlign: 'middle', marginRight: '0.3em'}}
+ xmlns="http://www.w3.org/2000/svg"
+ height="1em"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill="currentcolor"
+ d="M385.1 419.1C349.7 447.2 304.8 464 256 464s-93.7-16.8-129.1-44.9l80.4-80.4c14.3 8.4 31 13.3 48.8 13.3s34.5-4.8 48.8-13.3l80.4 80.4zm68.1 .2C489.9 374.9 512 318.1 512 256s-22.1-118.9-58.8-163.3L465 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L419.3 58.8C374.9 22.1 318.1 0 256 0S137.1 22.1 92.7 58.8L81 47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L58.8 92.7C22.1 137.1 0 193.9 0 256s22.1 118.9 58.8 163.3L47 431c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l11.8-11.8C137.1 489.9 193.9 512 256 512s118.9-22.1 163.3-58.8L431 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-11.8-11.8zm-34.1-34.1l-80.4-80.4c8.4-14.3 13.3-31 13.3-48.8s-4.8-34.5-13.3-48.8l80.4-80.4C447.2 162.3 464 207.2 464 256s-16.8 93.7-44.9 129.1zM385.1 92.9l-80.4 80.4c-14.3-8.4-31-13.3-48.8-13.3s-34.5 4.8-48.8 13.3L126.9 92.9C162.3 64.8 207.2 48 256 48s93.7 16.8 129.1 44.9zM173.3 304.8L92.9 385.1C64.8 349.7 48 304.8 48 256s16.8-93.7 44.9-129.1l80.4 80.4c-8.4 14.3-13.3 31-13.3 48.8s4.8 34.5 13.3 48.8zM208 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0z"
+ />
+ </svg>
+ Get help
+ </a>
+ </div>
+ );
};
diff --git a/packages/docs/src/theme/Footer/Layout/index.tsx b/packages/docs/src/theme/Footer/Layout/index.tsx
index 901d02efad..2254abad35 100644
--- a/packages/docs/src/theme/Footer/Layout/index.tsx
+++ b/packages/docs/src/theme/Footer/Layout/index.tsx
@@ -1,18 +1,18 @@
-import clsx from "clsx";
-import React from "react";
+import clsx from 'clsx';
+import React from 'react';
-export default ({ style, links }) => {
- return (
- <footer
- className={clsx("footer", {
- "footer--dark": style === "dark",
- })}
- style={{
- backgroundColor: "var(--footer-background)",
- borderTop: "1px solid var(--footer-border)",
- }}
- >
- <div className="container container-fluid">{links}</div>
- </footer>
- );
+export default ({style, links}) => {
+ return (
+ <footer
+ className={clsx('footer', {
+ 'footer--dark': style === 'dark',
+ })}
+ style={{
+ backgroundColor: 'var(--footer-background)',
+ borderTop: '1px solid var(--footer-border)',
+ }}
+ >
+ <div className="container container-fluid">{links}</div>
+ </footer>
+ );
};
diff --git a/packages/docs/src/theme/Footer/Links/MultiColumn/index.tsx b/packages/docs/src/theme/Footer/Links/MultiColumn/index.tsx
index 286c183a03..f262caad9b 100644
--- a/packages/docs/src/theme/Footer/Links/MultiColumn/index.tsx
+++ b/packages/docs/src/theme/Footer/Links/MultiColumn/index.tsx
@@ -1,88 +1,88 @@
-import { useColorMode } from "@docusaurus/theme-common";
+import {useColorMode} from '@docusaurus/theme-common';
// @ts-expect-error
-import LinkItem from "@theme/Footer/LinkItem";
-import React, { useEffect, useState } from "react";
+import LinkItem from '@theme/Footer/LinkItem';
+import React, {useEffect, useState} from 'react';
const footerTitle: React.CSSProperties = {
- fontFamily: "GTPlanar",
+ fontFamily: 'GTPlanar',
};
-const ColumnLinkItem = ({ item }) => {
- return item.html ? (
- <li
- // Developer provided the HTML, so assume it's safe.
- // eslint-disable-next-line react/no-danger
- dangerouslySetInnerHTML={{ __html: item.html }}
- className="footer__item"
- />
- ) : (
- <li key={item.href ?? item.to} className="footer__item">
- <LinkItem item={item} />
- </li>
- );
+const ColumnLinkItem = ({item}) => {
+ return item.html ? (
+ <li
+ // Developer provided the HTML, so assume it's safe.
+ // eslint-disable-next-line react/no-danger
+ dangerouslySetInnerHTML={{__html: item.html}}
+ className="footer__item"
+ />
+ ) : (
+ <li key={item.href ?? item.to} className="footer__item">
+ <LinkItem item={item} />
+ </li>
+ );
};
-const Column = ({ column }) => {
- return (
- <div className="col footer__col">
- <div style={footerTitle} className="footer__title">
- {column.title}
- </div>
- <ul className="footer__items clean-list">
- {column.items.map((item, i) => (
- // eslint-disable-next-line react/no-array-index-key
- <ColumnLinkItem key={i} item={item} />
- ))}
- </ul>
- </div>
- );
+const Column = ({column}) => {
+ return (
+ <div className="col footer__col">
+ <div style={footerTitle} className="footer__title">
+ {column.title}
+ </div>
+ <ul className="footer__items clean-list">
+ {column.items.map((item, i) => (
+ // eslint-disable-next-line react/no-array-index-key
+ <ColumnLinkItem key={i} item={item} />
+ ))}
+ </ul>
+ </div>
+ );
};
const copyright: React.CSSProperties = {
- textAlign: "left",
- color: "var(--ifm-footer-link-color)",
- fontSize: "0.8em",
- marginTop: 15,
- marginRight: 38,
+ textAlign: 'left',
+ color: 'var(--ifm-footer-link-color)',
+ fontSize: '0.8em',
+ marginTop: 15,
+ marginRight: 38,
};
-export default ({ columns }) => {
- const { colorMode } = useColorMode();
- const [src, setSrc] = useState("/img/new-logo.png");
+export default ({columns}) => {
+ const {colorMode} = useColorMode();
+ const [src, setSrc] = useState('/img/new-logo.png');
- useEffect(() => {
- if (colorMode === "dark") {
- setSrc("/img/remotion-white.png");
- } else {
- setSrc("/img/new-logo.png");
- }
- }, [colorMode]);
+ useEffect(() => {
+ if (colorMode === 'dark') {
+ setSrc('/img/remotion-white.png');
+ } else {
+ setSrc('/img/new-logo.png');
+ }
+ }, [colorMode]);
- return (
- <div className="row footer__links">
- <div
- style={{
- padding: "0 var(--ifm-spacing-horizontal)",
- marginBottom: 20,
- }}
- >
- <img
- key={colorMode}
- src={src}
- style={{
- height: 32,
- marginRight: 80,
- }}
- />
- <p style={copyright}>
- © Copyright {new Date().getFullYear()} Remotion AG. <br /> Website
- created with Docusaurus.
- </p>
- </div>
- {columns.map((column, i) => (
- // eslint-disable-next-line react/no-array-index-key
- <Column key={i} column={column} />
- ))}
- </div>
- );
+ return (
+ <div className="row footer__links">
+ <div
+ style={{
+ padding: '0 var(--ifm-spacing-horizontal)',
+ marginBottom: 20,
+ }}
+ >
+ <img
+ key={colorMode}
+ src={src}
+ style={{
+ height: 32,
+ marginRight: 80,
+ }}
+ />
+ <p style={copyright}>
+ © Copyright {new Date().getFullYear()} Remotion AG. <br /> Website
+ created with Docusaurus.
+ </p>
+ </div>
+ {columns.map((column, i) => (
+ // eslint-disable-next-line react/no-array-index-key
+ <Column key={i} column={column} />
+ ))}
+ </div>
+ );
};
diff --git a/packages/docs/src/theme/Footer/Links/index.tsx b/packages/docs/src/theme/Footer/Links/index.tsx
index 240bb43995..8ea87d759e 100644
--- a/packages/docs/src/theme/Footer/Links/index.tsx
+++ b/packages/docs/src/theme/Footer/Links/index.tsx
@@ -1,6 +1,6 @@
-import React from "react";
-import FooterLinksMultiColumn from "./MultiColumn";
+import React from 'react';
+import FooterLinksMultiColumn from './MultiColumn';
-export default ({ links }) => {
- return <FooterLinksMultiColumn columns={links} />;
+export default ({links}) => {
+ return <FooterLinksMultiColumn columns={links} />;
};
diff --git a/packages/docs/src/theme/Footer/index.tsx b/packages/docs/src/theme/Footer/index.tsx
index df05c300e3..a2771db4fa 100644
--- a/packages/docs/src/theme/Footer/index.tsx
+++ b/packages/docs/src/theme/Footer/index.tsx
@@ -1,33 +1,33 @@
-import { useThemeConfig } from "@docusaurus/theme-common";
-import React, { useEffect } from "react";
-import FooterLayout from "./Layout";
-import FooterLinks from "./Links";
+import {useThemeConfig} from '@docusaurus/theme-common';
+import React, {useEffect} from 'react';
+import FooterLayout from './Layout';
+import FooterLinks from './Links';
const Footer = () => {
- const { footer } = useThemeConfig();
+ const {footer} = useThemeConfig();
- useEffect(() => {
- if (typeof document !== "undefined") {
- document
- .querySelector(".navbar__logo")
- .addEventListener("contextmenu", (e) => {
- e.preventDefault();
- window.open("https://remotion.dev/brand", "_blank");
- });
- }
- }, []);
+ useEffect(() => {
+ if (typeof document !== 'undefined') {
+ document
+ .querySelector('.navbar__logo')
+ .addEventListener('contextmenu', (e) => {
+ e.preventDefault();
+ window.open('https://remotion.dev/brand', '_blank');
+ });
+ }
+ }, []);
- if (!footer) {
- return null;
- }
+ if (!footer) {
+ return null;
+ }
- const { links, style } = footer;
- return (
- <FooterLayout
- style={style}
- links={links && links.length > 0 && <FooterLinks links={links} />}
- />
- );
+ const {links, style} = footer;
+ return (
+ <FooterLayout
+ style={style}
+ links={links && links.length > 0 && <FooterLinks links={links} />}
+ />
+ );
};
export default React.memo(Footer);
diff --git a/packages/docs/src/theme/MDXComponents.js b/packages/docs/src/theme/MDXComponents.js
index 078ae9664e..ee131e954b 100644
--- a/packages/docs/src/theme/MDXComponents.js
+++ b/packages/docs/src/theme/MDXComponents.js
@@ -1,29 +1,29 @@
// Import the original mapper
-import MDXComponents from "@theme-original/MDXComponents";
-import { ExperimentalBadge } from "../../components/Experimental";
-import { InlineStep, Step } from "../../components/InlineStep";
-import { Installation } from "../../components/Installation";
-import { YouTube } from "../../components/YouTube";
-import { Demo } from "../../components/demos";
+import MDXComponents from '@theme-original/MDXComponents';
+import {ExperimentalBadge} from '../../components/Experimental';
+import {InlineStep, Step} from '../../components/InlineStep';
+import {Installation} from '../../components/Installation';
+import {YouTube} from '../../components/YouTube';
+import {Demo} from '../../components/demos';
import {
- AvailableFrom,
- MinBunVersion,
- MinNodeVersion,
-} from "../components/AvailableFrom";
-import { Credits } from "../components/Credits";
-import { Options } from "../components/Options";
+ AvailableFrom,
+ MinBunVersion,
+ MinNodeVersion,
+} from '../components/AvailableFrom';
+import {Credits} from '../components/Credits';
+import {Options} from '../components/Options';
export default {
- ...MDXComponents,
- InlineStep,
- ExperimentalBadge,
- Step,
- Demo,
- AvailableFrom,
- MinNodeVersion,
- MinBunVersion,
- Options,
- Credits,
- YouTube,
- Installation,
+ ...MDXComponents,
+ InlineStep,
+ ExperimentalBadge,
+ Step,
+ Demo,
+ AvailableFrom,
+ MinNodeVersion,
+ MinBunVersion,
+ Options,
+ Credits,
+ YouTube,
+ Installation,
};
diff --git a/packages/enable-scss/.prettierrc.js b/packages/enable-scss/.prettierrc.js
deleted file mode 100644
index 32eb24f3bf..0000000000
--- a/packages/enable-scss/.prettierrc.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = {
- singleQuote: true,
- bracketSpacing: false,
- useTabs: true,
- overrides: [
- {
- files: ['*.yml'],
- options: {
- singleQuote: false,
- },
- },
- ],
- plugins: [require.resolve('prettier-plugin-organize-imports')],
-};
diff --git a/packages/enable-scss/package.json b/packages/enable-scss/package.json
index d1fa7376f4..6590ee5427 100644
--- a/packages/enable-scss/package.json
+++ b/packages/enable-scss/package.json
@@ -8,7 +8,8 @@
"sideEffects": false,
"scripts": {
"lint": "eslint src --ext ts,tsx",
- "build": "bun --env-file=../.env.bundle bundle.ts"
+ "build": "bun --env-file=../.env.bundle bundle.ts",
+ "formatting": "prettier src --check"
},
"author": "Jonny Burger <[email protected]>",
"contributors": [],