🎥 Make videos programmatically with React
ready for shipit
Jonny Burgereaf6720f8072
diff --git a/packages/docs/components/Player/Footer.tsx b/packages/docs/components/Player/Footer.tsxindex 06b15d3d77..e4e0f63f57 100644--- a/packages/docs/components/Player/Footer.tsx+++ b/packages/docs/components/Player/Footer.tsx@@ -1,11 +1,12 @@import React from "react";-import { Button } from "../layout/Button";+import { BlueButton, Button } from "../layout/Button";import styles from "./footer.module.css";const container: React.CSSProperties = {- width: "100%",- backgroundColor: "#0B84F3",- color: "white",+ maxWidth: 1000,+ paddingLeft: 16,+ paddingRight: 16,+ margin: "auto",};const half: React.CSSProperties = {@@ -17,63 +18,51 @@ const half: React.CSSProperties = {const inner: React.CSSProperties = {textAlign: "center",display: "flex",- justifyContent: "center",- alignItems: "center",flexDirection: "column",- paddingTop: 40,- paddingBottom: 40,+ padding: 16,+ paddingTop: 80,+ borderRadius: 10,flex: 1,+ backgroundColor: "white",+ width: "100%",};export const PlayerPageFooter: React.FC = () => {return (- <div className={styles.footerrow} style={container}>- <div- style={{- ...half,- justifyContent: "flex-end",- }}- >- <div style={inner}>- <h2 className={styles.title}>New to Remotion?</h2>- <p>Learn about how to make videos in React.</p>- <a href="/" style={{ textDecoration: "none" }}>- <Button- background="white"- hoverColor="white"- color="#0B84F3"- loading={false}- fullWidth={false}- size="sm"- >- Learn Remotion- </Button>- </a>+ <div+ style={{ backgroundColor: "#0B84F3", paddingTop: 20, paddingBottom: 20 }}+ >+ <div className={styles.footerrow} style={container}>+ <div+ style={{+ ...half,+ justifyContent: "flex-end",+ }}+ >+ <div style={inner}>+ <h2 className={styles.title}>New to Remotion?</h2>+ <p>Learn about how to make videos in React.</p>+ <div style={{ height: 100 }} />++ <a href="/" style={{ textDecoration: "none" }}>+ <BlueButton loading={false} fullWidth size="sm">+ Learn Remotion+ </BlueButton>+ </a>+ </div></div>- </div>- <div style={{ ...half, backgroundColor: "#0B84F3" }}>- <div style={inner}>- <h2- className={styles.title}- style={{- color: "white",- }}- >- Already used Remotion?- </h2>- <p style={{ color: "white" }}>Let{"'"}s get setup with the Player.</p>- <a href="/docs/player" style={{ textDecoration: "none" }}>- <Button- background="white"- hoverColor="white"- color="#0B84F3"- loading={false}- fullWidth={false}- size="sm"- >- Installation- </Button>- </a>+ <div style={{ width: 20, height: 20 }} />+ <div style={{ ...half, backgroundColor: "#0B84F3" }}>+ <div style={inner}>+ <h2 className={styles.title}>Already used Remotion?</h2>+ <p>Let{"'"}s get setup with the Player.</p>+ <div style={{ height: 100 }} />+ <a href="/docs/player" style={{ textDecoration: "none" }}>+ <BlueButton loading={false} fullWidth size="sm">+ Installation+ </BlueButton>+ </a>+ </div></div></div></div>diff --git a/packages/docs/components/Player/Wrapped.tsx b/packages/docs/components/Player/Wrapped.tsxnew file mode 100644index 0000000000..0021ab85bd--- /dev/null+++ b/packages/docs/components/Player/Wrapped.tsx@@ -0,0 +1,52 @@+import React from "react";+import { Button } from "../layout/Button";+import styles from "./powered.module.css";++export const WrappedBanner: React.FC = () => {+ return (+ <div style={{ background: `#dafed0` }}>+ <div+ className={styles.responsiverow}+ style={{+ maxWidth: 1000,+ paddingLeft: 16,+ paddingRight: 16,+ margin: "auto",+ paddingTop: 30,+ paddingBottom: 30,+ color: `#124f01`,+ display: "flex",+ }}+ >+ <div style={{ maxWidth: 560 }}>+ <p style={{ marginBottom: 8 }}>+ <strong>Real-world project</strong>+ </p>+ <p style={{ marginBottom: 0 }}>+ Check out #GitHubUnwrapped to get your personal GitHub Year in+ Review. <br /> Powered by @remotion/player!+ </p>+ </div>+ <div className={styles.flexer} />+ <div>+ <a+ href="https://githubunwrapped.com"+ target="_blank"+ style={{ textDecoration: "none" }}+ >+ <Button+ background="white"+ hoverColor="white"+ color="#124f01"+ loading={false}+ fullWidth={false}+ size="sm"+ >+ Visit githubunwrapped.com+ </Button>+ </a>+ </div>+ </div>+ </div>+ );+};diff --git a/packages/docs/components/PlayerExampleWithControls.tsx b/packages/docs/components/PlayerExampleWithControls.tsxindex 594e2577f6..6ecd542cb7 100644--- a/packages/docs/components/PlayerExampleWithControls.tsx+++ b/packages/docs/components/PlayerExampleWithControls.tsx@@ -1,7 +1,7 @@import { useState } from "react";import React from "react";import { PlayerExample } from "./PlayerExample";-import { CoolInput, inputStyle } from "./TextInput";+import { CoolInput } from "./TextInput";export const PlayerExampleWithControls: React.FC = () => {const [name, setName] = useState("");diff --git a/packages/docs/src/pages/player/index.tsx b/packages/docs/src/pages/player/index.tsxindex 88e80240f2..c3841c45fa 100644--- a/packages/docs/src/pages/player/index.tsx+++ b/packages/docs/src/pages/player/index.tsx@@ -4,6 +4,7 @@ import { LandingHeader } from "../../../components/Player/LandingHeader";import { PlayerFeatures } from "../../../components/Player/features";import { PoweredByRemotion } from "../../../components/Player/PoweredByRemotion";import { PlayerPageFooter } from "../../../components/Player/Footer";+import { WrappedBanner } from "../../../components/Player/Wrapped";import Head from "@docusaurus/Head";const container: React.CSSProperties = {@@ -32,6 +33,7 @@ export default () => {<div style={container}><PlayerFeatures /></div>+ <WrappedBanner /><PlayerPageFooter /></Layout>);