🎥 Make videos programmatically with React
`@remotion/promo-pages`: Rework homepage support section
JonnyBurger531e9feb76f8
diff --git a/packages/promo-pages/src/components/Homepage.tsx b/packages/promo-pages/src/components/Homepage.tsxindex c04c88c46b..5519afbb9a 100644--- a/packages/promo-pages/src/components/Homepage.tsx+++ b/packages/promo-pages/src/components/Homepage.tsx@@ -98,9 +98,10 @@ export const NewLanding: React.FC<{<br /><SectionTitle>Pricing</SectionTitle><Pricing />- <TrustedByBanner />- <br />- <EvaluateRemotionSection />+ <div className={makeVideosRowClassName}>+ <TrustedByBanner />+ <EvaluateRemotionSection />+ </div><br /><br /><br />diff --git a/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsx b/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsxindex 2f1887d234..adcca214b2 100644--- a/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsx+++ b/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsx@@ -1,9 +1,6 @@-// Adjustments to the EvaluateRemotionSection.tsx to separate the flex box into two boxes-// with specified alignment and positioning requirements.-import React, {useEffect, useState} from 'react';import {experts} from '../experts';-import {BlueButton} from './layout/Button';+import {MakeVideosLinks} from './MakeVideosLinks';const EvaluateRemotionSection: React.FC = () => {const [dailyAvatars, setDailyAvatars] = useState<string[]>([]);@@ -22,65 +19,62 @@ const EvaluateRemotionSection: React.FC = () => {}, []);return (- <div className="flex flex-col lg:flex-row gap-2">- <div className={'card flex-1 flex flex-col'}>- <div className={'fontbrand text-2xl font-bold'}>- Questions about our license?- </div>- <p className={'text-muted fontbrand leading-snug'}>- Book a 20 minute call or write us an email to get all your questions- answered.- </p>- <div className="flex-1" />- <div className="flex flex-row flex-wrap gap-2">- <a- target="_blank"- href="https://cal.com/remotion/evaluate"- style={{textDecoration: 'none'}}- >- <BlueButton size="sm" loading={false}>- Schedule a call- </BlueButton>- </a>- <a- target="_blank"- href="mailto:[email protected]"- style={{textDecoration: 'none'}}- >- <BlueButton size="sm" loading={false}>- Write an email- </BlueButton>- </a>+ <>+ <div className="flex min-w-0 basis-0 flex-1 flex-col">+ <div className="aspect-square w-full" />+ <div className="font-brand">+ <h2 className="text-2xl fontbrand leading-[1.1] font-medium">+ License questions?+ </h2>+ <p className="text-balance leading-relaxed">+ Book a 20 minute evaluation call or write us an email.+ </p>+ <MakeVideosLinks+ links={[+ {+ label: 'Schedule a call',+ href: 'https://cal.com/remotion/evaluate',+ target: '_blank',+ },+ {+ label: 'Write an email',+ href: 'mailto:[email protected]',+ target: '_blank',+ },+ ]}+ /></div></div>- <div className={'card flex-1 flex flex-col'}>- <div className={'fontbrand text-2xl font-bold'}>- Get help with your Remotion project+ <div className="flex min-w-0 basis-0 flex-1 flex-col">+ <div className="flex aspect-square w-full items-center justify-center pl-5">+ {dailyAvatars.map((avatar) => (+ <div+ key={avatar}+ className="border-effect bg-muted -ml-5 h-24 w-24 rounded-full bg-cover bg-center"+ style={{backgroundImage: `url(${avatar})`}}+ />+ ))}</div>- <p className={'text-muted fontbrand leading-snug'}>- Contact our experts for help and work.- </p>- <div className="flex-1" />- <div className={'flex flex-row justify-between'}>- <a href="/experts" style={{textDecoration: 'none'}}>- <BlueButton size="sm" loading={false}>- Remotion Experts- </BlueButton>- </a>- <div className={'flex justify-end items-end gap-3'}>- {dailyAvatars.map((avatar) => (- <div- key={avatar}- className={- 'w-12 h-12 rounded-full bg-muted bg-cover bg-center -ml-5 border-2 border-black'- }- style={{backgroundImage: `url(${avatar})`}}- />- ))}- </div>+ <div className="font-brand">+ <h2 className="text-2xl fontbrand leading-[1.1] font-medium">+ Get help from humans+ </h2>+ <p className="text-balance leading-relaxed">+ Chat with us and our community or contact our experts for paid work.+ </p>+ <MakeVideosLinks+ links={[+ {+ label: 'Discord',+ href: 'https://remotion.dev/discord',+ target: '_blank',+ },+ {label: 'Remotion Experts', href: '/experts'},+ ]}+ /></div></div>- </div>+ </>);};diff --git a/packages/promo-pages/src/components/homepage/MakeVideosLinks.tsx b/packages/promo-pages/src/components/homepage/MakeVideosLinks.tsxindex 720e74290a..cc4e69ff08 100644--- a/packages/promo-pages/src/components/homepage/MakeVideosLinks.tsx+++ b/packages/promo-pages/src/components/homepage/MakeVideosLinks.tsx@@ -8,13 +8,19 @@ const icon: React.CSSProperties = {export type MakeVideosLink = {readonly label: string;readonly href: string;+ readonly target?: React.HTMLAttributeAnchorTarget;};-export const MakeVideosLinkItem: React.FC<MakeVideosLink> = ({href, label}) => {+export const MakeVideosLinkItem: React.FC<MakeVideosLink> = ({+ href,+ label,+ target,+}) => {return (<aclassName="no-underline text-[var(--subtitle)] font-brand font-medium text-sm inline-flex flex-row items-center"href={href}+ target={target}>{label}<svgdiff --git a/packages/promo-pages/src/components/homepage/TrustedByBanner.tsx b/packages/promo-pages/src/components/homepage/TrustedByBanner.tsxindex c298b83be0..634b3304d5 100644--- a/packages/promo-pages/src/components/homepage/TrustedByBanner.tsx+++ b/packages/promo-pages/src/components/homepage/TrustedByBanner.tsx@@ -1,7 +1,10 @@+import {MakeVideosLinks} from './MakeVideosLinks';+const TrustedByBanner = () => {const logos = [{id: 'logo1',+ label: 'GitHub',url: 'https://www.github.com/',light: (<svg@@ -19,6 +22,7 @@ const TrustedByBanner = () => {},{id: 'logo2',+ label: 'Musixmatch',url: 'https://www.musixmatch.com/',light: (<svg@@ -80,6 +84,7 @@ const TrustedByBanner = () => {},{id: 'logo3',+ label: 'Wistia',url: 'https://www.wistia.com/',light: (<svg@@ -102,6 +107,7 @@ const TrustedByBanner = () => {},{id: 'logo5',+ label: 'SoundCloud',url: 'https://www.soundcloud.com/',light: (<svg@@ -120,25 +126,37 @@ const TrustedByBanner = () => {];return (- <>- <h3 className={'text-center mt-20 mb-10'}>Trusted by</h3>- <div- className={- 'text-center flex flex-col lg:flex-row flex-nowrap justify-center items-center gap-10 mb-20'- }- >- {logos.map((logo) => (- <a- key={logo.id}- href={logo.url}- target="_blank"- className="opacity-80 hover:opacity-100 transition-opacity"- >- {logo.light}- </a>- ))}+ <div className="flex min-w-0 basis-0 flex-1 flex-col">+ <div className="flex aspect-square w-full items-center justify-center">+ <div className="grid w-full max-w-[260px] grid-cols-2 place-items-center gap-x-8 gap-y-12">+ {logos.map((logo) => (+ <a+ key={logo.id}+ aria-label={logo.label}+ href={logo.url}+ target="_blank"+ className="flex min-h-14 w-full items-center justify-center opacity-80 transition-opacity hover:opacity-100"+ >+ {logo.light}+ </a>+ ))}+ </div>+ </div>+ <div className="font-brand">+ <h2 className="text-2xl fontbrand leading-[1.1] font-medium">+ In good company+ </h2>+ <p className="text-balance leading-relaxed">+ Over 300 customers put their trust into Remotion.+ </p>+ <MakeVideosLinks+ links={[+ {label: 'Showcase', href: '/showcase'},+ {label: 'Success Stories', href: '/success-stories'},+ ]}+ /></div>- </>+ </div>);};