Skip to content

🎥 Make videos programmatically with React

start lambda splash page

Jonny Burger8d9a0b12faec
diff --git a/packages/docs/blog/2032-01-01-remotion-3.0.md b/packages/docs/blog/2032-01-01-remotion-3.0.md
index 4e5208cfe9..42d66a9f7c 100644
--- a/packages/docs/blog/2032-01-01-remotion-3.0.md
+++ b/packages/docs/blog/2032-01-01-remotion-3.0.md
@@ -13,3 +13,5 @@ image: https://remotion-still.herokuapp.com/PreviewCard.png?title=Remotion%202.6
## renderMedia()
## Config file can now import
+
+## openBrowser()
diff --git a/packages/docs/components/LambdaSplash/LambdaHeader.tsx b/packages/docs/components/LambdaSplash/LambdaHeader.tsx
new file mode 100644
index 0000000000..6bd37d864d
--- /dev/null
+++ b/packages/docs/components/LambdaSplash/LambdaHeader.tsx
@@ -0,0 +1,24 @@
+import React from "react";
+import { PlayerPreview } from "./PlayerPreview";
+import styles from "./lambdaheader.module.css";
+
+export const LambdaHeader: React.FC = () => {
+ return (
+ <div className={styles.writeincss}>
+ <div style={{ flex: 1 }}>
+ <h1 className={styles.writeincsstitle}>
+ Rendering. <br /> At scale.
+ </h1>
+ <p>
+ Distribute render workload over multiple Lambdas and only pay for when
+ you are rendering. Slash render times into a fraction of what you are
+ used to.
+ </p>
+ </div>
+ <div className={styles.spacer} />
+ <div className={styles.writeright}>
+ <PlayerPreview />
+ </div>
+ </div>
+ );
+};
diff --git a/packages/docs/components/LambdaSplash/PlayerPreview.tsx b/packages/docs/components/LambdaSplash/PlayerPreview.tsx
new file mode 100644
index 0000000000..8f2cb8f3af
--- /dev/null
+++ b/packages/docs/components/LambdaSplash/PlayerPreview.tsx
@@ -0,0 +1,62 @@
+import React from "react";
+import styles from "./playerpreview.module.css";
+
+const rotate: React.CSSProperties = {
+ transform: `rotate(90deg)`,
+};
+const ICON_SIZE = 18;
+export const PlayerPreview: React.FC = () => {
+ return (
+ <a
+ href="https://example.com"
+ target="_blank"
+ data-splitbee-event="External Link"
+ data-splitbee-event-target={"YouTube Trailer"}
+ >
+ <div className={styles.playerpreview}>
+ <img
+ style={{
+ boxShadow: "var(--box-shadow)",
+ borderRadius: 12,
+ }}
+ src="/img/lambda-og.png"
+ />
+ <div
+ style={{
+ width: "100%",
+ textAlign: "center",
+ color: "black",
+ fontSize: 13,
+ display: "flex",
+ flexDirection: "row",
+ justifyContent: "center",
+ alignItems: "center",
+ }}
+ >
+ <svg
+ width={ICON_SIZE}
+ height={ICON_SIZE}
+ viewBox="-100 -100 400 400"
+ style={rotate}
+ >
+ <path
+ fill={"var(--ifm-color-primary)"}
+ stroke={"var(--ifm-color-primary)"}
+ strokeWidth="100"
+ strokeLinejoin="round"
+ d="M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z"
+ />
+ </svg>
+ <div
+ style={{
+ marginLeft: 5,
+ color: "var(--ifm-color-primary)",
+ }}
+ >
+ Watch Promo video (1:20)
+ </div>
+ </div>
+ </div>
+ </a>
+ );
+};
diff --git a/packages/docs/components/LambdaSplash/RenderTimes.tsx b/packages/docs/components/LambdaSplash/RenderTimes.tsx
new file mode 100644
index 0000000000..cb4b4dfdeb
--- /dev/null
+++ b/packages/docs/components/LambdaSplash/RenderTimes.tsx
@@ -0,0 +1,32 @@
+import React from "react";
+import styles from "./rendertimes.module.css";
+
+export const RenderTimes: React.FC = () => {
+ return (
+ <div
+ style={{
+ display: "flex",
+ flexDirection: "row",
+ }}
+ >
+ <div className={styles.stat}>
+ <p>80 sec video rendered in</p>
+ <h1>15 sec</h1>
+ </div>
+ <div className={styles.stat}>
+ <p>2 hr video rendered in</p>
+ <h1>12 min</h1>
+ </div>
+ <div className={styles.stat}>
+ <p>Concurrency up to</p>
+ <h1>200x</h1>
+ </div>
+ <div className={styles.stat}>
+ <p>Cost per minute</p>
+ <h1>
+ $0.01 <sup>1)</sup>
+ </h1>
+ </div>
+ </div>
+ );
+};
diff --git a/packages/docs/components/LambdaSplash/lambdaheader.module.css b/packages/docs/components/LambdaSplash/lambdaheader.module.css
new file mode 100644
index 0000000000..a5f91a36ed
--- /dev/null
+++ b/packages/docs/components/LambdaSplash/lambdaheader.module.css
@@ -0,0 +1,41 @@
+.writeincss {
+ flex-direction: row;
+ display: flex;
+}
+
+.writeincsstitle {
+ font-size: 5em;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
+ font-weight: 700;
+ line-height: 1;
+ -webkit-text-fill-color: transparent;
+ background: linear-gradient(
+ to right,
+ var(--text-color),
+ var(--light-text-color)
+ );
+ -webkit-background-clip: text;
+ max-width: 500px;
+}
+
+.writeright {
+ flex: 1;
+}
+
+@media screen and (max-width: 900px) {
+ .writeincss {
+ flex-direction: column;
+ }
+ .writeincsstitle {
+ font-size: 3.5em;
+ }
+ .writeright {
+ margin-top: 30px;
+ }
+}
+
+.spacer {
+ height: 50px;
+ width: 50px;
+}
diff --git a/packages/docs/components/LambdaSplash/playerpreview.module.css b/packages/docs/components/LambdaSplash/playerpreview.module.css
new file mode 100644
index 0000000000..2289ad7540
--- /dev/null
+++ b/packages/docs/components/LambdaSplash/playerpreview.module.css
@@ -0,0 +1,13 @@
+.playerpreview {
+ flex: 1;
+ cursor: pointer;
+ position: relative;
+ transition: transform 0.3s;
+ background-color: var(--blue-underlay);
+ border-radius: 15px;
+ padding: 10px;
+}
+
+.playerpreview:hover {
+ transform: scale(1.015);
+}
diff --git a/packages/docs/components/LambdaSplash/rendertimes.module.css b/packages/docs/components/LambdaSplash/rendertimes.module.css
new file mode 100644
index 0000000000..c524af5c05
--- /dev/null
+++ b/packages/docs/components/LambdaSplash/rendertimes.module.css
@@ -0,0 +1,24 @@
+.stat {
+ flex: 1;
+ text-align: center;
+
+ margin-bottom: 50px;
+}
+
+.stat h1 {
+ margin-top: 0;
+ margin-bottom: 0;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
+ font-weight: 700;
+ line-height: 1;
+ -webkit-text-fill-color: transparent;
+ font-size: 3em;
+ background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));
+ -webkit-background-clip: text;
+
+}
+.stat p {
+ margin-bottom: 0;
+ margin-top: 0;
+}
diff --git a/packages/docs/docusaurus.config.js b/packages/docs/docusaurus.config.js
index 816cb72e81..4f600ab5ad 100644
--- a/packages/docs/docusaurus.config.js
+++ b/packages/docs/docusaurus.config.js
@@ -65,6 +65,10 @@ module.exports = {
label: "Player",
to: "/player",
},
+ {
+ label: "Lambda",
+ to: "/lambda",
+ },
{
label: "Changelog",
href: "https://github.com/remotion-dev/remotion/releases",
diff --git a/packages/docs/src/pages/lambda/index.tsx b/packages/docs/src/pages/lambda/index.tsx
new file mode 100644
index 0000000000..7febf3d570
--- /dev/null
+++ b/packages/docs/src/pages/lambda/index.tsx
@@ -0,0 +1,40 @@
+import React from "react";
+import Layout from "@theme/Layout";
+import { LambdaHeader } from "../../../components/LambdaSplash/LambdaHeader";
+import { RenderTimes } from "../../../components/LambdaSplash/RenderTimes";
+import Head from "@docusaurus/Head";
+
+const container: React.CSSProperties = {
+ maxWidth: 1000,
+ margin: "auto",
+ paddingLeft: 16,
+ paddingRight: 16,
+};
+
+export default () => {
+ return (
+ <Layout
+ title="@remotion/lambda"
+ description="Render videos at scale on AWS Lambda"
+ >
+ <Head>
+ <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 />
+ <br />
+ <LambdaHeader />
+ <br />
+ <br />
+ <br />
+ <div>
+ <RenderTimes />
+ </div>
+ </div>
+ </Layout>
+ );
+};
diff --git a/packages/docs/static/img/lambda-og.png b/packages/docs/static/img/lambda-og.png
new file mode 100644
index 0000000000..510e8a19ed
Binary files /dev/null and b/packages/docs/static/img/lambda-og.png differ
diff --git a/packages/lambda/src/api/delete-function.ts b/packages/lambda/src/api/delete-function.ts
index 1e4d309e1c..2a23d58425 100644
--- a/packages/lambda/src/api/delete-function.ts
+++ b/packages/lambda/src/api/delete-function.ts
@@ -12,7 +12,7 @@ export type DeleteFunctionInput = {
* @link https://v3.remotion.dev/docs/lambda/deletefunction
* @param options.region The region the function was deployed to.
* @param options.functionName The name of the function.
- * @returns {Promise<undefined>} Nothing. Throws if the function failed to delete.
+ * @returns {Promise<void>} Nothing. Throws if the function failed to delete.
*/
export const deleteFunction = async ({
region,