🎥 Make videos programmatically with React
redesign
Jonny Burger2f965c0ce09d
diff --git a/packages/docs/components/LandingPage/GetStartedStrip.tsx b/packages/docs/components/LandingPage/GetStartedStrip.tsxindex 6024d54014..37ac52cd68 100644--- a/packages/docs/components/LandingPage/GetStartedStrip.tsx+++ b/packages/docs/components/LandingPage/GetStartedStrip.tsx@@ -5,6 +5,7 @@ import { GithubButton } from "./GithubButton";export const GetStarted: React.FC = () => {const [clicked, setClicked] = useState<number | null>(null);+return (<><div className={styles.myrow}>@@ -33,13 +34,27 @@ export const GetStarted: React.FC = () => {</BlueButton></a><div style={{ width: 10 }} />+ <a+ className={styles.a}+ href="https://www.youtube.com/watch?v=deg8bOoziaE"+ >+ <BlueButton size="sm" loading={false} fullWidth={false}>+ Watch demo+ </BlueButton>+ </a>+ <div style={{ width: 10 }} />+ <a className={styles.a} href="/docs">+ <BlueButton size="sm" loading={false} fullWidth={false}>+ Discord+ </BlueButton>+ </a>+ <div style={{ width: 10 }} /><a className={styles.a} href="https://github.com/remotion-dev/remotion"><BlueButton size="sm" loading={false} fullWidth={false}><GithubButton /></BlueButton></a></div>- <div style={{ height: 10 }} /></>);};diff --git a/packages/docs/components/LandingPage/WriteInReact.tsx b/packages/docs/components/LandingPage/WriteInReact.tsxindex e2998f01b6..554cd30ed9 100644--- a/packages/docs/components/LandingPage/WriteInReact.tsx+++ b/packages/docs/components/LandingPage/WriteInReact.tsx@@ -1,25 +1,31 @@import React from "react";+import { ChooseTemplate } from "../../src/components/ChooseTemplate";import { GetStarted } from "./GetStartedStrip";import { PlayerPreview } from "./PlayerPreview";import styles from "./writeinreact.module.css";export const WriteInReact: React.FC = () => {return (- <div className={styles.writeincss}>- <div style={{ flex: 1 }}>- <h1 className={styles.writeincsstitle}>- Write videos <br /> in React.- </h1>- <p>- Use your React knowledge to create real MP4 videos. <br /> Scale your- video production using server-side rendering and parametrization.- </p>-+ <div>+ <h1 className={styles.writeincsstitle}>Write videos in React.</h1>+ <br></br>+ <p+ style={{+ textAlign: "center",+ fontSize: "1.2em",+ fontWeight: 500,+ }}+ >+ Create real MP4 videos programmatically. <br /> Scale your video+ production using server-side rendering and parametrization.+ </p>+ <br></br>+ <div className={styles.writeincss}><GetStarted /></div>- <div style={{ width: 32 }}></div>- <div className={styles.writeright}>- <PlayerPreview />+ <br></br>+ <div>+ <ChooseTemplate /></div></div>);diff --git a/packages/docs/components/LandingPage/get-started.module.css b/packages/docs/components/LandingPage/get-started.module.cssindex d1d51cfad1..73188d1bd6 100644--- a/packages/docs/components/LandingPage/get-started.module.css+++ b/packages/docs/components/LandingPage/get-started.module.css@@ -2,6 +2,9 @@display: flex;flex-direction: row;align-items: center;+ justify-content: center;+ text-align: center;+ width: 100%;}.codeblock {diff --git a/packages/docs/components/LandingPage/writeinreact.module.css b/packages/docs/components/LandingPage/writeinreact.module.cssindex 96a925b433..75a7579597 100644--- a/packages/docs/components/LandingPage/writeinreact.module.css+++ b/packages/docs/components/LandingPage/writeinreact.module.css@@ -4,10 +4,10 @@}.writeincsstitle {- font-size: 4em;- font-weight: 700;+ font-size: 5em;+ font-weight: 900;line-height: 1;- max-width: 500px;+ text-align: center;}.writeright {diff --git a/packages/docs/src/components/ChooseTemplate.tsx b/packages/docs/src/components/ChooseTemplate.tsxindex b1e047c318..5113768289 100644--- a/packages/docs/src/components/ChooseTemplate.tsx+++ b/packages/docs/src/components/ChooseTemplate.tsx@@ -11,6 +11,7 @@ import { Waveform } from "./icons/waveform";import { TemplateIcon } from "./TemplateIcon";import { chunk } from "../helpers/chunk";import { useElementSize } from "../helpers/use-el-size";+import styles from "../../components/LandingPage/get-started.module.css";const IconForTemplate: React.FC<{template: Template;@@ -126,8 +127,9 @@ export const ChooseTemplate: React.FC = () => {<divstyle={{display: "flex",- flexDirection: mobileLayout ? "column" : "row",+ flexDirection: "row",justifyContent: "center",+ alignItems: "center",}}>{chunks.map((c) => {@@ -137,7 +139,6 @@ export const ChooseTemplate: React.FC = () => {style={{display: "flex",flexDirection: "row",- justifyContent: "center",marginBottom: mobileLayout ? 8 : 0,marginTop: mobileLayout ? 8 : 0,}}diff --git a/packages/docs/src/components/TemplateIcon.tsx b/packages/docs/src/components/TemplateIcon.tsxindex 7e410a129a..86beb2dacc 100644--- a/packages/docs/src/components/TemplateIcon.tsx+++ b/packages/docs/src/components/TemplateIcon.tsx@@ -1,7 +1,7 @@import React from "react";const outer: React.CSSProperties = {- width: 110,+ width: 90,textAlign: "center",display: "flex",alignItems: "center",@@ -16,7 +16,7 @@ const icon: React.CSSProperties = {height: 50,justifyContent: "center",alignItems: "center",- margin: 10,+ margin: 0,};const labelStyle: React.CSSProperties = {diff --git a/packages/docs/src/css/custom.css b/packages/docs/src/css/custom.cssindex aead4d866c..6630681626 100644--- a/packages/docs/src/css/custom.css+++ b/packages/docs/src/css/custom.css@@ -12,6 +12,8 @@font-kerning: normal;-webkit-font-smoothing: antialiased; /* Chrome, Safari */-moz-osx-font-smoothing: grayscale; /* Firefox */+ letter-spacing: 0.025em;+ word-spacing: 0.025em;}h1, h2 {@@ -19,9 +21,6 @@ h1, h2 {word-spacing: -0.025em;}-p {- word-spacing: 0.025em;-}@font-face {diff --git a/packages/docs/src/pages/index.tsx b/packages/docs/src/pages/index.tsxindex 9fe17c2ba0..30dc2b05b0 100644--- a/packages/docs/src/pages/index.tsx+++ b/packages/docs/src/pages/index.tsx@@ -46,20 +46,6 @@ const NewLanding: React.FC = () => {<WriteInReact /><br /><br />- <div- style={{- paddingBottom: 20,- }}- >- <div style={clone}>Get started using a template:</div>-- <div className={styles.content}>- <ChooseTemplate />- </div>- </div>- <br />- <br />- <br /><IfYouKnowReact /><br /><br />