Skip to content

🎥 Make videos programmatically with React

improve promo page

Jonny Burger2cc2f3633bed
diff --git a/packages/docs/components/LambdaSplash/Disclaimers.tsx b/packages/docs/components/LambdaSplash/Disclaimers.tsx
new file mode 100644
index 0000000000..6ea5876372
--- /dev/null
+++ b/packages/docs/components/LambdaSplash/Disclaimers.tsx
@@ -0,0 +1,32 @@
+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 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/LambdaHeader.tsx b/packages/docs/components/LambdaSplash/LambdaHeader.tsx
index 6bd37d864d..bba2a56930 100644
--- a/packages/docs/components/LambdaSplash/LambdaHeader.tsx
+++ b/packages/docs/components/LambdaSplash/LambdaHeader.tsx
@@ -1,6 +1,7 @@
import React from "react";
import { PlayerPreview } from "./PlayerPreview";
import styles from "./lambdaheader.module.css";
+import { BlueButton } from "../layout/Button";
export const LambdaHeader: React.FC = () => {
return (
@@ -14,6 +15,28 @@ export const LambdaHeader: React.FC = () => {
you are rendering. Slash render times into a fraction of what you are
used to.
</p>
+ <div
+ style={{
+ display: "flex",
+ flexDirection: "row",
+ }}
+ >
+ <a className={styles.a} href="/docs/lambda">
+ <BlueButton size="sm" loading={false} fullWidth={false}>
+ Read documentation
+ </BlueButton>
+ </a>
+ <div
+ style={{
+ width: 10,
+ }}
+ />
+ <a className={styles.a} href="https://discord.gg/6VzzNDwUwV">
+ <BlueButton size="sm" loading={false} fullWidth={false}>
+ Join Discord
+ </BlueButton>
+ </a>
+ </div>
</div>
<div className={styles.spacer} />
<div className={styles.writeright}>
diff --git a/packages/docs/components/LambdaSplash/RenderTimes.tsx b/packages/docs/components/LambdaSplash/RenderTimes.tsx
index cb4b4dfdeb..ba4b3a4a96 100644
--- a/packages/docs/components/LambdaSplash/RenderTimes.tsx
+++ b/packages/docs/components/LambdaSplash/RenderTimes.tsx
@@ -11,11 +11,15 @@ export const RenderTimes: React.FC = () => {
>
<div className={styles.stat}>
<p>80 sec video rendered in</p>
- <h1>15 sec</h1>
+ <h1>
+ 15 sec<sup>1)</sup>
+ </h1>
</div>
<div className={styles.stat}>
<p>2 hr video rendered in</p>
- <h1>12 min</h1>
+ <h1>
+ 12 min<sup>2)</sup>
+ </h1>
</div>
<div className={styles.stat}>
<p>Concurrency up to</p>
@@ -24,7 +28,7 @@ export const RenderTimes: React.FC = () => {
<div className={styles.stat}>
<p>Cost per minute</p>
<h1>
- $0.01 <sup>1)</sup>
+ $0.01<sup>3)</sup>
</h1>
</div>
</div>
diff --git a/packages/docs/components/LambdaSplash/disclaimers.module.css b/packages/docs/components/LambdaSplash/disclaimers.module.css
new file mode 100644
index 0000000000..f16a7c248f
--- /dev/null
+++ b/packages/docs/components/LambdaSplash/disclaimers.module.css
@@ -0,0 +1,6 @@
+.disclaimer {
+ color: var(--light-text-color);
+ font-size: 0.9em;
+ margin-top: 12px;
+ margin-bottom: 12px;
+}
diff --git a/packages/docs/components/LambdaSplash/lambdaheader.module.css b/packages/docs/components/LambdaSplash/lambdaheader.module.css
index a5f91a36ed..b53ce6a761 100644
--- a/packages/docs/components/LambdaSplash/lambdaheader.module.css
+++ b/packages/docs/components/LambdaSplash/lambdaheader.module.css
@@ -39,3 +39,7 @@
height: 50px;
width: 50px;
}
+
+.a:hover {
+ text-decoration: none;
+}
diff --git a/packages/docs/components/LambdaSplash/rendertimes.module.css b/packages/docs/components/LambdaSplash/rendertimes.module.css
index c524af5c05..10b8259b79 100644
--- a/packages/docs/components/LambdaSplash/rendertimes.module.css
+++ b/packages/docs/components/LambdaSplash/rendertimes.module.css
@@ -10,7 +10,7 @@
margin-bottom: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
- font-weight: 700;
+ font-weight: 800;
line-height: 1;
-webkit-text-fill-color: transparent;
font-size: 3em;
@@ -22,3 +22,7 @@
margin-bottom: 0;
margin-top: 0;
}
+
+.stat sup {
+ font-size: 0.4em;
+}
diff --git a/packages/docs/src/pages/lambda/index.tsx b/packages/docs/src/pages/lambda/index.tsx
index 7febf3d570..c65efbd67c 100644
--- a/packages/docs/src/pages/lambda/index.tsx
+++ b/packages/docs/src/pages/lambda/index.tsx
@@ -2,6 +2,7 @@ import React from "react";
import Layout from "@theme/Layout";
import { LambdaHeader } from "../../../components/LambdaSplash/LambdaHeader";
import { RenderTimes } from "../../../components/LambdaSplash/RenderTimes";
+import { Disclaimers } from "../../../components/LambdaSplash/Disclaimers";
import Head from "@docusaurus/Head";
const container: React.CSSProperties = {
@@ -34,6 +35,9 @@ export default () => {
<div>
<RenderTimes />
</div>
+ <div>
+ <Disclaimers />
+ </div>
</div>
</Layout>
);