Skip to content

🎥 Make videos programmatically with React

3.8 KB
Raw Blame
'use strict';
(this['webpackChunk_remotion_example'] =
	this['webpackChunk_remotion_example'] || []).push([
	[801],
	{
		/***/ 2801:
			/***/ (
				__unused_webpack_module,
				__webpack_exports__,
				__webpack_require__,
			) => {
				// ESM COMPAT FLAG
				__webpack_require__.r(__webpack_exports__);

				// EXPORTS
				__webpack_require__.d(__webpack_exports__, {
					default: () => /* binding */ src_BlackGradients,
				});

				// EXTERNAL MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/react/index.js
				var react = __webpack_require__(2386);
				// EXTERNAL MODULE: ../core/dist/index.js
				var dist = __webpack_require__(4783);
				// CONCATENATED MODULE: ./src/BlackGradients/Blob.tsx

				const SvgBlob = ({style, gradient, d}) => {
					const [id] = (0, react.useState)(() => (0, dist.random)(null));
					return /* @__PURE__ */ react.createElement(
						'svg',
						{
							viewBox: '0 0 200 200',
							xmlns: 'http://www.w3.org/2000/svg',
							style,
						},
						/* @__PURE__ */ react.createElement(
							'defs',
							null,
							/* @__PURE__ */ react.createElement(
								'linearGradient',
								{
									id: String(id),
									gradientTransform: 'rotate(90)',
								},
								/* @__PURE__ */ react.createElement('stop', {
									offset: '5%',
									stopColor: gradient[0],
								}),
								/* @__PURE__ */ react.createElement('stop', {
									offset: '95%',
									stopColor: gradient[1],
								}),
							),
						),
						/* @__PURE__ */ react.createElement('path', {
							fill: `url(#${id})`,
							d,
							transform: 'translate(100 100)',
						}),
					);
				};
				// CONCATENATED MODULE: ./src/BlackGradients/index.tsx

				const BlackGradients = () => {
					return /* @__PURE__ */ react.createElement(
						'div',
						{
							style: {
								flex: 1,
								background: 'linear-gradient(to right, #222, #2a2a2a)',
							},
						},
						/* @__PURE__ */ react.createElement(SvgBlob, {
							style: {
								height: 450,
								width: 450,
								position: 'absolute',
								filter: 'drop-shadow(0 0 5px rgba(0, 0, 0, 1)) blur(20px)',
							},
							d: 'M39.4,-39.7C53,-25.9,67.1,-13,67,0C67,12.9,52.8,25.8,39.3,35.1C25.8,44.5,12.9,50.4,-0.2,50.5C-13.2,50.7,-26.4,45.1,-35.1,35.8C-43.8,26.4,-48.1,13.2,-52.2,-4.1C-56.3,-21.3,-60.1,-42.7,-51.4,-56.5C-42.7,-70.3,-21.3,-76.5,-4.2,-72.3C13,-68.1,25.9,-53.5,39.4,-39.7Z',
							gradient: ['#B60DE0', '#5A9BFB'],
						}),
						/* @__PURE__ */ react.createElement(SvgBlob, {
							style: {
								height: 300,
								width: 300,
								position: 'absolute',
								left: 450,
								top: 450,
								filter: 'drop-shadow(0 0 5px rgba(0, 0, 0, 1)) blur(20px)',
							},
							d: 'M52.2,-50.9C68.8,-35.7,84.1,-17.8,84.8,0.8C85.6,19.3,71.8,38.7,55.2,47.5C38.7,56.3,19.3,54.5,-1.4,55.9C-22,57.2,-44.1,61.7,-52.1,52.9C-60.1,44.1,-54.1,22,-52.8,1.3C-51.6,-19.5,-55,-38.9,-46.9,-54.2C-38.9,-69.5,-19.5,-80.6,-0.8,-79.8C17.8,-79,35.7,-66.2,52.2,-50.9Z',
							gradient: ['#e95950', '#fccc63'],
						}),
						/* @__PURE__ */ react.createElement(SvgBlob, {
							style: {
								height: 250,
								width: 250,
								position: 'absolute',
								left: 400,
								top: 370,
								filter: 'drop-shadow(0 0 5px rgba(0, 0, 0, 1)) blur(20px)',
							},
							d: 'M35,-63C46.5,-54,57.7,-46.9,66.2,-36.7C74.6,-26.5,80.2,-13.3,78.2,-1.1C76.3,11,66.8,22,56.7,29.3C46.6,36.6,35.9,40.2,26.4,46.6C16.8,53.1,8.4,62.5,-0.6,63.6C-9.6,64.6,-19.2,57.3,-28,50.3C-36.8,43.4,-44.7,36.9,-56.4,28.6C-68.2,20.2,-83.8,10.1,-87.7,-2.3C-91.6,-14.7,-84,-29.4,-75.3,-43C-66.6,-56.7,-57,-69.3,-44.3,-77.6C-31.6,-85.9,-15.8,-89.8,-2,-86.3C11.7,-82.9,23.5,-72,35,-63Z',
							gradient: ['rgb(131, 192, 98)', 'rgb(152, 215, 122)'],
						}),
					);
				};
				/* harmony default export */ const src_BlackGradients = BlackGradients;

				/***/
			},
	},
]);
//# sourceMappingURL=801.bundle.js.map