Skip to content

Commit 92fa61d

Browse files
committed
alright
1 parent fe8ff63 commit 92fa61d

File tree

9 files changed

+18
-110
lines changed

9 files changed

+18
-110
lines changed
13.9 KB
Loading

packages/promo-pages/src/components/Homepage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {Demo} from './homepage/Demo';
88
import {LightningFastEditor} from './homepage/Editor';
99
import EvaluateRemotionSection from './homepage/EvaluateRemotion';
1010
import {IfYouKnowReact} from './homepage/IfYouKnowReact';
11-
import styles from './homepage/landing.module.css';
1211
import {ColorModeProvider} from './homepage/layout/use-color-mode';
1312
import {NewsletterButton} from './homepage/NewsletterButton';
1413
import {Pricing} from './homepage/Pricing';
@@ -28,7 +27,7 @@ const NewLanding: React.FC = () => {
2827
<br />
2928
<br />
3029
<br />
31-
<div className={styles.content}>
30+
<div className="max-w-[500px] lg:max-w-[1000px] m-auto pl-5 pr-5">
3231
<WriteInReact />
3332
<br />
3433
<IfYouKnowReact />

packages/promo-pages/src/components/homepage/BackgroundAnimation.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import {getLength} from '@remotion/paths';
44
import React, {useEffect} from 'react';
5-
import styles from './bg-anim.module.css';
65

76
const rx = 0.2;
87
const ry = 0.45;
@@ -53,9 +52,9 @@ export const BackgroundAnimation: React.FC = () => {
5352
}, [css]);
5453

5554
return (
56-
<div className={styles.bganimcontainer}>
55+
<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">
5756
<svg
58-
className={styles.svg}
57+
className="translate-y-[-30%] lg:translate-y-[-50%]"
5958
viewBox="0 0 1 1"
6059
style={{
6160
width: '100%',
@@ -68,7 +67,7 @@ export const BackgroundAnimation: React.FC = () => {
6867
fill="none"
6968
stroke="var(--ifm-color-primary)"
7069
strokeLinecap="round"
71-
className={styles.p}
70+
className="stroke-[0.04] lg:stroke-[0.035]"
7271
style={{
7372
transformOrigin: 'center center',
7473
transform: `rotate(120deg)`,
@@ -82,7 +81,7 @@ export const BackgroundAnimation: React.FC = () => {
8281
stroke="var(--ifm-color-primary)"
8382
strokeLinecap="round"
8483
strokeWidth={strokeWidth}
85-
className={styles.p}
84+
className="stroke-[0.04] lg:stroke-[0.035]"
8685
style={{
8786
transformOrigin: 'center center',
8887
transform: `rotate(0deg)`,
@@ -96,7 +95,7 @@ export const BackgroundAnimation: React.FC = () => {
9695
stroke="var(--ifm-color-primary)"
9796
strokeLinecap="round"
9897
strokeWidth={strokeWidth}
99-
className={styles.p}
98+
className="stroke-[0.04] lg:stroke-[0.035]"
10099
style={{
101100
transformOrigin: 'center center',
102101
transform: `rotate(240deg)`,

packages/promo-pages/src/components/homepage/CodeExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const CodeExample: React.FC = () => {
7979
<div>
8080
{tab === 'code' && (
8181
<div style={container}>
82-
<img src="/img/code-sample-new.png" />
82+
<img src="/img/code-sample-new.png" className="w-full" />
8383
</div>
8484
)}
8585
{tab === 'preview' && <Preview />}

packages/promo-pages/src/components/homepage/EvaluateRemotion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const EvaluateRemotionSection: React.FC = () => {
5454
href="https://cal.com/remotion/evaluate"
5555
style={{textDecoration: 'none'}}
5656
>
57-
<BlueButton size="sm" fullWidth={false} loading={false}>
57+
<BlueButton size="sm" loading={false}>
5858
Schedule a call
5959
</BlueButton>
6060
</a>
@@ -72,7 +72,7 @@ const EvaluateRemotionSection: React.FC = () => {
7272
href="/experts"
7373
style={{textDecoration: 'none'}}
7474
>
75-
<BlueButton size="sm" fullWidth={false} loading={false}>
75+
<BlueButton size="sm" loading={false}>
7676
Remotion Experts
7777
</BlueButton>
7878
</a>

packages/promo-pages/src/components/homepage/IfYouKnowReact.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
import React from 'react';
22
import {CodeExample} from './CodeExample';
3-
import styles from './ifyouknowreact.module.css';
43
import {BlueButton} from './layout/Button';
5-
import {Spacer} from './Spacer';
64

75
export const IfYouKnowReact: React.FC = () => {
86
return (
9-
<div className={styles.ifyouknowrow}>
7+
<div className="flex flex-col-reverse lg:flex-row text-left lg:text-right justify-start lg:justify-end items-start lg:items-center">
108
<CodeExample />
11-
<div style={{width: 40}} />
12-
<div>
13-
<h2 className={styles.ifyouknowtitle}>
14-
Leverage <span className={styles.rea}>React</span> <br />
9+
<div className="h-10 lg:w-10" />
10+
<div className="lg:text-right">
11+
<h2 className="text-4xl font-brand">
12+
Leverage <span className="text-brand">React</span> <br />
1513
to express yourself.
1614
</h2>
17-
<p>
15+
<p className="leading-relaxed">
1816
Remotion gives you the tools for video creation, <br /> but the rules
1917
of React stay the same. <br />
2018
</p>
2119
Learn the fundamentals in just a few minutes.
22-
<Spacer />
23-
<Spacer />
24-
<a className={styles.aknow} href="/docs/the-fundamentals">
25-
<BlueButton size="sm" fullWidth={false} loading={false}>
20+
<div className="h-7" />
21+
<a className="no-underline inline-block" href="/docs/the-fundamentals">
22+
<BlueButton size="sm" loading={false}>
2623
Learn Remotion
2724
</BlueButton>
2825
</a>

packages/promo-pages/src/components/homepage/bg-anim.module.css

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/promo-pages/src/components/homepage/ifyouknowreact.module.css

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/promo-pages/src/components/homepage/landing.module.css

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)