🎥 Make videos programmatically with React
new style
Jonny Burgera80f6af2aff1
diff --git a/packages/docs/components/LambdaSplash/LambdaHeader.tsx b/packages/docs/components/LambdaSplash/LambdaHeader.tsxindex aea8a7b8b0..c4df015e4a 100644--- a/packages/docs/components/LambdaSplash/LambdaHeader.tsx+++ b/packages/docs/components/LambdaSplash/LambdaHeader.tsx@@ -1,8 +1,8 @@import React from "react";-import { PlayerPreview } from "./PlayerPreview";-import styles from "./lambdaheader.module.css";import { BlueButton } from "../layout/Button";+import styles from "./lambdaheader.module.css";import { LambdaLogo } from "./LambdaLogo";+import { PlayerPreview } from "./PlayerPreview";const DiscordLogo: React.FC = () => {return (@@ -15,7 +15,7 @@ const DiscordLogo: React.FC = () => {}}><path- fill="var(--blue-button-color)"+ fill="white"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>diff --git a/packages/docs/components/LandingPage/PlayerPreview.tsx b/packages/docs/components/LandingPage/PlayerPreview.tsxdeleted file mode 100644index 24269751b7..0000000000--- a/packages/docs/components/LandingPage/PlayerPreview.tsx+++ /dev/null@@ -1,62 +0,0 @@-import React from "react";-import styles from "./playerpreview.module.css";--const rotate: React.CSSProperties = {- transform: `rotate(90deg)`,-};-const ICON_SIZE = 18;-export const PlayerPreview: React.FC = () => {- return (- <a- href="https://www.youtube.com/watch?v=deg8bOoziaE"- target="_blank"- data-splitbee-event="External Link"- data-splitbee-event-target={"YouTube Trailer"}- >- <div className={styles.playerpreview}>- <img- style={{- boxShadow: "var(--box-shadow)",- borderRadius: 12,- }}- src="/img/thumb.jpeg"- />- <div- style={{- width: "100%",- textAlign: "center",- color: "black",- fontSize: 13,- display: "flex",- flexDirection: "row",- justifyContent: "center",- alignItems: "center",- }}- >- <svg- width={ICON_SIZE}- height={ICON_SIZE}- viewBox="-100 -100 400 400"- style={rotate}- >- <path- fill={"var(--ifm-color-primary)"}- stroke={"var(--ifm-color-primary)"}- strokeWidth="100"- strokeLinejoin="round"- d="M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z"- />- </svg>- <div- style={{- marginLeft: 5,- color: "var(--ifm-color-primary)",- }}- >- Watch Intro and Tutorial (8:41)- </div>- </div>- </div>- </a>- );-};diff --git a/packages/docs/components/LandingPage/PricingTable.tsx b/packages/docs/components/LandingPage/PricingTable.tsxindex 2e74bac617..2f86e302f4 100644--- a/packages/docs/components/LandingPage/PricingTable.tsx+++ b/packages/docs/components/LandingPage/PricingTable.tsx@@ -177,31 +177,11 @@ export const PricingTable: React.FC<{}> = () => {</div></div></div>- {Date.now() < DEV_SEAT_PRICE_INCREASE ? (- <p style={{ textAlign: "center", marginTop: 24 }}>- Subscribe before{" "}- {new Intl.DateTimeFormat("en-US", {- dateStyle: "full",- }).format(DEV_SEAT_PRICE_INCREASE)}{" "}- to lock in current prices -{" "}- <a href="https://companies.remotion.dev/price-increase">- <strong- style={{- color: "var(--blue-button-color)",- fontWeight: "bold",- textDecoration: "none",- }}- >- prices are increasing!- </strong>- </a>- </p>- ) : null}<p style={{ textAlign: "center", marginTop: 24 }}>Want a 15 minute call to evaluate if Remotion is right for you?{" "}<astyle={{- color: "var(--blue-button-color)",+ color: "var(--ifm-color-primary)",fontWeight: "bold",textDecoration: "none",}}@@ -215,7 +195,7 @@ export const PricingTable: React.FC<{}> = () => {Looking for help realizing your project?{" "}<astyle={{- color: "var(--blue-button-color)",+ color: "var(--ifm-color-primary)",fontWeight: "bold",textDecoration: "none",}}diff --git a/packages/docs/components/LandingPage/github.module.css b/packages/docs/components/LandingPage/github.module.cssindex a894fe1575..dadc538ac9 100644--- a/packages/docs/components/LandingPage/github.module.css+++ b/packages/docs/components/LandingPage/github.module.css@@ -1,19 +1,15 @@.container {display: flex;- flex-direction: row;font-weight: bold;- justify-content: center;- align-items: center;}.stars {font-size: 0.75em;display: inline-block;- background: var(--hover-color);margin-left: 8px;line-height: 1;- border-radius: 5px;- padding: 7px;+ align-self: center;+ margin-top: 3px;}@media screen and (max-width: 900px) {diff --git a/packages/docs/components/PeriodSelector.tsx b/packages/docs/components/PeriodSelector.tsxindex 1edd1538bd..5956cd01ec 100644--- a/packages/docs/components/PeriodSelector.tsx+++ b/packages/docs/components/PeriodSelector.tsx@@ -1,5 +1,6 @@import React from "react";import { BlueButton, ClearButton } from "./layout/Button";+import { Spacer } from "./layout/Spacer";enum Period {Monthly = "monthly",@@ -25,6 +26,7 @@ export const PeriodSelector: React.FC<{>Monthly</MonthlyComponent>+ <Spacer x={2} /><YearlyComponentloading={false}size="sm"diff --git a/packages/docs/components/layout/Button.tsx b/packages/docs/components/layout/Button.tsxindex f29420883c..158e87a032 100644--- a/packages/docs/components/layout/Button.tsx+++ b/packages/docs/components/layout/Button.tsx@@ -8,7 +8,7 @@ type ExtraProps = {size: Size;fullWidth: boolean;background: string;- hoverColor: string;+ hoverColor?: string;color: string;loading: boolean;};@@ -45,7 +45,7 @@ export const Button: React.FC<Props> = (props) => {cursor: props.disabled ? "default" : "pointer",backgroundColor: props.background,// @ts-expect-error- "--hover-color": props.hoverColor,+ "--hover-color": props.hoverColor ?? props.background,...(props.fullWidth ? { width: "100%" } : {}),opacity: props.disabled ? 0.7 : 1,}}@@ -56,14 +56,7 @@ export const Button: React.FC<Props> = (props) => {};export const BlueButton: React.FC<PrestyledProps> = (props) => {- return (- <Button- {...props}- background="var(--blue-underlay)"- hoverColor="var(--blue-underlay-hover)"- color="var(--blue-button-color)"- />- );+ return <Button {...props} background="var(--blue-underlay)" color="white" />;};export const RedButton: React.FC<PrestyledProps> = (props) => {diff --git a/packages/docs/components/layout/button.module.css b/packages/docs/components/layout/button.module.cssindex a1de25f4b5..ab62f730ca 100644--- a/packages/docs/components/layout/button.module.css+++ b/packages/docs/components/layout/button.module.css@@ -2,7 +2,8 @@border-radius: 8px;font-weight: bold;appearance: none;- border: none;+ border: 2px solid black;+ border-bottom: 4px solid black;font: inherit;font-weight: bold;display: flex;@@ -11,6 +12,7 @@justify-content: center;transition: background-color 0.1s;}+.buttoncontainer:not([disabled]):hover {background-color: var(--hover-color) !important;}diff --git a/packages/docs/src/components/ArrowRight.tsx b/packages/docs/src/components/ArrowRight.tsxindex 9fb867ed27..4614397ae6 100644--- a/packages/docs/src/components/ArrowRight.tsx+++ b/packages/docs/src/components/ArrowRight.tsx@@ -5,8 +5,9 @@ import { useMobileLayout } from "../helpers/mobile-layout";const commonStyle: React.CSSProperties = {height: 40,borderRadius: 20,- backgroundColor: "var(--blue-underlay)",- color: "var(--blue-button-color)",+ backgroundColor: "white",+ border: "2px solid black",+ color: "var(--text-color)",fontWeight: "bold",justifyContent: "center",alignItems: "center",@@ -20,8 +21,8 @@ const commonStyle: React.CSSProperties = {const rightStyle: React.CSSProperties = {...commonStyle,right: 0,- border: "none",textDecoration: "none",+ color: "black",};const icon: React.CSSProperties = {diff --git a/packages/docs/src/components/ExpertPage.tsx b/packages/docs/src/components/ExpertPage.tsxindex dd600f083c..69bf161b00 100644--- a/packages/docs/src/components/ExpertPage.tsx+++ b/packages/docs/src/components/ExpertPage.tsx@@ -130,11 +130,17 @@ export default () => {{expert.name}</h2><div style={flexer} />- <a className="only-desktop" href={`mailto:${expert.email}`}>+ <a+ className="only-desktop"+ href={`mailto:${expert.email}`}+ style={{+ textDecoration: "none",+ }}+ ><Buttonbackground="white"hoverColor="white"- color={DARK_BLUE}+ color={"black"}fullWidth={false}loading={false}size="sm"diff --git a/packages/docs/src/components/icons.tsx b/packages/docs/src/components/icons.tsxindex fa73670318..f586178ccf 100644--- a/packages/docs/src/components/icons.tsx+++ b/packages/docs/src/components/icons.tsx@@ -11,7 +11,7 @@ export const TwitterLogo: React.FC = () => {}}><path- fill="var(--blue-button-color"+ fill="white"d="M529.5 0.5625C237.404 0.5625 0.5625 237.404 0.5625 529.5C0.5625 821.596 237.404 1058.44 529.5 1058.44C821.596 1058.44 1058.44 821.596 1058.44 529.5C1058.44 237.404 821.596 0.5625 529.5 0.5625ZM783.697 399.273C784.051 404.822 784.051 410.607 784.051 416.274C784.051 589.596 652.053 789.246 410.843 789.246C336.461 789.246 267.511 767.64 209.422 730.449C220.048 731.63 230.202 732.102 241.064 732.102C302.458 732.102 358.894 711.322 403.877 676.138C346.261 674.958 297.854 637.177 281.324 585.227C301.514 588.179 319.696 588.179 340.476 582.866C310.809 576.839 284.143 560.727 265.01 537.267C245.876 513.807 235.454 484.447 235.515 454.174V452.521C252.87 462.32 273.296 468.342 294.666 469.168C276.701 457.195 261.968 440.975 251.774 421.945C241.579 402.915 236.238 381.663 236.223 360.075C236.223 335.635 242.599 313.32 254.051 293.958C286.98 334.494 328.071 367.648 374.652 391.264C421.233 414.88 472.262 428.43 524.423 431.033C505.887 341.892 572.476 269.754 652.525 269.754C690.306 269.754 724.31 285.575 748.277 311.077C777.912 305.528 806.248 294.43 831.514 279.553C821.714 309.896 801.171 335.517 773.897 351.692C800.344 348.858 825.847 341.538 849.46 331.267C831.632 357.477 809.317 380.736 783.697 399.273V399.273Z"/></svg>@@ -29,7 +29,7 @@ export const LinkedInLogo: React.FC = () => {}}><path- fill="var(--blue-button-color"+ fill="white"d="M195.877 0C88.16 0 0 88.158 0 195.877V803.718C0 911.435 88.158 999.563 195.877 999.563H803.718C911.436 999.563 999.563 911.436 999.563 803.718V195.877C999.563 88.16 911.436 0 803.718 0H195.877ZM245.143 164.948C296.791 164.948 328.604 198.854 329.586 243.423C329.586 287.008 296.789 321.867 244.144 321.867H243.175C192.51 321.867 159.763 287.01 159.763 243.423C159.763 198.855 193.501 164.948 245.142 164.948H245.143ZM690.223 373.258C789.552 373.258 864.013 438.18 864.013 577.694V838.143H713.06V595.156C713.06 534.096 691.213 492.438 636.584 492.438C594.88 492.438 570.022 520.516 559.108 547.64C555.121 557.344 554.141 570.897 554.141 584.472V838.143H403.188C403.188 838.143 405.169 426.53 403.188 383.91H554.172V448.234C574.232 417.284 610.114 373.257 690.223 373.257V373.258ZM168.667 383.943H319.62V838.145H168.667V383.943V383.943Z"/></svg>@@ -47,7 +47,7 @@ export const GitHubLogo: React.FC = () => {}}><path- fill="var(--blue-button-color"+ fill="white"d="M542 0C242.545 0 0 242.545 0 542C0 781.835 155.147 984.408 370.592 1056.22C397.692 1060.97 407.855 1044.71 407.855 1030.48C407.855 1017.61 407.178 974.923 407.178 929.53C271 954.598 235.77 896.332 224.93 865.845C218.832 850.262 192.41 802.16 169.375 789.287C150.405 779.125 123.305 754.057 168.698 753.38C211.38 752.702 241.868 792.675 252.03 808.935C300.81 890.912 378.723 867.878 409.888 853.65C414.63 818.42 428.857 794.707 444.44 781.157C323.845 767.607 197.83 720.86 197.83 513.545C197.83 454.602 218.833 405.822 253.385 367.882C247.965 354.332 228.995 298.777 258.805 224.252C258.805 224.252 304.198 210.025 407.855 279.808C451.215 267.613 497.285 261.515 543.355 261.515C589.425 261.515 635.495 267.613 678.855 279.808C782.513 209.348 827.905 224.252 827.905 224.252C857.715 298.777 838.745 354.332 833.325 367.882C867.878 405.822 888.88 453.925 888.88 513.545C888.88 721.537 762.188 767.607 641.593 781.157C661.24 798.095 678.178 830.615 678.178 881.428C678.178 953.92 677.5 1012.19 677.5 1030.48C677.5 1044.71 687.663 1061.64 714.763 1056.22C822.365 1019.91 915.868 950.759 982.106 858.512C1048.34 766.264 1083.98 655.565 1084 542C1084 242.545 841.455 0 542 0Z"/></svg>@@ -65,7 +65,7 @@ export const EmailLogo: React.FC = () => {}}><path- fill="var(--blue-button-color"+ fill="white"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>diff --git a/packages/docs/src/css/custom.css b/packages/docs/src/css/custom.cssindex bcc53836c3..22edeb2c16 100644--- a/packages/docs/src/css/custom.css+++ b/packages/docs/src/css/custom.css@@ -73,7 +73,7 @@ h6 {--footer-border: #eaeaea;--text-color: #000;--blue-button-color: #084696;- --blue-underlay: #e7effe;+ --blue-underlay: var(--ifm-color-primary);--blue-underlay-hover: #d5e5fd;--light-text-color: #777;--subtitle: #666;diff --git a/packages/docs/src/pages/experts/index.tsx b/packages/docs/src/pages/experts/index.tsxindex 9bcd4f3553..7962d11253 100644--- a/packages/docs/src/pages/experts/index.tsx+++ b/packages/docs/src/pages/experts/index.tsx@@ -65,7 +65,6 @@ const Experts: React.FC = () => {)}</Head><div className={styles.container}>- <div className={styles.background} /><div className={styles.wrapper}><h1 className={styles.pagetitle}>Find a Remotion expert</h1><p className={styles.tagline}>