Skip to content

🎥 Make videos programmatically with React

Revert layout changes in the showcase page + update items (#8538)

Mehmet476994bb9a41
diff --git a/packages/docs/src/data/showcase-videos.tsx b/packages/docs/src/data/showcase-videos.tsx
index c7fe97234f..c228ccd8ff 100644
--- a/packages/docs/src/data/showcase-videos.tsx
+++ b/packages/docs/src/data/showcase-videos.tsx
@@ -227,31 +227,6 @@ export const showcaseVideos: ShowcaseVideo[] = [
name: 'Submagic',
},
},
- {
- title: 'HeyGen - Video Agent',
- type: 'mux_video',
- time: '75.5',
- muxId: 'pKHRj00yo6eV1nHaXWSsjzvP1rBjQkey68qAp8gFy8Wk',
- description:
- "Fully made with HeyGen's Video Agent, powered by Remotion. Avatar, script, motion graphics, and final edits were all created just by prompting.",
- height: 1080,
- width: 1920,
- submittedOn: new Date('01-29-2026'),
- links: [
- {
- type: 'website',
- url: 'https://www.heygen.com/',
- },
- {
- type: 'video',
- url: 'https://x.com/joshua_xu_/status/2016714990242439600',
- },
- ],
- author: {
- url: 'https://x.com/joshua_xu_',
- name: 'Joshua Xu',
- },
- },
{
title: 'Hello Météo - Weather app',
type: 'mux_video',
diff --git a/packages/docs/src/pages/showcase/index.tsx b/packages/docs/src/pages/showcase/index.tsx
index 675887c5d2..8f05dd2554 100644
--- a/packages/docs/src/pages/showcase/index.tsx
+++ b/packages/docs/src/pages/showcase/index.tsx
@@ -117,17 +117,18 @@ const Showcase = () => {
<main>
<section className={styles.gallerySection}>
<div className={styles.container}>
- <div className={styles.videosGrid}>
+ <div className={styles.videosMasonry}>
{shuffledShowcaseVideos.map((vid) => {
return (
- <VideoPreview
- key={vid.muxId}
- onClick={() => {
- setVideo(vid);
- setUserHasInteractedWithPage(true);
- }}
- {...vid}
- />
+ <div key={vid.muxId} className={styles.videosMasonryItem}>
+ <VideoPreview
+ onClick={() => {
+ setVideo(vid);
+ setUserHasInteractedWithPage(true);
+ }}
+ {...vid}
+ />
+ </div>
);
})}
</div>
diff --git a/packages/docs/src/pages/showcase/styles.module.css b/packages/docs/src/pages/showcase/styles.module.css
index 5514f70523..e732aa2812 100644
--- a/packages/docs/src/pages/showcase/styles.module.css
+++ b/packages/docs/src/pages/showcase/styles.module.css
@@ -43,15 +43,20 @@
padding: 20px 0 80px;
}
-.videosGrid {
- display: grid;
- gap: 24px;
- grid-template-columns: repeat(3, minmax(0, 1fr));
+.videosMasonry {
+ column-count: 3;
+ column-gap: 24px;
+}
+
+.videosMasonryItem {
+ break-inside: avoid;
+ margin-bottom: 24px;
+ width: 100%;
}
@media screen and (max-width: 996px) {
- .videosGrid {
- grid-template-columns: repeat(2, minmax(0, 1fr));
+ .videosMasonry {
+ column-count: 2;
}
}
@@ -60,8 +65,8 @@
padding: 44px 0 28px;
}
- .videosGrid {
- grid-template-columns: 1fr;
+ .videosMasonry {
+ column-count: 1;
}
.lede {