Skip to content

Commit 9d404b4

Browse files
committed
experimental
1 parent 3333dc8 commit 9d404b4

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

packages/studio/src/components/RenderModal/WebRenderModal.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import {
4242
ResolveCompositionBeforeModal,
4343
ResolvedCompositionContext,
4444
} from './ResolveCompositionBeforeModal';
45+
import {WebRendererExperimentalBadge} from './WebRendererExperimentalBadge';
4546
import {WebRenderModalAdvanced} from './WebRenderModalAdvanced';
4647
import {WebRenderModalAudio} from './WebRenderModalAudio';
4748
import {WebRenderModalBasic} from './WebRenderModalBasic';
@@ -540,6 +541,9 @@ const WebRenderModal: React.FC<WebRenderModalProps> = ({
540541
<ShortcutHint keyToPress="↵" cmdOrCtrl />
541542
</Button>
542543
</div>
544+
<div style={containerStyle}>
545+
<WebRendererExperimentalBadge />
546+
</div>
543547
<div style={horizontalLayout}>
544548
<div style={leftSidebar}>
545549
<VerticalTab
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import {LIGHT_TEXT, WARNING_COLOR} from '../../helpers/colors';
2+
import {WarningTriangle} from '../NewComposition/ValidationMessage';
3+
4+
const row: React.CSSProperties = {
5+
display: 'flex',
6+
flexDirection: 'row',
7+
alignItems: 'center',
8+
justifyContent: 'center',
9+
};
10+
11+
const text: React.CSSProperties = {
12+
fontSize: 14,
13+
fontFamily: 'sans-serif',
14+
color: LIGHT_TEXT,
15+
};
16+
17+
const icon: React.CSSProperties = {
18+
width: 14,
19+
height: 14,
20+
flexShrink: 0,
21+
fill: WARNING_COLOR,
22+
marginRight: 8,
23+
};
24+
25+
const link: React.CSSProperties = {
26+
color: 'inherit',
27+
textDecoration: 'underline',
28+
fontSize: 14,
29+
};
30+
31+
export const WebRendererExperimentalBadge: React.FC = () => {
32+
return (
33+
<div style={row}>
34+
<WarningTriangle type="warning" style={icon} />
35+
<div style={text}>
36+
The Remotion Web Renderer is experimental.{' '}
37+
<a
38+
href="https://github.com/remotion-dev/remotion/issues/5913"
39+
target="_blank"
40+
rel="noopener noreferrer"
41+
style={link}
42+
>
43+
Track progress on GitHub
44+
</a>{' '}
45+
and discuss in the{' '}
46+
<a
47+
href="https://remotion.dev/discord"
48+
target="_blank"
49+
rel="noopener noreferrer"
50+
style={link}
51+
>
52+
#web-renderer
53+
</a>{' '}
54+
channel on Discord.
55+
</div>
56+
</div>
57+
);
58+
};

0 commit comments

Comments
 (0)