Skip to content

🎥 Make videos programmatically with React

remove font exmaple

Jonny Burgerffe284110a4c
diff --git a/packages/example/src/Font/Text.tsx b/packages/example/src/Font/Text.tsx
deleted file mode 100644
index 68e86a4cee..0000000000
--- a/packages/example/src/Font/Text.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-import React from 'react';
-import styled from 'styled-components';
-
-const Base = styled.div`
- font-size: 60px;
- font-family: 'Roboto';
- color: white;
- position: relative;
- font-weight: bold;
-`;
-
-const Offset = styled.div`
- font-size: 60px;
- font-family: 'Roboto';
- color: #aaa;
- font-weight: bold;
- position: absolute;
- top: 0;
-`;
-
-export const TextComp: React.FC = () => {
- return (
- <div
- style={{
- perspective: 100,
- }}
- >
- <div
- style={{
- position: 'relative',
- }}
- >
- {new Array(100)
- .fill(true)
- .map((a, i) => i)
- .map((i) => {
- return (
- <Offset
- key={i}
- style={{
- transform: `translateZ(${-i * 3}px) rotateY(80deg)`,
- transformOrigin: '30% 0%',
- }}
- >
- Text
- </Offset>
- );
- })}
- <Base style={{transform: 'rotateY(80deg)'}}>Text</Base>
- </div>
- </div>
- );
-};
diff --git a/packages/example/src/Font/index.tsx b/packages/example/src/Font/index.tsx
deleted file mode 100644
index 508e83cb95..0000000000
--- a/packages/example/src/Font/index.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React from 'react';
-import {TextComp} from './Text';
-
-const Comp: React.FC = () => {
- return (
- <div
- style={{
- flex: 1,
- display: 'flex',
- backgroundColor: 'blue',
- justifyContent: 'center',
- alignItems: 'center',
- }}
- >
- <TextComp />
- </div>
- );
-};
-
-export default Comp;
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index 9360aca03a..4b7719d7b1 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -55,14 +55,6 @@ export const Index: React.FC = () => {
fps={30}
durationInFrames={4 * 30}
/>
- <Composition
- id="font"
- lazyComponent={() => import('./Font')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={30 * 30}
- />
<Composition
id="hacker-logo"