🎥 Make videos programmatically with React
Polish Studio coding handoff desktop
Jonny Burger82460c207f5b
diff --git a/packages/brand/src/video-elements/StudioCodeHandoff.tsx b/packages/brand/src/video-elements/StudioCodeHandoff.tsxindex c279f56c3b..6456a41195 100644--- a/packages/brand/src/video-elements/StudioCodeHandoff.tsx+++ b/packages/brand/src/video-elements/StudioCodeHandoff.tsx@@ -1,5 +1,6 @@import {AbsoluteFill,+ CanvasImage,Easing,Interactive,Sequence,@@ -49,25 +50,34 @@ export const StudioCodeHandoff: React.FC = () => {width: 1352,}}>+ <CanvasImage+ fit="cover"+ height={760}+ name="Tahoe wallpaper"+ src="https://remotion.media/webmcp-promo/tahoe-light-wallpaper.jpg"+ style={{left: 0, position: 'absolute', top: 0}}+ width={1352}+ /><Interactive.Divname="VS Code"style={{- height: 760,+ borderRadius: 12,+ height: 748,left: 0,overflow: 'hidden',position: 'absolute',- top: 0,+ top: 6,translate: interpolate(frame,[60, 100],- ['676px 0px', '1352px 0px'],+ ['679px 0px', '1358px 0px'],{easing: Easing.bezier(0.16, 1, 0.3, 1),extrapolateLeft: 'clamp',extrapolateRight: 'clamp',},),- width: 676,+ width: 667,}}><TextEditor@@ -106,9 +116,9 @@ export const Scene11: React.FC = () => {);};`}fileName="Scene11.tsx"- height={760}+ height={748}highlightedLines="14-18"- width={676}+ width={667}/></Interactive.Div>@@ -116,15 +126,16 @@ export const Scene11: React.FC = () => {name="Codex"style={{backgroundColor: '#f4f4f2',- height: 760,+ borderRadius: 12,+ height: 748,left: 0,overflow: 'hidden',position: 'absolute',- top: 0,+ top: 6,translate: interpolate(frame,[60, 100, 140, 180],- ['-676px 0px', '0px 0px', '0px 0px', '-676px 0px'],+ ['-667px 0px', '6px 0px', '6px 0px', '-667px 0px'],{easing: [Easing.bezier(0.16, 1, 0.3, 1),@@ -135,24 +146,25 @@ export const Scene11: React.FC = () => {extrapolateRight: 'clamp',},),- width: 676,+ width: 667,}}>- <Codex height={760} width={676} />+ <Codex height={748} width={667} /></Interactive.Div><Interactive.Divname="Remotion Studio"style={{- height: 760,+ borderRadius: 12,+ height: 748,left: 0,overflow: 'hidden',position: 'absolute',- top: 0,+ top: 6,translate: interpolate(frame,[60, 100, 140, 180],- ['0px 0px', '676px 0px', '676px 0px', '0px 0px'],+ ['6px 0px', '679px 0px', '679px 0px', '6px 0px'],{easing: [Easing.bezier(0.16, 1, 0.3, 1),@@ -163,7 +175,7 @@ export const Scene11: React.FC = () => {extrapolateRight: 'clamp',},),- width: interpolate(frame, [140, 180], [676, 1352], {+ width: interpolate(frame, [140, 180], [667, 1340], {easing: Easing.bezier(0.16, 1, 0.3, 1),extrapolateLeft: 'clamp',extrapolateRight: 'clamp',@@ -193,11 +205,11 @@ export const Scene11: React.FC = () => {extrapolateRight: 'clamp',},)}- viewportHeight={760}+ viewportHeight={748}viewportWidth={interpolate(frame,[140, 180],- [676, 1352],+ [667, 1340],{easing: Easing.bezier(0.16, 1, 0.3, 1),extrapolateLeft: 'clamp',diff --git a/packages/brand/src/video-elements/TextEditor.tsx b/packages/brand/src/video-elements/TextEditor.tsxindex cb5cbf486f..bb429b8c1f 100644--- a/packages/brand/src/video-elements/TextEditor.tsx+++ b/packages/brand/src/video-elements/TextEditor.tsx@@ -95,7 +95,7 @@ export const TextEditor: React.FC<TextEditorProps> = ({alignItems: 'center',backgroundColor: 'transparent',display: 'flex',- height: 18 * scale,+ height: 30 * scale,minWidth: '100%',}}>@@ -104,7 +104,7 @@ export const TextEditor: React.FC<TextEditorProps> = ({boxSizing: 'border-box',color: '#858585',flex: `0 0 ${67 * scale}px`,- fontSize: 12 * scale,+ fontSize: 24 * scale,paddingRight: 25 * scale,textAlign: 'right',userSelect: 'none',@@ -183,7 +183,7 @@ export const TextEditor: React.FC<TextEditorProps> = ({<div key={color} style={{backgroundColor: color, borderRadius: '50%', height: 12 * scale, width: 12 * scale}} />))}</div>- <div style={{color: '#999999', fontSize: 12 * scale}}>{fileName} — brand</div>+ <div style={{color: '#999999', fontSize: 20 * scale}}>{fileName} — brand</div><div style={{color: '#888888', display: 'flex', position: 'absolute', right: 10 * scale}}><VscodeIcon name="ellipsis" size={14 * scale} /></div>@@ -236,7 +236,7 @@ export const TextEditor: React.FC<TextEditorProps> = ({boxSizing: 'border-box',color: tab.active ? '#e7e7e7' : '#8e8e8e',display: 'flex',- fontSize: 12 * scale,+ fontSize: 20 * scale,fontStyle: index === 2 ? 'italic' : 'normal',height: '100%',paddingLeft: 10 * scale,@@ -255,7 +255,7 @@ export const TextEditor: React.FC<TextEditorProps> = ({<Interactive.Divname="Breadcrumbs"- style={{alignItems: 'center', backgroundColor: '#131414', color: '#9c9c9c', display: 'flex', fontSize: 12 * scale, height: breadcrumbHeight, left: activityBarWidth, paddingLeft: 16 * scale, position: 'absolute', right: 0, top: titleBarHeight + tabBarHeight}}+ style={{alignItems: 'center', backgroundColor: '#131414', color: '#9c9c9c', display: 'flex', fontSize: 20 * scale, height: breadcrumbHeight, left: activityBarWidth, paddingLeft: 16 * scale, position: 'absolute', right: 0, top: titleBarHeight + tabBarHeight}}><span>src</span><span style={{margin: `0 ${6 * scale}px`, color: '#686868'}}>›</span><span>announcements</span><span style={{margin: `0 ${6 * scale}px`, color: '#686868'}}>›</span>@@ -272,7 +272,7 @@ export const TextEditor: React.FC<TextEditorProps> = ({<Precode={highlighted}handlers={[lineHandler]}- style={{backgroundColor: 'transparent', color: '#d4d4d4', fontFamily: 'Menlo, Monaco, "Courier New", monospace', fontSize: 12 * scale, fontVariantLigatures: 'none', left: scale, lineHeight: `${18 * scale}px`, margin: 0, minWidth: '100%', position: 'relative', tabSize: 4}}+ style={{backgroundColor: 'transparent', color: '#d4d4d4', fontFamily: 'Menlo, Monaco, "Courier New", monospace', fontSize: 24 * scale, fontVariantLigatures: 'none', left: scale, lineHeight: `${30 * scale}px`, margin: 0, minWidth: '100%', position: 'relative', tabSize: 4}}/>) : null}<div style={{backgroundColor: '#131414', bottom: 0, position: 'absolute', right: 4 * scale, top: 0, width: 14 * scale}}>@@ -282,7 +282,7 @@ export const TextEditor: React.FC<TextEditorProps> = ({<Interactive.Divname="Status bar"- style={{alignItems: 'center', backgroundColor: '#181919', borderTop: `${scale}px solid #2b2b2b`, bottom: 0, boxSizing: 'border-box', color: '#9a9a9a', display: 'flex', fontSize: 12 * scale, height: statusBarHeight, left: 0, paddingLeft: 13 * scale, position: 'absolute', right: 0}}+ style={{alignItems: 'center', backgroundColor: '#181919', borderTop: `${scale}px solid #2b2b2b`, bottom: 0, boxSizing: 'border-box', color: '#9a9a9a', display: 'flex', fontSize: 20 * scale, height: statusBarHeight, left: 0, paddingLeft: 13 * scale, position: 'absolute', right: 0}}><VscodeIcon name="error" size={13 * scale} /><span style={{marginLeft: 4 * scale}}>0</span><span style={{display: 'flex', marginLeft: 7 * scale}}><VscodeIcon name="warning" size={13 * scale} /></span><span style={{marginLeft: 3 * scale}}>0</span>