π₯ Make videos programmatically with React
nice
Jonny Burger522ad19bb18d
diff --git a/packages/promo-pages/src/components/Homepage.tsx b/packages/promo-pages/src/components/Homepage.tsxindex df7593f7ca..9ceeb2b549 100644--- a/packages/promo-pages/src/components/Homepage.tsx+++ b/packages/promo-pages/src/components/Homepage.tsx@@ -15,7 +15,7 @@ import {RealMP4Videos} from './homepage/RealMp4Videos';import TrustedByBanner from './homepage/TrustedByBanner';import {VideoApps} from './homepage/VideoApps';import VideoAppsShowcase from './homepage/VideoAppsShowcase';-import {PricingTitle, VideoAppsTitle} from './homepage/VideoAppsTitle';+import {SectionTitle, VideoAppsTitle} from './homepage/VideoAppsTitle';import {WriteInReact} from './homepage/WriteInReact';const NewLanding: React.FC = () => {@@ -60,7 +60,7 @@ const NewLanding: React.FC = () => {<br /><br /><br />- <PricingTitle />+ <SectionTitle>Pricing</SectionTitle><Pricing /><TrustedByBanner /><br />diff --git a/packages/promo-pages/src/components/homepage/CommunityStats.tsx b/packages/promo-pages/src/components/homepage/CommunityStats.tsxindex aa3fbbd757..3cc61e163a 100644--- a/packages/promo-pages/src/components/homepage/CommunityStats.tsx+++ b/packages/promo-pages/src/components/homepage/CommunityStats.tsx@@ -8,49 +8,42 @@ import {PagesOfDocs,TemplatesAndExamples,} from './CommunityStatsItems';+import {SectionTitle} from './VideoAppsTitle';++const SectionLink: React.FC<{+ readonly href: string;+ readonly children: React.ReactNode;+}> = ({href, children}) => (+ <a target="_blank" href={href} className={styles.statItemLink}>+ {children}+ </a>+);const CommunityStats: React.FC = () => (<div className={styles.container}>- <h2 className={styles.title}>Never build alone</h2>- <p className={styles.subtitle}>Join a thriving community of developers.</p>+ <SectionTitle>Never build alone</SectionTitle>+ <div className={'font-brand text-center mb-10'}>+ Join a thriving community of developers.+ </div><div className={styles.statsGrid}>- <a- target="_blank"- href="https://www.npmjs.com/package/remotion"- className={styles.statItemLink}- >+ <SectionLink href="https://www.npmjs.com/package/remotion"><InstallsPerMonth />- </a>- <a href="https://www.remotion.dev/docs/" className={styles.statItemLink}>+ </SectionLink>+ <SectionLink href="https://www.remotion.dev/docs/"><PagesOfDocs />- </a>- <a- href="https://www.remotion.dev/templates"- className={styles.statItemLink}- >+ </SectionLink>+ <SectionLink href="https://www.remotion.dev/templates"><TemplatesAndExamples />- </a>- <a- target="_blank"- href="https://github.com/remotion-dev/remotion"- className={styles.statItemLink}- >+ </SectionLink>+ <SectionLink href="https://github.com/remotion-dev/remotion"><GitHubStars />- </a>- <a- target="_blank"- href="https://remotion.dev/discord"- className={styles.statItemLink}- >+ </SectionLink>+ <SectionLink href="https://remotion.dev/discord"><DiscordMembers />- </a>- <a- target="_blank"- href="https://github.com/remotion-dev/remotion/graphs/contributors"- className={styles.statItemLink}- >+ </SectionLink>+ <SectionLink href="https://github.com/remotion-dev/remotion/graphs/contributors"><Contributors />- </a>+ </SectionLink></div></div>);diff --git a/packages/promo-pages/src/components/homepage/Counter.tsx b/packages/promo-pages/src/components/homepage/Counter.tsxindex 31eb889666..0877cbd6e3 100644--- a/packages/promo-pages/src/components/homepage/Counter.tsx+++ b/packages/promo-pages/src/components/homepage/Counter.tsx@@ -1,6 +1,6 @@import type {ChangeEvent} from 'react';import React from 'react';-import styles from './pricing.module.css';+import {cn} from '../../cn';const Triangle: React.FC<{readonly rotated: boolean;@@ -26,7 +26,6 @@ const container: React.CSSProperties = {flexDirection: 'row',justifyContent: 'flex-end',alignItems: 'center',- border: '1px solid #EAEAEA',borderRadius: 4,height: 42,overflow: 'hidden',@@ -67,9 +66,16 @@ export const Counter: React.FC<CounterProps> = ({};return (- <div style={container} className={styles.countercontainer}>+ <div+ style={container}+ className={cn(+ 'border-2 has-[:focus]:border-brand border-solid w-[110px]',+ )}+ ><input- className={styles.counterinput}+ className={+ 'font-brand text-2xl font-medium min-w-[60px] border-0 text-end bg-transparent outline-0'+ }type="number"value={count}onChange={(e: ChangeEvent<HTMLInputElement>) => {diff --git a/packages/promo-pages/src/components/homepage/Demo/Card.tsx b/packages/promo-pages/src/components/homepage/Demo/Card.tsxindex 025d1de53e..fd36a50ac5 100644--- a/packages/promo-pages/src/components/homepage/Demo/Card.tsx+++ b/packages/promo-pages/src/components/homepage/Demo/Card.tsx@@ -8,7 +8,6 @@ import {getPositionForIndex,type Position,} from './math';-import styles from './player-styles.module.css';import {Switcher} from './Switcher';const arePositionsEqual = (a: Position[], b: Position[]) => {@@ -83,8 +82,8 @@ export const Card: React.FC<{const finishAnimation = () => {refsToUse.forEach((r) => {r.current.style.zIndex = '1';- r.current.classList.remove(styles.active);- r.current.classList.remove(styles.passive);+ r.current.style.scale = '1';+ r.current.style.opacity = '1';});if (i === 0) {setTimeout(() => {@@ -157,13 +156,13 @@ export const Card: React.FC<{let translateX = 0;let translateY = 0;- refToUse.current.classList.add(styles.active);+ refToUse.current.style.scale = '1.05';refToUse.current.style.cursor = 'grabbing';const onMove = (evt: PointerEvent) => {refsToUse.forEach((r) => {if (r !== refToUse) {- r.current.classList.add(styles.passive);+ r.current.style.opacity = '0';}});const scale =@@ -239,7 +238,7 @@ export const Card: React.FC<{return (<divref={refToUse}- className={styles.card}+ className={'transition-opacity duration-200'}onPointerDown={onPointerDown}onPointerUp={onPointerUp}style={{@@ -259,7 +258,7 @@ export const Card: React.FC<{backgroundColor: color,borderRadius: 12,}}- className={styles.content}+ className={'transition-opacity duration-200'}>{content}{withSwitcher ? (diff --git a/packages/promo-pages/src/components/homepage/Demo/DemoErrorIcon.tsx b/packages/promo-pages/src/components/homepage/Demo/DemoErrorIcon.tsxindex 2b6140ba90..8c55d3a417 100644--- a/packages/promo-pages/src/components/homepage/Demo/DemoErrorIcon.tsx+++ b/packages/promo-pages/src/components/homepage/Demo/DemoErrorIcon.tsx@@ -1,6 +1,5 @@import React from 'react';import {RED} from '../layout/colors';-import styles from './done.module.css';export const DemoErrorIcon: React.FC = () => {return (@@ -12,8 +11,8 @@ export const DemoErrorIcon: React.FC = () => {display: 'flex',alignItems: 'center',justifyContent: 'center',+ animation: 'jump 0.2s ease-out',}}- className={styles.jump}><svgstyle={{diff --git a/packages/promo-pages/src/components/homepage/Demo/DoneCheckmark.tsx b/packages/promo-pages/src/components/homepage/Demo/DoneCheckmark.tsxindex d35f952b6d..e5a5e8bf18 100644--- a/packages/promo-pages/src/components/homepage/Demo/DoneCheckmark.tsx+++ b/packages/promo-pages/src/components/homepage/Demo/DoneCheckmark.tsx@@ -1,6 +1,5 @@import React from 'react';import {PALETTE} from '../layout/colors';-import styles from './done.module.css';export const DoneCheckmark: React.FC = () => {return (@@ -13,8 +12,8 @@ export const DoneCheckmark: React.FC = () => {display: 'flex',alignItems: 'center',justifyContent: 'center',+ animation: 'jump 0.2s ease-out',}}- className={styles.jump}><svgviewBox="0 0 20 20"diff --git a/packages/promo-pages/src/components/homepage/Demo/DownloadNudge.tsx b/packages/promo-pages/src/components/homepage/Demo/DownloadNudge.tsxindex 1394a036a8..c249ee8260 100644--- a/packages/promo-pages/src/components/homepage/Demo/DownloadNudge.tsx+++ b/packages/promo-pages/src/components/homepage/Demo/DownloadNudge.tsx@@ -50,7 +50,11 @@ export const DownloadNudge: React.FC = () => {}}>Export the video using- <br /> <a href="/lambda">Remotion Lambda</a>.+ <br />{' '}+ <a href="/lambda" className="bluelink">+ Remotion Lambda+ </a>+ .</div></div></div>diff --git a/packages/promo-pages/src/components/homepage/Demo/DragAndDropNudge.tsx b/packages/promo-pages/src/components/homepage/Demo/DragAndDropNudge.tsxindex 1154b234d6..a591bd2454 100644--- a/packages/promo-pages/src/components/homepage/Demo/DragAndDropNudge.tsx+++ b/packages/promo-pages/src/components/homepage/Demo/DragAndDropNudge.tsx@@ -1,6 +1,5 @@import React from 'react';import {FONTS, PALETTE} from '../layout/colors';-import styles from './nudge.module.css';const origWidth = 37;const scale = 0.4;@@ -36,7 +35,7 @@ export const DragAndDropNudge: React.FC = () => {paddingBottom: 5,marginTop: 50,}}- className={styles.nudge}+ className={'ml-4 lg:-ml-5'}><div><div@@ -47,7 +46,7 @@ export const DragAndDropNudge: React.FC = () => {paddingBottom: 8,textWrap: 'balance',}}- className={styles.nudgetext}+ className={'-ml-3 lg:-ml-5'}>Drag and drop the cards to reorder them.</div>diff --git a/packages/promo-pages/src/components/homepage/Demo/PlayerControls.tsx b/packages/promo-pages/src/components/homepage/Demo/PlayerControls.tsxindex 4c684450ad..5df5130b8e 100644--- a/packages/promo-pages/src/components/homepage/Demo/PlayerControls.tsx+++ b/packages/promo-pages/src/components/homepage/Demo/PlayerControls.tsx@@ -1,7 +1,6 @@import type {PlayerRef} from '@remotion/player';import React from 'react';import {PALETTE} from '../layout/colors';-import styles from './player.module.css';import {PlayerSeekBar} from './PlayerSeekBar';import {PlayerVolume} from './PlayerVolume';import {PlayPauseButton} from './PlayPauseButton';@@ -25,7 +24,7 @@ export const PlayerControls: React.FC<{readonly children: React.ReactNode;}> = ({playerRef, durationInFrames, fps, children}) => {return (- <div className={styles['controls-wrapper']}>+ <div className={'flex flex-row items-center bg-pane'}><PlayPauseButton playerRef={playerRef} /><Separator /><PlayerVolume playerRef={playerRef} />diff --git a/packages/promo-pages/src/components/homepage/Demo/PlayerVolume.tsx b/packages/promo-pages/src/components/homepage/Demo/PlayerVolume.tsxindex 246f648f3b..1d34304eb8 100644--- a/packages/promo-pages/src/components/homepage/Demo/PlayerVolume.tsx+++ b/packages/promo-pages/src/components/homepage/Demo/PlayerVolume.tsx@@ -2,7 +2,6 @@ import type {CallbackListener, PlayerRef} from '@remotion/player';import React, {useCallback, useEffect, useRef, useState} from 'react';import {PALETTE} from '../layout/colors';import {IsMutedIcon, NotMutedIcon} from './icons';-import styles from './player.module.css';export const PlayerVolume: React.FC<{readonly playerRef: React.RefObject<PlayerRef | null>;@@ -55,7 +54,7 @@ export const PlayerVolume: React.FC<{return (<div- className={styles['volume-button']}+ className={'relative cursor-pointer block pl-4 pr-4 h-full'}onMouseEnter={() => setIsHovered(true)}><buttondiff --git a/packages/promo-pages/src/components/homepage/Demo/ThemeNudge.tsx b/packages/promo-pages/src/components/homepage/Demo/ThemeNudge.tsxindex 20a45d2c21..b2b16f1877 100644--- a/packages/promo-pages/src/components/homepage/Demo/ThemeNudge.tsx+++ b/packages/promo-pages/src/components/homepage/Demo/ThemeNudge.tsx@@ -60,7 +60,7 @@ export const ThemeNudge: React.FC = () => {marginTop: 5,}}>- <a href="#" onClick={toggleTheme}>+ <a href="#" onClick={toggleTheme} className="bluelink">Switch to {colorMode === 'dark' ? 'light' : 'dark'} mode</a>{' '}and see the video adjust!{' '}diff --git a/packages/promo-pages/src/components/homepage/Demo/done.module.css b/packages/promo-pages/src/components/homepage/Demo/done.module.cssindex dd62dc9798..2798fdf09c 100644--- a/packages/promo-pages/src/components/homepage/Demo/done.module.css+++ b/packages/promo-pages/src/components/homepage/Demo/done.module.css@@ -1,12 +1,3 @@-@keyframes jump {- from {- transform: scale(0);- }- to {- transform: scale(1);- }-}-.jump {animation: jump 0.2s ease-out;}diff --git a/packages/promo-pages/src/components/homepage/Demo/index.tsx b/packages/promo-pages/src/components/homepage/Demo/index.tsxindex 810a1fbc5b..02449b496a 100644--- a/packages/promo-pages/src/components/homepage/Demo/index.tsx+++ b/packages/promo-pages/src/components/homepage/Demo/index.tsx@@ -11,7 +11,7 @@ import React, {import {PALETTE} from '../layout/colors';import {useColorMode} from '../layout/use-color-mode';-import {DemoTitle} from '../VideoAppsTitle';+import {SectionTitle} from '../VideoAppsTitle';import {getDataAndProps,HomepageVideoComp,@@ -112,7 +112,7 @@ export const Demo: React.FC = () => {<div><br /><br />- <DemoTitle />+ <SectionTitle>Demo</SectionTitle><div style={{height: 140, position: 'relative'}}><DragAndDropNudge /><ThemeNudge />diff --git a/packages/promo-pages/src/components/homepage/Demo/nudge.module.css b/packages/promo-pages/src/components/homepage/Demo/nudge.module.cssdeleted file mode 100644index 7d4f96467d..0000000000--- a/packages/promo-pages/src/components/homepage/Demo/nudge.module.css+++ /dev/null@@ -1,16 +0,0 @@-.nudge {- margin-left: -20px;-}--.nudgetext {- margin-left: -20px;-}--@media screen and (max-width: 600px) {- .nudge {- margin-left: 15px;- }- .nudgetext {- margin-left: -10px;- }-}diff --git a/packages/promo-pages/src/components/homepage/Demo/player-styles.module.css b/packages/promo-pages/src/components/homepage/Demo/player-styles.module.cssdeleted file mode 100644index 69e5a2fa14..0000000000--- a/packages/promo-pages/src/components/homepage/Demo/player-styles.module.css+++ /dev/null@@ -1,16 +0,0 @@-.card {- scale: 1;- transition: scale 0.2s ease;-}--.content {- transition: opacity 0.2s ease;-}--.passive .content {- opacity: 0;-}--.active {- scale: 1.05;-}diff --git a/packages/promo-pages/src/components/homepage/Demo/player.module.css b/packages/promo-pages/src/components/homepage/Demo/player.module.cssdeleted file mode 100644index 388d572262..0000000000--- a/packages/promo-pages/src/components/homepage/Demo/player.module.css+++ /dev/null@@ -1,15 +0,0 @@-.controls-wrapper {- display: flex;- flex-direction: row;- align-items: center;- border-radius: 0.5rem;-}--.volume-button {- position: relative;- cursor: pointer;- display: block;- padding-left: 15px;- padding-right: 15px;- height: 100%;-}diff --git a/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsx b/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsxindex 57846d8672..6911392969 100644--- a/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsx+++ b/packages/promo-pages/src/components/homepage/EvaluateRemotion.tsx@@ -2,7 +2,6 @@// with specified alignment and positioning requirements.import React, {useEffect, useState} from 'react';-import styles from './EvaluateRemotionSection.module.css';import {BlueButton} from './layout/Button';const EvaluateRemotionSection: React.FC = () => {@@ -40,16 +39,16 @@ const EvaluateRemotionSection: React.FC = () => {}, []);return (- <div className={styles.container}>- <div className={styles.card}>- <div className={styles.contentWrapper}>- <h3 className={styles.title}>Evaluate Remotion for your company</h3>- <p className={styles.description}>- Book a 20 minute call with us to get all your questions answered.- </p>+ <div className="flex flex-col lg:flex-row gap-2">+ <div className={'card flex-1 flex flex-col'}>+ <div className={'font-brand text-2xl font-bold'}>+ Evaluate Remotion for your company</div>+ <p className={'text-muted font-brand leading-snug'}>+ Book a 20 minute call with us to get all your questions answered.+ </p>+ <div className="flex-1" /><a- className={styles.aknow}target="_blank"href="https://cal.com/remotion/evaluate"style={{textDecoration: 'none'}}@@ -59,28 +58,27 @@ const EvaluateRemotionSection: React.FC = () => {</BlueButton></a></div>- <div className={styles.card}>- <div className={styles.contentWrapper}>- <h3 className={styles.title}>Get help for your projects</h3>- <p className={styles.description}>- Contact our experts for help and work.- </p>+ <div className={'card flex-1 flex flex-col'}>+ <div className={'font-brand text-2xl font-bold'}>+ Get help for your projects</div>- <div className={styles.expertsSection}>- <a- className={styles.aknow}- href="/experts"- style={{textDecoration: 'none'}}- >+ <p className={'text-muted font-brand 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={styles.avatars}>+ <div className={'flex justify-end items-end gap-3'}>{dailyAvatars.map((avatar) => (<divkey={avatar}- className={styles.avatar}+ className={+ 'w-12 h-12 rounded-full bg-muted bg-cover bg-center -ml-5 border-2 border-black'+ }style={{backgroundImage: `url(${avatar})`}}/>))}diff --git a/packages/promo-pages/src/components/homepage/FreePricing.tsx b/packages/promo-pages/src/components/homepage/FreePricing.tsxindex 8f85baa47d..5d62960ca9 100644--- a/packages/promo-pages/src/components/homepage/FreePricing.tsx+++ b/packages/promo-pages/src/components/homepage/FreePricing.tsx@@ -1,12 +1,11 @@import React from 'react';import {PricingBulletPoint} from './PricingBulletPoint';-import styles from './pricing.module.css';const Container: React.FC<{readonly children: React.ReactNode}> = ({children,}) => {return (- <div className={'flex flex-col border-brand rounded-xl p-5'}>+ <div className={'flex flex-col border-effect rounded-xl p-5 bg-pane'}>{children}</div>);@@ -52,6 +51,20 @@ const PriceTag: React.FC<{);};+const SmallPriceTag: React.FC<{+ readonly children: React.ReactNode;+}> = ({children}) => {+ return (+ <div+ className={+ 'font-brand text-2xl font-medium min-w-[60px] w-auto text-right shrink-0 ml-4'+ }+ >+ {children}+ </div>+ );+};+export const FreePricing: React.FC = () => {return (<Container>@@ -161,28 +174,29 @@ export const CompanyPricing: React.FC = () => {<InfoTooltip text="Credits for Mux.com. Applies only to new Mux customers." /></PricingBulletPoint><div style={{height: 30}} />- <div className={styles.rowcontainer}>+ <div className={'flex flex-row items-center'}><div style={textUnitWrapper}>- <div className={styles.boldtext}>Developer Seats</div>- <div className={styles.description}>+ <div className={'font-brand font-bold text-lg'}>Developer Seats</div>+ <div className={'text-muted font-brand text-sm'}>Number of developers working with Remotion</div></div><div style={{flex: 3}} /><Counter count={devSeatCount} setCount={setDevSeatCount} minCount={1} />- <div style={{flex: 1}} />- <div className={styles.pricetag}>+ <SmallPriceTag>${new Intl.NumberFormat('en-US', {maximumFractionDigits: 0,}).format(SEAT_PRICE * devSeatCount)}- </div>+ </SmallPriceTag></div><div style={{height: 14}} />- <div className={styles.rowcontainer}>+ <div className={'flex flex-row items-center'}><div style={textUnitWrapper}>- <div className={styles.boldtext}>Cloud Rendering Units</div>- <div className={styles.description}>+ <div className={'font-brand font-bold text-lg'}>+ Cloud Rendering Units+ </div>+ <div className={'text-muted font-brand text-sm'}>Allows for {rendersPerMonth} self-hosted renders per month</div></div>@@ -192,16 +206,15 @@ export const CompanyPricing: React.FC = () => {setCount={setCloudUnitCount}minCount={0}/>- <div style={{flex: 1}} />- <div className={styles.pricetag}>+ <SmallPriceTag>${new Intl.NumberFormat('en-US', {maximumFractionDigits: 0,}).format(RENDER_UNIT_PRICE * cloudUnitCount)}- </div>+ </SmallPriceTag></div><div style={{height: 20}} />- <div className={styles.rowContainer} style={{justifyContent: 'flex-end'}}>+ <div className={'flex flex-row justify-end'}><div style={{...textUnitWrapper, alignItems: 'flex-end'}}><PriceTag>{totalPriceString}/mo</PriceTag>{totalPrice <= 100 ? (diff --git a/packages/promo-pages/src/components/homepage/InfoTool.module.css b/packages/promo-pages/src/components/homepage/InfoTool.module.cssdeleted file mode 100644index 35ea10fe95..0000000000--- a/packages/promo-pages/src/components/homepage/InfoTool.module.css+++ /dev/null@@ -1,32 +0,0 @@-.infoIcon {- display: inline-block;- margin-left: 5px;- color: #999; /* Subtle grey color */- cursor: help;- position: relative;-}--.tooltip {- position: absolute;- bottom: 100%;- left: 50%;- transform: translateX(-50%);- background-color: #333;- color: #fff;- padding: 5px 10px;- border-radius: 4px;- font-size: 0.8rem;- white-space: nowrap;- z-index: 1;-}--.tooltip::after {- content: '';- position: absolute;- top: 100%;- left: 50%;- margin-left: -5px;- border-width: 5px;- border-style: solid;- border-color: #333 transparent transparent transparent;-}diff --git a/packages/promo-pages/src/components/homepage/InfoTooltip.tsx b/packages/promo-pages/src/components/homepage/InfoTooltip.tsxindex f0126f0add..51c9ae725e 100644--- a/packages/promo-pages/src/components/homepage/InfoTooltip.tsx+++ b/packages/promo-pages/src/components/homepage/InfoTooltip.tsx@@ -1,5 +1,4 @@import React, {useState} from 'react';-import styles from './InfoTool.module.css';interface InfoTooltipProps {readonly text: string;@@ -10,12 +9,17 @@ export const InfoTooltip: React.FC<InfoTooltipProps> = ({text}) => {return (<span- className={styles.infoIcon}+ className="relative inline-block ml-1 text-gray-600 cursor-default"onMouseEnter={() => setIsVisible(true)}onMouseLeave={() => setIsVisible(false)}><span style={{fontSize: '1rem'}}>β</span>- {isVisible && <span className={styles.tooltip}>{text}</span>}+ {isVisible && (+ <span className="absolute bottom-full left-1/2 transform -translate-x-1/2 bg-gray-800 text-white p-2 rounded text-xs whitespace-nowrap z-10 cursor-default">+ {text}+ <span className="absolute top-full left-1/2 transform -translate-x-1/2 border-5 border-solid border-gray-800 border-t-transparent border-r-transparent border-b-transparent border-l-transparent cursor-default" />+ </span>+ )}</span>);};diff --git a/packages/promo-pages/src/components/homepage/NewsletterButton.tsx b/packages/promo-pages/src/components/homepage/NewsletterButton.tsxindex b66ca05ea8..979b071f3b 100644--- a/packages/promo-pages/src/components/homepage/NewsletterButton.tsx+++ b/packages/promo-pages/src/components/homepage/NewsletterButton.tsx@@ -1,7 +1,5 @@import React, {useCallback, useState} from 'react';-import {cn} from '../../cn';import {BlueButton} from './layout/Button';-import styles from './newsletter.module.css';import {Spacer} from './Spacer';export const NewsletterButton: React.FC<{}> = () => {@@ -44,23 +42,23 @@ export const NewsletterButton: React.FC<{}> = () => {return (<div>- <div className={styles.newslettergrow}>- <div className={styles.portion}>- <div className={cn(styles.panel, 'border-brand')}>- <div className={[styles.tablenewsletter].join(' ')}>Newsletter</div>+ <div className="flex flex-col">+ <div className={'w-full'}>+ <div className={'border-effect bg-pane flex flex-col flex-1 p-5'}>+ <div className={'text-2xl font-bold font-brand'}>Newsletter</div><formonSubmit={handleSubmit}style={{width: '100%',}}>- <p>+ <p className="leading-snug">Read about new features and noteworthy updates we have made onRemotion once in a while.</p><input- className="w-full rounded-lg px-3 py-3 font-brand text-lg box-border"+ className="w-full rounded-lg border-effect border-black outline-none px-3 py-3 font-brand text-lg box-border"disabled={submitting}value={email}onChange={(e) => setEmail(e.target.value)}diff --git a/packages/promo-pages/src/components/homepage/Pricing.tsx b/packages/promo-pages/src/components/homepage/Pricing.tsxindex 6cb560633e..6d27dc67d8 100644--- a/packages/promo-pages/src/components/homepage/Pricing.tsx+++ b/packages/promo-pages/src/components/homepage/Pricing.tsx@@ -26,11 +26,19 @@ export const Pricing: React.FC = () => {}}>See our{' '}- <a target="_blank" href="https://remotion.pro/faq">+ <a+ target="_blank"+ className="bluelink"+ href="https://remotion.pro/faq"+ >FAQ</a>{' '}and{' '}- <a target="_blank" href="https://www.remotion.pro/terms">+ <a+ target="_blank"+ className="bluelink"+ href="https://www.remotion.pro/terms"+ >Terms and Conditions</a>{' '}for more details.diff --git a/packages/promo-pages/src/components/homepage/TrustedByBanner.module.css b/packages/promo-pages/src/components/homepage/TrustedByBanner.module.cssdeleted file mode 100644index ccaf1df9d8..0000000000--- a/packages/promo-pages/src/components/homepage/TrustedByBanner.module.css+++ /dev/null@@ -1,46 +0,0 @@-.logoContainer {- max-width: 170px;- height: auto; /* Keeps the aspect ratio intact */- display: flex;- justify-content: center;- align-items: center;-}--.logoContainer {- transition: transform 0.3s ease;-}--.logoContainer:hover {- transform: scale(0.9);-}--.homepageTitle {- text-align: center;- /* Add some margin to the top to separate from the header */- margin-top: 2rem;-}--.logos {- text-align: center;- align-items: center;- display: flex;- flex-wrap: nowrap; /* Prevent wrapping to ensure single line */- justify-content: center;- gap: 40px; /* Reduced gap to help fit logos in a single line */- overflow-x: auto; /* Allows scrolling on very small screens */-}--.logo {- max-width: 30px; /* Scale down logos to fit in a single line */- height: auto; /* Maintain aspect ratio */-}--/* Allow logos to wrap for screens smaller than 966px */-@media (max-width: 966px) {- .logos {- flex-wrap: wrap; /* Allow wrapping */- }- .logo {- max-width: 50px; /* Optionally adjust size back up if desired */- }-}diff --git a/packages/promo-pages/src/components/homepage/TrustedByBanner.tsx b/packages/promo-pages/src/components/homepage/TrustedByBanner.tsxindex 0ae907bdd7..e7936f8c5e 100644--- a/packages/promo-pages/src/components/homepage/TrustedByBanner.tsx+++ b/packages/promo-pages/src/components/homepage/TrustedByBanner.tsx@@ -1,5 +1,3 @@-import styles from './TrustedByBanner.module.css';-const TrustedByBanner = () => {const logos = [{@@ -7,15 +5,14 @@ const TrustedByBanner = () => {url: 'https://www.github.com/',light: (<svg- width="64"- height="62"+ height="50"viewBox="0 0 64 62"fill="none"xmlns="http://www.w3.org/2000/svg"><pathd="M21.3033 49.7496C21.3033 50.0051 21.0079 50.2095 20.6355 50.2095C20.2118 50.2478 19.9164 50.0434 19.9164 49.7496C19.9164 49.4941 20.2118 49.2896 20.5842 49.2896C20.9694 49.2513 21.3033 49.4557 21.3033 49.7496ZM17.3097 49.1747C17.2198 49.4302 17.4766 49.724 17.8619 49.8007C18.1957 49.9284 18.581 49.8007 18.658 49.5452C18.7351 49.2896 18.4911 48.9958 18.1059 48.8808C17.772 48.7914 17.3996 48.9191 17.3097 49.1747ZM22.9854 48.9575C22.6131 49.0469 22.3562 49.2896 22.3948 49.5835C22.4333 49.839 22.7671 50.0051 23.1524 49.9157C23.5248 49.8262 23.7816 49.5835 23.7431 49.328C23.7045 49.0852 23.3578 48.9191 22.9854 48.9575ZM31.4348 0C13.6243 0 0 13.4531 0 31.1733C0 45.3419 8.96304 57.4663 21.7655 61.7334C23.4092 62.0273 23.987 61.018 23.987 60.1875C23.987 59.3954 23.9485 55.0261 23.9485 52.3431C23.9485 52.3431 14.9598 54.2595 13.0722 48.5359C13.0722 48.5359 11.6083 44.8181 9.50236 43.8599C9.50236 43.8599 6.56177 41.854 9.70782 41.8924C9.70782 41.8924 12.9052 42.1479 14.6645 45.1886C17.4766 50.1201 22.1893 48.702 24.0256 47.8587C24.3209 45.8146 25.1556 44.3965 26.0801 43.5532C18.902 42.7611 11.6597 41.7263 11.6597 29.4358C11.6597 25.9224 12.6356 24.1593 14.6901 21.9108C14.3563 21.0803 13.2648 17.6564 15.024 13.2359C17.7078 12.4055 23.8843 16.6854 23.8843 16.6854C26.4525 15.9699 29.2133 15.5994 31.9485 15.5994C34.6836 15.5994 37.4444 15.9699 40.0126 16.6854C40.0126 16.6854 46.1892 12.3927 48.873 13.2359C50.6322 17.6691 49.5407 21.0803 49.2068 21.9108C51.2614 24.1721 52.5198 25.9352 52.5198 29.4358C52.5198 41.7646 44.9564 42.7484 37.7783 43.5532C38.9597 44.5625 39.9613 46.4789 39.9613 49.4813C39.9613 53.7868 39.9228 59.1144 39.9228 60.162C39.9228 60.9924 40.5134 62.0017 42.1443 61.7079C54.9853 57.4663 63.6915 45.3419 63.6915 31.1733C63.6915 13.4531 49.2453 0 31.4348 0ZM12.4815 44.0643C12.3145 44.192 12.3531 44.4859 12.5714 44.7286C12.7768 44.933 13.0722 45.0225 13.2391 44.8564C13.406 44.7286 13.3675 44.4348 13.1492 44.192C12.9438 43.9876 12.6484 43.8982 12.4815 44.0643ZM11.0946 43.0294C11.0048 43.1955 11.1332 43.3999 11.39 43.5277C11.5954 43.6554 11.8523 43.6171 11.9422 43.4383C12.032 43.2722 11.9036 43.0678 11.6468 42.94C11.39 42.8633 11.1845 42.9017 11.0946 43.0294ZM15.2551 47.5777C15.0497 47.7438 15.1267 48.127 15.4221 48.3698C15.7174 48.6636 16.0898 48.702 16.2567 48.4975C16.4237 48.3314 16.3466 47.9482 16.0898 47.7054C15.8073 47.4116 15.4221 47.3732 15.2551 47.5777ZM13.7913 45.6996C13.5858 45.8274 13.5858 46.1595 13.7913 46.4534C13.9967 46.7472 14.3434 46.875 14.5104 46.7472C14.7158 46.5811 14.7158 46.249 14.5104 45.9551C14.3306 45.6613 13.9967 45.5335 13.7913 45.6996Z"- fill="var(--ifm-font-color-base)"+ fill="var(--text-color)"/></svg>),@@ -25,9 +22,8 @@ const TrustedByBanner = () => {url: 'https://www.musixmatch.com/',light: (<svg- width="229"- height="48"- viewBox="0 0 229 30"+ height="40"+ viewBox="0 0 229 48"fill="none"xmlns="http://www.w3.org/2000/svg">@@ -87,10 +83,10 @@ const TrustedByBanner = () => {url: 'https://www.wistia.com/',light: (<svg- width="165"- height="36"+ height="30"viewBox="0 0 165 36"fill="none"+ className="-mt-2"xmlns="http://www.w3.org/2000/svg"><path@@ -109,9 +105,8 @@ const TrustedByBanner = () => {url: 'https://www.vicemediagroup.com/',light: (<svg- width="190"- height="36"- viewBox="0 0 190 2"+ height="20"+ viewBox="0 0 190 20"fill="none"xmlns="http://www.w3.org/2000/svg">@@ -159,8 +154,7 @@ const TrustedByBanner = () => {url: 'https://www.soundcloud.com/',light: (<svg- width="129"- height="57"+ height="40"viewBox="0 0 129 57"fill="none"xmlns="http://www.w3.org/2000/svg"@@ -176,14 +170,18 @@ const TrustedByBanner = () => {return (<>- <h3 className={styles.homepageTitle}>Trusted by</h3>- <div className={styles.logos}>+ <h3 className={'text-center mt-20'}>Trusted by</h3>+ <div+ className={+ 'text-center flex flex-nowrap justify-center items-center gap-10 mb-20'+ }+ >{logos.map((logo) => (<akey={logo.id}- className={styles.logoContainer}href={logo.url}target="_blank"+ className="opacity-80 hover:opacity-100 transition-opacity">{logo.light}</a>diff --git a/packages/promo-pages/src/components/homepage/VideoApps.tsx b/packages/promo-pages/src/components/homepage/VideoApps.tsxindex 7c8b1d54a0..67462b773e 100644--- a/packages/promo-pages/src/components/homepage/VideoApps.tsx+++ b/packages/promo-pages/src/components/homepage/VideoApps.tsx@@ -3,7 +3,6 @@ import {BlueButton} from './layout/Button';import {PALETTE} from './layout/colors';import {useColorMode} from './layout/use-color-mode';import {Spacer} from './Spacer';-import videoapps from './videoapps.module.css';import {YouAreHere} from './YouAreHere';const panel: React.CSSProperties = {@@ -33,11 +32,6 @@ const flex: React.CSSProperties = {flex: 1,};-const step: React.CSSProperties = {- flex: 1,- ...panel,-};-const list: React.CSSProperties = {listStyleType: 'none',textAlign: 'center',@@ -55,17 +49,40 @@ const hr: React.CSSProperties = {marginBottom: 10,};-const stepTitle: React.CSSProperties = {- textAlign: 'center',- fontSize: '1.6em',- marginBottom: 0,- color: 'var(--ifm-color-primary)',-};-const docsButton: React.CSSProperties = {textDecoration: 'none',};+const StepTitle: React.FC<{+ readonly children: React.ReactNode;+}> = ({children}) => {+ return (+ <div className="text-center text-xl font-semibold font-brand mt-2">+ {children}+ </div>+ );+};++const Subtitle: React.FC<{+ readonly children: React.ReactNode;+}> = ({children}) => {+ return (+ <div className="text-center text-base font-brand text-[var(--subtitle)]">+ {children}+ </div>+ );+};++const Pane: React.FC<{+ readonly children: React.ReactNode;+}> = ({children}) => {+ return (+ <div className="border-effect bg-pane flex-1 p-3 rounded-lg min-h-[500px] flex flex-col text-center">+ {children}+ </div>+ );+};+export const VideoApps: React.FC<{readonly active: 'remotion' | 'player' | 'lambda';}> = ({active}) => {@@ -88,149 +105,151 @@ export const VideoApps: React.FC<{}, [colorMode]);return (- <div className={videoapps.row}>- <div style={step}>- {active === 'remotion' ? <YouAreHere /> : null}- <h2 style={stepTitle}>Remotion</h2>- <strong style={center}>Make videos programmatically</strong>- <br />- <div- style={{- display: 'flex',- justifyContent: 'center',- alignItems: 'center',- flex: 1,- }}- >- <img src="/img/writeinreact.png" />- </div>- <ul style={list}>- <li>Use the Web to create graphics</li>- <hr style={hr} />- <li>Consume user input and APIs</li>- <hr style={hr} />- <li>Render real MP4 videos</li>- </ul>- <div style={row}>- {active === 'remotion' ? null : (- <>- <div style={flex}>- <a style={docsButton} href="/">- <BlueButton loading={false} fullWidth size="sm">- Learn more- </BlueButton>- </a>- </div>- <Spacer />- <Spacer />- </>- )}- <div style={flex}>- <a style={docsButton} href="/docs">- <BlueButton loading={false} fullWidth size="sm">- Read docs- </BlueButton>- </a>+ <div className="w-full">+ <div className={'flex flex-col lg:flex-row'}>+ <Pane>+ {active === 'remotion' ? <YouAreHere /> : null}+ <StepTitle>Remotion</StepTitle>+ <Subtitle>Make videos programmatically</Subtitle>+ <br />+ <div+ style={{+ display: 'flex',+ justifyContent: 'center',+ alignItems: 'center',+ flex: 1,+ }}+ >+ <img className="max-w-[300px]" src="/img/writeinreact.png" /></div>- </div>- </div>- <Spacer />- <Spacer />- <Spacer />- <div style={step}>- {active === 'player' ? <YouAreHere /> : null}- <h2 style={stepTitle}>Remotion Player</h2>- <strong style={center}>Embeddable interactive videos</strong>- <br />-- <div- style={{- display: 'flex',- justifyContent: 'center',- alignItems: 'center',- flex: 1,- }}- >- <img src={src} />- </div>- <ul style={list}>- <li>Preview videos in the browser</li>- <hr style={hr} />- <li>React to user input</li>- <hr style={hr} />- <li>Customize look and behavior</li>- </ul>- <div style={row}>- {active === 'player' ? null : (- <>- <div style={flex}>- <a style={docsButton} href="/player">- <BlueButton loading={false} fullWidth size="sm">- Learn more- </BlueButton>- </a>- </div>- <Spacer />- <Spacer />- </>- )}- <div style={flex}>- <a style={docsButton} href="/docs/player">- <BlueButton loading={false} fullWidth size="sm">- Read docs- </BlueButton>- </a>+ <ul style={list}>+ <li>Use the Web to create graphics</li>+ <hr style={hr} />+ <li>Consume user input and APIs</li>+ <hr style={hr} />+ <li>Render real MP4 videos</li>+ </ul>+ <div style={row}>+ {active === 'remotion' ? null : (+ <>+ <div style={flex}>+ <a style={docsButton} href="/">+ <BlueButton loading={false} size="sm">+ Learn more+ </BlueButton>+ </a>+ </div>+ <Spacer />+ <Spacer />+ </>+ )}+ <div style={flex}>+ <a style={docsButton} href="/docs">+ <BlueButton className="w-full" loading={false} size="sm">+ Read docs+ </BlueButton>+ </a>+ </div></div>- </div>- </div>- <Spacer />- <Spacer />- <Spacer />- <div style={step}>- {active === 'lambda' ? <YouAreHere /> : null}- <h2 style={stepTitle}>Remotion Lambda</h2>- <strong style={center}>Render at scale</strong>- <br />- <div- style={{- display: 'flex',- justifyContent: 'center',- alignItems: 'center',- flex: 1,- }}- >- <img src={src2} />- </div>+ </Pane>+ <Spacer />+ <Spacer />+ <Spacer />+ <Pane>+ {active === 'player' ? <YouAreHere /> : null}+ <StepTitle>Remotion Player</StepTitle>+ <Subtitle>Embeddable interactive videos</Subtitle>+ <br />- <ul style={list}>- <li>Render videos in the cloud</li>- <hr style={hr} />- <li>Scale according to your volume</li>- <hr style={hr} />- <li>Fast because distributed</li>- </ul>- <div style={row}>- {active === 'lambda' ? null : (- <>- <div style={flex}>- <a style={docsButton} href="/lambda">- <BlueButton loading={false} fullWidth size="sm">- Learn more- </BlueButton>- </a>- </div>- <Spacer />- <Spacer />- </>- )}- <div style={flex}>- <a style={docsButton} href="/docs/lambda">- <BlueButton loading={false} fullWidth size="sm">- Read docs- </BlueButton>- </a>+ <div+ style={{+ display: 'flex',+ justifyContent: 'center',+ alignItems: 'center',+ flex: 1,+ }}+ >+ <img className="max-w-[300px]" src={src} />+ </div>+ <ul style={list}>+ <li>Preview videos in the browser</li>+ <hr style={hr} />+ <li>React to user input</li>+ <hr style={hr} />+ <li>Customize look and behavior</li>+ </ul>+ <div style={row}>+ {active === 'player' ? null : (+ <>+ <div style={flex}>+ <a style={docsButton} href="/player">+ <BlueButton className="w-full" loading={false} size="sm">+ Learn more+ </BlueButton>+ </a>+ </div>+ <Spacer />+ <Spacer />+ </>+ )}+ <div style={flex}>+ <a style={docsButton} href="/docs/player">+ <BlueButton className="w-full" loading={false} size="sm">+ Read docs+ </BlueButton>+ </a>+ </div>+ </div>+ </Pane>+ <Spacer />+ <Spacer />+ <Spacer />+ <Pane>+ {active === 'lambda' ? <YouAreHere /> : null}+ <StepTitle>Remotion Lambda</StepTitle>+ <Subtitle>Render at scale</Subtitle>+ <br />+ <div+ style={{+ display: 'flex',+ justifyContent: 'center',+ alignItems: 'center',+ flex: 1,+ }}+ >+ <img className="max-w-[300px]" src={src2} />+ </div>+ <div className="flex-1" />+ <ul style={list}>+ <li>Render videos in the cloud</li>+ <hr style={hr} />+ <li>Scale according to your volume</li>+ <hr style={hr} />+ <li>Fast because distributed</li>+ </ul>+ <div style={row}>+ {active === 'lambda' ? null : (+ <>+ <div style={flex}>+ <a style={docsButton} href="/lambda">+ <BlueButton className="w-full" loading={false} size="sm">+ Learn more+ </BlueButton>+ </a>+ </div>+ <Spacer />+ <Spacer />+ </>+ )}+ <div style={flex}>+ <a style={docsButton} href="/docs/lambda">+ <BlueButton className="w-full" loading={false} size="sm">+ Read docs+ </BlueButton>+ </a>+ </div></div>- </div>+ </Pane></div></div>);diff --git a/packages/promo-pages/src/components/homepage/VideoAppsShowcase.module.css b/packages/promo-pages/src/components/homepage/VideoAppsShowcase.module.cssindex f09cc9eff4..0b01cab541 100644--- a/packages/promo-pages/src/components/homepage/VideoAppsShowcase.module.css+++ b/packages/promo-pages/src/components/homepage/VideoAppsShowcase.module.css@@ -3,24 +3,6 @@margin: 0 auto;}-.tabs {- display: flex;- justify-content: center;- margin-bottom: 1rem;-}--.tab {- background: none;- border: none;- margin: 10px 15px; /* Adjust these values as needed */- cursor: pointer;- font-size: 16px; /* Default font size */- font-weight: bold;- transition: color 0.3s ease;- color: #888; /* Light gray for inactive tabs */- font-family: 'GTPlanar';-}-@media (max-width: 900px) {.tab {font-size: 14px; /* Smaller font size for screens less than 600px wide */@@ -48,25 +30,6 @@overflow: hidden; /* Ensure content doesn't overflow rounded corners */}-.videoWrapper {- flex: 1;- display: flex;- justify-content: center;- align-items: center;-}--.videoContainer {- width: 100%;- max-width: 500px;- aspect-ratio: 1 / 1;- position: relative;- border-radius: 8px;- border-top-right-radius: 0;- border-bottom-right-radius: 0;- overflow: hidden;- background-color: rgba(104, 104, 104, 0.171);-}-.video {position: absolute;top: 0;diff --git a/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsx b/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsxindex 6ca3dcb0a2..40b7b5f096 100644--- a/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsx+++ b/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsx@@ -3,6 +3,7 @@ import React, {useEffect, useRef, useState} from 'react';import {BlueButton} from './layout/Button';import {MuxVideo} from './MuxVideo';import styles from './VideoAppsShowcase.module.css';+import {SectionTitle} from './VideoAppsTitle';const tabs = ['Music visualization',@@ -168,25 +169,29 @@ const VideoAppsShowcase: React.FC = () => {};return (- <div ref={containerRef} className={styles.container}>- <div className={styles.titleContainer}>- <h2 className={styles.title}>Use Cases</h2>- </div>- <div className={styles.tabs}>+ <div ref={containerRef}>+ <SectionTitle>Use Cases</SectionTitle>+ <div className={'flex justify-center mb-4'}>{tabs.map((tab, index) => (<buttonkey={tab}type="button"- className={`${styles.tab} ${index === activeTab ? styles.activeTab : ''}`}+ data-active={index === activeTab}+ className={`bg-transparent border-none mx-3 my-4 cursor-pointer text-base font-brand font-bold transition-colors text-muted data-[active=true]:text-brand`}onClick={() => setActiveTab(index)}>{tab}</button>))}</div>- <div className={styles.content}>- <div className={styles.videoWrapper}>- <div className={styles.videoContainer} onClick={handlePlayPause}>+ <div className={'card flex p-0'}>+ <div className={'flex-1 flex justify-center items-center'}>+ <div+ className={+ 'w-full max-w-[500px] aspect-square relative rounded-lg rounded-tr-none rounded-br-none overflow-hidden bg-[#eee]'+ }+ onClick={handlePlayPause}+ ><MuxVideoref={videoRef}muxId={videoApps[activeTab].muxId}@@ -223,15 +228,24 @@ const VideoAppsShowcase: React.FC = () => {</div></div><div className={styles.textContent}>- <h1>{videoApps[activeTab].title}</h1>- <p>{videoApps[activeTab].description}</p>- <p>{videoApps[activeTab].additionalInfo}</p>+ <div className="text-4xl font-bold font-brand">+ {videoApps[activeTab].title}+ </div>+ <div className="text-muted mt-4 text-base font-brand">+ {videoApps[activeTab].description}+ </div>+ {videoApps[activeTab].additionalInfo ? (+ <div className="text-muted mt-4 text-base font-brand">+ {videoApps[activeTab].additionalInfo}+ </div>+ ) : null}+ <div className="h-5" /><atarget="_blank"href={videoApps[activeTab].link}style={{textDecoration: 'none'}}>- <BlueButton loading={false} fullWidth={false} size="sm">+ <BlueButton loading={false} size="sm">{videoApps[activeTab].buttonText}</BlueButton></a>@@ -249,7 +263,11 @@ const VideoAppsShowcase: React.FC = () => {fontFamily: 'GTPlanar',}}>- For more examples see our <a href="/showcase">showcase page</a>.+ For more examples see our{' '}+ <a href="/showcase" className="bluelink">+ showcase page+ </a>+ .</div></div></div>diff --git a/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx b/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsxindex bc4d3bf13a..c68b4fb834 100644--- a/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx+++ b/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx@@ -13,20 +13,12 @@ export const VideoAppsTitle: React.FC = () => {);};-export const PricingTitle: React.FC = () => {+export const SectionTitle: React.FC<{readonly children: React.ReactNode}> = ({+ children,+}) => {return (<div className={'text-center'}>- <h2 className={'font-brand text-4xl'}>Pricing</h2>- <br />- </div>- );-};--export const DemoTitle: React.FC = () => {- return (- <div className={'text-center'}>- <h2 className={'font-brand text-4xl'}>Demo</h2>- <br />+ <h2 className={'font-brand text-4xl'}>{children}</h2></div>);};diff --git a/packages/promo-pages/src/components/homepage/YouAreHere.tsx b/packages/promo-pages/src/components/homepage/YouAreHere.tsxindex c96026d131..2a38353fd1 100644--- a/packages/promo-pages/src/components/homepage/YouAreHere.tsx+++ b/packages/promo-pages/src/components/homepage/YouAreHere.tsx@@ -18,7 +18,7 @@ const label: React.CSSProperties = {borderRadius: 6,fontSize: 13,position: 'absolute',- marginTop: -40,+ marginTop: -25,};export const YouAreHere: React.FC = () => {diff --git a/packages/promo-pages/src/components/homepage/newsletter.module.css b/packages/promo-pages/src/components/homepage/newsletter.module.cssdeleted file mode 100644index db7ac401c5..0000000000--- a/packages/promo-pages/src/components/homepage/newsletter.module.css+++ /dev/null@@ -1,22 +0,0 @@-.panel {- background-color: var(--ifm-background-surface-color);- padding: 20px 20px;- border-radius: 15px;- flex: 1;- display: flex;- flex-direction: column;-}--.tablenewsletter {- font-size: 1.4em;- font-weight: 700;- font-family: 'GTPlanar';-}--.newslettergrow {- flex-direction: column;- align-items: center;-}-.portion {- width: 100%;-}diff --git a/packages/promo-pages/src/components/homepage/pricing.module.css b/packages/promo-pages/src/components/homepage/pricing.module.cssdeleted file mode 100644index 748e8941e3..0000000000--- a/packages/promo-pages/src/components/homepage/pricing.module.css+++ /dev/null@@ -1,157 +0,0 @@-.countercontainer {- width: 110px;-}--.counterinput {- font-family: 'GTPlanar', sans-serif;- font-size: 24px;- font-weight: 500;- min-width: 60px;- border: none;- text-align: end;- font-feature-settings: 'ss03' on;- background: transparent;-}--/* removes up and down arrows from input field */-.counterinput::-webkit-inner-spin-button,-.counterinput::-webkit-outer-spin-button {- -webkit-appearance: none;- margin: 0;-}--.text {- font-family: 'GTPlanar', sans-serif;- font-size: 19px;-}--.audience {- font-family: 'GTPlanar', sans-serif;- font-size: 19px;- line-height: 1.2;-}--.pricetag {- font-family: 'GTPlanar', sans-serif;- font-size: 24px;- font-weight: 500;- font-variant-numeric: tabular-nums;- font-feature-settings: 'ss03' on;- min-width: 60px;- width: auto;- text-align: right;- flex-shrink: 0;- margin-left: 15px;-}--.boldtext {- margin: 0;- padding: 0;- font-family: 'GTPlanar', sans-serif;- font-size: 19px;- font-weight: 700;- line-height: 1;-}--.description {- margin: 0;- padding: 0;- font-family: 'GTPlanar', sans-serif;- font-size: 15px;- color: #666666;- min-width: 330px;- font-feature-settings: 'ss03' on;- line-height: 1.2;- margin-top: 5px;- margin-right: 10px;- text-wrap: balance;-}-.descriptionsmall {- margin: 0;- padding: 0;- font-family: 'GTPlanar', sans-serif;- font-size: 14px;- color: #666666;-}--.pricingrow {- display: flex;- flex-direction: row;-}--.panel {- background-color: var(--ifm-background-color);- box-shadow: var(--box-shadow);- padding: 10px;- border-radius: 15px;- flex: 1;- text-align: center;- padding-top: 30px;- padding-bottom: 10px;- min-height: 550px;- display: flex;- flex-direction: column;-}-.panel ul {- text-align: left;- list-style-type: none;- padding-left: 0;-}-.panel li {- margin-top: 12px;- margin-bottom: 12px;- display: flex;- color: var(--text-color);- font-size: 0.95em;-}--.portion {- flex: 1;-}--.targettitle {- border-bottom: 2px solid var(--text-color);- font-weight: 750;- margin-bottom: 10px;- text-align: center;- font-size: 1.1em;-}--.bulletcontainer {- margin-right: 8px;- display: inline-flex;- justify-content: center;- margin-top: 5px;-}--.rowcontainer {- display: flex;- flex-direction: row;-}--.contactuslink {- color: inherit;- cursor: pointer;- text-decoration: none;-}-.contactuslink:hover {- color: var(--ifm-color-primary);- text-decoration: none;-}--@media screen and (max-width: 900px) {- .description {- flex-shrink: 1;- min-width: auto;- }- .portion {- max-width: 500px;- width: 100%;- }- .description {- font-size: 0.85em;- }- .countercontainer {- width: 70px;- }-}diff --git a/packages/promo-pages/src/components/homepage/videoapps.module.css b/packages/promo-pages/src/components/homepage/videoapps.module.cssdeleted file mode 100644index 993f86458d..0000000000--- a/packages/promo-pages/src/components/homepage/videoapps.module.css+++ /dev/null@@ -1,10 +0,0 @@-.row {- display: flex;- flex-direction: row;-}--@media screen and (max-width: 900px) {- .row {- flex-direction: column;- }-}diff --git a/packages/promo-pages/src/index.css b/packages/promo-pages/src/index.cssindex fd2a0243d7..5e02f42a1b 100644--- a/packages/promo-pages/src/index.css+++ b/packages/promo-pages/src/index.css@@ -25,14 +25,42 @@ body {}}+@keyframes jump {+ from {+ transform: scale(0);+ }+ to {+ transform: scale(1);+ }+}++@layer base {+ input[type='number']::-webkit-inner-spin-button,+ input[type='number']::-webkit-outer-spin-button {+ -webkit-appearance: none;+ margin: 0;+ }+}+@theme {--color-brand: #0b84f3;--font-brand: 'GTPlanar', sans-serif;+ --color-pane: var(--ifm-background-surface-color);+ --color-muted: var(--subtitle);}-@utility border-brand {+@utility border-effect {border: 2px solid var(--box-stroke);border-bottom: 4px solid var(--box-stroke);+ border-radius: var(--radius-lg);+}++@utility bluelink {+ @apply text-brand no-underline hover:underline underline-offset-2;+}++@utility card {+ @apply border-effect bg-pane p-5;}@import 'tailwindcss/theme' layer(theme);