Skip to content

🎥 Make videos programmatically with React

editor

Jonny Burger11296a676439
diff --git a/packages/promo-pages/src/components/Homepage.tsx b/packages/promo-pages/src/components/Homepage.tsx
index 34a9a544f8..df7593f7ca 100644
--- a/packages/promo-pages/src/components/Homepage.tsx
+++ b/packages/promo-pages/src/components/Homepage.tsx
@@ -21,58 +21,62 @@ import {WriteInReact} from './homepage/WriteInReact';
const NewLanding: React.FC = () => {
return (
<ColorModeProvider>
- <div>
- <BackgroundAnimation />
- <br />
- <br />
- <br />
- <br />
- <div className="max-w-[500px] lg:max-w-[1000px] m-auto pl-5 pr-5">
- <WriteInReact />
- <br />
- <IfYouKnowReact />
- <br />
- <br />
- <br />
- <br />
- <br />
- <br />
- <RealMP4Videos />
- <br />
- <br />
- <br />
- <br />
- <LightningFastEditor />
- <br />
- <br />
- <br />
- <VideoAppsTitle />
- <VideoApps active="remotion" />
- <br />
- <br />
- <VideoAppsShowcase />
- <br />
- <br />
- <Demo />
- <br />
- <br />
- <br />
- <PricingTitle />
- <Pricing />
- <TrustedByBanner />
- <br />
- <EvaluateRemotionSection />
- <br />
- <br />
- <br />
- <CommunityStats />
- <br />
- <br />
- <br />
- <NewsletterButton />
- <br />
- <br />
- <br />
+ <div data-theme="light" className="bg-[var(--background)] relative">
+ <div>
+ <div>
+ <BackgroundAnimation />
+ </div>
+ <br />
+ <br />
+ <br />
+ <br />
+ <div className="max-w-[500px] lg:max-w-[1000px] m-auto pl-5 pr-5 relative">
+ <WriteInReact />
+ <br />
+ <IfYouKnowReact />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <RealMP4Videos />
+ <br />
+ <br />
+ <br />
+ <br />
+ <LightningFastEditor />
+ <br />
+ <br />
+ <br />
+ <VideoAppsTitle />
+ <VideoApps active="remotion" />
+ <br />
+ <br />
+ <VideoAppsShowcase />
+ <br />
+ <br />
+ <Demo />
+ <br />
+ <br />
+ <br />
+ <PricingTitle />
+ <Pricing />
+ <TrustedByBanner />
+ <br />
+ <EvaluateRemotionSection />
+ <br />
+ <br />
+ <br />
+ <CommunityStats />
+ <br />
+ <br />
+ <br />
+ <NewsletterButton />
+ <br />
+ <br />
+ <br />
+ </div>
</div>
</div>
</ColorModeProvider>
diff --git a/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx b/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx
index 3609f48c64..144b3c1d25 100644
--- a/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx
+++ b/packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx
@@ -52,13 +52,12 @@ export const BackgroundAnimation: React.FC = () => {
}, [css]);
return (
- <div className="absolute w-full h-full left-[50%] ml-[-50%] min-w-0 lg: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 left-[50%] ml-[-50%] min-w-0 lg:m-auto lg:relative lg:min-w-[700px] lg:max-w-[1200px] lg:ml-auto lg:left-auto pointer-events-none">
<svg
className="translate-y-[-30%] lg:translate-y-[-50%]"
viewBox="0 0 1 1"
style={{
width: '100%',
- zIndex: -1,
position: 'absolute',
}}
>
diff --git a/packages/promo-pages/src/components/homepage/CompanyPricing.tsx b/packages/promo-pages/src/components/homepage/CompanyPricing.tsx
deleted file mode 100644
index b34373d86d..0000000000
--- a/packages/promo-pages/src/components/homepage/CompanyPricing.tsx
+++ /dev/null
@@ -1,113 +0,0 @@
-import React, {useCallback, useMemo} from 'react';
-import {Counter} from './Counter';
-import {InfoTooltip} from './InfoTooltip';
-import {PricingBulletPoint} from './PricingBulletPoint';
-import styles from './pricing.module.css';
-
-const SEAT_PRICE = 25;
-const RENDER_UNIT_PRICE = 10;
-
-const textUnitWrapper: React.CSSProperties = {
- display: 'flex',
- flexDirection: 'column',
-};
-
-export const CompanyPricing: React.FC = () => {
- const [devSeatCount, setDevSeatCount] = React.useState(1);
- const [cloudUnitCount, setCloudUnitCount] = React.useState(1);
-
- const formatPrice = useCallback((price: number) => {
- const formatter = new Intl.NumberFormat('en-US', {
- style: 'currency',
- currency: 'USD',
- maximumFractionDigits: 0,
- });
- return formatter.format(price);
- }, []);
-
- const totalPrice = useMemo(() => {
- return Math.max(
- 100,
- devSeatCount * SEAT_PRICE + cloudUnitCount * RENDER_UNIT_PRICE,
- );
- }, [cloudUnitCount, devSeatCount]);
-
- const totalPriceString = useMemo(() => {
- return formatPrice(totalPrice);
- }, [formatPrice, totalPrice]);
-
- const rendersPerMonth = useMemo(() => {
- const formatter = new Intl.NumberFormat('en-US', {
- maximumFractionDigits: 0,
- });
- return formatter.format(cloudUnitCount * 2000);
- }, [cloudUnitCount]);
-
- return (
- <div className={styles.pricingcontainer}>
- <div className={styles.audience}>
- For collaborations and companies of 4+ people
- </div>
- <h2 className="pricingtitle">Company License</h2>
- <PricingBulletPoint text="Everything in Free License" checked />
- <PricingBulletPoint text="Prioritized Support" checked />
- <PricingBulletPoint text="Remotion Recorder included" checked />
- <PricingBulletPoint text="$250 Mux credits" checked>
- <InfoTooltip text="Credits for Mux.com. Applies only to new Mux customers." />
- </PricingBulletPoint>
- <div style={{height: 30}} />
- <div className={styles.rowcontainer}>
- <div style={textUnitWrapper}>
- <div className={styles.boldtext}>Developer Seats</div>
- <div className={styles.description}>
- 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}>
- $
- {new Intl.NumberFormat('en-US', {
- maximumFractionDigits: 0,
- }).format(SEAT_PRICE * devSeatCount)}
- </div>
- </div>
- <div style={{height: 14}} />
- <div className={styles.rowcontainer}>
- <div style={textUnitWrapper}>
- <div className={styles.boldtext}>Cloud Rendering Units</div>
- <div className={styles.description}>
- Allows for {rendersPerMonth} self-hosted renders per month
- </div>
- </div>
- <div style={{flex: 3}} />
- <Counter
- count={cloudUnitCount}
- setCount={setCloudUnitCount}
- minCount={0}
- />
- <div style={{flex: 1}} />
- <div className={styles.pricetag}>
- $
- {new Intl.NumberFormat('en-US', {
- maximumFractionDigits: 0,
- }).format(RENDER_UNIT_PRICE * cloudUnitCount)}
- </div>
- </div>
- <div style={{height: 20}} />
- <div className={styles.rowContainer} style={{justifyContent: 'flex-end'}}>
- <div style={{...textUnitWrapper, alignItems: 'flex-end'}}>
- <div className={styles.pricetag}>{totalPriceString}/mo</div>
- {totalPrice <= 100 ? (
- <div className={styles.descriptionsmall} style={{height: 24}}>
- The minimum is $100 per month
- </div>
- ) : (
- <div style={{height: 24}} />
- )}
- </div>
- </div>
- </div>
- );
-};
diff --git a/packages/promo-pages/src/components/homepage/Editor.tsx b/packages/promo-pages/src/components/homepage/Editor.tsx
index 4fc1ce6452..49f9763a6f 100644
--- a/packages/promo-pages/src/components/homepage/Editor.tsx
+++ b/packages/promo-pages/src/components/homepage/Editor.tsx
@@ -1,5 +1,4 @@
import React, {useCallback, useEffect, useRef, useState} from 'react';
-import styles from './editor.module.css';
export const LightningFastEditor: React.FC = () => {
const ref = useRef<HTMLDivElement>(null);
@@ -31,12 +30,16 @@ export const LightningFastEditor: React.FC = () => {
return () => observer.unobserve(current);
}, [callback]);
return (
- <div ref={ref} className={styles.row}>
+ <div
+ ref={ref}
+ className={
+ 'flex flex-col-reverse lg:flex-row justify-start lg:justify-end lg:text-right items-start lg:items-center'
+ }
+ >
<div>
<video
src="/img/player-demo.mp4"
autoPlay
- className={styles.video}
muted
playsInline
loop
@@ -50,7 +53,7 @@ export const LightningFastEditor: React.FC = () => {
/>
</div>
<div style={{flex: 1}}>
- <h2 className={styles.title}>
+ <h2 className={'font-brand text-4xl'}>
Fast and <br /> <span className="text-brand">delightful</span> editing
</h2>
<p>
diff --git a/packages/promo-pages/src/components/homepage/EnterpriseLicense.tsx b/packages/promo-pages/src/components/homepage/EnterpriseLicense.tsx
deleted file mode 100644
index b89f52b447..0000000000
--- a/packages/promo-pages/src/components/homepage/EnterpriseLicense.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import React from 'react';
-import {PricingBulletPoint} from './PricingBulletPoint';
-import styles from './pricing.module.css';
-
-const textUnitWrapper: React.CSSProperties = {
- display: 'flex',
- flexDirection: 'column',
-};
-
-export const EnterpriseLicense: React.FC = () => {
- return (
- <div className={styles.pricingcontainer}>
- <div className={styles.audience}>For advanced needs</div>
- <h2 className="pricingtitle">Enterprise License</h2>
- <PricingBulletPoint text="Everything in Company License" checked />
- <PricingBulletPoint text="Custom terms, billing and pricing" checked />
- <PricingBulletPoint text="Compliance forms" checked />
- <PricingBulletPoint text="Prioritized feature requests" checked />
- <PricingBulletPoint text="Private support channel" checked />
- <PricingBulletPoint text="Monthly consulting session" checked />
- <div style={{height: 30}} />
- <div className={styles.rowcontainer} style={{justifyContent: 'flex-end'}}>
- <div
- style={{
- ...textUnitWrapper,
- alignItems: 'flex-end',
- }}
- >
- <div
- className={styles.pricetag}
- style={{
- justifyContent: 'flex-end',
- fontSize: 30,
- lineHeight: 1.4,
- }}
- >
- <a
- className={styles.contactuslink}
- target={'_blank'}
- href="https://www.remotion.pro/contact"
- >
- Contact us
- </a>
- </div>
- <div className={styles.descriptionsmall}>
- Starting at $500 per month
- </div>
- </div>
- </div>
- </div>
- );
-};
diff --git a/packages/promo-pages/src/components/homepage/FreePricing.tsx b/packages/promo-pages/src/components/homepage/FreePricing.tsx
index 95f752f622..8f85baa47d 100644
--- a/packages/promo-pages/src/components/homepage/FreePricing.tsx
+++ b/packages/promo-pages/src/components/homepage/FreePricing.tsx
@@ -2,13 +2,61 @@ 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'}>
+ {children}
+ </div>
+ );
+};
+
+const Title: React.FC<{
+ readonly children: React.ReactNode;
+}> = ({children}) => {
+ return (
+ <div className="text-4xl font-bold leading-none font-brand mt-2 mb-5">
+ {children}
+ </div>
+ );
+};
+
+const Audience: React.FC<{
+ readonly children: React.ReactNode;
+}> = ({children}) => {
+ return <div className={'font-brand text-lg leading-none'}>{children}</div>;
+};
+
+const BottomInfo: React.FC<{
+ readonly children: React.ReactNode;
+}> = ({children}) => {
+ return (
+ <div className={'text-[var(--subtitle)] font-brand text-sm'}>
+ {children}
+ </div>
+ );
+};
+
+const PriceTag: React.FC<{
+ readonly children: React.ReactNode;
+}> = ({children}) => {
+ return (
+ <div
+ className={
+ 'font-brand text-2xl font-bold min-w-[60px] w-auto text-right shrink-0 ml-4'
+ }
+ >
+ {children}
+ </div>
+ );
+};
+
export const FreePricing: React.FC = () => {
return (
- <div className={styles.pricingcontainer}>
- <div className={styles.audience}>
- For individuals and companies of up to 3 people
- </div>
- <h2 className="pricingtitle">Free License</h2>
+ <Container>
+ <Audience>For individuals and companies of up to 3 people</Audience>
+ <Title>Free License</Title>
<PricingBulletPoint text="Unlimited videos" checked />
<PricingBulletPoint text="Commercial use allowed" checked />
<PricingBulletPoint
@@ -16,6 +64,153 @@ export const FreePricing: React.FC = () => {
checked
/>
<PricingBulletPoint text="Upgrade when your team grows" checked={false} />
- </div>
+ </Container>
+ );
+};
+
+const textUnitWrapper: React.CSSProperties = {
+ display: 'flex',
+ flexDirection: 'column',
+};
+
+export const EnterpriseLicense: React.FC = () => {
+ return (
+ <Container>
+ <Audience>For advanced needs</Audience>
+ <Title>Enterprise License</Title>
+ <PricingBulletPoint text="Everything in Company License" checked />
+ <PricingBulletPoint text="Custom terms, billing and pricing" checked />
+ <PricingBulletPoint text="Compliance forms" checked />
+ <PricingBulletPoint text="Prioritized feature requests" checked />
+ <PricingBulletPoint text="Private support channel" checked />
+ <PricingBulletPoint text="Monthly consulting session" checked />
+ <div style={{height: 30}} />
+ <div className={'flex flex-row justify-end'}>
+ <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)] font-brand text-sm'}>
+ Starting at $500 per month
+ </div>
+ </div>
+ </div>
+ </Container>
+ );
+};
+
+import {useCallback, useMemo} from 'react';
+import {Counter} from './Counter';
+import {InfoTooltip} from './InfoTooltip';
+
+const SEAT_PRICE = 25;
+const RENDER_UNIT_PRICE = 10;
+
+export const CompanyPricing: React.FC = () => {
+ const [devSeatCount, setDevSeatCount] = React.useState(1);
+ const [cloudUnitCount, setCloudUnitCount] = React.useState(1);
+
+ const formatPrice = useCallback((price: number) => {
+ const formatter = new Intl.NumberFormat('en-US', {
+ style: 'currency',
+ currency: 'USD',
+ maximumFractionDigits: 0,
+ });
+ return formatter.format(price);
+ }, []);
+
+ const totalPrice = useMemo(() => {
+ return Math.max(
+ 100,
+ devSeatCount * SEAT_PRICE + cloudUnitCount * RENDER_UNIT_PRICE,
+ );
+ }, [cloudUnitCount, devSeatCount]);
+
+ const totalPriceString = useMemo(() => {
+ return formatPrice(totalPrice);
+ }, [formatPrice, totalPrice]);
+
+ const rendersPerMonth = useMemo(() => {
+ const formatter = new Intl.NumberFormat('en-US', {
+ maximumFractionDigits: 0,
+ });
+ return formatter.format(cloudUnitCount * 2000);
+ }, [cloudUnitCount]);
+
+ return (
+ <Container>
+ <Audience>For collaborations and companies of 4+ people</Audience>
+ <Title>Company License</Title>
+ <PricingBulletPoint text="Everything in Free License" checked />
+ <PricingBulletPoint text="Prioritized Support" checked />
+ <PricingBulletPoint text="Remotion Recorder included" checked />
+ <PricingBulletPoint text="$250 Mux credits" checked>
+ <InfoTooltip text="Credits for Mux.com. Applies only to new Mux customers." />
+ </PricingBulletPoint>
+ <div style={{height: 30}} />
+ <div className={styles.rowcontainer}>
+ <div style={textUnitWrapper}>
+ <div className={styles.boldtext}>Developer Seats</div>
+ <div className={styles.description}>
+ 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}>
+ $
+ {new Intl.NumberFormat('en-US', {
+ maximumFractionDigits: 0,
+ }).format(SEAT_PRICE * devSeatCount)}
+ </div>
+ </div>
+ <div style={{height: 14}} />
+ <div className={styles.rowcontainer}>
+ <div style={textUnitWrapper}>
+ <div className={styles.boldtext}>Cloud Rendering Units</div>
+ <div className={styles.description}>
+ Allows for {rendersPerMonth} self-hosted renders per month
+ </div>
+ </div>
+ <div style={{flex: 3}} />
+ <Counter
+ count={cloudUnitCount}
+ setCount={setCloudUnitCount}
+ minCount={0}
+ />
+ <div style={{flex: 1}} />
+ <div className={styles.pricetag}>
+ $
+ {new Intl.NumberFormat('en-US', {
+ maximumFractionDigits: 0,
+ }).format(RENDER_UNIT_PRICE * cloudUnitCount)}
+ </div>
+ </div>
+ <div style={{height: 20}} />
+ <div className={styles.rowContainer} style={{justifyContent: 'flex-end'}}>
+ <div style={{...textUnitWrapper, alignItems: 'flex-end'}}>
+ <PriceTag>{totalPriceString}/mo</PriceTag>
+ {totalPrice <= 100 ? (
+ <BottomInfo>The minimum is $100 per month</BottomInfo>
+ ) : (
+ <div style={{height: 24}} />
+ )}
+ </div>
+ </div>
+ </Container>
);
};
diff --git a/packages/promo-pages/src/components/homepage/NewsletterButton.tsx b/packages/promo-pages/src/components/homepage/NewsletterButton.tsx
index 7c5860b6ec..b66ca05ea8 100644
--- a/packages/promo-pages/src/components/homepage/NewsletterButton.tsx
+++ b/packages/promo-pages/src/components/homepage/NewsletterButton.tsx
@@ -1,8 +1,8 @@
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';
-import {CoolInput} from './TextInput';
export const NewsletterButton: React.FC<{}> = () => {
const [email, setEmail] = useState('');
@@ -46,7 +46,7 @@ export const NewsletterButton: React.FC<{}> = () => {
<div>
<div className={styles.newslettergrow}>
<div className={styles.portion}>
- <div className={styles.panel}>
+ <div className={cn(styles.panel, 'border-brand')}>
<div className={[styles.tablenewsletter].join(' ')}>Newsletter</div>
<form
onSubmit={handleSubmit}
@@ -59,12 +59,9 @@ export const NewsletterButton: React.FC<{}> = () => {
Remotion once in a while.
</p>
- <CoolInput
- style={{
- width: '100%',
- }}
+ <input
+ className="w-full rounded-lg px-3 py-3 font-brand text-lg box-border"
disabled={submitting}
- fullWidth
value={email}
onChange={(e) => setEmail(e.target.value)}
type={'email'}
@@ -76,10 +73,10 @@ export const NewsletterButton: React.FC<{}> = () => {
<div>
<BlueButton
type="submit"
- fullWidth
+ className="w-full"
loading={submitting}
disabled={submitting || subscribed}
- size="bg"
+ size="sm"
>
{subscribed ? 'Subscribed!' : 'Subscribe'}
</BlueButton>
diff --git a/packages/promo-pages/src/components/homepage/Pricing.tsx b/packages/promo-pages/src/components/homepage/Pricing.tsx
index 849f56a20a..6cb560633e 100644
--- a/packages/promo-pages/src/components/homepage/Pricing.tsx
+++ b/packages/promo-pages/src/components/homepage/Pricing.tsx
@@ -1,7 +1,5 @@
import React from 'react';
-import {CompanyPricing} from './CompanyPricing';
-import {EnterpriseLicense} from './EnterpriseLicense';
-import {FreePricing} from './FreePricing';
+import {CompanyPricing, EnterpriseLicense, FreePricing} from './FreePricing';
export const Pricing: React.FC = () => {
return (
diff --git a/packages/promo-pages/src/components/homepage/PricingBulletPoint.tsx b/packages/promo-pages/src/components/homepage/PricingBulletPoint.tsx
index 0983618827..a13d94215c 100644
--- a/packages/promo-pages/src/components/homepage/PricingBulletPoint.tsx
+++ b/packages/promo-pages/src/components/homepage/PricingBulletPoint.tsx
@@ -1,5 +1,4 @@
import React from 'react';
-import styles from './pricing.module.css';
const container: React.CSSProperties = {
display: 'flex',
@@ -42,7 +41,7 @@ export const PricingBulletPoint: React.FC<{
return (
<div style={container}>
{checked ? checkmarkSVG : <div style={greyCircle} />}
- <div className={styles.text}>
+ <div className={'font-brand text-lg '}>
{text}
{children}
</div>
diff --git a/packages/promo-pages/src/components/homepage/RealMp4Videos.tsx b/packages/promo-pages/src/components/homepage/RealMp4Videos.tsx
index 8b006f8ebd..7da256b4c2 100644
--- a/packages/promo-pages/src/components/homepage/RealMp4Videos.tsx
+++ b/packages/promo-pages/src/components/homepage/RealMp4Videos.tsx
@@ -1,5 +1,4 @@
import React, {useCallback, useEffect, useRef, useState} from 'react';
-import styles from './realvideos.module.css';
export const RealMP4Videos: React.FC = () => {
const ref = useRef<HTMLDivElement>(null);
@@ -25,21 +24,21 @@ export const RealMP4Videos: React.FC = () => {
}, [callback]);
return (
- <div ref={ref} className={styles.realvideos}>
+ <div ref={ref} className={'flex flex-col lg:flex-row'}>
<div>
- <h2 className={styles.realtitle}>
- Real <span className={styles.realgradient}>.mp4</span> videos
+ <h2 className="text-4xl font-brand">
+ Real <span className={'text-brand'}>.mp4</span> videos
</h2>
- <p>
+ <p className="leading-relaxed">
Remotion renders all frames to images and <br /> encodes them to a
real video - audio support included. <br /> WebM and other formats are
also supported.
</p>
</div>
- <div className={styles.realmp4container}>
+ <div className="flex flex-1 justify-start lg:justify-end items-end">
<img
src="/img/mp4.png"
- className={styles.icon}
+ className="mb-[30px] lg:mb-0"
style={{
width: 110,
animationPlayState: isIntersecting ? 'running' : 'paused',
diff --git a/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx b/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx
index c24ca7d0ea..bc4d3bf13a 100644
--- a/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx
+++ b/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx
@@ -1,11 +1,10 @@
import React from 'react';
-import styles from './remotionvideoappstitle.module.css';
export const VideoAppsTitle: React.FC = () => {
return (
- <div className={styles.container}>
- <h2 className={styles.title}>
- Build video <span className={styles.highlight}>apps</span>
+ <div className={'text-center'}>
+ <h2 className={'font-brand text-4xl'}>
+ Build video <span className={'font-brand'}>apps</span>
</h2>
<p>
Use our suite of tools to build apps that lets others create videos.
@@ -16,8 +15,8 @@ export const VideoAppsTitle: React.FC = () => {
export const PricingTitle: React.FC = () => {
return (
- <div className={styles.container}>
- <h2 className={styles.title}>Pricing</h2>
+ <div className={'text-center'}>
+ <h2 className={'font-brand text-4xl'}>Pricing</h2>
<br />
</div>
);
@@ -25,8 +24,8 @@ export const PricingTitle: React.FC = () => {
export const DemoTitle: React.FC = () => {
return (
- <div className={styles.container}>
- <h2 className={styles.title}>Demo</h2>
+ <div className={'text-center'}>
+ <h2 className={'font-brand text-4xl'}>Demo</h2>
<br />
</div>
);
diff --git a/packages/promo-pages/src/components/homepage/custom.css b/packages/promo-pages/src/components/homepage/custom.css
index 92f22c8550..b6ab878334 100644
--- a/packages/promo-pages/src/components/homepage/custom.css
+++ b/packages/promo-pages/src/components/homepage/custom.css
@@ -13,12 +13,12 @@
--ifm-font-size-base: 16px;
--ifm-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
'Liberation Mono', 'Courier New', monospace;
- --ifm-pre-line-height:
+ --ifm-pre-line-height:
;
}
[data-theme='light'] {
- --background: #fff;
+ --background: #f8fafc;
--footer-background: #fcfcfc;
--footer-border: #eaeaea;
--text-color: #000;
diff --git a/packages/promo-pages/src/components/homepage/editor.module.css b/packages/promo-pages/src/components/homepage/editor.module.css
deleted file mode 100644
index 2a64310c21..0000000000
--- a/packages/promo-pages/src/components/homepage/editor.module.css
+++ /dev/null
@@ -1,43 +0,0 @@
-.row {
- display: flex;
- flex-direction: row;
- justify-content: flex-end;
- text-align: right;
- align-items: center;
-}
-
-.title {
- font-size: 2.5em;
- font-weight: 700;
- line-height: 1.1;
- text-align: right;
-}
-
-.mp4 {
- color: var(--ifm-color-primary);
-}
-
-@keyframes opacity {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-.video {
- animation: opacity 0.6s;
-}
-
-@media (max-width: 900px) {
- .row {
- flex-direction: column-reverse;
- text-align: left;
- align-items: flex-start;
- justify-content: flex-start;
- }
- .title {
- text-align: left;
- }
-}
diff --git a/packages/promo-pages/src/components/homepage/newsletter.module.css b/packages/promo-pages/src/components/homepage/newsletter.module.css
index 41cb23a354..db7ac401c5 100644
--- a/packages/promo-pages/src/components/homepage/newsletter.module.css
+++ b/packages/promo-pages/src/components/homepage/newsletter.module.css
@@ -1,11 +1,8 @@
.panel {
- background-color: var(--ifm-background-color);
+ background-color: var(--ifm-background-surface-color);
padding: 20px 20px;
border-radius: 15px;
flex: 1;
- border: 2px solid var(--box-stroke);
- border-bottom: 4px solid var(--box-stroke);
- min-height: 250px;
display: flex;
flex-direction: column;
}
diff --git a/packages/promo-pages/src/components/homepage/pricing.module.css b/packages/promo-pages/src/components/homepage/pricing.module.css
index ef670e6e52..748e8941e3 100644
--- a/packages/promo-pages/src/components/homepage/pricing.module.css
+++ b/packages/promo-pages/src/components/homepage/pricing.module.css
@@ -20,15 +20,6 @@
margin: 0;
}
-.pricingcontainer {
- display: flex;
- flex-direction: column;
- border: 2px solid var(--box-stroke);
- border-bottom: 4px solid var(--box-stroke);
- border-radius: 10px;
- padding: 20px;
-}
-
.text {
font-family: 'GTPlanar', sans-serif;
font-size: 19px;
@@ -153,9 +144,6 @@
flex-shrink: 1;
min-width: auto;
}
- .pricingcontainer {
- text-align: left;
- }
.portion {
max-width: 500px;
width: 100%;
diff --git a/packages/promo-pages/src/components/homepage/realvideos.module.css b/packages/promo-pages/src/components/homepage/realvideos.module.css
deleted file mode 100644
index 49deacb307..0000000000
--- a/packages/promo-pages/src/components/homepage/realvideos.module.css
+++ /dev/null
@@ -1,49 +0,0 @@
-.realvideos {
- display: flex;
- flex-direction: row;
-}
-
-.realtitle {
- font-size: 2.5em;
- font-weight: 700;
- line-height: 1.1;
-}
-
-.realgradient {
- color: var(--ifm-color-primary);
-}
-
-.realmp4container {
- flex: 1;
- justify-content: flex-end;
- align-items: center;
- display: flex;
-}
-
-@media screen and (max-width: 900px) {
- .realvideos {
- flex-direction: column-reverse;
- }
- .realmp4container {
- justify-content: flex-start;
- }
- .icon {
- animation: none;
- margin-bottom: 30px;
- }
-}
-
-@keyframes goup {
- from {
- opacity: 0;
- transform: translateY(50px);
- }
- to {
- opacity: 1;
- transform: translateY(0px);
- }
-}
-
-.icon {
- animation: goup 0.6s;
-}
diff --git a/packages/promo-pages/src/components/homepage/remotionvideoappstitle.module.css b/packages/promo-pages/src/components/homepage/remotionvideoappstitle.module.css
deleted file mode 100644
index ae1f78c0b8..0000000000
--- a/packages/promo-pages/src/components/homepage/remotionvideoappstitle.module.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.container {
- text-align: center;
-}
-
-.title {
- font-size: 2.5em;
- font-weight: 700;
- line-height: 1.1;
-}
-
-.highlight {
- color: var(--ifm-color-primary);
-}
diff --git a/packages/promo-pages/src/fonts.css b/packages/promo-pages/src/fonts.css
index 53a20af1dd..b2740551f5 100644
--- a/packages/promo-pages/src/fonts.css
+++ b/packages/promo-pages/src/fonts.css
@@ -3,6 +3,7 @@
src: url('/img/gt-planar-regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
+ font-feature-settings: 'ss03' on;
}
@font-face {
@@ -10,12 +11,14 @@
src: url('/img/gt-planar-medium.woff2') format('woff2');
font-weight: 500;
font-style: normal;
+ font-feature-settings: 'ss03' on;
}
@font-face {
font-family: 'GTPlanar';
src: url('/img/gt-planar-bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
+ font-feature-settings: 'ss03' on;
}
@font-face {
@@ -23,4 +26,5 @@
src: url('/img/gt-planar-black.woff2') format('woff2');
font-weight: 900;
font-style: normal;
+ font-feature-settings: 'ss03' on;
}
diff --git a/packages/promo-pages/src/index.css b/packages/promo-pages/src/index.css
index 7f10a31500..fd2a0243d7 100644
--- a/packages/promo-pages/src/index.css
+++ b/packages/promo-pages/src/index.css
@@ -3,6 +3,9 @@
html {
font-family: sans-serif;
}
+body {
+ margin: 0;
+}
@keyframes click {
0% {
@@ -27,11 +30,9 @@ html {
--font-brand: 'GTPlanar', sans-serif;
}
-@utility pricingtitle {
- font-size: 2.5em;
- font-weight: 700;
- line-height: 1.1;
- font-family: 'GTPlanar', sans-serif;
+@utility border-brand {
+ border: 2px solid var(--box-stroke);
+ border-bottom: 4px solid var(--box-stroke);
}
@import 'tailwindcss/theme' layer(theme);