🎥 Make videos programmatically with React
`@remotion/promo-pages`: Improve homepage pricing table (#10167)
Jonny Burgerd54eac2cd3ee
diff --git a/packages/promo-pages/src/components/Homepage.tsx b/packages/promo-pages/src/components/Homepage.tsxindex 5519afbb9a..e87b008caf 100644--- a/packages/promo-pages/src/components/Homepage.tsx+++ b/packages/promo-pages/src/components/Homepage.tsx@@ -18,7 +18,8 @@ import {BuiltWithRemotionShowcase} from './homepage/VideoAppsShowcase';import {SectionTitle} from './homepage/VideoAppsTitle';import {WriteInReact} from './homepage/WriteInReact';-const makeVideosRowClassName = 'mt-4 md:mt-6 flex flex-col lg:flex-row gap-10';+const makeVideosRowClassName =+ 'mt-4 min-[900px]:mt-6 flex flex-col min-[900px]:flex-row gap-10';export const NewLanding: React.FC<{readonly colorMode: ColorMode;@@ -35,7 +36,7 @@ export const NewLanding: React.FC<{<br /><br /><br />- <div className="max-w-[500px] lg:max-w-[1000px] m-auto pl-5 pr-5 overflow-x-clip md:overflow-x-visible relative">+ <div className="max-w-[500px] min-[900px]:max-w-[1000px] m-auto pl-5 pr-5 overflow-x-clip min-[900px]:overflow-x-visible relative"><WriteInReact /><br /><div className={makeVideosRowClassName}>diff --git a/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx b/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsxindex 03a346a174..ec51b5b1a6 100644--- a/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx+++ b/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx@@ -52,9 +52,9 @@ export const BackgroundAnimation: React.FC = () => {}, [css]);return (- <div className=" w-full h-full min-w-0 m-auto lg:relative lg:min-w-[700px] lg:max-w-[1200px] lg:ml-auto lg:left-auto pointer-events-none">+ <div className="w-full h-full min-w-0 m-auto min-[900px]:relative min-[900px]:min-w-[700px] min-[900px]:max-w-[1200px] min-[900px]:ml-auto min-[900px]:left-auto pointer-events-none"><svg- className="translate-y-[-30%] lg:translate-y-[-50%]"+ className="translate-y-[-30%] min-[900px]:translate-y-[-50%]"viewBox="0 0 1 1"style={{width: '100%',@@ -66,7 +66,7 @@ export const BackgroundAnimation: React.FC = () => {fill="none"stroke="var(--ifm-color-primary)"strokeLinecap="round"- className="stroke-[0.04] lg:stroke-[0.035]"+ className="stroke-[0.04] min-[900px]:stroke-[0.035]"style={{transformOrigin: 'center center',transform: `rotate(120deg)`,@@ -80,7 +80,7 @@ export const BackgroundAnimation: React.FC = () => {stroke="var(--ifm-color-primary)"strokeLinecap="round"strokeWidth={strokeWidth}- className="stroke-[0.04] lg:stroke-[0.035]"+ className="stroke-[0.04] min-[900px]:stroke-[0.035]"style={{transformOrigin: 'center center',transform: `rotate(0deg)`,@@ -94,7 +94,7 @@ export const BackgroundAnimation: React.FC = () => {stroke="var(--ifm-color-primary)"strokeLinecap="round"strokeWidth={strokeWidth}- className="stroke-[0.04] lg:stroke-[0.035]"+ className="stroke-[0.04] min-[900px]:stroke-[0.035]"style={{transformOrigin: 'center center',transform: `rotate(240deg)`,diff --git a/packages/promo-pages/src/components/homepage/FreePricing.tsx b/packages/promo-pages/src/components/homepage/FreePricing.tsxindex 678a150604..43c7ffde8e 100644--- a/packages/promo-pages/src/components/homepage/FreePricing.tsx+++ b/packages/promo-pages/src/components/homepage/FreePricing.tsx@@ -1,6 +1,7 @@import {Switch} from '@remotion/design';import React, {useCallback, useMemo} from 'react';import {cn} from '../../cn';+import {useMobileLayout} from './layout/use-mobile-layout';import {PricingBulletPoint} from './PricingBulletPoint';const Container: React.FC<{readonly children: React.ReactNode}> = ({@@ -131,42 +132,74 @@ const textUnitWrapper: React.CSSProperties = {flexDirection: 'column',};-export const FreePricing: React.FC = () => {+export const FreePricing: React.FC<{+ readonly termsHref: string;+}> = ({termsHref}) => {+ const mobileLayout = useMobileLayout();+return (<Container>- <Audience>For individuals and companies of up to 3 people</Audience>- <Title>Free License</Title>- <PricingBulletPoint text="Create and automate" checked />- <PricingBulletPoint text="All features included" checked />- <PricingBulletPoint text="Unlimited commercial use" checked />- <PricingBulletPoint- text="Must upgrade when your team grows"- checked={false}- />- <div className={'flex flex-row justify-end mt-4'}>+ <div+ className={cn(+ 'flex gap-4',+ mobileLayout ? 'flex-col' : 'flex-row items-end justify-between',+ )}+ >+ <div className={mobileLayout ? undefined : 'flex-1 min-w-0'}>+ <Audience>For individuals and companies of up to 3 people</Audience>+ <Title>Free License</Title>+ <PricingBulletPoint text="Create and automate" checked />+ <PricingBulletPoint text="All features included" checked />+ <PricingBulletPoint text="Unlimited commercial use" checked />+ <PricingBulletPoint+ text={+ <>+ <a+ href={termsHref}+ className="underline underline-offset-4 text-inherit font-brand"+ >+ Terms+ </a>{' '}+ apply+ </>+ }+ checked={false}+ />+ <PricingBulletPoint+ text="Must upgrade when your organization grows"+ checked={false}+ />+ </div><div- style={{- ...textUnitWrapper,- alignItems: 'flex-end',- }}+ className={cn(+ 'flex flex-row justify-end shrink-0',+ mobileLayout && 'mt-4',+ )}>- <a- target="_blank"- href="https://www.remotion.dev/docs"- className="font-brand text-brand flex flex-row items-center gap-1 no-underline"+ <div+ style={{+ ...textUnitWrapper,+ alignItems: 'flex-end',+ }}>- No sign up needed - get started{' '}- <svg- style={icon}- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 448 512"+ <a+ target="_blank"+ href="https://www.remotion.dev/docs"+ className="font-brand text-brand flex flex-row items-center gap-1 no-underline">- <path- fill="currentColor"- d="M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"- />- </svg>- </a>+ No sign up needed - get started{' '}+ <svg+ style={icon}+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 448 512"+ >+ <path+ fill="currentColor"+ d="M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"+ />+ </svg>+ </a>+ </div></div></div></Container>@@ -174,51 +207,67 @@ export const FreePricing: React.FC = () => {};export const EnterpriseLicense: React.FC = () => {+ const mobileLayout = useMobileLayout();+return (<Container>- <Audience>For advanced needs</Audience>- <Title>Enterprise License</Title>- <PricingBulletPoint text="Everything in Company License" checked />- <PricingBulletPoint text="Private Slack or Discord" checked />- <PricingBulletPoint text="Monthly consulting session" checked />- <PricingBulletPoint text="Custom terms, billing and pricing" checked />- <PricingBulletPoint text="Compliance forms" checked />- <PricingBulletPoint text="Prioritized feature requests" checked />- <PricingBulletPoint- text={- <span>- <a- href="https://www.remotion.dev/editor-starter"- className="underline underline-offset-4 text-inherit"- >- Editor Starter- </a>{' '}- included- </span>- }- checked- />- <div style={{height: 30}} />- <div className={'flex flex-row justify-end'}>+ <div+ className={cn(+ 'flex gap-4',+ mobileLayout ? 'flex-col' : 'flex-row items-end justify-between',+ )}+ >+ <div className={mobileLayout ? undefined : 'flex-1 min-w-0'}>+ <Audience>For advanced needs</Audience>+ <Title>Enterprise License</Title>+ <PricingBulletPoint text="Everything in Company License" checked />+ <PricingBulletPoint text="Private Slack or Discord" checked />+ <PricingBulletPoint text="Monthly consulting session" checked />+ <PricingBulletPoint+ text="Custom terms, billing and pricing"+ checked+ />+ <PricingBulletPoint text="Compliance forms" checked />+ <PricingBulletPoint text="Prioritized feature requests" checked />+ <PricingBulletPoint+ text={+ <span>+ <a+ href="https://www.remotion.dev/editor-starter"+ className="underline underline-offset-4 text-inherit font-brand"+ >+ Editor Starter+ </a>{' '}+ included+ </span>+ }+ checked+ />+ </div><div- style={{- ...textUnitWrapper,- alignItems: 'flex-end',- }}+ className={cn(+ 'flex flex-row justify-end shrink-0',+ mobileLayout && 'mt-4',+ )}>- <PriceTag>- <a- className={- 'cursor-pointer no-underline text-inherit hover:text-brand'- }- target={'_blank'}- href="https://www.remotion.pro/contact"- >- Contact us- </a>- </PriceTag>- <div className={'text-[var(--subtitle)] fontbrand text-sm'}>- Starting at $500 per month+ <div+ style={{+ ...textUnitWrapper,+ alignItems: 'flex-end',+ }}+ >+ <PriceTag>+ <a+ className="cursor-pointer no-underline text-inherit hover:text-brand"+ target={'_blank'}+ href="https://www.remotion.pro/contact"+ >+ Contact us+ </a>+ </PriceTag>+ <div className={'text-[var(--subtitle)] fontbrand text-sm'}>+ Starting at $500 per month+ </div></div></div></div>@@ -236,16 +285,23 @@ const SectionCheckbox: React.FC<{readonly subtitle: React.ReactNode;readonly children?: React.ReactNode;}> = ({checked, onChange, title, subtitle, children}) => {+ const mobileLayout = useMobileLayout();+return (<div- className="flex flex-row gap-3 cursor-pointer select-none items-center"+ className={cn(+ 'flex flex-row gap-3 cursor-pointer select-none',+ mobileLayout ? 'items-start' : 'items-center',+ )}onClick={() => onChange(!checked)}>- <Switch- active={checked}- onToggle={() => onChange(!checked)}- aria-label={title}- />+ <div className={cn('flex shrink-0', mobileLayout && 'pt-1')}>+ <Switch+ active={checked}+ onToggle={() => onChange(!checked)}+ aria-label={title}+ />+ </div><div className="flex flex-col"><div className="fontbrand font-bold text-lg flex flex-row items-center gap-1">{title}@@ -254,19 +310,17 @@ const SectionCheckbox: React.FC<{<div className="text-muted fontbrand text-sm">{subtitle}</div></div><div className="flex-1" />- <div- className={cn(- 'fontbrand text-muted transition-opacity duration-150',- checked ? 'hidden' : 'opacity-100',- )}- >- Not selected- </div>+ {checked || mobileLayout ? null : (+ <div className="fontbrand text-muted transition-opacity duration-150">+ Not selected+ </div>+ )}</div>);};export const CompanyPricing: React.FC = () => {+ const mobileLayout = useMobileLayout();const [creatorsSelected, setCreatorsSelected] = React.useState(false);const [automatorsSelected, setAutomatorsSelected] = React.useState(true);const [devSeatCount, setDevSeatCount] = React.useState(3);@@ -305,16 +359,36 @@ export const CompanyPricing: React.FC = () => {const showEnterpriseMessage = totalPrice >= 500;+ const bottomMessage = showMinimumMessage+ ? 'minimum'+ : showEnterpriseMessage+ ? 'enterprise'+ : null;+return (<Container>- <Audience>For collaborations and companies of 4+ people</Audience>+ <Audience>+ Required for collaborations and companies of 4+ people+ </Audience><Title>Company License</Title><PricingBulletPoint text="Create and automate" checked /><PricingBulletPoint text="Commercial use allowed" checked /><PricingBulletPoint text="Pay according to usage" checked /><PricingBulletPoint text="Prioritized Support" checked /><PricingBulletPoint- text="$250 Mux credits (applies only to new Mux customers)"+ text={+ <span className="fontbrand">+ $250{' '}+ <a+ href="https://www.mux.com/"+ target="_blank"+ className="underline underline-offset-4 text-inherit font-brand"+ >+ Mux+ </a>{' '}+ credits (for new Mux customers)+ </span>+ }checked/><div style={{height: 30}} />@@ -324,7 +398,13 @@ export const CompanyPricing: React.FC = () => {checked={automatorsSelected}onChange={setAutomatorsSelected}title="Remotion for Automators"- subtitle="Build video creation tools - $0.01 per render, $100/mo minimum"+ subtitle={+ <>+ Build video creation tools+ {mobileLayout ? <br /> : ' - '}+ $0.01 per render, $100/mo minimum+ </>+ }/><divclassName={cn(@@ -340,13 +420,11 @@ export const CompanyPricing: React.FC = () => {}}inert={!automatorsSelected}>- <div className="overflow-hidden">- <p className="text-sm text-muted fontbrand pt-3 pb-1">- Intended for companies launching applications and systems; such as- video editors, prompt-to-video apps, embedding the Remotion Player,- or any other automated video creation. A $100/mo Minimum Spend- applies. Developers working on automation projects do not require a- Seat.+ <div className="overflow-hidden pb-2">+ <p className="text-sm text-muted fontbrand pt-3 pb-1 text-balance">+ For batch rendering and automated video products, such as video+ editors, prompt-to-video apps, and embedding the Remotion Player.+ Developers working on automation projects do not need a Seat.</p><div className="flex flex-row items-center gap-3 sm:gap-4 w-full pt-3 pb-1"><div className="flex-1 min-w-0">@@ -360,7 +438,7 @@ export const CompanyPricing: React.FC = () => {/></div>- <div className="fontbrand shrink-0 whitespace-nowrap w-[135px] sm:w-[150px] text-right tabular-nums">+ <div className="fontbrand shrink-0 whitespace-nowrap w-[135px] sm:w-[150px] text-left tabular-nums">{new Intl.NumberFormat('en-US').format(cloudRenders)} Renders</div>@@ -381,7 +459,13 @@ export const CompanyPricing: React.FC = () => {checked={creatorsSelected}onChange={setCreatorsSelected}title="Remotion for Creators"- subtitle="Create videos for yourself - $25/mo per seat"+ subtitle={+ <>+ Create videos for yourself+ {mobileLayout ? <br /> : ' - '}+ $25/mo per seat+ </>+ }/><divclassName={cn(@@ -397,11 +481,11 @@ export const CompanyPricing: React.FC = () => {}}inert={!creatorsSelected}>- <div className="overflow-hidden">- <p className="text-sm text-muted fontbrand pt-3 pb-1">- Intended for low volume video creations through coding and- prompting, and building motion design systems in a local- environment. Get 1 Seat per user.+ <div className="overflow-hidden pb-2">+ <p className="text-sm text-muted fontbrand pt-3 pb-1 text-balance">+ For low volume manual video creations, and building motion design+ systems in a local environment (including using AI agents and+ Remotion Studio). Get 1 Seat per user.</p><div className="flex flex-row items-center gap-3 sm:gap-4 w-full pt-3 pb-1"><div className="flex-1 min-w-0">@@ -414,7 +498,7 @@ export const CompanyPricing: React.FC = () => {/></div>- <div className="fontbrand shrink-0 whitespace-nowrap w-[135px] sm:w-[150px] text-center tabular-nums">+ <div className="fontbrand shrink-0 whitespace-nowrap w-[135px] sm:w-[150px] text-left tabular-nums">{devSeatCount} {devSeatCount === 1 ? 'Seat' : 'Seats'}</div>@@ -433,28 +517,40 @@ export const CompanyPricing: React.FC = () => {<div className="fontbrand text-muted text-sm">Total</div><PriceTag>{totalPriceString}/month</PriceTag></div>- <div className="flex flex-col items-end">- <BottomInfo- data-visible={showMinimumMessage}- className="opacity-0 data-[visible=true]:opacity-100 transition-opacity mt-1"- >- The minimum is $100 per month for Remotion for Automators- </BottomInfo>- <BottomInfo- data-visible={showEnterpriseMessage}- className="opacity-0 data-[visible=true]:opacity-100 transition-opacity mt-1"- >- At this spend, you are eligible for the Enterprise License.- <br /> You can select it when setting up your license, or{' '}- <a- className="bluelink"- target="_blank"- href="https://www.remotion.pro/contact"- >- contact us- </a>- .- </BottomInfo>+ <div+ className={cn(+ 'grid ease-out',+ bottomMessage+ ? 'grid-rows-[1fr] opacity-100'+ : 'grid-rows-[0fr] opacity-0',+ )}+ style={{+ transition: bottomMessage+ ? 'grid-template-rows 150ms ease-out, opacity 150ms ease-out 75ms'+ : 'opacity 150ms ease-out, grid-template-rows 150ms ease-out 75ms',+ }}+ inert={!bottomMessage}+ >+ <div className="overflow-hidden flex flex-col items-stretch text-left">+ <BottomInfo className="mt-1">+ {bottomMessage === 'minimum' ? (+ 'The minimum is $100 per month for Remotion for Automators'+ ) : (+ <>+ At this spend, you are eligible for the Enterprise License.+ <br /> You can select it when setting up your license, or{' '}+ <a+ className="bluelink"+ target="_blank"+ href="https://www.remotion.pro/contact"+ >+ contact us+ </a>+ .+ </>+ )}+ </BottomInfo>+ </div></div><div className={'flex flex-row justify-end mt-4'}><div@@ -465,7 +561,7 @@ export const CompanyPricing: React.FC = () => {><ahref="https://remotion.pro/dashboard"- className="font-brand text-brand flex flex-row items-center gap-1 no-underline"+ className="bluelink font-brand flex flex-row items-center gap-1">Buy now{' '}<svgdiff --git a/packages/promo-pages/src/components/homepage/GetStartedStrip.tsx b/packages/promo-pages/src/components/homepage/GetStartedStrip.tsxindex 6c653969df..b946936fba 100644--- a/packages/promo-pages/src/components/homepage/GetStartedStrip.tsx+++ b/packages/promo-pages/src/components/homepage/GetStartedStrip.tsx@@ -6,8 +6,8 @@ export const GetStarted: React.FC = () => {const [clicked, setClicked] = useState<number | null>(null);return (- <div className="flex flex-col lg:flex-row items-center justify-center text-center w-full">- <div className="w-full lg:w-auto">+ <div className="flex flex-col min-[900px]:flex-row items-center justify-center text-center w-full">+ <div className="w-full min-[900px]:w-auto"><div className="flex flex-row w-full relative">{clicked ? (<div@@ -35,13 +35,13 @@ export const GetStarted: React.FC = () => {</div></div><div style={{width: 10, height: 10}} />- <div className="w-full lg:w-auto">+ <div className="w-full min-[900px]:w-auto"><Button href="/docs" className="w-full">Docs</Button></div><div className="w-2 h-2" />- <div className="w-full lg:w-auto">+ <div className="w-full min-[900px]:w-auto"><Buttonhref="https://remotion.dev/discord"target="_blank"@@ -51,7 +51,7 @@ export const GetStarted: React.FC = () => {</Button></div><div className="w-2 h-2" />- <div className="w-full lg:w-auto">+ <div className="w-full min-[900px]:w-auto"><Buttonhref="https://github.com/remotion-dev/remotion"target="_blank"diff --git a/packages/promo-pages/src/components/homepage/MakeVideosInteractively.tsx b/packages/promo-pages/src/components/homepage/MakeVideosInteractively.tsxindex ac26e226dd..2df81c2db3 100644--- a/packages/promo-pages/src/components/homepage/MakeVideosInteractively.tsx+++ b/packages/promo-pages/src/components/homepage/MakeVideosInteractively.tsx@@ -34,7 +34,7 @@ export const MakeVideosInteractively: React.FC<{<divref={ref}className={- 'flex min-w-0 basis-0 flex-col justify-start items-start lg:mt-0 flex-1'+ 'flex min-w-0 basis-0 flex-col justify-start items-start min-[900px]:mt-0 flex-1'}><div className="flex aspect-square w-full items-start">diff --git a/packages/promo-pages/src/components/homepage/MakeVideosProgrammatically.tsx b/packages/promo-pages/src/components/homepage/MakeVideosProgrammatically.tsxindex 27e1d85c81..16f8196eca 100644--- a/packages/promo-pages/src/components/homepage/MakeVideosProgrammatically.tsx+++ b/packages/promo-pages/src/components/homepage/MakeVideosProgrammatically.tsx@@ -37,7 +37,7 @@ export const MakeVideosProgrammatically: React.FC<{playsInlinelooppreload="metadata"- className="relative max-h-full max-w-full cursor-default! object-contain lg:mb-0 lg:mt-0"+ className="relative max-h-full max-w-full cursor-default! object-contain min-[900px]:mb-0 min-[900px]:mt-0"/>) : null}</div>diff --git a/packages/promo-pages/src/components/homepage/Pricing.tsx b/packages/promo-pages/src/components/homepage/Pricing.tsxindex 3ac1152eda..a6c571e12c 100644--- a/packages/promo-pages/src/components/homepage/Pricing.tsx+++ b/packages/promo-pages/src/components/homepage/Pricing.tsx@@ -33,7 +33,7 @@ export const Pricing: React.FC<{marginBottom: 40,}}>- <FreePricing />+ <FreePricing termsHref={termsHref} /><CompanyPricing /><EnterpriseLicense /><div@@ -48,11 +48,7 @@ export const Pricing: React.FC<{}}>See our{' '}- <a- target={licenseLinkTarget}- className="bluelink"- href={licenseHref}- >+ <a target={licenseLinkTarget} className="bluelink" href={licenseHref}>LICENSE.md</a>{', '}diff --git a/packages/promo-pages/src/components/homepage/ReactSourceOfTruth.tsx b/packages/promo-pages/src/components/homepage/ReactSourceOfTruth.tsxindex 6c1cf0087c..20cec44963 100644--- a/packages/promo-pages/src/components/homepage/ReactSourceOfTruth.tsx+++ b/packages/promo-pages/src/components/homepage/ReactSourceOfTruth.tsx@@ -4,7 +4,7 @@ export const ReactSourceOfTruth: React.FC = () => {return (<sectionaria-labelledby="react-source-of-truth"- className="mb-16 mt-[60px] hidden items-center justify-center gap-2 lg:flex"+ className="mb-16 mt-[60px] hidden items-center justify-center gap-2 min-[900px]:flex"><div className="flex shrink-0 items-center gap-2"><svgdiff --git a/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsx b/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsxindex 0f54026def..e3fa6e41ee 100644--- a/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsx+++ b/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsx@@ -148,10 +148,10 @@ export const BuiltWithRemotionShowcase: React.FC = () => {// Prevent this from showing up in search engine resultsdata-nosnippet>- <div className={'flex-1 grid grid-cols-1 lg:grid-cols-2'}>+ <div className={'flex-1 grid grid-cols-1 min-[900px]:grid-cols-2'}><divclassName={- 'w-full aspect-video lg:aspect-square relative overflow-hidden bg-[#eee] cursor-pointer'+ 'w-full aspect-video min-[900px]:aspect-square relative overflow-hidden bg-[#eee] cursor-pointer'}onClick={handlePlayPause}>@@ -240,7 +240,11 @@ export const BuiltWithRemotionShowcase: React.FC = () => {)}</button></div>- <div className={'p-6 lg:p-10 flex min-w-0 flex-col justify-center'}>+ <div+ className={+ 'p-6 min-[900px]:p-10 flex min-w-0 flex-col justify-center'+ }+ ><div className="text-3xl font-bold fontbrand mt-0">{videoApps[activeTab].title}</div>diff --git a/packages/promo-pages/src/components/homepage/layout/use-mobile-layout.ts b/packages/promo-pages/src/components/homepage/layout/use-mobile-layout.tsindex e60b1e0d66..7efccea559 100644--- a/packages/promo-pages/src/components/homepage/layout/use-mobile-layout.ts+++ b/packages/promo-pages/src/components/homepage/layout/use-mobile-layout.ts@@ -1,8 +1,17 @@-import {useElementSize} from './use-el-size';+import {useEffect, useState} from 'react';export const useMobileLayout = () => {- const containerSize = useElementSize(- typeof document === 'undefined' ? null : document.body,- );- return (containerSize?.width ?? Infinity) < 900;+ const [mobileLayout, setMobileLayout] = useState(false);++ useEffect(() => {+ const desktopLayout = window.matchMedia('(min-width: 900px)');+ const updateLayout = () => setMobileLayout(!desktopLayout.matches);++ updateLayout();+ desktopLayout.addEventListener('change', updateLayout);++ return () => desktopLayout.removeEventListener('change', updateLayout);+ }, []);++ return mobileLayout;};