Skip to content

🎥 Make videos programmatically with React

update landing page

Jonny Burger6342939bf7e9
diff --git a/packages/docs/components/LambdaSplash/Disclaimers.tsx b/packages/docs/components/LambdaSplash/Disclaimers.tsx
index 1a375b9674..1f0c21683b 100644
--- a/packages/docs/components/LambdaSplash/Disclaimers.tsx
+++ b/packages/docs/components/LambdaSplash/Disclaimers.tsx
@@ -1,33 +1,34 @@
-import React from "react";
-import styles from "./disclaimers.module.css";
+import React from 'react';
+import styles from './disclaimers.module.css';
export const Disclaimers: React.FC = () => {
- return (
- <div>
- <div className={styles.disclaimer}>
- 1) Measured render time when rendering Remotion Lambda Trailer.{" "}
- Instructions to reproduce can be found{" "}
- <a
- target="_blank"
- href="https://github.com/remotion-dev/trailer-lambda"
- >
- in the README.
- </a>
- </div>
- <div className={styles.disclaimer}>
- 2) Rendering the composition <code>2hrvideo</code> in the example folder
- in the Remotion repository with <code>--frames-per-lambda=1080</code>,
- an ARM64 Lambda function with 2048MB RAM, on warm Lambdas on the
- us-east-1 region. Does not include S3 and data transfer costs.
- </div>
- <div className={styles.disclaimer}>
- 3) Estimated cost per minute of video when rendering the Remotion Lambda
- trailer with <code>--frames-per-lambda=12</code>, an ARM64 Lambda
- function with 2048MB RAM, on warm Lambdas on the us-east-1 region. Does
- not include S3 and data transfer costs. Check{" "}
- <a href="/docs/license">Licensing</a> whether you need to acquire a
- license to use Remotion Lambda.
- </div>
- </div>
- );
+ return (
+ <div>
+ <div className={styles.disclaimer}>
+ 1) Measured render time when rendering Remotion Lambda Trailer.{' '}
+ Instructions to reproduce can be found{' '}
+ <a
+ target="_blank"
+ href="https://github.com/remotion-dev/trailer-lambda"
+ >
+ in the README.
+ </a>
+ </div>
+ <div className={styles.disclaimer}>
+ 2) Rendering the composition <code>2hrvideo</code> in the example folder
+ in the Remotion repository with <code>--frames-per-lambda=1080</code>,
+ an ARM64 Lambda function with 2048MB RAM, on warm Lambdas on the
+ us-east-1 region. Does not include S3 and data transfer costs.
+ </div>
+ <div className={styles.disclaimer}>
+ 3) See <a href="/docs/lambda/cost-example">here</a> for example costs
+ for various scenarios. Estimated cost per minute of video when rendering
+ the Remotion Lambda trailer with <code>--frames-per-lambda=12</code>, an
+ ARM64 Lambda function with 2048MB RAM, on warm Lambdas on the us-east-1
+ region. Does not include S3 and data transfer costs. Check{' '}
+ <a href="/docs/license">Licensing</a> whether you need to acquire a
+ license to use Remotion Lambda.
+ </div>
+ </div>
+ );
};
diff --git a/packages/docs/components/LambdaSplash/RenderTimes.tsx b/packages/docs/components/LambdaSplash/RenderTimes.tsx
index a44d23db86..c66a1d9b37 100644
--- a/packages/docs/components/LambdaSplash/RenderTimes.tsx
+++ b/packages/docs/components/LambdaSplash/RenderTimes.tsx
@@ -1,47 +1,47 @@
-import React from "react";
-import styles from "./rendertimes.module.css";
+import React from 'react';
+import styles from './rendertimes.module.css';
export const RenderTimes: React.FC = () => {
- return (
- <div className={styles.row}>
- <div
- style={{
- display: "flex",
- flexDirection: "row",
- flex: 1,
- }}
- >
- <div className={styles.stat}>
- <p>80 sec video rendered in</p>
- <h1>
- 15 sec<sup>1)</sup>
- </h1>
- </div>
- <div className={styles.stat}>
- <p>2 hr video rendered in</p>
- <h1>
- 12 min<sup>2)</sup>
- </h1>
- </div>
- </div>
- <div
- style={{
- display: "flex",
- flexDirection: "row",
- flex: 1,
- }}
- >
- <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>3)</sup>
- </h1>
- </div>
- </div>
- </div>
- );
+ return (
+ <div className={styles.row}>
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'row',
+ flex: 1,
+ }}
+ >
+ <div className={styles.stat}>
+ <p>80 sec video rendered in</p>
+ <h1>
+ 15 sec<sup>1)</sup>
+ </h1>
+ </div>
+ <div className={styles.stat}>
+ <p>2 hr video rendered in</p>
+ <h1>
+ 12 min<sup>2)</sup>
+ </h1>
+ </div>
+ </div>
+ <div
+ style={{
+ display: 'flex',
+ flexDirection: 'row',
+ flex: 1,
+ }}
+ >
+ <div className={styles.stat}>
+ <p>Concurrency up to</p>
+ <h1>200x</h1>
+ </div>
+ <div className={styles.stat}>
+ <p>Cost per minute</p>
+ <h1>
+ from $0.01<sup>3)</sup>
+ </h1>
+ </div>
+ </div>
+ </div>
+ );
};
diff --git a/packages/docs/components/LambdaSplash/rendertimes.module.css b/packages/docs/components/LambdaSplash/rendertimes.module.css
index 3e93cc8c89..072cbed5c6 100644
--- a/packages/docs/components/LambdaSplash/rendertimes.module.css
+++ b/packages/docs/components/LambdaSplash/rendertimes.module.css
@@ -1,36 +1,34 @@
.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;
+ }
}
-
.stat {
- flex: 1;
- text-align: center;
+ flex: 1;
+ text-align: center;
- margin-bottom: 50px;
+ margin-bottom: 50px;
}
.stat h1 {
- margin-top: 0;
- margin-bottom: 0;
- font-weight: 800;
- line-height: 1;
- font-size: 3em;
- color: rgb(66, 144, 245);
-
+ margin-top: 0;
+ margin-bottom: 0;
+ font-weight: 800;
+ line-height: 1;
+ font-size: 2.5em;
+ color: rgb(66, 144, 245);
}
.stat p {
- margin-bottom: 0;
- margin-top: 0;
+ margin-bottom: 0;
+ margin-top: 0;
}
.stat sup {
- font-size: 0.4em;
+ font-size: 0.4em;
}