Skip to content

🎥 Make videos programmatically with React

4.9 KB
Raw Blame
import React from 'react';

export const AacBenchmarks: React.FC = () => {
	return (
		<div
			style={{
				width: '100%',
				overflowX: 'auto',
			}}
		>
			<svg
				style={{
					minWidth: 600,
				}}
				viewBox="0 0 687 262"
				fill="none"
				xmlns="http://www.w3.org/2000/svg"
			>
				<rect x="47" y="24" width="28" height="24" fill="#0B84F3" />
				<rect x="47" y="117" width="64.8" height="24" fill="#0B84F3" />
				<rect x="47" y="210" width="264.2" height="24" fill="#0B84F3" />
				<rect x="47" y="52" width="31.8" height="24" fill="#D9D9D9" />
				<rect x="47" y="145" width="134.6" height="24" fill="#D9D9D9" />
				<rect x="47" y="238" width="582.6" height="24" fill="#D9D9D9" />
				<text
					fill="currentcolor"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="8.52344" y="40.572">
						28.3s
					</tspan>
				</text>
				<text
					fill="currentcolor"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="7.91406" y="133.572">
						64.8s
					</tspan>
				</text>
				<text
					fill="currentcolor"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="0.660156" y="226.572">
						264.2s
					</tspan>
				</text>
				<text
					fill="currentcolor"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="9.40234" y="68.572">
						31.8s
					</tspan>
				</text>
				<text
					fill="currentcolor"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="4.29297" y="161.572">
						134.7s
					</tspan>
				</text>
				<text
					fill="currentcolor"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="1" y="254.572">
						582.6s
					</tspan>
				</text>
				<text
					fill="currentcolor"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="900"
					letterSpacing="0em"
				>
					<tspan x="47" y="11.572">
						1 Minute video
					</tspan>
				</text>
				<text
					fill="currentcolor"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="900"
					letterSpacing="0em"
				>
					<tspan x="47" y="11.572">
						1 Minute video
					</tspan>
				</text>
				<text
					fill="currentcolor"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="900"
					letterSpacing="0em"
				>
					<tspan x="47" y="106.572">
						10 Minute video
					</tspan>
				</text>
				<text
					fill="currentcolor"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="900"
					letterSpacing="0em"
				>
					<tspan x="47" y="200.572">
						40 Minute video
					</tspan>
				</text>
				<text
					fill="#A6A6A6"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="82" y="40.572">
						v4.0.129
					</tspan>
				</text>
				<text
					fill="#A6A6A6"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="86" y="68.572">
						v4.0.126
					</tspan>
				</text>
				<text
					fill="#A6A6A6"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="119" y="133.572">
						v4.0.129
					</tspan>
				</text>
				<text
					fill="#A6A6A6"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="318" y="226.572">
						v4.0.129
					</tspan>
				</text>
				<text
					fill="#A6A6A6"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="189" y="161.572">
						v4.0.126
					</tspan>
				</text>
				<text
					fill="#A6A6A6"
					xmlSpace="preserve"
					style={{whiteSpace: 'pre'}}
					fontFamily="GTPlanar"
					fontSize="12"
					fontWeight="500"
					letterSpacing="0em"
				>
					<tspan x="637" y="254.572">
						v4.0.126
					</tspan>
				</text>
			</svg>{' '}
		</div>
	);
};