🎥 Make videos programmatically with React
coherent design
Jonny Burgeraeaf4cd4b93b
diff --git a/packages/docs/components/LambdaSplash/VideoApps.tsx b/packages/docs/components/LambdaSplash/VideoApps.tsxindex f04eb71282..5b9b85c579 100644--- a/packages/docs/components/LambdaSplash/VideoApps.tsx+++ b/packages/docs/components/LambdaSplash/VideoApps.tsx@@ -1,235 +1,236 @@-import { useColorMode } from "@docusaurus/theme-common";-import React, { useEffect, useState } from "react";-import { BlueButton } from "../layout/Button";-import { Spacer } from "../layout/Spacer";-import videoapps from "./videoapps.module.css";-import { YouAreHere } from "./YouAreHere";+import {useColorMode} from '@docusaurus/theme-common';+import React, {useEffect, useState} from 'react';+import {BlueButton} from '../layout/Button';+import {BOX_STROKE} from '../layout/colors';+import {Spacer} from '../layout/Spacer';+import videoapps from './videoapps.module.css';+import {YouAreHere} from './YouAreHere';const panel: React.CSSProperties = {- backgroundColor: "var(--ifm-background-color)",- boxShadow: "var(--box-shadow)",- padding: 10,- borderRadius: 15,- flex: 1,- paddingTop: 30,- paddingBottom: 10,- minHeight: 500,- display: "flex",- flexDirection: "column",+ backgroundColor: 'var(--ifm-background-color)',+ border: '2px solid ' + BOX_STROKE,+ padding: 10,+ borderRadius: 15,+ flex: 1,+ paddingTop: 30,+ paddingBottom: 10,+ minHeight: 500,+ display: 'flex',+ flexDirection: 'column',};const center: React.CSSProperties = {- textAlign: "center",+ textAlign: 'center',};const row: React.CSSProperties = {- display: "flex",- flexDirection: "row",+ display: 'flex',+ flexDirection: 'row',};const flex: React.CSSProperties = {- flex: 1,+ flex: 1,};const step: React.CSSProperties = {- flex: 1,- ...panel,+ flex: 1,+ ...panel,};const list: React.CSSProperties = {- listStyleType: "none",- textAlign: "center",- paddingLeft: 0,- display: "flex",- flexDirection: "column",- alignItems: "center",+ listStyleType: 'none',+ textAlign: 'center',+ paddingLeft: 0,+ display: 'flex',+ flexDirection: 'column',+ alignItems: 'center',};const hr: React.CSSProperties = {- width: 20,- textAlign: "center",- borderTop: 0,- marginTop: 10,- marginBottom: 10,+ width: 20,+ textAlign: 'center',+ borderTop: 0,+ marginTop: 10,+ marginBottom: 10,};const stepTitle: React.CSSProperties = {- textAlign: "center",- fontSize: "1.6em",- marginBottom: 0,- color: "var(--ifm-color-primary)",+ textAlign: 'center',+ fontSize: '1.6em',+ marginBottom: 0,+ color: 'var(--ifm-color-primary)',};const docsButton: React.CSSProperties = {- textDecoration: "none",+ textDecoration: 'none',};export const VideoApps: React.FC<{- active: "remotion" | "player" | "lambda";-}> = ({ active }) => {- const { colorMode } = useColorMode();+ active: 'remotion' | 'player' | 'lambda';+}> = ({active}) => {+ const {colorMode} = useColorMode();- const [src, setSrc] = useState("/img/player-example.png");- const [src2, setSrc2] = useState("/img/player-example-dark.png");+ const [src, setSrc] = useState('/img/player-example.png');+ const [src2, setSrc2] = useState('/img/player-example-dark.png');- useEffect(() => {- if (colorMode === "dark") {- setSrc("/img/player-example-dark.png");- } else {- setSrc("/img/player-example.png");- }- }, [colorMode]);- useEffect(() => {- setSrc2(- colorMode === "dark" ? "/img/cluster-dark.png" : "/img/cluster.png",- );- }, [colorMode]);+ useEffect(() => {+ if (colorMode === 'dark') {+ setSrc('/img/player-example-dark.png');+ } else {+ setSrc('/img/player-example.png');+ }+ }, [colorMode]);+ useEffect(() => {+ setSrc2(+ colorMode === 'dark' ? '/img/cluster-dark.png' : '/img/cluster.png',+ );+ }, [colorMode]);- return (- <div className={videoapps.row}>- <div style={step}>- {active === "remotion" ? <YouAreHere /> : null}- <h2 style={stepTitle}>Remotion</h2>- <strong style={center}>Make videos programmatically</strong>- <br />- <div- style={{- display: "flex",- justifyContent: "center",- alignItems: "center",- flex: 1,- }}- >- <img src="/img/writeinreact.png" />- </div>- <ul style={list}>- <li>Use the Web to create graphics</li>- <hr style={hr} />- <li>Consume user input and APIs</li>- <hr style={hr} />- <li>Render real MP4 videos</li>- </ul>- <div style={row}>- {active === "remotion" ? null : (- <>- <div style={flex}>- <a style={docsButton} href="/">- <BlueButton loading={false} fullWidth size="sm">- Learn more- </BlueButton>- </a>- </div>- <Spacer />- <Spacer />- </>- )}- <div style={flex}>- <a style={docsButton} href="/docs">- <BlueButton loading={false} fullWidth size="sm">- Read docs- </BlueButton>- </a>- </div>- </div>- </div>- <Spacer />- <Spacer />- <Spacer />- <div style={step}>- {active === "player" ? <YouAreHere /> : null}- <h2 style={stepTitle}>Remotion Player</h2>- <strong style={center}>Embeddable interactive videos</strong>- <br />+ return (+ <div className={videoapps.row}>+ <div style={step}>+ {active === 'remotion' ? <YouAreHere /> : null}+ <h2 style={stepTitle}>Remotion</h2>+ <strong style={center}>Make videos programmatically</strong>+ <br />+ <div+ style={{+ display: 'flex',+ justifyContent: 'center',+ alignItems: 'center',+ flex: 1,+ }}+ >+ <img src="/img/writeinreact.png" />+ </div>+ <ul style={list}>+ <li>Use the Web to create graphics</li>+ <hr style={hr} />+ <li>Consume user input and APIs</li>+ <hr style={hr} />+ <li>Render real MP4 videos</li>+ </ul>+ <div style={row}>+ {active === 'remotion' ? null : (+ <>+ <div style={flex}>+ <a style={docsButton} href="/">+ <BlueButton loading={false} fullWidth size="sm">+ Learn more+ </BlueButton>+ </a>+ </div>+ <Spacer />+ <Spacer />+ </>+ )}+ <div style={flex}>+ <a style={docsButton} href="/docs">+ <BlueButton loading={false} fullWidth size="sm">+ Read docs+ </BlueButton>+ </a>+ </div>+ </div>+ </div>+ <Spacer />+ <Spacer />+ <Spacer />+ <div style={step}>+ {active === 'player' ? <YouAreHere /> : null}+ <h2 style={stepTitle}>Remotion Player</h2>+ <strong style={center}>Embeddable interactive videos</strong>+ <br />- <div- style={{- display: "flex",- justifyContent: "center",- alignItems: "center",- flex: 1,- }}- >- <img src={src} />- </div>- <ul style={list}>- <li>Preview videos in the browser</li>- <hr style={hr} />- <li>React to user input</li>- <hr style={hr} />- <li>Customize look and behavior</li>- </ul>- <div style={row}>- {active === "player" ? null : (- <>- <div style={flex}>- <a style={docsButton} href="/player">- <BlueButton loading={false} fullWidth size="sm">- Learn more- </BlueButton>- </a>- </div>- <Spacer />- <Spacer />- </>- )}- <div style={flex}>- <a style={docsButton} href="/docs/player">- <BlueButton loading={false} fullWidth size="sm">- Read docs- </BlueButton>- </a>- </div>- </div>- </div>- <Spacer />- <Spacer />- <Spacer />- <div style={step}>- {active === "lambda" ? <YouAreHere /> : null}- <h2 style={stepTitle}>Remotion Lambda</h2>- <strong style={center}>Render at scale</strong>- <br />- <div- style={{- display: "flex",- justifyContent: "center",- alignItems: "center",- flex: 1,- }}- >- <img src={src2} />- </div>+ <div+ style={{+ display: 'flex',+ justifyContent: 'center',+ alignItems: 'center',+ flex: 1,+ }}+ >+ <img src={src} />+ </div>+ <ul style={list}>+ <li>Preview videos in the browser</li>+ <hr style={hr} />+ <li>React to user input</li>+ <hr style={hr} />+ <li>Customize look and behavior</li>+ </ul>+ <div style={row}>+ {active === 'player' ? null : (+ <>+ <div style={flex}>+ <a style={docsButton} href="/player">+ <BlueButton loading={false} fullWidth size="sm">+ Learn more+ </BlueButton>+ </a>+ </div>+ <Spacer />+ <Spacer />+ </>+ )}+ <div style={flex}>+ <a style={docsButton} href="/docs/player">+ <BlueButton loading={false} fullWidth size="sm">+ Read docs+ </BlueButton>+ </a>+ </div>+ </div>+ </div>+ <Spacer />+ <Spacer />+ <Spacer />+ <div style={step}>+ {active === 'lambda' ? <YouAreHere /> : null}+ <h2 style={stepTitle}>Remotion Lambda</h2>+ <strong style={center}>Render at scale</strong>+ <br />+ <div+ style={{+ display: 'flex',+ justifyContent: 'center',+ alignItems: 'center',+ flex: 1,+ }}+ >+ <img src={src2} />+ </div>- <ul style={list}>- <li>Render videos in the cloud</li>- <hr style={hr} />- <li>Scale according to your volume</li>- <hr style={hr} />- <li>Fast because distributed</li>- </ul>- <div style={row}>- {active === "lambda" ? null : (- <>- <div style={flex}>- <a style={docsButton} href="/lambda">- <BlueButton loading={false} fullWidth size="sm">- Learn more- </BlueButton>- </a>- </div>- <Spacer />- <Spacer />- </>- )}- <div style={flex}>- <a style={docsButton} href="/docs/lambda">- <BlueButton loading={false} fullWidth size="sm">- Read docs- </BlueButton>- </a>- </div>- </div>- </div>- </div>- );+ <ul style={list}>+ <li>Render videos in the cloud</li>+ <hr style={hr} />+ <li>Scale according to your volume</li>+ <hr style={hr} />+ <li>Fast because distributed</li>+ </ul>+ <div style={row}>+ {active === 'lambda' ? null : (+ <>+ <div style={flex}>+ <a style={docsButton} href="/lambda">+ <BlueButton loading={false} fullWidth size="sm">+ Learn more+ </BlueButton>+ </a>+ </div>+ <Spacer />+ <Spacer />+ </>+ )}+ <div style={flex}>+ <a style={docsButton} href="/docs/lambda">+ <BlueButton loading={false} fullWidth size="sm">+ Read docs+ </BlueButton>+ </a>+ </div>+ </div>+ </div>+ </div>+ );};diff --git a/packages/docs/components/LandingPage/CommunityStats.module.css b/packages/docs/components/LandingPage/CommunityStats.module.cssindex 31869ebaaf..0bfd882ed2 100644--- a/packages/docs/components/LandingPage/CommunityStats.module.css+++ b/packages/docs/components/LandingPage/CommunityStats.module.css@@ -41,11 +41,9 @@.statItem {background-color: var(--ifm-background-surface-color);border-radius: 0.5rem;- border: 5px solid var(--text-color);+ border: 2px solid var(--box-stroke);+ border-bottom: 4px solid var(--box-stroke);padding: 0.3rem;- box-shadow:- 0 1px 3px rgba(0, 0, 0, 0.12),- 0 1px 2px rgba(0, 0, 0, 0.24);line-height: 1;display: flex;flex-wrap: wrap;diff --git a/packages/docs/components/LandingPage/EvaluateRemotionSection.module.css b/packages/docs/components/LandingPage/EvaluateRemotionSection.module.cssindex b33c7fe515..53aec83739 100644--- a/packages/docs/components/LandingPage/EvaluateRemotionSection.module.css+++ b/packages/docs/components/LandingPage/EvaluateRemotionSection.module.css@@ -11,7 +11,8 @@flex-direction: column;justify-content: space-between; /* This will push the content to the top and the buttons/avatars to the bottom */background-color: var(--ifm-background-surface-color);- border: 5px solid var(--text-color);+ border: 2px solid var(--box-stroke);+ border-bottom: 4px solid var(--box-stroke);border-radius: 10px;padding: 20px;width: 100%;diff --git a/packages/docs/components/LandingPage/newsletter.module.css b/packages/docs/components/LandingPage/newsletter.module.cssindex c5997a7b7f..41cb23a354 100644--- a/packages/docs/components/LandingPage/newsletter.module.css+++ b/packages/docs/components/LandingPage/newsletter.module.css@@ -1,9 +1,10 @@.panel {background-color: var(--ifm-background-color);- padding: 20px 26px;+ padding: 20px 20px;border-radius: 15px;flex: 1;- border: 5px solid var(--text-color);+ border: 2px solid var(--box-stroke);+ border-bottom: 4px solid var(--box-stroke);min-height: 250px;display: flex;flex-direction: column;diff --git a/packages/docs/components/LandingPage/pricing.module.css b/packages/docs/components/LandingPage/pricing.module.cssindex 9e5233d7b0..6e6d4e0ad0 100644--- a/packages/docs/components/LandingPage/pricing.module.css+++ b/packages/docs/components/LandingPage/pricing.module.css@@ -1,179 +1,180 @@.pricingtitle {- font-size: 2.5em;- font-weight: 700;- line-height: 1.1;- font-family: "GTPlanar", sans-serif;+ font-size: 2.5em;+ font-weight: 700;+ line-height: 1.1;+ font-family: 'GTPlanar', sans-serif;}.mp4 {- color: var(--ifm-color-primary);+ color: var(--ifm-color-primary);}.countercontainer {- width: 110px;+ width: 110px;}.counterinput {- font-family: "GTPlanar", sans-serif;- font-size: 24px;- font-weight: 500;- min-width: 60px;- border: none;- text-align: end;- font-feature-settings: "ss03" on;- background: transparent;+ font-family: 'GTPlanar', sans-serif;+ font-size: 24px;+ font-weight: 500;+ min-width: 60px;+ border: none;+ text-align: end;+ font-feature-settings: 'ss03' on;+ background: transparent;}/* removes up and down arrows from input field */-input[type="number"]::-webkit-inner-spin-button,-input[type="number"]::-webkit-outer-spin-button {- -webkit-appearance: none;- margin: 0;+input[type='number']::-webkit-inner-spin-button,+input[type='number']::-webkit-outer-spin-button {+ -webkit-appearance: none;+ margin: 0;}.pricingcontainer {- display: flex;- flex-direction: column;- border: 5px solid var(--text-color);- border-radius: 10px;- padding: 20px 26px;+ display: flex;+ flex-direction: column;+ border: 2px solid var(--box-stroke);+ border-bottom: 4px solid var(--box-stroke);+ border-radius: 10px;+ padding: 20px;}.text {- font-family: "GTPlanar", sans-serif;- font-size: 19px;+ font-family: 'GTPlanar', sans-serif;+ font-size: 19px;}.audience {- font-family: "GTPlanar", sans-serif;- font-size: 19px;- line-height: 1.2;+ font-family: 'GTPlanar', sans-serif;+ font-size: 19px;+ line-height: 1.2;}.pricetag {- font-family: "GTPlanar", sans-serif;- font-size: 24px;- font-weight: 500;- font-variant-numeric: tabular-nums;- font-feature-settings: "ss03" on;- min-width: 60px;- width: auto;- text-align: right;- flex-shrink: 0;- margin-left: 15px;+ font-family: 'GTPlanar', sans-serif;+ font-size: 24px;+ font-weight: 500;+ font-variant-numeric: tabular-nums;+ font-feature-settings: 'ss03' on;+ min-width: 60px;+ width: auto;+ text-align: right;+ flex-shrink: 0;+ margin-left: 15px;}.boldtext {- margin: 0;- padding: 0;- font-family: "GTPlanar", sans-serif;- font-size: 19px;- font-weight: 700;- line-height: 1;+ margin: 0;+ padding: 0;+ font-family: 'GTPlanar', sans-serif;+ font-size: 19px;+ font-weight: 700;+ line-height: 1;}.description {- margin: 0;- padding: 0;- font-family: "GTPlanar", sans-serif;- font-size: 15px;- color: #666666;- min-width: 330px;- font-feature-settings: "ss03" on;- line-height: 1.2;- margin-top: 5px;- margin-right: 10px;- text-wrap: balance;+ margin: 0;+ padding: 0;+ font-family: 'GTPlanar', sans-serif;+ font-size: 15px;+ color: #666666;+ min-width: 330px;+ font-feature-settings: 'ss03' on;+ line-height: 1.2;+ margin-top: 5px;+ margin-right: 10px;+ text-wrap: balance;}.descriptionsmall {- margin: 0;- padding: 0;- font-family: "GTPlanar", sans-serif;- font-size: 14px;- color: #666666;+ margin: 0;+ padding: 0;+ font-family: 'GTPlanar', sans-serif;+ font-size: 14px;+ color: #666666;}.pricingrow {- display: flex;- flex-direction: row;+ display: flex;+ flex-direction: row;}.panel {- background-color: var(--ifm-background-color);- box-shadow: var(--box-shadow);- padding: 10px;- border-radius: 15px;- flex: 1;- text-align: center;- padding-top: 30px;- padding-bottom: 10px;- min-height: 550px;- display: flex;- flex-direction: column;+ background-color: var(--ifm-background-color);+ box-shadow: var(--box-shadow);+ padding: 10px;+ border-radius: 15px;+ flex: 1;+ text-align: center;+ padding-top: 30px;+ padding-bottom: 10px;+ min-height: 550px;+ display: flex;+ flex-direction: column;}.panel ul {- text-align: left;- list-style-type: none;- padding-left: 0;+ text-align: left;+ list-style-type: none;+ padding-left: 0;}.panel li {- margin-top: 12px;- margin-bottom: 12px;- display: flex;- color: var(--text-color);- font-size: 0.95em;+ margin-top: 12px;+ margin-bottom: 12px;+ display: flex;+ color: var(--text-color);+ font-size: 0.95em;}.portion {- flex: 1;+ flex: 1;}.targettitle {- border-bottom: 2px solid var(--text-color);- font-weight: 750;- margin-bottom: 10px;- text-align: center;- font-size: 1.1em;+ border-bottom: 2px solid var(--text-color);+ font-weight: 750;+ margin-bottom: 10px;+ text-align: center;+ font-size: 1.1em;}.bulletcontainer {- margin-right: 8px;- display: inline-flex;- justify-content: center;- margin-top: 5px;+ margin-right: 8px;+ display: inline-flex;+ justify-content: center;+ margin-top: 5px;}.rowcontainer {- display: flex;- flex-direction: row;+ display: flex;+ flex-direction: row;}.contactuslink {- color: inherit;- cursor: pointer;- text-decoration: none;+ color: inherit;+ cursor: pointer;+ text-decoration: none;}.contactuslink:hover {- color: var(--ifm-color-primary);- text-decoration: none;+ color: var(--ifm-color-primary);+ text-decoration: none;}@media screen and (max-width: 900px) {- .description {- flex-shrink: 1;- min-width: auto;- }- .pricingcontainer {- text-align: left;- }- .portion {- max-width: 500px;- width: 100%;- }- .description {- font-size: 0.85em;- }- .countercontainer {- width: 70px;- }+ .description {+ flex-shrink: 1;+ min-width: auto;+ }+ .pricingcontainer {+ text-align: left;+ }+ .portion {+ max-width: 500px;+ width: 100%;+ }+ .description {+ font-size: 0.85em;+ }+ .countercontainer {+ width: 70px;+ }}diff --git a/packages/docs/src/components/Demo/Demo.tsx b/packages/docs/src/components/Demo/Demo.tsxindex 27fa1629f7..9b53ec96d5 100644--- a/packages/docs/src/components/Demo/Demo.tsx+++ b/packages/docs/src/components/Demo/Demo.tsx@@ -118,17 +118,18 @@ export const Demo: React.FC = () => {inputProps={props}loop/>- <PlayerControls playerRef={ref} durationInFrames={120} fps={30} />+ <PlayerControls playerRef={ref} durationInFrames={120} fps={30}>+ {data ? (+ <RenderButton+ cardOrder={cardOrder}+ emojiIndex={emojiIndex}+ location={data.location!}+ theme={colorMode}+ trending={data.trending!}+ />+ ) : null}+ </PlayerControls></div>- {data ? (- <RenderButton- cardOrder={cardOrder}- emojiIndex={emojiIndex}- location={data.location!}- theme={colorMode}- trending={data.trending!}- />- ) : null}</div>);};diff --git a/packages/docs/src/components/Demo/DemoRender.tsx b/packages/docs/src/components/Demo/DemoRender.tsxindex 12162bb907..d196c59956 100644--- a/packages/docs/src/components/Demo/DemoRender.tsx+++ b/packages/docs/src/components/Demo/DemoRender.tsx@@ -86,7 +86,9 @@ export const RenderButton: React.FC<z.infer<typeof data>> = (props) => {return (<button type="button" onClick={triggerRender}>- Render lol+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">+ <path d="M214.6 342.6L192 365.3l-22.6-22.6-128-128L18.7 192 64 146.7l22.6 22.6L160 242.7 160 64l0-32 64 0 0 32 0 178.7 73.4-73.4L320 146.7 365.3 192l-22.6 22.6-128 128zM32 416l320 0 32 0 0 64-32 0L32 480 0 480l0-64 32 0z" />+ </svg></button>);};diff --git a/packages/docs/src/components/Demo/PlayerControls.tsx b/packages/docs/src/components/Demo/PlayerControls.tsxindex dfc4c7ebc0..86509c71f2 100644--- a/packages/docs/src/components/Demo/PlayerControls.tsx+++ b/packages/docs/src/components/Demo/PlayerControls.tsx@@ -2,7 +2,6 @@ import type {PlayerRef} from '@remotion/player';import React from 'react';import {BOX_STROKE} from '../../../components/layout/colors';import styles from './player.module.css';-import {PlayerFullscreen} from './PlayerFullscreen';import {PlayerSeekBar} from './PlayerSeekBar';import {PlayerVolume} from './PlayerVolume';import {PlayPauseButton} from './PlayPauseButton';@@ -23,7 +22,8 @@ export const PlayerControls: React.FC<{readonly playerRef: React.RefObject<PlayerRef>;readonly durationInFrames: number;readonly fps: number;-}> = ({playerRef, durationInFrames, fps}) => {+ readonly children: React.ReactNode;+}> = ({playerRef, durationInFrames, fps, children}) => {return (<div className={styles['controls-wrapper']}><div className={styles['start-controls']}>@@ -46,7 +46,7 @@ export const PlayerControls: React.FC<{</div><div className={styles['end-controls']}><Separator />- <PlayerFullscreen playerRef={playerRef} />+ {children}</div></div>);diff --git a/packages/docs/src/components/Demo/PlayerFullscreen.tsx b/packages/docs/src/components/Demo/PlayerFullscreen.tsxdeleted file mode 100644index 3c6a6e1bc3..0000000000--- a/packages/docs/src/components/Demo/PlayerFullscreen.tsx+++ /dev/null@@ -1,73 +0,0 @@-import type {PlayerRef} from '@remotion/player';-import React, {useCallback, useEffect, useState} from 'react';-import {FullscreenIcon} from '../../icons/arrows';--export const PlayerFullscreen: React.FC<{- readonly playerRef: React.RefObject<PlayerRef>;-}> = ({playerRef}) => {- const [supportsFullscreen, setSupportsFullscreen] = useState(false);- const [isFullscreen, setIsFullscreen] = useState(false);-- useEffect(() => {- const {current} = playerRef;-- if (!current) {- return;- }-- const onFullscreenChange = () => {- setIsFullscreen(document.fullscreenElement !== null);- };-- current.addEventListener('fullscreenchange', onFullscreenChange);-- return () => {- current.removeEventListener('fullscreenchange', onFullscreenChange);- };- }, [playerRef]);-- useEffect(() => {- // Must be handled client-side to avoid SSR hydration mismatch- setSupportsFullscreen(- (typeof document !== 'undefined' &&- (document.fullscreenEnabled ||- // @ts-expect-error Types not defined- document.webkitFullscreenEnabled)) ??- false,- );- }, []);-- const onClick = useCallback(() => {- const {current} = playerRef;- if (!current) {- return;- }-- if (isFullscreen) {- current.exitFullscreen();- } else {- current.requestFullscreen();- }- }, [isFullscreen, playerRef]);-- if (!supportsFullscreen) {- return null;- }-- return (- <button- type="button"- onClick={onClick}- style={{- display: 'flex',- background: 'transparent',- border: 0,- cursor: 'pointer',- paddingLeft: 15,- paddingRight: 15,- }}- >- <FullscreenIcon style={{width: 20}} />- </button>- );-};diff --git a/packages/docs/src/components/Demo/TimeDisplay.tsx b/packages/docs/src/components/Demo/TimeDisplay.tsxindex 331a63bc19..eb4429aea5 100644--- a/packages/docs/src/components/Demo/TimeDisplay.tsx+++ b/packages/docs/src/components/Demo/TimeDisplay.tsx@@ -33,7 +33,7 @@ export const TimeDisplay: React.FC<{return (<divstyle={{- fontSize: '14px',+ fontSize: 16,fontVariantNumeric: 'tabular-nums',}}>