File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed
packages/studio/src/components/RenderModal Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import {
4242 ResolveCompositionBeforeModal ,
4343 ResolvedCompositionContext ,
4444} from './ResolveCompositionBeforeModal' ;
45+ import { WebRendererExperimentalBadge } from './WebRendererExperimentalBadge' ;
4546import { WebRenderModalAdvanced } from './WebRenderModalAdvanced' ;
4647import { WebRenderModalAudio } from './WebRenderModalAudio' ;
4748import { 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
Original file line number Diff line number Diff line change 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+ } ;
You can’t perform that action at this time.
0 commit comments