🎥 Make videos programmatically with React
Merge remote-tracking branch 'origin/main' into elements-getting-started
Igor Samokhovets9e67a48c8397
diff --cc packages/docs/src/components/Elements/ElementPage.module.cssindex f1a8233452,e544f56147..080d12e6d5--- a/packages/docs/src/components/Elements/ElementPage.module.css+++ b/packages/docs/src/components/Elements/ElementPage.module.css@@@ -125,75 -140,12 +140,50 @@@cursor: grabbing;}- [data-theme='dark'] .dragHandle {- border-color: var(--ifm-color-emphasis-200);- color: var(--ifm-color-emphasis-700);- }-.dragHandleIcon {- position: absolute;- left: 12px;- top: 50%;font-size: 1.5rem;line-height: 1;- transform: translateY(-50%);- }-- [data-theme='dark'] .dragHandleIcon {- color: var(--ifm-color-emphasis-500);- }-- .dragHandleText {- display: flex;- flex: 1;- flex-direction: column;- line-height: 1.3;- text-align: center;- white-space: nowrap;- }-- .dragHandleText strong {- font-weight: 600;}+.studioGuidance {+ margin-top: 12px;+ padding: 12px;+ border: 1px solid var(--ifm-color-emphasis-300);+ border-radius: 8px;+ background: var(--ifm-color-emphasis-100);+ font-size: 0.875rem;+}++.studioGuidanceTitle {+ margin: 0;+ font-weight: 600;+}++.studioGuidanceSteps {+ display: flex;+ flex-direction: column;+ gap: 8px;+ margin: 10px 0 0;+ padding: 0;+ list-style: none;+}++.studioGuidanceSteps li {+ display: flex;+ align-items: flex-start;+ gap: 8px;+ line-height: 1.5;+}++.studioGuidanceSteps li > div {+ flex: none;+}++.studioGuidanceSteps li > span {+ min-width: 0;+}++ .installingStatus,.successStatus,.errorStatus {margin: 12px 0 0;@@@ -352,15 -298,6 +336,10 @@@height: 160px;}+ .studioGuidance {+ font-size: 1rem;+ }+- .actionRow {- align-items: stretch;- flex-direction: column;- }-.contributors {align-items: flex-start;flex-direction: column;diff --cc packages/docs/src/components/Elements/ElementPage.tsxindex affeb81efa,ca8f950f9f..b70410a221--- a/packages/docs/src/components/Elements/ElementPage.tsx+++ b/packages/docs/src/components/Elements/ElementPage.tsx@@@ -241,56 -283,8 +286,36 @@@ export const ElementPage: React.FC<Elem</PlainButton>) : null}</div>- {isEmbeddedInStudio === false ? (- <div- className={styles.dragHandle}- draggable- onDragStart={(event) => {- setStudioDragData({- dataTransfer: event.dataTransfer,- payload: elementPayload,- });- setElementDragImage(event.dataTransfer, posterRef.current);- }}- title="Drag into your Studio browser tab to choose where the element is placed on the canvas or timeline"- >- <span aria-hidden="true" className={styles.dragHandleIcon}>- â ¿- </span>- <span className={styles.dragHandleText}>- <strong>Drag into Studio</strong>- </span>- </div>- ) : null}- {installStatus.type !== 'idle' &&- (installStatus.type !== 'installing' || isInstallHintVisible) ? (+ {installStatus.type === 'error' &&+ installStatus.code === 'no-compatible-studio' ? (+ <div aria-live="polite" className={styles.studioGuidance}>+ <p className={styles.studioGuidanceTitle}>+ Connect to Remotion Studio+ </p>+ <ol className={styles.studioGuidanceSteps} role="list">+ <li>+ <InlineStep>1</InlineStep>+ <span>+ Open your Remotion project, or{' '}+ <a href="/docs/">create a new one</a>.+ </span>+ </li>+ <li>+ <InlineStep>2</InlineStep>+ <span>Start Studio and open a composition.</span>+ </li>+ <li>+ <InlineStep>3</InlineStep>+ <span>+ Return here and click <strong>Install in Studio</strong>{' '}+ again.+ </span>+ </li>+ </ol>+ </div>- ) : installStatus.type === 'success' ||- installStatus.type === 'error' ? (++ ) : installStatus.type !== 'idle' &&++ (installStatus.type !== 'installing' ||++ isInstallHintVisible) ? (<paria-live="polite"className={