Skip to content

🎥 Make videos programmatically with React

about page 3rd draft

MehmetAdemic4b69bc95eea
diff --git a/packages/docs/src/pages/about/EmailLogo.svg b/packages/docs/src/pages/about/EmailLogo.svg
new file mode 100644
index 0000000000..a460789abe
--- /dev/null
+++ b/packages/docs/src/pages/about/EmailLogo.svg
@@ -0,0 +1,3 @@
+<svg width="1299" height="1299" viewBox="0 0 1299 1299" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path 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" fill="black"/>
+</svg>
diff --git a/packages/docs/src/pages/about/LambdaHeader.tsx b/packages/docs/src/pages/about/LambdaHeader.tsx
index e0e0c5bbd8..7a3f5ea5ba 100644
--- a/packages/docs/src/pages/about/LambdaHeader.tsx
+++ b/packages/docs/src/pages/about/LambdaHeader.tsx
@@ -4,24 +4,6 @@ import styles from "./lambdaheader.module.css";
import { BlueButton } from "./Button";
import { LambdaLogo } from "./LambdaLogo";
-const DiscordLogo: React.FC = () => {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 640 512"
- style={{
- width: 54,
- marginRight: 0,
- }}
- >
- <path
- fill="var(--blue-button-color)"
- 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>
- );
-};
-
export const LambdaHeader: React.FC = () => {
return (
<div>
@@ -37,23 +19,7 @@ export const LambdaHeader: React.FC = () => {
display: "flex",
flexDirection: "row",
}}
- >
- <a className={styles.a} href="/docs/lambda">
- <BlueButton size="sm" loading={false} fullWidth={false}>
- Remotion Docs
- </BlueButton>
- </a>
- <div
- style={{
- width: 10,
- }}
- />
- <a className={styles.a} href="https://remotion.dev/discord">
- <BlueButton size="sm" loading={false} fullWidth={false}>
- <DiscordLogo /> Chat in #lambda
- </BlueButton>
- </a>
- </div>
+ ></div>
</div>
<div className={styles.spacer} />
<div>
diff --git a/packages/docs/src/pages/about/VideoApps.tsx b/packages/docs/src/pages/about/VideoApps.tsx
index 16bece3fe8..1b43921809 100644
--- a/packages/docs/src/pages/about/VideoApps.tsx
+++ b/packages/docs/src/pages/about/VideoApps.tsx
@@ -3,11 +3,26 @@ import React from "react";
import { BlueButton } from "./Button";
import { Spacer } from "./Spacer";
import videoapps from "./videoapps.module.css";
-import { YouAreHere } from "./YouAreHere";
import Jonny from "./Jonny Burger.png";
import Mehmet from "./Mehmet Ademi.png";
import Patric from "./Patric Salvisberg.png";
+const ButtonMailto = ({ mailto, label }) => {
+ return (
+ <Link
+ to="#"
+ onClick={(e) => {
+ window.location.href = mailto;
+ e.preventDefault();
+ }}
+ >
+ {label}
+ </Link>
+ );
+};
+
+export default ButtonMailto;
+
const panel: React.CSSProperties = {
backgroundColor: "var(--ifm-background-color)",
boxShadow: "var(--box-shadow)",
@@ -16,7 +31,7 @@ const panel: React.CSSProperties = {
flex: 1,
paddingTop: 30,
paddingBottom: 10,
- minHeight: 550,
+ minHeight: 600,
display: "flex",
flexDirection: "column",
};
@@ -122,6 +137,24 @@ const GitHubLogo: React.FC = () => {
);
};
+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="var(--blue-button-color"
+ 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 VideoApps: React.FC<{
active: "remotion" | "player" | "lambda";
}> = ({ active }) => {
@@ -134,7 +167,6 @@ export const VideoApps: React.FC<{
display: "flex",
justifyContent: "center",
alignItems: "center",
- flex: 1,
}}
>
<img
@@ -150,7 +182,7 @@ export const VideoApps: React.FC<{
<h2 style={stepTitle}>Jonny</h2>
<strong style={center}>Chief Hacker</strong>
- <ul style={list}>
+ <ul style={{ ...list, flex: 1 }}>
<li>
As a former indie hacker I loved working on projects that combine
engineering, art and business. At Remotion I bascially do the same
@@ -158,7 +190,12 @@ export const VideoApps: React.FC<{
</li>
</ul>
- <div style={row}>
+ <div
+ style={{
+ display: "flex",
+ flexDirection: "row",
+ }}
+ >
{active === "remotion" ? null : (
<>
<div style={flex}>
@@ -184,7 +221,13 @@ export const VideoApps: React.FC<{
</div>
</div>
<div style={{ height: 10 }} />
- <div style={row}>
+
+ <div
+ style={{
+ display: "flex",
+ flexDirection: "row",
+ }}
+ >
{active === "remotion" ? null : (
<>
<div style={flex}>
@@ -194,6 +237,15 @@ export const VideoApps: React.FC<{
</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>
@@ -207,7 +259,6 @@ export const VideoApps: React.FC<{
display: "flex",
justifyContent: "center",
alignItems: "center",
- flex: 1,
}}
>
<img
@@ -223,7 +274,7 @@ export const VideoApps: React.FC<{
<h2 style={stepTitle}>Mehmet</h2>
<strong style={center}>Business Manager</strong>
- <ul style={list}>
+ <ul style={{ ...list, flex: 1 }}>
<li>Preview videos in the browser</li>
</ul>
<div style={row}>
@@ -262,6 +313,15 @@ export const VideoApps: React.FC<{
</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>
@@ -275,7 +335,6 @@ export const VideoApps: React.FC<{
display: "flex",
justifyContent: "center",
alignItems: "center",
- flex: 1,
}}
>
<img
@@ -291,7 +350,7 @@ export const VideoApps: React.FC<{
<h2 style={stepTitle}>Patric</h2>
<strong style={center}>Intern</strong>
- <ul style={list}>
+ <ul style={{ ...list, flex: 1 }}>
<li>Render videos in the cloud</li>
</ul>
<div style={row}>
@@ -324,12 +383,21 @@ export const VideoApps: React.FC<{
{active === "remotion" ? null : (
<>
<div style={flex}>
- <a style={docsButton} href="https://github.com/JonnyBurger">
+ <a style={docsButton} href="https://github.com/patsalv">
<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>