Skip to content

🎥 Make videos programmatically with React

finish refactor

Jonny Burger43757e62e8d1
diff --git a/packages/docs/components/LandingPage/FreePricing.tsx b/packages/docs/components/LandingPage/FreePricing.tsx
index f7d7f200a4..36e44710ed 100644
--- a/packages/docs/components/LandingPage/FreePricing.tsx
+++ b/packages/docs/components/LandingPage/FreePricing.tsx
@@ -5,8 +5,8 @@ import { PricingTable } from "./PricingTable";
export const FreePricing: React.FC = () => {
return (
<>
- <div className={styles.container}>
- <h2 className={styles.title}>
+ <div className={styles.pricingcontainer}>
+ <h2 className={styles.pricingtitle}>
<span className={styles.mp4}>Free</span> for individuals <br /> Funded
by companies
</h2>
diff --git a/packages/docs/components/LandingPage/PlayerPreview.tsx b/packages/docs/components/LandingPage/PlayerPreview.tsx
index 93d25dbe43..3862509ac5 100644
--- a/packages/docs/components/LandingPage/PlayerPreview.tsx
+++ b/packages/docs/components/LandingPage/PlayerPreview.tsx
@@ -1,23 +1,10 @@
import React from "react";
-import styled from "styled-components";
-
-const Container = styled.div`
- display: flex;
- flex: 1;
- cursor: pointer;
- position: relative;
- &:hover {
- transform: scale(1.015);
- }
- transition: transform 0.3s;
-`;
-
-const A = styled.a``;
+import styles from "./playerpreview.module.css";
export const PlayerPreview: React.FC = () => {
return (
- <A href="https://www.youtube.com/watch?v=gwlDorikqgY" target="_blank">
- <Container>
+ <a href="https://www.youtube.com/watch?v=gwlDorikqgY" target="_blank">
+ <div className={styles.playerpreview}>
<img
style={{
boxShadow: "var(--box-shadow)",
@@ -36,7 +23,7 @@ export const PlayerPreview: React.FC = () => {
>
Watch 2 min video
</div>
- </Container>
- </A>
+ </div>
+ </a>
);
};
diff --git a/packages/docs/components/LandingPage/PricingTable.tsx b/packages/docs/components/LandingPage/PricingTable.tsx
index 5a5139eb98..352231ebc9 100644
--- a/packages/docs/components/LandingPage/PricingTable.tsx
+++ b/packages/docs/components/LandingPage/PricingTable.tsx
@@ -1,135 +1,39 @@
import React, { useState } from "react";
-import styled, { css } from "styled-components";
import { BlueButton } from "../layout/Button";
-import { mobile } from "../layout/layout";
import { Spacer } from "../layout/Spacer";
import { PeriodSelector } from "../PeriodSelector";
import { Triangle } from "../Triangle";
+import styles from "./pricing.module.css";
enum Period {
Monthly = "monthly",
Yearly = "yearly",
}
-const PricingRow = styled.div`
- display: flex;
- flex-direction: row;
- ${mobile`
- flex-direction: column;
- align-items: center;
- `}
-`;
-
-const Panel = styled.div`
- 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: 500px;
- display: flex;
- flex-direction: column;
- ul {
- text-align: left;
- list-style-type: none;
- padding-left: 0;
- }
- li {
- margin-top: 12px;
- margin-bottom: 12px;
- display: flex;
- color: var(--text-color);
- font-size: 0.95em;
- }
-`;
-
-const PerPeriod = styled.div`
- font-weight: 500;
- margin-top: -7px;
- font-size: 0.9em;
-`;
-
-const gradient = css`
- -webkit-background-clip: text;
- -moz-background-clip: text;
- background-clip: text;
- -webkit-text-fill-color: transparent;
- -moz-text-fill-color: transparent;
- text-fill-color: transparent;
-`;
-
-const Price = styled.div`
- font-size: 60px;
- font-weight: 700;
- margin-top: -5px;
-`;
-
-const FreePrice = styled(Price)`
- background: linear-gradient(to right, #4290f5, #42e9f5);
- ${gradient};
-`;
-
-const GradientPrice = styled(Price)`
- background: linear-gradient(to right, #e01d67, #79367a);
- ${gradient};
-`;
-
-const OrangePrice = styled(Price)`
- background: linear-gradient(to right, #f5ad43, #fd764a);
- ${gradient};
-`;
-
-const Portion = styled.div`
- flex: 1;
- ${mobile`
- max-width: 500px;
- width: 100%;
- `}
-`;
-
-const TargetTitle = styled.div`
- border-bottom: 1px solid var(--text-color);
- font-weight: 600;
- margin-bottom: 20px;
-`;
-
-const BulletContainer = styled.div`
- margin-right: 8px;
- display: inline-flex;
- justify-content: center;
- margin-top: 5px;
-`;
-
const Bullet: React.FC<{ color: string }> = ({ color }) => {
return (
- <BulletContainer>
+ <div className={styles.bulletcontainer}>
<Triangle size={15} opacity={1} color1={color} />
- </BulletContainer>
+ </div>
);
};
-const A = styled.a`
- &:hover {
- text-decoration: none;
- }
- color: inherit;
-`;
-
export const PricingTable: React.FC<{}> = () => {
const [period, setPeriod] = useState(Period.Monthly);
return (
<div>
<PeriodSelector period={period} setPeriod={setPeriod} />
- <PricingRow>
- <Portion>
- <TargetTitle>Individuals &amp; Small teams</TargetTitle>
- <Panel>
+ <div className={styles.pricingrow}>
+ <div className={styles.portion}>
+ <div className={styles.targettitle}>
+ Individuals &amp; Small teams
+ </div>
+ <div className={styles.panel}>
<strong>Completely</strong>
- <FreePrice>Free</FreePrice>
- <PerPeriod>forever!</PerPeriod>
+ <div className={[styles.tableprice, styles.freeprice].join(" ")}>
+ Free
+ </div>
+ <div className={styles.perperiod}>forever!</div>
<ul>
<li>
<Bullet color="#4290f5" />
@@ -148,22 +52,24 @@ export const PricingTable: React.FC<{}> = () => {
<BlueButton fullWidth disabled loading={false} size="bg">
No signup required
</BlueButton>
- </Panel>
- </Portion>
+ </div>
+ </div>
<Spacer />
<Spacer />
<Spacer />
- <Portion style={{ flex: 2 }}>
- <TargetTitle>Companies</TargetTitle>
- <PricingRow>
- <Panel>
+ <div className={styles.portion} style={{ flex: 2 }}>
+ <div className={styles.targettitle}>Companies</div>
+ <div className={styles.pricingrow}>
+ <div className={styles.panel}>
<strong>Developer seat</strong>
- <GradientPrice>
+ <div
+ className={[styles.tableprice, styles.gradientprice].join(" ")}
+ >
{period === Period.Monthly ? "$15" : "$150"}
- </GradientPrice>
- <PerPeriod>
+ </div>
+ <div className={styles.perperiod}>
per {period === Period.Monthly ? "month" : "year"}
- </PerPeriod>
+ </div>
<ul>
<li>
<Bullet color="#79367a" />
@@ -184,25 +90,31 @@ export const PricingTable: React.FC<{}> = () => {
</li>
</ul>
<div style={{ flex: 1 }} />
- <A href="https://companies.remotion.dev" target="_blank">
+ <a
+ className={styles.pricinga}
+ href="https://companies.remotion.dev"
+ target="_blank"
+ >
<div>
<BlueButton fullWidth loading={false} size="bg">
Buy a license
</BlueButton>
</div>
- </A>
- </Panel>
+ </a>
+ </div>
<Spacer />
<Spacer />
<Spacer />
- <Panel>
+ <div className={styles.panel}>
<strong>Cloud rendering seat</strong>
- <OrangePrice>
+ <div
+ className={[styles.tableprice, styles.orangeprice].join(" ")}
+ >
{period === Period.Monthly ? "$10" : "$100"}
- </OrangePrice>
- <PerPeriod>
+ </div>
+ <div className={styles.perperiod}>
per {period === Period.Monthly ? "month" : "year"}
- </PerPeriod>
+ </div>
<ul>
<li>
<Bullet color="#f5ad43" />
@@ -219,17 +131,21 @@ export const PricingTable: React.FC<{}> = () => {
</li>
</ul>
<div style={{ flex: 1 }} />
- <A href="https://companies.remotion.dev" target="_blank">
+ <a
+ className={styles.pricinga}
+ href="https://companies.remotion.dev"
+ target="_blank"
+ >
<div>
<BlueButton fullWidth loading={false} size="bg">
Buy a license
</BlueButton>
</div>
- </A>
- </Panel>
- </PricingRow>
- </Portion>
- </PricingRow>
+ </a>
+ </div>
+ </div>
+ </div>
+ </div>
</div>
);
};
diff --git a/packages/docs/components/LandingPage/Programmatic.tsx b/packages/docs/components/LandingPage/Programmatic.tsx
index c5d0f08a36..383dae7588 100644
--- a/packages/docs/components/LandingPage/Programmatic.tsx
+++ b/packages/docs/components/LandingPage/Programmatic.tsx
@@ -1,16 +1,7 @@
import { Player, PlayerRef } from "@remotion/player";
import React, { useCallback, useEffect, useRef, useState } from "react";
-import styled from "styled-components";
-import { mobile } from "../layout/layout";
import { GithubDemo, GithubResponse } from "./GithubDemo";
-
-const MobilePlayer = styled.div`
- width: 500px;
- position: relative;
- ${mobile`
- width: 100%;
- `}
-`;
+import styles from "./mobileplayer.module.css";
export const ProgrammaticContent: React.FC<{ data: GithubResponse | null }> = ({
data,
@@ -51,7 +42,7 @@ export const ProgrammaticContent: React.FC<{ data: GithubResponse | null }> = ({
}, [data, isIntersecting]);
return (
- <MobilePlayer ref={containerRef}>
+ <div className={styles.mobileplayer} ref={containerRef}>
<Player
ref={playerRef}
component={GithubDemo}
@@ -63,6 +54,6 @@ export const ProgrammaticContent: React.FC<{ data: GithubResponse | null }> = ({
style={{ width: "100%" }}
inputProps={{ data }}
/>
- </MobilePlayer>
+ </div>
);
};
diff --git a/packages/docs/components/LandingPage/WriteInReact.tsx b/packages/docs/components/LandingPage/WriteInReact.tsx
index d41db2367f..606efde69e 100644
--- a/packages/docs/components/LandingPage/WriteInReact.tsx
+++ b/packages/docs/components/LandingPage/WriteInReact.tsx
@@ -1,47 +1,15 @@
import React from "react";
-import styled from "styled-components";
-import { mobile } from "../layout/layout";
import { GetStarted } from "./GetStartedStrip";
import { PlayerPreview } from "./PlayerPreview";
-
-const Row = styled.div`
- flex-direction: row;
- display: flex;
- ${mobile`
- flex-direction: column;
- `}
-`;
-
-const Title = styled.h1`
- font-size: 5em;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
- Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
- font-weight: 700;
- line-height: 1;
- -webkit-text-fill-color: transparent;
- background: linear-gradient(
- to right,
- var(--text-color),
- var(--light-text-color)
- );
- -webkit-background-clip: text;
- width: 500px;
-`;
-
-const Right = styled.div`
- flex: 1;
- ${mobile`
- margin-top: 30px;
- `}
-`;
+import styles from "./writeinreact.module.css";
export const WriteInReact: React.FC = () => {
return (
- <Row>
+ <div className={styles.writeincss}>
<div style={{ flex: 1 }}>
- <Title>
+ <h1 className={styles.writeincsstitle}>
Write videos <br /> in React.
- </Title>
+ </h1>
<p>
Use your React knowledge to create real MP4 videos. <br /> Scale your
video production using server-side rendering and parametrization.
@@ -49,9 +17,9 @@ export const WriteInReact: React.FC = () => {
<GetStarted></GetStarted>
</div>
- <Right>
+ <div className={styles.writeright}>
<PlayerPreview />
- </Right>
- </Row>
+ </div>
+ </div>
);
};
diff --git a/packages/docs/components/LandingPage/if-you-know-react.tsx b/packages/docs/components/LandingPage/if-you-know-react.tsx
index e82781426a..760b05c3be 100644
--- a/packages/docs/components/LandingPage/if-you-know-react.tsx
+++ b/packages/docs/components/LandingPage/if-you-know-react.tsx
@@ -21,7 +21,7 @@ export const IfYouKnowReact: React.FC = () => {
Learn the fundamentals in just a few minutes.
<Spacer></Spacer>
<Spacer></Spacer>
- <a className={styles.a} href="/docs/the-fundamentals">
+ <a className={styles.aknow} href="/docs/the-fundamentals">
<BlueButton size="sm" fullWidth={false} loading={false}>
Learn Remotion
</BlueButton>
diff --git a/packages/docs/components/LandingPage/ifyouknowreact.module.css b/packages/docs/components/LandingPage/ifyouknowreact.module.css
index 408a6bdb68..2736c66935 100644
--- a/packages/docs/components/LandingPage/ifyouknowreact.module.css
+++ b/packages/docs/components/LandingPage/ifyouknowreact.module.css
@@ -21,11 +21,11 @@
-webkit-background-clip: text;
}
-.a {
+.aknow {
display: inline-block;
}
-.a:hover  {
+.aknow:hover  {
text-decoration: none;
}
@@ -39,7 +39,7 @@
.ifyouknowtitle {
text-align: left;
}
- .a {
+ .aknow {
margin-bottom: 80px;
}
}
diff --git a/packages/docs/components/LandingPage/mobileplayer.module.css b/packages/docs/components/LandingPage/mobileplayer.module.css
new file mode 100644
index 0000000000..3820e56a84
--- /dev/null
+++ b/packages/docs/components/LandingPage/mobileplayer.module.css
@@ -0,0 +1,10 @@
+.mobileplayer {
+ width: 500px;
+ position: relative;
+}
+
+@media screen and (max-width: 900px) {
+ .mobileplayer {
+ width: 100%;
+ }
+}
diff --git a/packages/docs/components/LandingPage/parametrize.module.css b/packages/docs/components/LandingPage/parametrize.module.css
new file mode 100644
index 0000000000..6fb9efc38d
--- /dev/null
+++ b/packages/docs/components/LandingPage/parametrize.module.css
@@ -0,0 +1,32 @@
+.parametrizerow {
+ display: flex;
+ flex-direction: row;
+ text-align: left;
+ align-items: center;
+}
+
+@media screen and (max-width: 900px) {
+ .parametrizerow {
+ flex-direction: column;
+ align-items: flex-start;
+ }
+}
+
+.parametrizetitle {
+ font-size: 2.5em;
+ font-weight: 700;
+ font-family: --apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
+ line-height: 1.1;
+ text-align: left;
+}
+
+.parametrizegradient {
+ background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));
+ -webkit-text-fill-color: transparent;
+ -webkit-background-clip: text;
+}
+
+.parametrizeinput {
+ color: var(--text-color);
+}
diff --git a/packages/docs/components/LandingPage/parametrize.tsx b/packages/docs/components/LandingPage/parametrize.tsx
index 5545836d20..081cf7993f 100644
--- a/packages/docs/components/LandingPage/parametrize.tsx
+++ b/packages/docs/components/LandingPage/parametrize.tsx
@@ -1,52 +1,9 @@
import React, { useEffect, useReducer, useRef, useState } from "react";
-import styled from "styled-components";
import { BlueButton } from "../layout/Button";
-import { mobile } from "../layout/layout";
import { GithubResponse } from "./GithubDemo";
+import styles from "./parametrize.module.css";
import { ProgrammaticContent } from "./Programmatic";
-const Row = styled.div`
- display: flex;
- flex-direction: row;
- text-align: left;
- align-items: center;
- ${mobile`
- flex-direction: column;
- align-items: flex-start;
- `}
-`;
-
-const Title = styled.h2`
- font-size: 2.5em;
- font-weight: 700;
- font-family: --apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
- Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
- line-height: 1.1;
- text-align: left;
-`;
-
-const Mp4 = styled.span`
- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));
- -webkit-text-fill-color: transparent;
- -webkit-background-clip: text;
-`;
-
-const SubmitButton = styled.button`
- appearance: none;
- padding: 14px 16px;
- background-color: rgb(66, 144, 245);
- color: white;
- border: none;
- font-weight: bold;
- border-radius: 3px;
- font-size: 14px;
- cursor: pointer;
-`;
-
-const Input = styled.input`
- color: var(--text-color);
-`;
-
const cache: { [key: string]: GithubResponse } = {};
const makeRequest = async (username: string): Promise<GithubResponse> => {
@@ -135,12 +92,13 @@ export const Parametrize: React.FC = () => {
}, [username]);
return (
- <Row>
+ <div className={styles.parametrizerow}>
<div style={{ flex: 1 }}>
- <Title>
- <Mp4>Programmatic</Mp4> content <br />
+ <h2 className={styles.parametrizetitle}>
+ <span className={styles.parametrizegradient}>Programmatic</span>{" "}
+ content <br />
and rendering
- </Title>
+ </h2>
<p>
Fetch data from an API and use it as the content. <br />
Render videos programmatically using our server-side APIs.
@@ -161,12 +119,13 @@ export const Parametrize: React.FC = () => {
}}
style={{ display: "flex", flexDirection: "row" }}
>
- <Input
+ <input
+ className={styles.parametrizeinput}
autoFocus
ref={ref}
type="text"
placeholder="Your Github username"
- ></Input>{" "}
+ ></input>{" "}
<div style={{ width: 8, display: "inline-block" }}></div>
<BlueButton
loading={state.type === "loading"}
@@ -192,6 +151,6 @@ export const Parametrize: React.FC = () => {
<ProgrammaticContent
data={state.type === "loaded" ? state.response : null}
/>
- </Row>
+ </div>
);
};
diff --git a/packages/docs/components/LandingPage/playerpreview.module.css b/packages/docs/components/LandingPage/playerpreview.module.css
new file mode 100644
index 0000000000..e99bd1a3de
--- /dev/null
+++ b/packages/docs/components/LandingPage/playerpreview.module.css
@@ -0,0 +1,11 @@
+.playerpreview {
+ display: flex;
+ flex: 1;
+ cursor: pointer;
+ position: relative;
+ transition: transform 0.3s;
+}
+
+.playerpreview:hover {
+ transform: scale(1.015);
+}
diff --git a/packages/docs/components/LandingPage/pricing.module.css b/packages/docs/components/LandingPage/pricing.module.css
index 7fdfed1329..9369f519b5 100644
--- a/packages/docs/components/LandingPage/pricing.module.css
+++ b/packages/docs/components/LandingPage/pricing.module.css
@@ -1,4 +1,4 @@
-.title {
+.pricingtitle {
font-size: 2.5em;
font-weight: 700;
font-family: --apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
@@ -12,12 +12,118 @@
-webkit-background-clip: text;
}
-.container {
+.pricingcontainer {
text-align: center;
}
+.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: 500px;
+ 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;
+}
+
+.perperiod {
+ font-weight: 500;
+ margin-top: -7px;
+ font-size: 0.9em;
+}
+
+.tableprice {
+ font-size: 60px;
+ font-weight: 700;
+ margin-top: -5px;
+}
+
+.freeprice {
+ background: linear-gradient(to right, #4290f5, #42e9f5);
+ -webkit-background-clip: text;
+ -moz-background-clip: text;
+ background-clip: text;
+ -webkit-text-fill-color: transparent;
+ -moz-text-fill-color: transparent;
+ text-fill-color: transparent;
+}
+
+.gradientprice {
+ background: linear-gradient(to right, #e01d67, #79367a);
+ -webkit-background-clip: text;
+ -moz-background-clip: text;
+ background-clip: text;
+ -webkit-text-fill-color: transparent;
+ -moz-text-fill-color: transparent;
+ text-fill-color: transparent;
+}
+
+.orangeprice {
+ background: linear-gradient(to right, #f5ad43, #fd764a);
+ -webkit-background-clip: text;
+ -moz-background-clip: text;
+ background-clip: text;
+ -webkit-text-fill-color: transparent;
+ -moz-text-fill-color: transparent;
+ text-fill-color: transparent;
+}
+
+.portion {
+ flex: 1;
+}
+
+.targettitle {
+ border-bottom: 1px solid var(--text-color);
+ font-weight: 600;
+ margin-bottom: 20px;
+}
+
+.bulletcontainer {
+ margin-right: 8px;
+ display: inline-flex;
+ justify-content: center;
+ margin-top: 5px;
+}
+
+.pricinga {
+ color: inherit;
+}
+
+.pricinga:hover {
+ text-decoration: none;
+}
+
@media screen and (max-width: 900px) {
- .container {
+ .pricingcontainer {
text-align: left;
}
+ .pricingrow {
+ flex-direction: column;
+ align-items: center;
+ }
+ .portion {
+ max-width: 500px;
+ width: 100%;
+ }
}
diff --git a/packages/docs/components/LandingPage/real-mp4-videos.tsx b/packages/docs/components/LandingPage/real-mp4-videos.tsx
index ad6fe37223..b1108db0ec 100644
--- a/packages/docs/components/LandingPage/real-mp4-videos.tsx
+++ b/packages/docs/components/LandingPage/real-mp4-videos.tsx
@@ -1,60 +1,5 @@
import React, { useCallback, useEffect, useRef, useState } from "react";
-import styled, { keyframes } from "styled-components";
-import { mobile } from "../layout/layout";
-
-const Row = styled.div`
- display: flex;
- flex-direction: row;
- ${mobile`
- flex-direction: column-reverse;
- `}
-`;
-
-const Title = styled.h2`
- font-size: 2.5em;
- font-weight: 700;
- font-family: --apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
- Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
- line-height: 1.1;
-`;
-
-const Mp4 = styled.span`
- background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));
- -webkit-text-fill-color: transparent;
- -webkit-background-clip: text;
-`;
-
-const animation = keyframes`
- from {
- opacity: 0;
- transform: translateY(50px);
- }
- to {
- opacity: 1;
- transform: translateY(0px);
- }
-`;
-
-const Mp4Container = styled.div`
- flex: 1;
- justify-content: flex-end;
- ${mobile`
- justify-content: flex-start;
- `}
- align-items: center;
- display: flex;
-`;
-
-const Icon = styled.img<{
- playing: boolean;
-}>`
- animation: ${animation} 0.6s;
- animation-play-state: ${(props) => (props.playing ? "running" : "paused")};
- ${mobile`
- animation: none;
- margin-bottom: 30px;
- `}
-`;
+import styles from "./realvideos.module.css";
export const RealMP4Videos: React.FC = () => {
const ref = useRef<HTMLDivElement>(null);
@@ -79,24 +24,27 @@ export const RealMP4Videos: React.FC = () => {
}, []);
return (
- <Row ref={ref}>
+ <div className={styles.realvideos} ref={ref}>
<div>
- <Title>
- Real <Mp4>.mp4</Mp4> videos
- </Title>
+ <h2 className={styles.realtitle}>
+ Real <span className={styles.realgradient}>.mp4</span> videos
+ </h2>
<p>
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>
- <Mp4Container>
- <Icon
- playing={isIntersecting}
+ <div className={styles.realmp4container}>
+ <img
src="/img/mp4.png"
- style={{ width: 110 }}
- ></Icon>
- </Mp4Container>
- </Row>
+ className={styles.icon}
+ style={{
+ width: 110,
+ animationPlayState: isIntersecting ? "running" : "paused",
+ }}
+ ></img>
+ </div>
+ </div>
);
};
diff --git a/packages/docs/components/LandingPage/realvideos.module.css b/packages/docs/components/LandingPage/realvideos.module.css
new file mode 100644
index 0000000000..fff1cc82ce
--- /dev/null
+++ b/packages/docs/components/LandingPage/realvideos.module.css
@@ -0,0 +1,53 @@
+.realvideos {
+ display: flex;
+ flex-direction: row;
+}
+
+.realtitle {
+ font-size: 2.5em;
+ font-weight: 700;
+ font-family: --apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
+ line-height: 1.1;
+}
+
+.realgradient {
+ background: linear-gradient(to right, rgb(66, 144, 245), rgb(66, 233, 245));
+ -webkit-text-fill-color: transparent;
+ -webkit-background-clip: text;
+}
+
+.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/docs/components/LandingPage/writeinreact.module.css b/packages/docs/components/LandingPage/writeinreact.module.css
new file mode 100644
index 0000000000..7f3fdbe67a
--- /dev/null
+++ b/packages/docs/components/LandingPage/writeinreact.module.css
@@ -0,0 +1,33 @@
+.writeincss {
+ flex-direction: row;
+ display: flex;
+}
+
+.writeincsstitle {
+ font-size: 5em;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
+ font-weight: 700;
+ line-height: 1;
+ -webkit-text-fill-color: transparent;
+ background: linear-gradient(
+ to right,
+ var(--text-color),
+ var(--light-text-color)
+ );
+ -webkit-background-clip: text;
+ width: 500px;
+}
+
+.writeright {
+ flex: 1;
+}
+
+@media screen and (max-width: 900px) {
+ .writeincss {
+ flex-direction: column;
+ }
+ .writeright {
+ margin-top: 30px;
+ }
+}
diff --git a/packages/docs/components/layout/layout.ts b/packages/docs/components/layout/layout.ts
deleted file mode 100644
index 32080c3802..0000000000
--- a/packages/docs/components/layout/layout.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { css } from "styled-components";
-
-export const BREAKPOINT_WIDTH = 900;
-
-export const mobile = (arg0: any, ...args: any[]) => css`
- @media (max-width: ${BREAKPOINT_WIDTH}px) {
- ${css(arg0, ...args)};
- }
-`;
diff --git a/packages/docs/package-lock.json b/packages/docs/package-lock.json
index c1525653dc..14aa98e1dd 100644
--- a/packages/docs/package-lock.json
+++ b/packages/docs/package-lock.json
@@ -14,13 +14,11 @@
"@remotion/player": "^2.1.2",
"@splitbee/web": "^0.2.4",
"@types/color-namer": "^1.3.0",
- "@types/styled-components": "^5.1.9",
"clsx": "^1.1.1",
"color-namer": "1.4.0",
"polished": "4.1.2",
"prism-react-renderer": "^1.1.1",
- "remotion": "^2.1.2",
- "styled-components": "^5.3.0"
+ "remotion": "^2.1.2"
}
},
"node_modules/@algolia/autocomplete-core": {
@@ -1831,29 +1829,6 @@
"node": ">=10"
}
},
- "node_modules/@emotion/is-prop-valid": {
- "version": "0.8.8",
- "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",
- "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==",
- "dependencies": {
- "@emotion/memoize": "0.7.4"
- }
- },
- "node_modules/@emotion/memoize": {
- "version": "0.7.4",
- "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz",
- "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw=="
- },
- "node_modules/@emotion/stylis": {
- "version": "0.8.5",
- "resolved": "https://registry.npmjs.org/@emotion/stylis/-/stylis-0.8.5.tgz",
- "integrity": "sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ=="
- },
- "node_modules/@emotion/unitless": {
- "version": "0.7.5",
- "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz",
- "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg=="
- },
"node_modules/@endiliey/static-site-generator-webpack-plugin": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@endiliey/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.0.tgz",
@@ -2393,15 +2368,6 @@
"@types/unist": "*"
}
},
- "node_modules/@types/hoist-non-react-statics": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",
- "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",
- "dependencies": {
- "@types/react": "*",
- "hoist-non-react-statics": "^3.3.0"
- }
- },
"node_modules/@types/html-minifier-terser": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz",
@@ -2440,26 +2406,11 @@
"resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-5.0.3.tgz",
"integrity": "sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw=="
},
- "node_modules/@types/prop-types": {
- "version": "15.7.3",
- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz",
- "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="
- },
"node_modules/@types/q": {
"version": "1.5.4",
"resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.4.tgz",
"integrity": "sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug=="
},
- "node_modules/@types/react": {
- "version": "17.0.5",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.5.tgz",
- "integrity": "sha512-bj4biDB9ZJmGAYTWSKJly6bMr4BLUiBrx9ujiJEoP9XIDY9CTaPGxE5QWN/1WjpPLzYF7/jRNnV2nNxNe970sw==",
- "dependencies": {
- "@types/prop-types": "*",
- "@types/scheduler": "*",
- "csstype": "^3.0.2"
- }
- },
"node_modules/@types/sax": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.1.tgz",
@@ -2468,21 +2419,6 @@
"@types/node": "*"
}
},
- "node_modules/@types/scheduler": {
- "version": "0.16.1",
- "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz",
- "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA=="
- },
- "node_modules/@types/styled-components": {
- "version": "5.1.9",
- "resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.9.tgz",
- "integrity": "sha512-kbEG6YlwK8rucITpKEr6pA4Ho9KSQHUUOzZ9lY3va1mtcjvS3D0wDciFyHEiNHKLL/npZCKDQJqm0x44sPO9oA==",
- "dependencies": {
- "@types/hoist-non-react-statics": "*",
- "@types/react": "*",
- "csstype": "^3.0.2"
- }
- },
"node_modules/@types/unist": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.3.tgz",
@@ -3108,25 +3044,6 @@
"@babel/helper-define-polyfill-provider": "^0.2.0"
}
},
- "node_modules/babel-plugin-styled-components": {
- "version": "1.12.0",
- "resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-1.12.0.tgz",
- "integrity": "sha512-FEiD7l5ZABdJPpLssKXjBUJMYqzbcNzBowfXDCdJhOpbhWiewapUaY+LZGT8R4Jg2TwOjGjG4RKeyrO5p9sBkA==",
- "dependencies": {
- "@babel/helper-annotate-as-pure": "^7.0.0",
- "@babel/helper-module-imports": "^7.0.0",
- "babel-plugin-syntax-jsx": "^6.18.0",
- "lodash": "^4.17.11"
- },
- "peerDependencies": {
- "styled-components": ">= 2"
- }
- },
- "node_modules/babel-plugin-syntax-jsx": {
- "version": "6.18.0",
- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz",
- "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY="
- },
"node_modules/bail": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz",
@@ -3467,11 +3384,6 @@
"node": ">= 6"
}
},
- "node_modules/camelize": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz",
- "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs="
- },
"node_modules/caniuse-api": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz",
@@ -4185,14 +4097,6 @@
"node": ">=8"
}
},
- "node_modules/css-color-keywords": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz",
- "integrity": "sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU=",
- "engines": {
- "node": ">=4"
- }
- },
"node_modules/css-color-names": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-1.0.1.tgz",
@@ -4275,16 +4179,6 @@
"resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz",
"integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w=="
},
- "node_modules/css-to-react-native": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.0.0.tgz",
- "integrity": "sha512-Ro1yETZA813eoyUp2GDBhG2j+YggidUmzO1/v9eYBKR2EHVEniE2MI/NqpTQ954BMpTPZFsGNPm46qFB9dpaPQ==",
- "dependencies": {
- "camelize": "^1.0.0",
- "css-color-keywords": "^1.0.0",
- "postcss-value-parser": "^4.0.2"
- }
- },
"node_modules/css-tree": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz",
@@ -4411,11 +4305,6 @@
"node": ">=8.0.0"
}
},
- "node_modules/csstype": {
- "version": "3.0.8",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz",
- "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw=="
- },
"node_modules/d": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz",
@@ -10838,11 +10727,6 @@
"node": ">=8"
}
},
- "node_modules/shallowequal": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",
- "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="
- },
"node_modules/shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
@@ -11417,35 +11301,6 @@
"inline-style-parser": "0.1.1"
}
},
- "node_modules/styled-components": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.0.tgz",
- "integrity": "sha512-bPJKwZCHjJPf/hwTJl6TbkSZg/3evha+XPEizrZUGb535jLImwDUdjTNxXqjjaASt2M4qO4AVfoHJNe3XB/tpQ==",
- "dependencies": {
- "@babel/helper-module-imports": "^7.0.0",
- "@babel/traverse": "^7.4.5",
- "@emotion/is-prop-valid": "^0.8.8",
- "@emotion/stylis": "^0.8.4",
- "@emotion/unitless": "^0.7.4",
- "babel-plugin-styled-components": ">= 1.12.0",
- "css-to-react-native": "^3.0.0",
- "hoist-non-react-statics": "^3.0.0",
- "shallowequal": "^1.1.0",
- "supports-color": "^5.5.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/styled-components"
- },
- "peerDependencies": {
- "react": ">= 16.8.0",
- "react-dom": ">= 16.8.0",
- "react-is": ">= 16.8.0"
- }
- },
"node_modules/stylehacks": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.0.0.tgz",
@@ -14910,29 +14765,6 @@
"tslib": "^2.1.0"
}
},
- "@emotion/is-prop-valid": {
- "version": "0.8.8",
- "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",
- "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==",
- "requires": {
- "@emotion/memoize": "0.7.4"
- }
- },
- "@emotion/memoize": {
- "version": "0.7.4",
- "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz",
- "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw=="
- },
- "@emotion/stylis": {
- "version": "0.8.5",
- "resolved": "https://registry.npmjs.org/@emotion/stylis/-/stylis-0.8.5.tgz",
- "integrity": "sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ=="
- },
- "@emotion/unitless": {
- "version": "0.7.5",
- "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz",
- "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg=="
- },
"@endiliey/static-site-generator-webpack-plugin": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@endiliey/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.0.tgz",
@@ -15389,15 +15221,6 @@
"@types/unist": "*"
}
},
- "@types/hoist-non-react-statics": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",
- "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",
- "requires": {
- "@types/react": "*",
- "hoist-non-react-statics": "^3.3.0"
- }
- },
"@types/html-minifier-terser": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz",
@@ -15436,26 +15259,11 @@
"resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-5.0.3.tgz",
"integrity": "sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw=="
},
- "@types/prop-types": {
- "version": "15.7.3",
- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz",
- "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="
- },
"@types/q": {
"version": "1.5.4",
"resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.4.tgz",
"integrity": "sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug=="
},
- "@types/react": {
- "version": "17.0.5",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.5.tgz",
- "integrity": "sha512-bj4biDB9ZJmGAYTWSKJly6bMr4BLUiBrx9ujiJEoP9XIDY9CTaPGxE5QWN/1WjpPLzYF7/jRNnV2nNxNe970sw==",
- "requires": {
- "@types/prop-types": "*",
- "@types/scheduler": "*",
- "csstype": "^3.0.2"
- }
- },
"@types/sax": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.1.tgz",
@@ -15464,21 +15272,6 @@
"@types/node": "*"
}
},
- "@types/scheduler": {
- "version": "0.16.1",
- "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz",
- "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA=="
- },
- "@types/styled-components": {
- "version": "5.1.9",
- "resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.9.tgz",
- "integrity": "sha512-kbEG6YlwK8rucITpKEr6pA4Ho9KSQHUUOzZ9lY3va1mtcjvS3D0wDciFyHEiNHKLL/npZCKDQJqm0x44sPO9oA==",
- "requires": {
- "@types/hoist-non-react-statics": "*",
- "@types/react": "*",
- "csstype": "^3.0.2"
- }
- },
"@types/unist": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.3.tgz",
@@ -16016,22 +15809,6 @@
"@babel/helper-define-polyfill-provider": "^0.2.0"
}
},
- "babel-plugin-styled-components": {
- "version": "1.12.0",
- "resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-1.12.0.tgz",
- "integrity": "sha512-FEiD7l5ZABdJPpLssKXjBUJMYqzbcNzBowfXDCdJhOpbhWiewapUaY+LZGT8R4Jg2TwOjGjG4RKeyrO5p9sBkA==",
- "requires": {
- "@babel/helper-annotate-as-pure": "^7.0.0",
- "@babel/helper-module-imports": "^7.0.0",
- "babel-plugin-syntax-jsx": "^6.18.0",
- "lodash": "^4.17.11"
- }
- },
- "babel-plugin-syntax-jsx": {
- "version": "6.18.0",
- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz",
- "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY="
- },
"bail": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz",
@@ -16320,11 +16097,6 @@
"resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
"integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA=="
},
- "camelize": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz",
- "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs="
- },
"caniuse-api": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz",
@@ -16930,11 +16702,6 @@
"resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz",
"integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA=="
},
- "css-color-keywords": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz",
- "integrity": "sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU="
- },
"css-color-names": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-1.0.1.tgz",
@@ -17004,16 +16771,6 @@
"resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz",
"integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w=="
},
- "css-to-react-native": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.0.0.tgz",
- "integrity": "sha512-Ro1yETZA813eoyUp2GDBhG2j+YggidUmzO1/v9eYBKR2EHVEniE2MI/NqpTQ954BMpTPZFsGNPm46qFB9dpaPQ==",
- "requires": {
- "camelize": "^1.0.0",
- "css-color-keywords": "^1.0.0",
- "postcss-value-parser": "^4.0.2"
- }
- },
"css-tree": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz",
@@ -17112,11 +16869,6 @@
"css-tree": "^1.1.2"
}
},
- "csstype": {
- "version": "3.0.8",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz",
- "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw=="
- },
"d": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz",
@@ -22404,11 +22156,6 @@
"kind-of": "^6.0.2"
}
},
- "shallowequal": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",
- "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="
- },
"shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
@@ -22889,23 +22636,6 @@
"inline-style-parser": "0.1.1"
}
},
- "styled-components": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.0.tgz",
- "integrity": "sha512-bPJKwZCHjJPf/hwTJl6TbkSZg/3evha+XPEizrZUGb535jLImwDUdjTNxXqjjaASt2M4qO4AVfoHJNe3XB/tpQ==",
- "requires": {
- "@babel/helper-module-imports": "^7.0.0",
- "@babel/traverse": "^7.4.5",
- "@emotion/is-prop-valid": "^0.8.8",
- "@emotion/stylis": "^0.8.4",
- "@emotion/unitless": "^0.7.4",
- "babel-plugin-styled-components": ">= 1.12.0",
- "css-to-react-native": "^3.0.0",
- "hoist-non-react-statics": "^3.0.0",
- "shallowequal": "^1.1.0",
- "supports-color": "^5.5.0"
- }
- },
"stylehacks": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.0.0.tgz",
diff --git a/packages/docs/package.json b/packages/docs/package.json
index 95ce1c3b9a..be8180c01e 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -19,13 +19,11 @@
"@remotion/player": "^2.1.2",
"@splitbee/web": "^0.2.4",
"@types/color-namer": "^1.3.0",
- "@types/styled-components": "^5.1.9",
"clsx": "^1.1.1",
"color-namer": "1.4.0",
"polished": "4.1.2",
"prism-react-renderer": "^1.1.1",
- "remotion": "^2.1.2",
- "styled-components": "^5.3.0"
+ "remotion": "^2.1.2"
},
"browserslist": {
"production": [