🎥 Make videos programmatically with React
stargazer template
Jonny Burger05e3a864374e
diff --git a/packages/create-video/src/templates.tsx b/packages/create-video/src/templates.tsxindex 6bcaaca104..5cf513e521 100644--- a/packages/create-video/src/templates.tsx+++ b/packages/create-video/src/templates.tsx@@ -290,9 +290,9 @@ export const FEATURED_TEMPLATES: Template[] = [longerDescription:'Your repo reached a stars milestone? Celebrate with a video of your stargazers!',promoVideo: {- muxId: 'zgy7XK01009y33Vfzhns02cZS00rOyeZ6WaanaxcrDysqmU',- height: 720,- width: 1280,+ muxId: 'y9rC1DoQ7rCzzI9TGeUywyTliOVU8xhHTHHZZ2BhM014',+ height: 540,+ width: 960,},cliId: 'stargazer' as const,type: 'video' as const,diff --git a/packages/docs/src/components/IconForTemplate.tsx b/packages/docs/src/components/IconForTemplate.tsxindex 8a322e0305..b89543bc95 100644--- a/packages/docs/src/components/IconForTemplate.tsx+++ b/packages/docs/src/components/IconForTemplate.tsx@@ -12,6 +12,7 @@ import { Tailwind } from "./icons/tailwind";import { TypeScriptIcon } from "./icons/ts";import { TTSIcon } from "./icons/tts";import { Waveform } from "./icons/waveform";+import { Stargazer } from "./icons/stargazer";export const IconForTemplate: React.FC<{template: Template;@@ -136,6 +137,10 @@ export const IconForTemplate: React.FC<{return <NextIcon style={{ height: scale * 36 }} />;}+ if (template.cliId === "stargazer") {+ return <Stargazer style={{ height: scale * 36 }} />;+ }+return (<Blankstyle={{diff --git a/packages/docs/src/components/icons/stargazer.tsx b/packages/docs/src/components/icons/stargazer.tsxnew file mode 100644index 0000000000..4e2cf9231b--- /dev/null+++ b/packages/docs/src/components/icons/stargazer.tsx@@ -0,0 +1,13 @@+import type { SVGProps } from "react";+import React from "react";++export const Stargazer: React.FC<SVGProps<SVGSVGElement>> = (props) => {+ return (+ <svg height="1em" viewBox="0 0 512 512" {...props}>+ <path+ fill="currentcolor"+ d="M325.8 152.3c1.3 4.6 5.5 7.7 10.2 7.7s8.9-3.1 10.2-7.7L360 104l48.3-13.8c4.6-1.3 7.7-5.5 7.7-10.2s-3.1-8.9-7.7-10.2L360 56 346.2 7.7C344.9 3.1 340.7 0 336 0s-8.9 3.1-10.2 7.7L312 56 263.7 69.8c-4.6 1.3-7.7 5.5-7.7 10.2s3.1 8.9 7.7 10.2L312 104l13.8 48.3zM115.7 346.2L75.5 307l55.5-8.1c15.6-2.3 29.2-12.1 36.1-26.3l24.8-50.3 24.8 50.3c7 14.2 20.5 24 36.1 26.3l55.5 8.1-40.2 39.2c-11.3 11-16.4 26.9-13.8 42.4l9.5 55.4-49.5-26.1c-14-7.4-30.7-7.4-44.7 0L120 444l9.5-55.4c2.7-15.6-2.5-31.4-13.8-42.4zm54.7-188.8l-46.3 94L20.5 266.5C.9 269.3-7 293.5 7.2 307.4l74.9 73.2L64.5 483.9c-3.4 19.6 17.2 34.6 34.8 25.3l92.6-48.8 92.6 48.8c17.6 9.3 38.2-5.7 34.8-25.3L301.6 380.6l74.9-73.2c14.2-13.9 6.4-38.1-13.3-40.9L259.7 251.4l-46.3-94c-8.8-17.9-34.3-17.9-43.1 0zm258.4 85.8l11 38.6c1 3.6 4.4 6.2 8.2 6.2s7.1-2.5 8.2-6.2l11-38.6 38.6-11c3.6-1 6.2-4.4 6.2-8.2s-2.5-7.1-6.2-8.2l-38.6-11-11-38.6c-1-3.6-4.4-6.2-8.2-6.2s-7.1 2.5-8.2 6.2l-11 38.6-38.6 11c-3.6 1-6.2 4.4-6.2 8.2s2.5 7.1 6.2 8.2l38.6 11z"+ />+ </svg>+ );+};diff --git a/packages/docs/static/generated/template-all.png b/packages/docs/static/generated/template-all.pngindex 416bb7d778..e8a15115f8 100644Binary files a/packages/docs/static/generated/template-all.png and b/packages/docs/static/generated/template-all.png differdiff --git a/packages/docs/static/generated/template-stargazer.png b/packages/docs/static/generated/template-stargazer.pngnew file mode 100644index 0000000000..a0dd63a9d1Binary files /dev/null and b/packages/docs/static/generated/template-stargazer.png differ