Skip to content

🎥 Make videos programmatically with React

Update index.tsx

Jonny Burgerce6a2d138a21
diff --git a/packages/docs/src/pages/4/index.tsx b/packages/docs/src/pages/4/index.tsx
index 06602c02cf..608bca5630 100644
--- a/packages/docs/src/pages/4/index.tsx
+++ b/packages/docs/src/pages/4/index.tsx
@@ -136,28 +136,23 @@ const V4: React.FC = () => {
description="Celebrate the launch of Remotion 4.0 and experience the new possibilities of media 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="Configure, queue and track renders with the newest way to render using Remotion."
/>
<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"
@@ -201,8 +196,7 @@ export const EventComp: React.FC<{
date: string;
title: string;
description: string;
- locked: boolean;
-}> = ({ date, title, description, locked }) => {
+}> = ({ date, title, description }) => {
return (
<div
style={{
@@ -213,33 +207,8 @@ export const EventComp: React.FC<{
}}
>
<p className={styles.date}>{date}</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>
- </>
- )}
+ <p className={styles.eventtitle}>{title}</p>
+ <p>{description}</p>
</div>
);
};