Skip to content

🎥 Make videos programmatically with React

success story

Jonny Burgerc9e2c840f362
diff --git a/packages/docs/components/LandingPage/FreePricing.tsx b/packages/docs/components/LandingPage/FreePricing.tsx
index 36e44710ed..32a0bc82c3 100644
--- a/packages/docs/components/LandingPage/FreePricing.tsx
+++ b/packages/docs/components/LandingPage/FreePricing.tsx
@@ -17,7 +17,7 @@ export const FreePricing: React.FC = () => {
support, we constantly improve Remotion for everyone.
</p>
</div>
- <PricingTable></PricingTable>
+ <PricingTable />
<br />
<br />
<br />
diff --git a/packages/docs/components/LandingPage/SuccessFeatures.tsx b/packages/docs/components/LandingPage/SuccessFeatures.tsx
new file mode 100644
index 0000000000..b92eedeb82
--- /dev/null
+++ b/packages/docs/components/LandingPage/SuccessFeatures.tsx
@@ -0,0 +1,58 @@
+import React from "react";
+import { BlueButton } from "../layout/Button";
+import styles from "./success.module.css";
+
+const container: React.CSSProperties = {
+ maxWidth: 400,
+};
+
+const card: React.CSSProperties = {
+ backgroundColor: "var(--ifm-background-color)",
+ boxShadow: "var(--box-shadow)",
+ borderRadius: 15,
+ overflow: "hidden",
+};
+
+const padding: React.CSSProperties = {
+ padding: 16,
+};
+
+const p: React.CSSProperties = {
+ marginTop: 4,
+ marginBottom: 8,
+};
+
+const titleCard: React.CSSProperties = {
+ height: 160,
+ backgroundSize: "cover",
+ backgroundPosition: "center center",
+ backgroundImage: "url(/img/makestoriescard.png)",
+};
+
+export const SuccessFeatures: React.FC = () => {
+ return (
+ <div>
+ <p>
+ <strong>Featured story</strong>
+ </p>
+ <a className={styles.successlink} href="/success-stories/makestories">
+ <div style={container}>
+ <div style={card}>
+ <div style={titleCard} />
+ <div style={padding}>
+ <h3 style={{ marginBottom: 0 }}>
+ How MakeStories leverages Remotion to render Web Stories
+ </h3>
+ <p style={p}>Interview with Pratik Ghela, Founder</p>
+ <br />
+ <br />
+ <BlueButton fullWidth loading={false} size="sm">
+ Read success story
+ </BlueButton>
+ </div>
+ </div>
+ </div>
+ </a>
+ </div>
+ );
+};
diff --git a/packages/docs/components/LandingPage/parametrize.tsx b/packages/docs/components/LandingPage/parametrize.tsx
index 9eba0ea93f..7b077c5699 100644
--- a/packages/docs/components/LandingPage/parametrize.tsx
+++ b/packages/docs/components/LandingPage/parametrize.tsx
@@ -12,11 +12,13 @@ const makeRequest = async (username: string): Promise<GithubResponse> => {
if (cache[username]) {
return cache[username];
}
+
const response = await fetch(`https://api.github.com/users/${username}`);
const json = await response.json();
if (response.status !== 200) {
throw new Error(json.message);
}
+
cache[username] = json;
return json;
};
@@ -110,7 +112,7 @@ export const Parametrize: React.FC = () => {
<span style={{ fontSize: 13 }}>
Customize the video by entering your GitHub username.
</span>
- <div style={{ height: 10 }}></div>
+ <div style={{ height: 10 }} />
<div>
<form
onSubmit={(e) => {
@@ -129,8 +131,8 @@ export const Parametrize: React.FC = () => {
autoFocus
type="text"
placeholder="Your GitHub username"
- />{' '}
- <div style={{ width: 8, display: 'inline-block' }} />
+ />{" "}
+ <div style={{ width: 8, display: "inline-block" }} />
<BlueButton
loading={state.type === "loading"}
fullWidth={false}
@@ -139,6 +141,7 @@ export const Parametrize: React.FC = () => {
if (!ref.current?.value) {
return;
}
+
setUsername(ref.current?.value as string);
}}
>
diff --git a/packages/docs/components/LandingPage/success.module.css b/packages/docs/components/LandingPage/success.module.css
new file mode 100644
index 0000000000..11dc372b82
--- /dev/null
+++ b/packages/docs/components/LandingPage/success.module.css
@@ -0,0 +1,13 @@
+.successlink {
+ text-decoration: none;
+ color: inherit;
+ display: inline-block;
+ transform: translateY(0px);
+ transition: transform 0.2s;
+}
+
+.successlink:hover {
+ text-decoration: none;
+ color: inherit;
+ transform: translateY(-4px);
+}
diff --git a/packages/docs/src/pages/index.tsx b/packages/docs/src/pages/index.tsx
index e2579ce7ac..d415701812 100644
--- a/packages/docs/src/pages/index.tsx
+++ b/packages/docs/src/pages/index.tsx
@@ -6,6 +6,7 @@ import { FreePricing } from "../../components/LandingPage/FreePricing";
import { IfYouKnowReact } from "../../components/LandingPage/if-you-know-react";
import { Parametrize } from "../../components/LandingPage/parametrize";
import { RealMP4Videos } from "../../components/LandingPage/real-mp4-videos";
+import { SuccessFeatures } from "../../components/LandingPage/SuccessFeatures";
import { WriteInReact } from "../../components/LandingPage/WriteInReact";
import styles from "./landing.module.css";
@@ -20,34 +21,37 @@ const NewLanding: React.FC = () => {
description="Create MP4 motion graphics in React. Leverage CSS, SVG, WebGL and more technologies to render videos programmatically!"
>
<div className={styles.content}>
- <WriteInReact></WriteInReact>
+ <WriteInReact />
<br />
<br />
<br />
<br />
<br />
- <IfYouKnowReact></IfYouKnowReact>
+ <IfYouKnowReact />
<br />
<br />
<br />
<br />
<br />
- <RealMP4Videos></RealMP4Videos>
+ <RealMP4Videos />
<br />
<br />
<br />
<br />
- <LightningFastEditor></LightningFastEditor>
+ <LightningFastEditor />
<br />
<br />
<br />
<br />
- <Parametrize></Parametrize>
+ <Parametrize />
<br />
<br />
<br />
<br />
- <FreePricing></FreePricing>
+ <FreePricing />
+ <SuccessFeatures />
+ <br />
+ <br />
</div>
</Layout>
);
diff --git a/packages/docs/static/img/makestoriescard.png b/packages/docs/static/img/makestoriescard.png
new file mode 100644
index 0000000000..345fe4ce69
Binary files /dev/null and b/packages/docs/static/img/makestoriescard.png differ
diff --git a/packages/docs/success-stories/2021-07-31-makestories.md b/packages/docs/success-stories/2021-07-31-makestories.md
index ba4af963f2..ac01caea7b 100644
--- a/packages/docs/success-stories/2021-07-31-makestories.md
+++ b/packages/docs/success-stories/2021-07-31-makestories.md
@@ -6,7 +6,7 @@ image: /img/makestories.png
_This is the first article in our new series: Success Stories. We interview companies and creators that we find inspiring and which have successfully implemented Remotion in their stack. Let us know what you think!_
-[Web Stories](https://stories.google/) is a format by Google to bring stories to the web. Appearing directly in Google Search, they are an opportunity for publishers to increase their audience massively.
+MakeStories is in the business of [Web Stories](https://stories.google/) - a format by Google to bring stories to the web. Appearing directly in Google Search, they are an opportunity for publishers to increase their audience massively.
![Cover image](/img/makestories.png)
@@ -38,3 +38,7 @@ Considering this is a better product than we used before, everything was perfect
The integration of Remotion was straightforward. The documentation on the website was good and gave us guidance throughout the whole process.
Another good thing for us was that Remotion uses TypeScript since we already used it before we were already familiar with it. This made many things easier for us. And even some minor quality issues we had before are gone now.
_Editors note: MakeStories consulted with Remotion on how to optimize render time and quality for their stories._
+
+---
+
+_Were you successful using Remotion? Let us know your story at [email protected]!_