Skip to content

🎥 Make videos programmatically with React

feat: add EditorIcon component and integrate it into the templates page

Shankhadeep Deyac0163f63e58
diff --git a/packages/docs/src/components/icons/editor.tsx b/packages/docs/src/components/icons/editor.tsx
new file mode 100644
index 0000000000..854528f677
--- /dev/null
+++ b/packages/docs/src/components/icons/editor.tsx
@@ -0,0 +1,58 @@
+import React from 'react';
+
+export const EditorIcon: React.FC<{
+ readonly style?: React.CSSProperties;
+}> = ({style}) => {
+ return (
+ <svg style={style} viewBox="0 0 24 24" fill="currentColor">
+ <rect
+ x="2"
+ y="3"
+ width="20"
+ height="18"
+ rx="2"
+ ry="2"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="2"
+ />
+ <rect
+ x="4"
+ y="5"
+ width="16"
+ height="3"
+ fill="currentColor"
+ opacity="0.3"
+ />
+ <rect
+ x="4"
+ y="9"
+ width="6"
+ height="8"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ />
+ <rect
+ x="11"
+ y="9"
+ width="9"
+ height="4"
+ fill="currentColor"
+ opacity="0.6"
+ />
+ <rect
+ x="11"
+ y="14"
+ width="9"
+ height="3"
+ fill="currentColor"
+ opacity="0.4"
+ />
+ <circle cx="6" cy="6.5" r="0.5" fill="currentColor" />
+ <circle cx="7.5" cy="6.5" r="0.5" fill="currentColor" />
+ <circle cx="9" cy="6.5" r="0.5" fill="currentColor" />
+ <path d="M5 11h4M5 13h3M5 15h4" stroke="currentColor" strokeWidth="0.5" />
+ </svg>
+ );
+};
diff --git a/packages/docs/src/pages/templates/index.tsx b/packages/docs/src/pages/templates/index.tsx
index fcb79a1da7..9b50c9e018 100644
--- a/packages/docs/src/pages/templates/index.tsx
+++ b/packages/docs/src/pages/templates/index.tsx
@@ -6,6 +6,7 @@ import {CreateVideoInternals} from 'create-video';
import React from 'react';
import {IconForTemplate} from '../../components/IconForTemplate';
import {Seo} from '../../components/Seo';
+import {EditorIcon} from '../../components/icons/editor';
import {SkiaIcon} from '../../components/icons/skia';
import {TimelineIcon} from '../../components/icons/timeline';
import styles from './styles.module.css';
@@ -127,7 +128,7 @@ export default () => {
<h3>Paid templates</h3>
<div className={styles.grid}>
<Link
- key={'map'}
+ key={'mapbox-globe'}
className={styles.item}
style={outer}
to={`https://www.remotion.pro/mapbox-globe`}
@@ -145,7 +146,7 @@ export default () => {
</Item>
</Link>
<Link
- key={'map'}
+ key={'watercolor-map'}
className={styles.item}
style={outer}
to={`https://www.remotion.pro/watercolor-map`}
@@ -162,7 +163,7 @@ export default () => {
</Item>
</Link>
<Link
- key={'map'}
+ key={'timeline'}
className={styles.item}
style={outer}
to={`https://www.remotion.pro/timeline`}
@@ -180,6 +181,23 @@ export default () => {
/>
</Item>
</Link>
+ <Link
+ key={'editor-starter'}
+ className={styles.item}
+ style={outer}
+ to={`https://www.remotion.pro/editor-starter`}
+ >
+ <Item
+ label={'Editor Starter'}
+ description={'Professional Remotion Editor Starter Template'}
+ >
+ <EditorIcon
+ style={{
+ height: 0.7 * 32,
+ }}
+ />
+ </Item>
+ </Link>
</div>
<br />