Skip to content

πŸŽ₯ Make videos programmatically with React

margin top

Jonny Burgerf1849246ec4a
diff --git a/packages/docs/src/css/custom.css b/packages/docs/src/css/custom.css
index 08644f1c5d..8666ad2a95 100644
--- a/packages/docs/src/css/custom.css
+++ b/packages/docs/src/css/custom.css
@@ -97,7 +97,7 @@ h6 {
--subtitle: #8d8d8d;
--border-color: rgb(42, 42, 42);
--box-shadow: 0 1px 8px rgba(255, 255, 255, 0.2);
- --ifm-out-of-focus: #eaeaea;
+ --ifm-out-of-focus: #505050;
}
[data-theme="light"] .docusaurus-highlight-code-line {
diff --git a/packages/docs/src/pages/4/index.tsx b/packages/docs/src/pages/4/index.tsx
index fb79a2ec76..e8a3220e29 100644
--- a/packages/docs/src/pages/4/index.tsx
+++ b/packages/docs/src/pages/4/index.tsx
@@ -7,6 +7,7 @@ import { Spacer } from "../../../components/layout/Spacer";
import { CoolInput } from "../../../components/TextInput";
import { Seo } from "../../components/Seo";
import styles from "./v4.module.css";
+import { DoMoreHero } from "../../components/DoMoreHero/DoMoreHero";
const spacer: React.CSSProperties = {
height: "10px",
@@ -84,6 +85,8 @@ const V4: React.FC = () => {
{Seo.renderTitle("Do more with React | Remotion 4.0")}
{Seo.renderImage("/img/remotion4.png", context.siteConfig.url)}
</Head>
+ <DoMoreHero />
+
<style>
{`
div[class^='announcementBar'] {
@@ -96,12 +99,11 @@ const V4: React.FC = () => {
<h1 className={styles.pagetitle}>Do more with React</h1>
<div style={{ display: "flex", justifyContent: "center" }}>
<p className={styles.title}>
- Watch the Remotion Keynote July 3rd at 7pm CEST
+ Discover the new capabilities of Remotion 4.0 from July 3 – July 7
</p>
</div>
<br />
<br />
- <div style={{ height: "60px" }} />
<div className={styles.grid}>
<EventComp
description="Celebrate the launch of Remotion 4.0 and experience the new possibilities of media creation with React."
@@ -194,7 +196,30 @@ export const EventComp: React.FC<{
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
- ) : null}
+ ) : (
+ <div
+ style={{
+ width: "100%",
+ aspectRatio: "16 / 9",
+ backgroundColor: "var(--ifm-out-of-focus)",
+ borderRadius: 5,
+ display: "flex",
+ justifyContent: "center",
+ alignItems: "center",
+ }}
+ >
+ <div
+ style={{
+ color: "var(--ifm-subtitle)",
+ justifyContent: "center",
+ alignItems: "center",
+ fontWeight: "bold",
+ }}
+ >
+ Check back {date}
+ </div>
+ </div>
+ )}
</div>
);
};
diff --git a/packages/docs/src/pages/4/v4.module.css b/packages/docs/src/pages/4/v4.module.css
index b6df64f819..19d764b369 100644
--- a/packages/docs/src/pages/4/v4.module.css
+++ b/packages/docs/src/pages/4/v4.module.css
@@ -1,7 +1,7 @@
.container {
position: relative;
z-index: 1;
- margin-top: 50px;
+ margin-top: -5vw;
}
.wrapper {