Skip to content

🎥 Make videos programmatically with React

skia on homepage

Jonny Burger926b410346e9
diff --git a/packages/create-video/src/templates.ts b/packages/create-video/src/templates.ts
index 20b9d6d257..c87c149fae 100644
--- a/packages/create-video/src/templates.ts
+++ b/packages/create-video/src/templates.ts
@@ -119,4 +119,18 @@ export const FEATURED_TEMPLATES: Template[] = [
},
cliId: 'audiogram',
},
+ {
+ homePageLabel: 'Skia',
+ shortName: 'Skia',
+ org: 'remotion-dev',
+ repoName: 'template-skia',
+ description: 'React Native Skia starter',
+ longerDescription: 'A template with React Native Skia already setup.',
+ promoVideo: {
+ muxId: 'A3ei3bzeT00Z1JCXmykOXD9v01V02HWZkc4jmmDaBiW01rE',
+ height: 1080,
+ width: 1920,
+ },
+ cliId: 'skia',
+ },
];
diff --git a/packages/docs/src/components/ChooseTemplate.tsx b/packages/docs/src/components/ChooseTemplate.tsx
index 129b780ad7..d73a9d4234 100644
--- a/packages/docs/src/components/ChooseTemplate.tsx
+++ b/packages/docs/src/components/ChooseTemplate.tsx
@@ -12,6 +12,7 @@ import { Waveform } from "./icons/waveform";
import { TemplateIcon } from "./TemplateIcon";
import { chunk } from "../helpers/chunk";
import { useElementSize } from "../helpers/use-el-size";
+import { SkiaIcon } from "./icons/skia";
const IconForTemplate: React.FC<{
template: Template;
@@ -86,6 +87,16 @@ const IconForTemplate: React.FC<{
);
}
+ if (template.homePageLabel === "Skia") {
+ return (
+ <SkiaIcon
+ style={{
+ height: 32,
+ }}
+ />
+ );
+ }
+
return (
<Blank
style={{
diff --git a/packages/docs/src/components/icons/skia.tsx b/packages/docs/src/components/icons/skia.tsx
new file mode 100644
index 0000000000..41e54e9537
--- /dev/null
+++ b/packages/docs/src/components/icons/skia.tsx
@@ -0,0 +1,13 @@
+import type { SVGProps } from "react";
+import React from "react";
+
+export const SkiaIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
+ return (
+ <svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
+ <path
+ fill="currentColor"
+ d="M288 400C288 461.9 237.9 512 176 512H32C14.33 512 0 497.7 0 480C0 462.3 14.33 448 32 448H36.81C54.44 448 66.4 429.1 64.59 411.6C64.2 407.8 64 403.9 64 400C64 338.1 114.1 288 176 288C178.8 288 181.5 288.1 184.3 288.3C184.1 285.7 183.1 282.1 183.1 280.3C183.1 244.6 201.1 210.1 229.1 189.1L474.3 12.25C499.7-6.279 534.9-3.526 557.2 18.74C579.4 41 582.2 76.16 563.7 101.6L386.1 345.1C365 374.9 331.4 392 295.7 392C293 392 290.3 391.9 287.7 391.7C287.9 394.5 287.1 397.2 287.1 400H288zM295.7 360C321.2 360 345.2 347.8 360.2 327.2L537.8 82.82C547.1 70.08 545.7 52.5 534.5 41.37C523.4 30.24 505.8 28.86 493.1 38.12L248.8 215.8C228.2 230.8 215.1 254.8 215.1 280.3C215.1 285.7 216.5 290.9 217.5 295.1L217.6 295.1C217.9 297.3 218.2 298.6 218.5 299.9L276.1 357.5C277.4 357.8 278.7 358.1 280 358.4L280 358.5C285.1 359.5 290.3 360 295.7 360L295.7 360zM253.5 380.1L195.9 322.5C194.5 322.2 193.2 321.8 191.9 321.6C186.7 320.5 181.4 320 176 320C131.8 320 96 355.8 96 400C96 402.8 96.14 405.6 96.43 408.3C98.15 425 93.42 441.9 83.96 455.1C74.31 468.5 58 480 36.81 480H176C220.2 480 256 444.2 256 400C256 394.6 255.5 389.3 254.4 384.1C254.2 382.8 253.9 381.5 253.5 380.1V380.1z"
+ />
+ </svg>
+ );
+};