@remotion/promo-pages 4.0.306 → 4.0.310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/.turbo/turbo-make.log +2 -2
  2. package/dist/Homepage.js +2 -2
  3. package/dist/homepage/Pricing.js +1 -1
  4. package/package.json +10 -10
  5. package/dist/cn.d.ts +0 -2
  6. package/dist/cn.js +0 -5
  7. package/dist/components/Homepage.d.ts +0 -6
  8. package/dist/components/Homepage.js +0 -20
  9. package/dist/components/homepage/BackgroundAnimation.d.ts +0 -2
  10. package/dist/components/homepage/BackgroundAnimation.js +0 -66
  11. package/dist/components/homepage/ChooseTemplate.d.ts +0 -2
  12. package/dist/components/homepage/ChooseTemplate.js +0 -27
  13. package/dist/components/homepage/CommunityStats.d.ts +0 -3
  14. package/dist/components/homepage/CommunityStats.js +0 -6
  15. package/dist/components/homepage/CommunityStatsItems.d.ts +0 -7
  16. package/dist/components/homepage/CommunityStatsItems.js +0 -58
  17. package/dist/components/homepage/Counter.d.ts +0 -8
  18. package/dist/components/homepage/Counter.js +0 -47
  19. package/dist/components/homepage/Demo/Card.d.ts +0 -15
  20. package/dist/components/homepage/Demo/Card.js +0 -174
  21. package/dist/components/homepage/Demo/Cards.d.ts +0 -15
  22. package/dist/components/homepage/Demo/Cards.js +0 -57
  23. package/dist/components/homepage/Demo/Comp.d.ts +0 -38
  24. package/dist/components/homepage/Demo/Comp.js +0 -71
  25. package/dist/components/homepage/Demo/CurrentCountry.d.ts +0 -9
  26. package/dist/components/homepage/Demo/CurrentCountry.js +0 -48
  27. package/dist/components/homepage/Demo/DemoError.d.ts +0 -2
  28. package/dist/components/homepage/Demo/DemoError.js +0 -10
  29. package/dist/components/homepage/Demo/DemoErrorIcon.d.ts +0 -2
  30. package/dist/components/homepage/Demo/DemoErrorIcon.js +0 -16
  31. package/dist/components/homepage/Demo/DemoRender.d.ts +0 -102
  32. package/dist/components/homepage/Demo/DemoRender.js +0 -95
  33. package/dist/components/homepage/Demo/DigitWheel.d.ts +0 -9
  34. package/dist/components/homepage/Demo/DigitWheel.js +0 -94
  35. package/dist/components/homepage/Demo/DisplayedEmoji.d.ts +0 -5
  36. package/dist/components/homepage/Demo/DisplayedEmoji.js +0 -49
  37. package/dist/components/homepage/Demo/DoneCheckmark.d.ts +0 -2
  38. package/dist/components/homepage/Demo/DoneCheckmark.js +0 -20
  39. package/dist/components/homepage/Demo/DownloadNudge.d.ts +0 -2
  40. package/dist/components/homepage/Demo/DownloadNudge.js +0 -27
  41. package/dist/components/homepage/Demo/DragAndDropNudge.d.ts +0 -3
  42. package/dist/components/homepage/Demo/DragAndDropNudge.js +0 -26
  43. package/dist/components/homepage/Demo/EmojiCard.d.ts +0 -10
  44. package/dist/components/homepage/Demo/EmojiCard.js +0 -119
  45. package/dist/components/homepage/Demo/Minus.d.ts +0 -5
  46. package/dist/components/homepage/Demo/Minus.js +0 -11
  47. package/dist/components/homepage/Demo/PlayPauseButton.d.ts +0 -5
  48. package/dist/components/homepage/Demo/PlayPauseButton.js +0 -47
  49. package/dist/components/homepage/Demo/PlayerControls.d.ts +0 -8
  50. package/dist/components/homepage/Demo/PlayerControls.js +0 -15
  51. package/dist/components/homepage/Demo/PlayerSeekBar.d.ts +0 -11
  52. package/dist/components/homepage/Demo/PlayerSeekBar.js +0 -216
  53. package/dist/components/homepage/Demo/PlayerVolume.d.ts +0 -5
  54. package/dist/components/homepage/Demo/PlayerVolume.js +0 -53
  55. package/dist/components/homepage/Demo/Progress.d.ts +0 -4
  56. package/dist/components/homepage/Demo/Progress.js +0 -14
  57. package/dist/components/homepage/Demo/Spinner.d.ts +0 -5
  58. package/dist/components/homepage/Demo/Spinner.js +0 -37
  59. package/dist/components/homepage/Demo/Switcher.d.ts +0 -6
  60. package/dist/components/homepage/Demo/Switcher.js +0 -25
  61. package/dist/components/homepage/Demo/Temperature.d.ts +0 -6
  62. package/dist/components/homepage/Demo/Temperature.js +0 -21
  63. package/dist/components/homepage/Demo/TemperatureNumber.d.ts +0 -5
  64. package/dist/components/homepage/Demo/TemperatureNumber.js +0 -36
  65. package/dist/components/homepage/Demo/ThemeNudge.d.ts +0 -3
  66. package/dist/components/homepage/Demo/ThemeNudge.js +0 -35
  67. package/dist/components/homepage/Demo/TimeDisplay.d.ts +0 -6
  68. package/dist/components/homepage/Demo/TimeDisplay.js +0 -27
  69. package/dist/components/homepage/Demo/TrendingRepos.d.ts +0 -6
  70. package/dist/components/homepage/Demo/TrendingRepos.js +0 -65
  71. package/dist/components/homepage/Demo/icons.d.ts +0 -10
  72. package/dist/components/homepage/Demo/icons.js +0 -22
  73. package/dist/components/homepage/Demo/index.d.ts +0 -2
  74. package/dist/components/homepage/Demo/index.js +0 -95
  75. package/dist/components/homepage/Demo/math.d.ts +0 -10
  76. package/dist/components/homepage/Demo/math.js +0 -29
  77. package/dist/components/homepage/Demo/types.d.ts +0 -6
  78. package/dist/components/homepage/Demo/types.js +0 -0
  79. package/dist/components/homepage/Editor.d.ts +0 -2
  80. package/dist/components/homepage/Editor.js +0 -37
  81. package/dist/components/homepage/EvaluateRemotion.d.ts +0 -3
  82. package/dist/components/homepage/EvaluateRemotion.js +0 -39
  83. package/dist/components/homepage/FreePricing.d.ts +0 -4
  84. package/dist/components/homepage/FreePricing.js +0 -80
  85. package/dist/components/homepage/GetStartedStrip.d.ts +0 -2
  86. package/dist/components/homepage/GetStartedStrip.js +0 -14
  87. package/dist/components/homepage/GitHubButton.d.ts +0 -2
  88. package/dist/components/homepage/GitHubButton.js +0 -7
  89. package/dist/components/homepage/IconForTemplate.d.ts +0 -6
  90. package/dist/components/homepage/IconForTemplate.js +0 -94
  91. package/dist/components/homepage/IfYouKnowReact.d.ts +0 -3
  92. package/dist/components/homepage/IfYouKnowReact.js +0 -20
  93. package/dist/components/homepage/InfoTooltip.d.ts +0 -6
  94. package/dist/components/homepage/InfoTooltip.js +0 -6
  95. package/dist/components/homepage/MoreTemplatesButton.d.ts +0 -2
  96. package/dist/components/homepage/MoreTemplatesButton.js +0 -10
  97. package/dist/components/homepage/MuxVideo.d.ts +0 -7
  98. package/dist/components/homepage/MuxVideo.js +0 -45
  99. package/dist/components/homepage/NewsletterButton.d.ts +0 -2
  100. package/dist/components/homepage/NewsletterButton.js +0 -38
  101. package/dist/components/homepage/Pricing.d.ts +0 -2
  102. package/dist/components/homepage/Pricing.js +0 -15
  103. package/dist/components/homepage/PricingBulletPoint.d.ts +0 -6
  104. package/dist/components/homepage/PricingBulletPoint.js +0 -19
  105. package/dist/components/homepage/RealMp4Videos.d.ts +0 -2
  106. package/dist/components/homepage/RealMp4Videos.js +0 -32
  107. package/dist/components/homepage/Spacer.d.ts +0 -2
  108. package/dist/components/homepage/Spacer.js +0 -4
  109. package/dist/components/homepage/TemplateIcon.d.ts +0 -5
  110. package/dist/components/homepage/TemplateIcon.js +0 -24
  111. package/dist/components/homepage/TextInput.d.ts +0 -7
  112. package/dist/components/homepage/TextInput.js +0 -34
  113. package/dist/components/homepage/TrustedByBanner.d.ts +0 -2
  114. package/dist/components/homepage/TrustedByBanner.js +0 -32
  115. package/dist/components/homepage/VideoApps.d.ts +0 -4
  116. package/dist/components/homepage/VideoApps.js +0 -72
  117. package/dist/components/homepage/VideoAppsShowcase.d.ts +0 -3
  118. package/dist/components/homepage/VideoAppsShowcase.js +0 -160
  119. package/dist/components/homepage/VideoAppsTitle.d.ts +0 -5
  120. package/dist/components/homepage/VideoAppsTitle.js +0 -7
  121. package/dist/components/homepage/VideoPlayerWithControls.d.ts +0 -20
  122. package/dist/components/homepage/VideoPlayerWithControls.js +0 -104
  123. package/dist/components/homepage/WriteInReact.d.ts +0 -2
  124. package/dist/components/homepage/WriteInReact.js +0 -10
  125. package/dist/components/homepage/YouAreHere.d.ts +0 -2
  126. package/dist/components/homepage/YouAreHere.js +0 -23
  127. package/dist/components/homepage/layout/Button.d.ts +0 -19
  128. package/dist/components/homepage/layout/Button.js +0 -29
  129. package/dist/components/homepage/layout/colors.d.ts +0 -13
  130. package/dist/components/homepage/layout/colors.js +0 -14
  131. package/dist/components/homepage/layout/use-color-mode.d.ts +0 -21
  132. package/dist/components/homepage/layout/use-color-mode.js +0 -22
  133. package/dist/components/homepage/layout/use-el-size.d.ts +0 -5
  134. package/dist/components/homepage/layout/use-el-size.js +0 -40
  135. package/dist/components/homepage/layout/use-mobile-layout.d.ts +0 -1
  136. package/dist/components/homepage/layout/use-mobile-layout.js +0 -6
  137. package/dist/components/icons/blank.d.ts +0 -3
  138. package/dist/components/icons/blank.js +0 -4
  139. package/dist/components/icons/clone.d.ts +0 -2
  140. package/dist/components/icons/clone.js +0 -2
  141. package/dist/components/icons/code-hike.d.ts +0 -3
  142. package/dist/components/icons/code-hike.js +0 -4
  143. package/dist/components/icons/cubes.d.ts +0 -3
  144. package/dist/components/icons/cubes.js +0 -4
  145. package/dist/components/icons/js.d.ts +0 -3
  146. package/dist/components/icons/js.js +0 -4
  147. package/dist/components/icons/music.d.ts +0 -2
  148. package/dist/components/icons/music.js +0 -4
  149. package/dist/components/icons/next.d.ts +0 -4
  150. package/dist/components/icons/next.js +0 -4
  151. package/dist/components/icons/overlay.d.ts +0 -3
  152. package/dist/components/icons/overlay.js +0 -4
  153. package/dist/components/icons/remix.d.ts +0 -3
  154. package/dist/components/icons/remix.js +0 -4
  155. package/dist/components/icons/skia.d.ts +0 -3
  156. package/dist/components/icons/skia.js +0 -4
  157. package/dist/components/icons/stargazer.d.ts +0 -3
  158. package/dist/components/icons/stargazer.js +0 -4
  159. package/dist/components/icons/still.d.ts +0 -3
  160. package/dist/components/icons/still.js +0 -4
  161. package/dist/components/icons/tailwind.d.ts +0 -3
  162. package/dist/components/icons/tailwind.js +0 -4
  163. package/dist/components/icons/tiktok.d.ts +0 -3
  164. package/dist/components/icons/tiktok.js +0 -4
  165. package/dist/components/icons/ts.d.ts +0 -3
  166. package/dist/components/icons/ts.js +0 -4
  167. package/dist/components/icons/tts.d.ts +0 -3
  168. package/dist/components/icons/tts.js +0 -4
  169. package/dist/components/icons/undo.d.ts +0 -3
  170. package/dist/components/icons/undo.js +0 -2
  171. package/dist/components/icons/waveform.d.ts +0 -3
  172. package/dist/components/icons/waveform.js +0 -4
  173. package/dist/main.d.ts +0 -1
  174. package/dist/main.js +0 -6
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useCallback } from 'react';
3
- export const Switcher = ({ type, theme, onTap }) => {
4
- const onPointerDown = useCallback((e) => {
5
- e.stopPropagation();
6
- onTap();
7
- }, [onTap]);
8
- const switcherSize = 40;
9
- return (_jsx("div", { onPointerDown: onPointerDown, style: {
10
- height: switcherSize,
11
- width: switcherSize,
12
- borderRadius: switcherSize / 2,
13
- position: 'absolute',
14
- marginLeft: -switcherSize / 2,
15
- top: '50%',
16
- left: type === 'left' ? 0 : '100%',
17
- marginTop: -switcherSize / 2,
18
- backgroundColor: theme === 'dark' ? '#222' : '#fafafa',
19
- color: theme === 'dark' ? 'white' : '#222',
20
- cursor: 'pointer',
21
- justifyContent: 'center',
22
- alignItems: 'center',
23
- display: 'flex',
24
- }, children: _jsxs("svg", { style: { height: switcherSize / 2 }, viewBox: "0 0 320 512", children: [type === 'left' ? (_jsx("path", { fill: "currentcolor", d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" })) : null, type === 'right' ? (_jsx("path", { fill: "currentcolor", d: "M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z" })) : null] }) }));
25
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export declare const Temperature: React.FC<{
3
- readonly theme: 'dark' | 'light';
4
- readonly city: string | null;
5
- readonly temperatureInCelsius: number | null;
6
- }>;
@@ -1,21 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { AbsoluteFill } from 'remotion';
3
- import { TemperatureNumber } from './TemperatureNumber';
4
- export const Temperature = ({ theme, city, temperatureInCelsius }) => {
5
- if (temperatureInCelsius === null) {
6
- return null;
7
- }
8
- return (_jsx(AbsoluteFill, { children: _jsxs(AbsoluteFill, { style: {
9
- alignItems: 'center',
10
- justifyContent: 'center',
11
- paddingLeft: 20,
12
- paddingRight: 20,
13
- }, children: [_jsxs("div", { style: {
14
- color: '#0b84f3',
15
- fontFamily: 'GTPlanar',
16
- fontWeight: '500',
17
- fontSize: 13,
18
- textAlign: 'center',
19
- marginTop: 5,
20
- }, children: ["Temperature in ", city] }), _jsx(TemperatureNumber, { theme: theme, temperatureInCelsius: temperatureInCelsius })] }) }));
21
- };
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const TemperatureNumber: React.FC<{
3
- readonly theme: 'dark' | 'light';
4
- readonly temperatureInCelsius: number;
5
- }>;
@@ -1,36 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Wheel } from './DigitWheel';
3
- export const TemperatureNumber = ({ theme, temperatureInCelsius }) => {
4
- const temperatureInFahrenheit = (temperatureInCelsius * 9) / 5 + 32;
5
- const celsiusDegree = Math.abs(temperatureInCelsius);
6
- const fahrenheitDegree = Math.abs(temperatureInFahrenheit);
7
- const paddedCelsiusDegree = String(celsiusDegree)
8
- .padStart(fahrenheitDegree.toFixed(0).length, '0')
9
- .split('');
10
- const paddedFahrenheitDegree = fahrenheitDegree
11
- .toFixed(0)
12
- .padStart(paddedCelsiusDegree.length, '0')
13
- .split('');
14
- return (_jsxs("div", { style: {
15
- lineHeight: 1.1,
16
- fontFamily: 'GTPlanar',
17
- textAlign: 'center',
18
- fontWeight: 'bold',
19
- fontSize: 60,
20
- color: theme === 'dark' ? 'white' : 'black',
21
- fontVariantNumeric: 'tabular-nums',
22
- display: 'flex',
23
- flexDirection: 'row',
24
- alignItems: 'center',
25
- }, children: [paddedCelsiusDegree.map((digit, i) => (_jsx(Wheel
26
- // eslint-disable-next-line react/no-array-index-key
27
- , { delay: i * 4, renderDigit: (_i) => 9 - _i, digits: [
28
- Number(paddedFahrenheitDegree[i]),
29
- Number(digit),
30
- Number(paddedFahrenheitDegree[i]),
31
- ], isNegative: [
32
- temperatureInFahrenheit < 0,
33
- temperatureInCelsius < 0,
34
- temperatureInFahrenheit < 0,
35
- ], isLeadingDigit: i === 0 }, i))), _jsx("div", { style: { width: 8 } }), "\u00B0", _jsx(Wheel, { delay: paddedCelsiusDegree.length * 4 - 2, digits: [0, 1, 0], renderDigit: (_i) => _i % 2 === 0 ? 'C' : _jsx("span", { style: { marginLeft: -5 }, children: "F" }), isLeadingDigit: false, isNegative: [false, false, false] })] }));
36
- };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const Icon: React.FC;
3
- export declare const ThemeNudge: React.FC;
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
- import { FONTS } from '../layout/colors';
4
- import { useColorMode } from '../layout/use-color-mode';
5
- const origWidth = 21;
6
- const scale = 0.4;
7
- export const Icon = () => {
8
- return (_jsx("svg", { style: {
9
- width: origWidth * scale,
10
- }, viewBox: "0 0 21 161", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M5 5C23 59.5 14.5 120.5 5.00005 156", stroke: "currentColor", strokeWidth: "8", strokeLinecap: "round" }) }));
11
- };
12
- export const ThemeNudge = () => {
13
- const { colorMode, setColorMode } = useColorMode();
14
- const toggleTheme = React.useCallback((e) => {
15
- e.preventDefault();
16
- setColorMode(colorMode === 'dark' ? 'light' : 'dark');
17
- }, [colorMode, setColorMode]);
18
- return (_jsx("div", { style: {
19
- flexDirection: 'row',
20
- display: 'flex',
21
- justifyContent: 'flex-start',
22
- paddingBottom: 5,
23
- textAlign: 'right',
24
- position: 'absolute',
25
- right: 0,
26
- }, children: _jsxs("div", { children: [_jsxs("div", { style: {
27
- fontFamily: FONTS.GTPLANAR,
28
- fontSize: 15,
29
- width: 280,
30
- paddingBottom: 8,
31
- marginLeft: -15,
32
- textWrap: 'balance',
33
- marginTop: 5,
34
- }, children: [_jsxs("a", { href: "#", onClick: toggleTheme, className: "bluelink", children: ["Switch to ", colorMode === 'dark' ? 'light' : 'dark', " mode"] }), ' ', "and see the video adjust!", ' '] }), _jsx(Icon, {})] }) }));
35
- };
@@ -1,6 +0,0 @@
1
- import type { PlayerRef } from '@remotion/player';
2
- import React from 'react';
3
- export declare const TimeDisplay: React.FC<{
4
- readonly fps: number;
5
- readonly playerRef: React.RefObject<PlayerRef | null>;
6
- }>;
@@ -1,27 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import React, { useEffect } from 'react';
3
- const formatTime = (timeInSeconds) => {
4
- const minutes = Math.floor(timeInSeconds / 60);
5
- const seconds = Math.floor(timeInSeconds - minutes * 60);
6
- return `${String(minutes)}:${String(seconds).padStart(2, '0')}`;
7
- };
8
- export const TimeDisplay = ({ fps, playerRef }) => {
9
- const [time, setTime] = React.useState(0);
10
- useEffect(() => {
11
- const { current } = playerRef;
12
- if (!current) {
13
- return;
14
- }
15
- const onTimeUpdate = () => {
16
- setTime(current.getCurrentFrame());
17
- };
18
- current.addEventListener('frameupdate', onTimeUpdate);
19
- return () => {
20
- current.removeEventListener('frameupdate', onTimeUpdate);
21
- };
22
- }, [playerRef]);
23
- return (_jsx("div", { style: {
24
- fontSize: 16,
25
- fontVariantNumeric: 'tabular-nums',
26
- }, children: _jsx("span", { children: formatTime(time / fps) }) }));
27
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { RemoteData } from './Comp';
3
- export declare const TrendingRepos: React.FC<{
4
- readonly theme: 'dark' | 'light';
5
- readonly trending: RemoteData | null;
6
- }>;
@@ -1,65 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { useMemo } from 'react';
3
- import { AbsoluteFill, spring, useCurrentFrame, useVideoConfig } from 'remotion';
4
- const TrendingRepoItem = ({ repo, theme, number }) => {
5
- const frame = useCurrentFrame();
6
- const { fps } = useVideoConfig();
7
- const progress = spring({
8
- fps,
9
- frame,
10
- config: {
11
- damping: 200,
12
- },
13
- delay: number * 10 + 20,
14
- });
15
- const item = useMemo(() => {
16
- return {
17
- lineHeight: 1.1,
18
- fontFamily: 'GTPlanar',
19
- fontWeight: '500',
20
- color: theme === 'dark' ? 'white' : 'black',
21
- fontFeatureSettings: "'ss03' 1",
22
- opacity: progress,
23
- };
24
- }, [progress, theme]);
25
- return (_jsxs("div", { style: item, children: [number, ". ", repo] }));
26
- };
27
- export const TrendingRepos = ({ theme, trending }) => {
28
- const fill = theme === 'light' ? '#666' : '#999';
29
- const frame = useCurrentFrame();
30
- const { fps } = useVideoConfig();
31
- const progress1 = spring({
32
- fps,
33
- frame,
34
- config: {
35
- damping: 200,
36
- },
37
- delay: 0,
38
- });
39
- if (trending === null) {
40
- return null;
41
- }
42
- return (_jsx(AbsoluteFill, { children: _jsx(AbsoluteFill, { style: {
43
- justifyContent: 'center',
44
- paddingLeft: 20,
45
- paddingRight: 20,
46
- }, children: _jsxs("div", { children: [_jsx("div", { style: {
47
- color: fill,
48
- fontFamily: 'GTPlanar',
49
- fontWeight: '500',
50
- fontSize: 12,
51
- opacity: progress1,
52
- }, children: new Intl.DateTimeFormat('en-US', {
53
- weekday: 'long',
54
- month: 'long',
55
- day: 'numeric',
56
- }).format(new Date(trending.date)) }), _jsx("div", { style: {
57
- color: '#0b84f3',
58
- fontFamily: 'GTPlanar',
59
- fontWeight: '500',
60
- fontSize: 16,
61
- marginBottom: 15,
62
- opacity: progress1,
63
- lineHeight: 1,
64
- }, children: "Trending repositories" }), _jsx(TrendingRepoItem, { number: 1, repo: trending.repos[0], theme: theme }), _jsx(TrendingRepoItem, { number: 2, repo: trending.repos[1], theme: theme }), _jsx(TrendingRepoItem, { number: 3, repo: trending.repos[2], theme: theme })] }) }) }));
65
- };
@@ -1,10 +0,0 @@
1
- import type { SVGProps } from 'react';
2
- import React from 'react';
3
- export declare const IconLeft: React.FC<SVGProps<SVGSVGElement>>;
4
- export declare const IconRight: React.FC<SVGProps<SVGSVGElement>>;
5
- export declare const CancelIcon: React.FC<SVGProps<SVGSVGElement>>;
6
- export declare const PausedIcon: React.FC<SVGProps<SVGSVGElement>>;
7
- export declare const PlayingIcon: React.FC<SVGProps<SVGSVGElement>>;
8
- export declare const FullscreenIcon: React.FC<SVGProps<SVGSVGElement>>;
9
- export declare const NotMutedIcon: React.FC<SVGProps<SVGSVGElement>>;
10
- export declare const IsMutedIcon: React.FC<SVGProps<SVGSVGElement>>;
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { RED } from '../layout/colors';
3
- export const IconLeft = (props) => (_jsx("svg", { viewBox: "0 0 320 512", ...props, children: _jsx("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" }) }));
4
- export const IconRight = (props) => (_jsx("svg", { viewBox: "0 0 320 512", ...props, children: _jsx("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }) }));
5
- export const CancelIcon = (props) => {
6
- return (_jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "times", className: "svg-inline--fa fa-times fa-w-11", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", ...props, children: _jsx("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }));
7
- };
8
- export const PausedIcon = (props) => {
9
- return (_jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "play", className: "svg-inline--fa fa-play fa-w-14", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", ...props, children: _jsx("path", { fill: "currentColor", d: "M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z" }) }));
10
- };
11
- export const PlayingIcon = (props) => {
12
- return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", fill: "currentColor", ...props, children: _jsx("path", { d: "M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z" }) }));
13
- };
14
- export const FullscreenIcon = (props) => {
15
- return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", fill: "currentColor", ...props, children: _jsx("path", { d: "M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z" }) }));
16
- };
17
- export const NotMutedIcon = (props) => {
18
- return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, viewBox: "0 0 640 512", fill: "currentColor", children: _jsx("path", { d: "M32 160l0 192 128 0L304 480l48 0 0-448-48 0L160 160 32 160zM441.6 332.8C464.9 315.3 480 287.4 480 256s-15.1-59.3-38.4-76.8l-28.8 38.4c11.7 8.8 19.2 22.7 19.2 38.4s-7.5 29.6-19.2 38.4l28.8 38.4zm57.6 76.8c46.6-35 76.8-90.8 76.8-153.6s-30.2-118.6-76.8-153.6l-28.8 38.4c35 26.3 57.6 68.1 57.6 115.2s-22.6 88.9-57.6 115.2l28.8 38.4z" }) }));
19
- };
20
- export const IsMutedIcon = (props) => {
21
- return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, viewBox: "0 0 640 512", fill: RED, children: _jsx("path", { d: "M48.4 14.8L29.4 .1 0 38l19 14.7L591.5 497.2l19 14.7L639.9 474l-19-14.7-95.1-73.8C557 351.3 576 305.9 576 256c0-62.8-30.2-118.6-76.8-153.6l-28.8 38.4c35 26.3 57.6 68.1 57.6 115.2c0 38.8-15.3 74-40.3 99.9l-38.2-29.7C468.3 308.7 480 283.7 480 256c0-31.4-15.1-59.3-38.4-76.8l-28.8 38.4c11.7 8.8 19.2 22.7 19.2 38.4s-7.5 29.6-19.2 38.4l5.9 7.9L352 250.5 352 32l-48 0L195.2 128.7 48.4 14.8zM352 373.3L81.2 160 32 160l0 192 128 0L304 480l48 0 0-106.7z" }) }));
22
- };
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Demo: React.FC;
@@ -1,95 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Player } from '@remotion/player';
3
- import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
4
- import { PALETTE } from '../layout/colors';
5
- import { useColorMode } from '../layout/use-color-mode';
6
- import { SectionTitle } from '../VideoAppsTitle';
7
- import { getDataAndProps, HomepageVideoComp, } from './Comp';
8
- import { DemoError } from './DemoError';
9
- import { RenderButton } from './DemoRender';
10
- import { DownloadNudge } from './DownloadNudge';
11
- import { DragAndDropNudge } from './DragAndDropNudge';
12
- import { PlayerControls } from './PlayerControls';
13
- import { ThemeNudge } from './ThemeNudge';
14
- const style = {
15
- width: '100%',
16
- aspectRatio: '640 / 360',
17
- borderBottom: `2px solid ${PALETTE.BOX_STROKE}`,
18
- touchAction: 'none', // prevent page from scrolling when dragging children on mobile
19
- };
20
- const playerWrapper = {
21
- border: `2px solid ${PALETTE.BOX_STROKE}`,
22
- borderBottom: `4px solid ${PALETTE.BOX_STROKE}`,
23
- borderRadius: 8,
24
- width: '100%',
25
- overflow: 'hidden',
26
- };
27
- export const Demo = () => {
28
- const { colorMode } = useColorMode();
29
- const [data, setData] = useState(null);
30
- const ref = useRef(null);
31
- const [isFullscreen, setIsFullscreen] = useState(false);
32
- const [cardOrder, setCardOrder] = useState([0, 1, 2, 3]);
33
- const [emojiIndex, setEmojiIndex] = useState(0);
34
- const [error, setError] = useState(false);
35
- useEffect(() => {
36
- getDataAndProps()
37
- .then((d) => {
38
- setData(d);
39
- })
40
- .catch((err) => {
41
- // eslint-disable-next-line no-console
42
- console.log(err);
43
- setError(true);
44
- });
45
- }, []);
46
- useEffect(() => {
47
- const { current: playerRef } = ref;
48
- if (!playerRef || !data) {
49
- return;
50
- }
51
- const onFullscreenChange = () => {
52
- setIsFullscreen(playerRef.isFullscreen());
53
- };
54
- playerRef.addEventListener('fullscreenchange', onFullscreenChange);
55
- return () => {
56
- playerRef.removeEventListener('fullscreenchange', onFullscreenChange);
57
- };
58
- }, [data]);
59
- const updateCardOrder = useCallback((newCardOrder) => {
60
- setCardOrder(newCardOrder);
61
- }, []);
62
- const props = useMemo(() => {
63
- var _a, _b;
64
- return {
65
- theme: colorMode,
66
- onToggle: () => {
67
- var _a;
68
- (_a = ref.current) === null || _a === void 0 ? void 0 : _a.toggle();
69
- },
70
- cardOrder,
71
- updateCardOrder,
72
- location: (_a = data === null || data === void 0 ? void 0 : data.location) !== null && _a !== void 0 ? _a : null,
73
- trending: (_b = data === null || data === void 0 ? void 0 : data.trending) !== null && _b !== void 0 ? _b : null,
74
- onClickLeft: () => {
75
- setEmojiIndex((e) => e - 1);
76
- },
77
- onClickRight: () => {
78
- setEmojiIndex((e) => e + 1);
79
- },
80
- emojiIndex,
81
- };
82
- }, [cardOrder, emojiIndex, colorMode, data, updateCardOrder]);
83
- const onError = useCallback(() => {
84
- setError(true);
85
- }, []);
86
- return (_jsxs("div", { children: [_jsx("br", {}), _jsx("br", {}), _jsx(SectionTitle, { children: "Demo" }), _jsxs("div", { style: { height: 140, position: 'relative' }, children: [_jsx(DragAndDropNudge, {}), _jsx(ThemeNudge, {})] }), _jsxs("div", { style: playerWrapper, children: [_jsx(Player, { ref: ref, component: HomepageVideoComp, compositionWidth: 640, compositionHeight: 360, durationInFrames: 120, fps: 30, autoPlay: true, controls: isFullscreen, clickToPlay: false, style: style, initiallyMuted: true, inputProps: props, loop: true }), _jsx(PlayerControls, { playerRef: ref, durationInFrames: 120, fps: 30, children: _jsx(RenderButton, { onError: onError, renderData: data
87
- ? {
88
- cardOrder,
89
- emojiIndex,
90
- location: data.location,
91
- theme: colorMode,
92
- trending: data.trending,
93
- }
94
- : null }) })] }), error ? _jsx(DemoError, {}) : null, _jsx(DownloadNudge, {})] }));
95
- };
@@ -1,10 +0,0 @@
1
- export type Position = {
2
- x: number;
3
- y: number;
4
- };
5
- export declare const paddingAndMargin = 20;
6
- export declare const cardHeight: number;
7
- export declare const cardWidth: number;
8
- export declare const getPositionForIndex: (index: number) => Position;
9
- export declare const getInitialPositions: () => Position[];
10
- export declare const getIndexFromPosition: (clientX: number, clientY: number) => 0 | 2 | 3 | 1 | undefined;
@@ -1,29 +0,0 @@
1
- export const paddingAndMargin = 20;
2
- const height = 360;
3
- const width = 640;
4
- export const cardHeight = (height - paddingAndMargin * 3) / 2;
5
- export const cardWidth = (width - paddingAndMargin * 3) / 2;
6
- export const getPositionForIndex = (index) => {
7
- const x = index % 2 === 0 ? paddingAndMargin : cardWidth + paddingAndMargin * 2;
8
- const y = index < 2 ? paddingAndMargin : cardHeight + paddingAndMargin * 2;
9
- return { x, y };
10
- };
11
- export const getInitialPositions = () => {
12
- return new Array(4).fill(true).map((_, i) => getPositionForIndex(i));
13
- };
14
- export const getIndexFromPosition = (clientX, clientY) => {
15
- const left = clientX < cardWidth / 2 + paddingAndMargin;
16
- const top = clientY < cardHeight / 2 + paddingAndMargin;
17
- if (left && top) {
18
- return 0;
19
- }
20
- if (!left && top) {
21
- return 1;
22
- }
23
- if (left && !top) {
24
- return 2;
25
- }
26
- if (!left && !top) {
27
- return 3;
28
- }
29
- };
@@ -1,6 +0,0 @@
1
- export type Location = {
2
- country: string;
3
- city: string;
4
- latitude: number | string;
5
- longitude: number | string;
6
- };
File without changes
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const LightningFastEditor: React.FC;
@@ -1,37 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useCallback, useEffect, useRef, useState } from 'react';
3
- export const LightningFastEditor = () => {
4
- const ref = useRef(null);
5
- const videoRef = useRef(null);
6
- const [isIntersecting, setIsIntersecting] = useState(false);
7
- const callback = useCallback((data) => {
8
- var _a, _b;
9
- const { isIntersecting: intersecting } = data[0];
10
- setIsIntersecting(intersecting);
11
- if (intersecting) {
12
- (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
13
- }
14
- else {
15
- (_b = videoRef.current) === null || _b === void 0 ? void 0 : _b.pause();
16
- }
17
- }, []);
18
- useEffect(() => {
19
- const { current } = ref;
20
- if (!current) {
21
- return;
22
- }
23
- const observer = new IntersectionObserver(callback, {
24
- root: null,
25
- threshold: 0.2,
26
- });
27
- observer.observe(current);
28
- return () => observer.unobserve(current);
29
- }, [callback]);
30
- return (_jsxs("div", { ref: ref, className: 'flex flex-col-reverse lg:flex-row justify-start lg:justify-end lg:text-right items-start lg:items-center', children: [_jsx("div", { children: _jsx("video", { src: "/img/player-demo.mp4", autoPlay: true, muted: true, playsInline: true, loop: true, style: {
31
- animationPlayState: isIntersecting ? 'running' : 'paused',
32
- width: 500,
33
- maxWidth: '100%',
34
- borderRadius: 7,
35
- overflow: 'hidden',
36
- } }) }), _jsxs("div", { style: { flex: 1 }, children: [_jsxs("h2", { className: 'fontbrand text-4xl', children: ["Fast and ", _jsx("br", {}), " ", _jsx("span", { className: "text-brand", children: "delightful" }), " editing"] }), _jsxs("p", { className: "leading-relaxed", children: ["Preview your video in the browser. ", _jsx("br", {}), "Fast refresh while the video is playing. ", _jsx("br", {}), "Scrub through the timeline to get every frame perfect."] })] })] }));
37
- };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const EvaluateRemotionSection: React.FC;
3
- export default EvaluateRemotionSection;
@@ -1,39 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Adjustments to the EvaluateRemotionSection.tsx to separate the flex box into two boxes
3
- // with specified alignment and positioning requirements.
4
- import { useEffect, useState } from 'react';
5
- import { BlueButton } from './layout/Button';
6
- const EvaluateRemotionSection = () => {
7
- const [dailyAvatars, setDailyAvatars] = useState([]);
8
- useEffect(() => {
9
- const avatars = [
10
- '/img/freelancers/alex.jpeg',
11
- '/img/freelancers/antoine.jpeg',
12
- '/img/freelancers/ayush.png',
13
- '/img/freelancers/benjamin.jpeg',
14
- '/img/freelancers/florent.jpeg',
15
- '/img/freelancers/karel.jpeg',
16
- '/img/freelancers/lorenzo.jpeg',
17
- '/img/freelancers/mickael.jpeg',
18
- '/img/freelancers/mohit.jpeg',
19
- '/img/freelancers/pramod.jpg',
20
- '/img/freelancers/pranav.jpg',
21
- '/img/freelancers/rahul.png',
22
- '/img/freelancers/ray.jpeg',
23
- '/img/freelancers/stephen.png',
24
- '/img/freelancers/umungo.png',
25
- '/img/freelancers/yehor.jpeg',
26
- '/img/freelancers/andrei.png',
27
- // Add more avatar paths here
28
- ];
29
- const selectedAvatars = [];
30
- for (let i = 0; i < 3; i++) {
31
- const index = Math.floor(Math.random() * avatars.length);
32
- selectedAvatars.push(avatars[index]);
33
- avatars.splice(index, 1); // Remove selected avatar to avoid duplicates
34
- }
35
- setDailyAvatars(selectedAvatars);
36
- }, []);
37
- return (_jsxs("div", { className: "flex flex-col lg:flex-row gap-2", children: [_jsxs("div", { className: 'card flex-1 flex flex-col', children: [_jsx("div", { className: 'fontbrand text-2xl font-bold', children: "Evaluate Remotion for your company" }), _jsx("p", { className: 'text-muted fontbrand leading-snug', children: "Book a 20 minute call with us to get all your questions answered." }), _jsx("div", { className: "flex-1" }), _jsx("a", { target: "_blank", href: "https://cal.com/remotion/evaluate", style: { textDecoration: 'none' }, children: _jsx(BlueButton, { size: "sm", loading: false, children: "Schedule a call" }) })] }), _jsxs("div", { className: 'card flex-1 flex flex-col', children: [_jsx("div", { className: 'fontbrand text-2xl font-bold', children: "Get help for your projects" }), _jsx("p", { className: 'text-muted fontbrand leading-snug', children: "Contact our experts for help and work." }), _jsx("div", { className: "flex-1" }), _jsxs("div", { className: 'flex flex-row justify-between', children: [_jsx("a", { href: "/experts", style: { textDecoration: 'none' }, children: _jsx(BlueButton, { size: "sm", loading: false, children: "Remotion Experts" }) }), _jsx("div", { className: 'flex justify-end items-end gap-3', children: dailyAvatars.map((avatar) => (_jsx("div", { className: 'w-12 h-12 rounded-full bg-muted bg-cover bg-center -ml-5 border-2 border-black', style: { backgroundImage: `url(${avatar})` } }, avatar))) })] })] })] }));
38
- };
39
- export default EvaluateRemotionSection;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const FreePricing: React.FC;
3
- export declare const EnterpriseLicense: React.FC;
4
- export declare const CompanyPricing: React.FC;
@@ -1,80 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { useCallback, useMemo } from 'react';
3
- import { cn } from '../../cn';
4
- import { Counter } from './Counter';
5
- import { InfoTooltip } from './InfoTooltip';
6
- import { PricingBulletPoint } from './PricingBulletPoint';
7
- const Container = ({ children, }) => {
8
- return (_jsx("div", { className: 'flex flex-col border-effect rounded-xl p-5 bg-pane', children: children }));
9
- };
10
- const Title = ({ children }) => {
11
- return (_jsx("div", { className: "text-4xl font-bold leading-none fontbrand mt-2 mb-5", children: children }));
12
- };
13
- const Audience = ({ children }) => {
14
- return _jsx("div", { className: 'fontbrand text-lg leading-none', children: children });
15
- };
16
- const BottomInfo = ({ children, className, ...props }) => {
17
- return (_jsx("div", { className: cn(className, 'text-[var(--subtitle)] fontbrand text-sm'), ...props, children: children }));
18
- };
19
- const PriceTag = ({ children }) => {
20
- return (_jsx("div", { className: 'fontbrand text-2xl font-bold min-w-[80px] w-auto text-right shrink-0 ml-4', children: children }));
21
- };
22
- const SmallPriceTag = ({ children }) => {
23
- return (_jsx("div", { className: 'fontbrand text-2xl font-medium w-auto min-w-[80px] text-right shrink-0 ml-4', children: children }));
24
- };
25
- export const FreePricing = () => {
26
- return (_jsxs(Container, { children: [_jsx(Audience, { children: "For individuals and companies of up to 3 people" }), _jsx(Title, { children: "Free License" }), _jsx(PricingBulletPoint, { text: "Unlimited videos", checked: true }), _jsx(PricingBulletPoint, { text: "Commercial use allowed", checked: true }), _jsx(PricingBulletPoint, { text: "Self-hosted cloud rendering allowed", checked: true }), _jsx(PricingBulletPoint, { text: "Must upgrade when your team grows", checked: false })] }));
27
- };
28
- const textUnitWrapper = {
29
- display: 'flex',
30
- flexDirection: 'column',
31
- };
32
- export const EnterpriseLicense = () => {
33
- return (_jsxs(Container, { children: [_jsx(Audience, { children: "For advanced needs" }), _jsx(Title, { children: "Enterprise License" }), _jsx(PricingBulletPoint, { text: "Everything in Company License", checked: true }), _jsx(PricingBulletPoint, { text: "Custom terms, billing and pricing", checked: true }), _jsx(PricingBulletPoint, { text: "Compliance forms", checked: true }), _jsx(PricingBulletPoint, { text: "Prioritized feature requests", checked: true }), _jsx(PricingBulletPoint, { text: "Private support channel", checked: true }), _jsx(PricingBulletPoint, { text: "Monthly consulting session", checked: true }), _jsx("div", { style: { height: 30 } }), _jsx("div", { className: 'flex flex-row justify-end', children: _jsxs("div", { style: {
34
- ...textUnitWrapper,
35
- alignItems: 'flex-end',
36
- }, children: [_jsx(PriceTag, { children: _jsx("a", { className: 'cursor-pointer no-underline text-inherit hover:text-brand', target: '_blank', href: "https://www.remotion.pro/contact", children: "Contact us" }) }), _jsx("div", { className: 'text-[var(--subtitle)] fontbrand text-sm', children: "Starting at $500 per month" })] }) })] }));
37
- };
38
- const SEAT_PRICE = 25;
39
- const RENDER_UNIT_PRICE = 10;
40
- const WEBCODECS_UNIT_PRICE = 10;
41
- export const CompanyPricing = () => {
42
- const [devSeatCount, setDevSeatCount] = React.useState(1);
43
- const [cloudUnitCount, setCloudUnitCount] = React.useState(1);
44
- const [webcodecsUnits, setWebcodecsUnits] = React.useState(1);
45
- const formatPrice = useCallback((price) => {
46
- const formatter = new Intl.NumberFormat('en-US', {
47
- style: 'currency',
48
- currency: 'USD',
49
- maximumFractionDigits: 0,
50
- });
51
- return formatter.format(price);
52
- }, []);
53
- const totalPrice = useMemo(() => {
54
- return Math.max(100, devSeatCount * SEAT_PRICE +
55
- cloudUnitCount * RENDER_UNIT_PRICE +
56
- webcodecsUnits * WEBCODECS_UNIT_PRICE);
57
- }, [cloudUnitCount, devSeatCount, webcodecsUnits]);
58
- const totalPriceString = useMemo(() => {
59
- return formatPrice(totalPrice);
60
- }, [formatPrice, totalPrice]);
61
- const rendersPerMonth = useMemo(() => {
62
- const formatter = new Intl.NumberFormat('en-US', {
63
- maximumFractionDigits: 0,
64
- });
65
- return formatter.format(cloudUnitCount * 1000);
66
- }, [cloudUnitCount]);
67
- const conversionsPerMonth = useMemo(() => {
68
- const formatter = new Intl.NumberFormat('en-US', {
69
- maximumFractionDigits: 0,
70
- });
71
- return formatter.format(webcodecsUnits * 1000);
72
- }, [webcodecsUnits]);
73
- return (_jsxs(Container, { children: [_jsx(Audience, { children: "For collaborations and companies of 4+ people" }), _jsx(Title, { children: "Company License" }), _jsx(PricingBulletPoint, { text: "Commercial use allowed", checked: true }), _jsx(PricingBulletPoint, { text: "Self-hosted cloud rendering allowed", checked: true }), _jsx(PricingBulletPoint, { text: "Prioritized Support", checked: true }), _jsx(PricingBulletPoint, { text: _jsxs("span", { children: [_jsx("a", { href: "https://remotion.dev/recorder", className: "underline underline-offset-4 text-inherit", children: "Remotion Recorder" }), ' ', "included"] }), checked: true }), _jsx(PricingBulletPoint, { text: "$250 Mux credits", checked: true, children: _jsx(InfoTooltip, { text: "Credits for Mux.com. Applies only to new Mux customers." }) }), _jsx("div", { style: { height: 30 } }), _jsxs("div", { className: 'flex flex-row items-center', children: [_jsxs("div", { style: textUnitWrapper, children: [_jsx("div", { className: 'fontbrand font-bold text-lg', children: "Developer Seats" }), _jsx("div", { className: 'text-muted fontbrand text-sm', children: "Number of developers working with Remotion" })] }), _jsx("div", { style: { flex: 3 } }), _jsx(Counter, { count: devSeatCount, setCount: setDevSeatCount, minCount: 1 }), _jsxs(SmallPriceTag, { children: ["$", new Intl.NumberFormat('en-US', {
74
- maximumFractionDigits: 0,
75
- }).format(SEAT_PRICE * devSeatCount)] })] }), _jsx("div", { style: { height: 14 } }), _jsxs("div", { className: 'flex flex-row items-center', children: [_jsxs("div", { style: textUnitWrapper, children: [_jsx("div", { className: 'fontbrand font-bold text-lg', children: "Cloud Rendering Units" }), _jsxs("div", { className: 'text-muted fontbrand text-sm', children: ["Allows for ", rendersPerMonth, ' ', _jsx("a", { href: "https://www.remotion.dev/docs/compare-ssr", className: "underline underline-offset-4 text-inherit", children: "self-hosted renders per month" }), ' ', "each"] })] }), _jsx("div", { style: { flex: 3 } }), _jsx(Counter, { count: cloudUnitCount, setCount: setCloudUnitCount, minCount: 0 }), _jsxs(SmallPriceTag, { children: ["$", new Intl.NumberFormat('en-US', {
76
- maximumFractionDigits: 0,
77
- }).format(RENDER_UNIT_PRICE * cloudUnitCount)] })] }), _jsx("div", { style: { height: 14 } }), _jsxs("div", { className: 'flex flex-row items-center', children: [_jsxs("div", { style: textUnitWrapper, children: [_jsx("div", { className: 'fontbrand font-bold text-lg', children: "WebCodecs Conversion Units" }), _jsxs("div", { className: 'text-muted fontbrand text-sm', children: ["Allows for", ' ', _jsxs("a", { className: "underline underline-offset-4 text-inherit", href: "https://remotion.dev/webcodecs", children: [conversionsPerMonth, " client-side video conversions", ' '] })] })] }), _jsx("div", { style: { flex: 3 } }), _jsx(Counter, { count: webcodecsUnits, setCount: setWebcodecsUnits, minCount: 0 }), _jsxs(SmallPriceTag, { children: ["$", new Intl.NumberFormat('en-US', {
78
- maximumFractionDigits: 0,
79
- }).format(RENDER_UNIT_PRICE * webcodecsUnits)] })] }), _jsx("div", { style: { height: 20 } }), _jsx("div", { className: 'flex flex-row justify-end', children: _jsxs("div", { style: { ...textUnitWrapper, alignItems: 'flex-end' }, children: [_jsxs(PriceTag, { children: [totalPriceString, "/mo"] }), _jsx(BottomInfo, { "data-visible": totalPrice <= 100, className: "opacity-0 data-[visible=true]:opacity-100 transition-opacity", children: "The minimum is $100 per month" })] }) })] }));
80
- };
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const GetStarted: React.FC;