Skip to content

🎥 Make videos programmatically with React

calendar button

Jonny Burger1e0e8c675a41
diff --git a/packages/docs/docusaurus.config.js b/packages/docs/docusaurus.config.js
index 2b9aab0127..1afa08bdbe 100644
--- a/packages/docs/docusaurus.config.js
+++ b/packages/docs/docusaurus.config.js
@@ -175,6 +175,10 @@ const config = (mode) => ({
"data-splitbee-event": "External Link",
"data-splitbee-event-target": "Instagram",
},
+ {
+ label: "YouTube",
+ href: "https://youtube.com/@remotion_dev",
+ },
{
label: "LinkedIn",
href: "https://www.linkedin.com/company/remotion-dev/",
diff --git a/packages/docs/src/css/custom.css b/packages/docs/src/css/custom.css
index c30eddb3ca..c2738686b7 100644
--- a/packages/docs/src/css/custom.css
+++ b/packages/docs/src/css/custom.css
@@ -76,6 +76,7 @@ h6 {
--blue-underlay: #e7effe;
--blue-underlay-hover: #d5e5fd;
--light-text-color: #777;
+ --subtitle: #666;
--clear-hover: rgba(0, 0, 0, 0.04);
--border-color: rgb(234, 234, 234);
--box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
@@ -90,6 +91,7 @@ h6 {
--clear-hover: rgba(255, 255, 255, 0.06);
--blue-button-color: white;
--light-text-color: #aaa;
+ --subtitle: #8d8d8d;
--border-color: rgb(42, 42, 42);
--box-shadow: 0 1px 8px rgba(255, 255, 255, 0.2);
}
diff --git a/packages/docs/src/pages/4/index.tsx b/packages/docs/src/pages/4/index.tsx
index cfbee9748f..448d556872 100644
--- a/packages/docs/src/pages/4/index.tsx
+++ b/packages/docs/src/pages/4/index.tsx
@@ -120,23 +120,28 @@ const V4: React.FC = () => {
description="Celebrate the launch of Remotion 4.0 and experience the new possibilities of video creation with React."
date="July 3rd"
title="Keynote"
+ locked={false}
/>
<EventComp
+ locked
date="July 4th"
title="Visual editing"
description="Expose parameters to the user interface, edit them, see the result in real-time and save them back to code."
/>
<EventComp
+ locked
date="July 5th"
title="Render button"
description="Parametrize React content and export React components as videos and other media with the click of a button."
/>
<EventComp
+ locked
description="Leverage the new system for data fetching and dynamically calculating the duration and dimensions of your video."
date="July 6th"
title="Data-driven videos"
/>
<EventComp
+ locked
description="A rundown of the remaining improvements coming with Remotion 4.0."
date="July 7th"
title="Last but not least"
@@ -178,7 +183,8 @@ export const EventComp: React.FC<{
date: string;
title: string;
description: string;
-}> = ({ date, title, description }) => {
+ locked: boolean;
+}> = ({ date, title, description, locked }) => {
return (
<div
style={{
@@ -188,8 +194,33 @@ export const EventComp: React.FC<{
}}
>
<p className={styles.date}>{date}</p>
- <p className={styles.eventtitle}>{title}</p>
- <p>{description}</p>
+ {locked ? (
+ <div
+ style={{
+ display: "flex",
+ justifyContent: "center",
+ alignItems: "center",
+ width: "100%",
+ height: "100%",
+ }}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ height="1em"
+ viewBox="0 0 448 512"
+ >
+ <path
+ fill="var(--subtitle)"
+ d="M144 128v64H304V128c0-44.2-35.8-80-80-80s-80 35.8-80 80zM96 192V128C96 57.3 153.3 0 224 0s128 57.3 128 128v64h32c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H96zM48 256V448c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V256c0-8.8-7.2-16-16-16H64c-8.8 0-16 7.2-16 16z"
+ />
+ </svg>
+ </div>
+ ) : (
+ <>
+ <p className={styles.eventtitle}>{title}</p>
+ <p>{description}</p>
+ </>
+ )}
</div>
);
};
diff --git a/packages/docs/src/pages/4/v4.module.css b/packages/docs/src/pages/4/v4.module.css
index 63a755cec1..753e1b7f51 100644
--- a/packages/docs/src/pages/4/v4.module.css
+++ b/packages/docs/src/pages/4/v4.module.css
@@ -65,6 +65,10 @@
border-bottom-width: 4px;
}
+.button:focus {
+ border-bottom-width: 2px;
+}
+
.calendarbutton {
margin-top: -20px;
position: relative;
@@ -73,6 +77,7 @@
.button a {
color: white;
font-family: "GTPlanar";
+ text-decoration: none;
}
.date {