Skip to content

🎥 Make videos programmatically with React

remaining cards

Jonny Burger64d9550ced84
diff --git a/packages/docs/docs/sfx/PlayButton.tsx b/packages/docs/docs/sfx/PlayButton.tsx
index bc362a7f9a..d23bb8eba7 100644
--- a/packages/docs/docs/sfx/PlayButton.tsx
+++ b/packages/docs/docs/sfx/PlayButton.tsx
@@ -35,33 +35,35 @@ export const PlayButton: React.FC<{
);
return (
- <Button
- className={`rounded-full p-0`}
- style={{width: size, height: size}}
- onClick={toggle}
- title={playing ? 'Stop' : 'Play'}
- depth={depth}
- >
- {playing ? (
- <svg
- width={iconSize}
- height={iconSize}
- viewBox="0 0 24 24"
- fill="currentColor"
- >
- <rect x="6" y="4" width="4" height="16" />
- <rect x="14" y="4" width="4" height="16" />
- </svg>
- ) : (
- <svg
- width={iconSize}
- height={iconSize}
- viewBox="0 0 24 24"
- fill="currentColor"
- >
- <polygon points="6,4 20,12 6,20" />
- </svg>
- )}
- </Button>
+ <div style={{width: size, height: size}}>
+ <Button
+ className={`rounded-full p-0`}
+ style={{width: size, height: size}}
+ onClick={toggle}
+ title={playing ? 'Stop' : 'Play'}
+ depth={depth}
+ >
+ {playing ? (
+ <svg
+ width={iconSize}
+ height={iconSize}
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ >
+ <rect x="6" y="4" width="4" height="16" />
+ <rect x="14" y="4" width="4" height="16" />
+ </svg>
+ ) : (
+ <svg
+ width={iconSize}
+ height={iconSize}
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ >
+ <polygon points="6,4 20,12 6,20" />
+ </svg>
+ )}
+ </Button>
+ </div>
);
};
diff --git a/packages/docs/docs/shapes/arrow.mdx b/packages/docs/docs/shapes/arrow.mdx
index 7a96c363e3..df12ad33cb 100644
--- a/packages/docs/docs/shapes/arrow.mdx
+++ b/packages/docs/docs/shapes/arrow.mdx
@@ -1,4 +1,5 @@
---
+image: /generated/articles-docs-shapes-arrow.png
title: <Arrow />
crumb: '@remotion/shapes'
---
diff --git a/packages/docs/docs/shapes/make-arrow.mdx b/packages/docs/docs/shapes/make-arrow.mdx
index d86519900d..6b3b21c0b3 100644
--- a/packages/docs/docs/shapes/make-arrow.mdx
+++ b/packages/docs/docs/shapes/make-arrow.mdx
@@ -1,4 +1,5 @@
---
+image: /generated/articles-docs-shapes-make-arrow.png
title: makeArrow()
crumb: '@remotion/shapes'
---
diff --git a/packages/docs/static/generated/articles-docs-shapes-arrow.png b/packages/docs/static/generated/articles-docs-shapes-arrow.png
new file mode 100644
index 0000000000..945ebbef3d
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-shapes-arrow.png differ
diff --git a/packages/docs/static/generated/articles-docs-shapes-make-arrow.png b/packages/docs/static/generated/articles-docs-shapes-make-arrow.png
new file mode 100644
index 0000000000..62000ff8c9
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-shapes-make-arrow.png differ