🎥 Make videos programmatically with React
remove example
Jonny Burger8751f9cc41c4
diff --git a/packages/example/src/GithubDemo/index.tsx b/packages/example/src/GithubDemo/index.tsxdeleted file mode 100644index 984a26cfeb..0000000000--- a/packages/example/src/GithubDemo/index.tsx+++ /dev/null@@ -1,85 +0,0 @@-import React from 'react';-import {- AbsoluteFill,- Img,- interpolate,- measureSpring,- spring,- useCurrentFrame,- useVideoConfig,-} from 'remotion';-import styled from 'styled-components';--const Title = styled.h1`- font-size: 5em;- margin-bottom: 0;- margin-top: 0;- line-height: 1.4;- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,- Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;-`;--const Description = styled.p`- font-size: 3em;- margin-bottom: 0;- margin-top: 0;- line-height: 1.4;- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,- Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;-`;--export const GithubDemo: React.FC<{- data: GithubResponse;-}> = ({data}) => {- const frame = useCurrentFrame();- const {fps} = useVideoConfig();- const progress = spring({- frame,- fps,- config: {- damping: 200,- },- });-- const springDur = measureSpring({fps, config: {damping: 200}});-- const titleTranslation = interpolate(progress, [0, 1], [700, 0]);- const subtitleOpacity = interpolate(- frame,- [springDur + 15, springDur + 40],- [0, 1]- );-- return (- <AbsoluteFill- style={{- backgroundColor: 'white',- justifyContent: 'center',- alignItems: 'center',- }}- >- <div- style={{display: 'flex', flexDirection: 'row', alignItems: 'center'}}- >- <Img- src={data.avatar_url}- style={{- borderRadius: 150,- height: 300,- width: 300,- transform: `scale(${progress})`,- }}- />- <div style={{width: 60}} />- <div>- <Title style={{transform: `translateY(${titleTranslation}px)`}}>- Hi {data.login}!- </Title>- <Description style={{opacity: subtitleOpacity}}>- You have {data.followers} followers.- </Description>- </div>- </div>- </AbsoluteFill>- );-};diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsxindex 4d34c05e2a..9360aca03a 100644--- a/packages/example/src/Video.tsx+++ b/packages/example/src/Video.tsx@@ -2,7 +2,6 @@ import React from 'react';import {Composition, getInputProps} from 'remotion';import {ColorInterpolation} from './ColorInterpolation';import {Framer} from './Framer';-import {GithubDemo} from './GithubDemo';import {MissingImg} from './MissingImg';import RemoteVideo from './RemoteVideo';import {TenFrameTester} from './TenFrameTester';@@ -242,14 +241,6 @@ export const Index: React.FC = () => {fps={30}durationInFrames={100}/>- <Composition- id="github-demo"- component={GithubDemo}- width={1280}- height={720}- fps={30}- durationInFrames={100}- /></>);};