@remotion/promo-pages 4.0.286 → 4.0.287
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.
- package/.turbo/turbo-make.log +2 -2
- package/dist/Homepage.js +59 -49
- package/dist/homepage/Pricing.js +1 -2
- package/package.json +10 -10
- package/dist/cn.d.ts +0 -2
- package/dist/cn.js +0 -5
- package/dist/components/Ai.d.ts +0 -2
- package/dist/components/Ai.js +0 -12
- package/dist/components/Homepage.d.ts +0 -6
- package/dist/components/Homepage.js +0 -20
- package/dist/components/homepage/BackgroundAnimation.d.ts +0 -2
- package/dist/components/homepage/BackgroundAnimation.js +0 -66
- package/dist/components/homepage/ChooseTemplate.d.ts +0 -2
- package/dist/components/homepage/ChooseTemplate.js +0 -27
- package/dist/components/homepage/CommunityStats.d.ts +0 -3
- package/dist/components/homepage/CommunityStats.js +0 -6
- package/dist/components/homepage/CommunityStatsItems.d.ts +0 -7
- package/dist/components/homepage/CommunityStatsItems.js +0 -58
- package/dist/components/homepage/Counter.d.ts +0 -8
- package/dist/components/homepage/Counter.js +0 -47
- package/dist/components/homepage/Demo/Card.d.ts +0 -15
- package/dist/components/homepage/Demo/Card.js +0 -174
- package/dist/components/homepage/Demo/Cards.d.ts +0 -15
- package/dist/components/homepage/Demo/Cards.js +0 -57
- package/dist/components/homepage/Demo/Comp.d.ts +0 -38
- package/dist/components/homepage/Demo/Comp.js +0 -71
- package/dist/components/homepage/Demo/CurrentCountry.d.ts +0 -9
- package/dist/components/homepage/Demo/CurrentCountry.js +0 -48
- package/dist/components/homepage/Demo/DemoError.d.ts +0 -2
- package/dist/components/homepage/Demo/DemoError.js +0 -10
- package/dist/components/homepage/Demo/DemoErrorIcon.d.ts +0 -2
- package/dist/components/homepage/Demo/DemoErrorIcon.js +0 -16
- package/dist/components/homepage/Demo/DemoRender.d.ts +0 -102
- package/dist/components/homepage/Demo/DemoRender.js +0 -95
- package/dist/components/homepage/Demo/DigitWheel.d.ts +0 -9
- package/dist/components/homepage/Demo/DigitWheel.js +0 -94
- package/dist/components/homepage/Demo/DisplayedEmoji.d.ts +0 -5
- package/dist/components/homepage/Demo/DisplayedEmoji.js +0 -49
- package/dist/components/homepage/Demo/DoneCheckmark.d.ts +0 -2
- package/dist/components/homepage/Demo/DoneCheckmark.js +0 -20
- package/dist/components/homepage/Demo/DownloadNudge.d.ts +0 -2
- package/dist/components/homepage/Demo/DownloadNudge.js +0 -27
- package/dist/components/homepage/Demo/DragAndDropNudge.d.ts +0 -3
- package/dist/components/homepage/Demo/DragAndDropNudge.js +0 -26
- package/dist/components/homepage/Demo/EmojiCard.d.ts +0 -10
- package/dist/components/homepage/Demo/EmojiCard.js +0 -119
- package/dist/components/homepage/Demo/Minus.d.ts +0 -5
- package/dist/components/homepage/Demo/Minus.js +0 -11
- package/dist/components/homepage/Demo/PlayPauseButton.d.ts +0 -5
- package/dist/components/homepage/Demo/PlayPauseButton.js +0 -47
- package/dist/components/homepage/Demo/PlayerControls.d.ts +0 -8
- package/dist/components/homepage/Demo/PlayerControls.js +0 -15
- package/dist/components/homepage/Demo/PlayerSeekBar.d.ts +0 -11
- package/dist/components/homepage/Demo/PlayerSeekBar.js +0 -216
- package/dist/components/homepage/Demo/PlayerVolume.d.ts +0 -5
- package/dist/components/homepage/Demo/PlayerVolume.js +0 -53
- package/dist/components/homepage/Demo/Progress.d.ts +0 -4
- package/dist/components/homepage/Demo/Progress.js +0 -14
- package/dist/components/homepage/Demo/Spinner.d.ts +0 -5
- package/dist/components/homepage/Demo/Spinner.js +0 -37
- package/dist/components/homepage/Demo/Switcher.d.ts +0 -6
- package/dist/components/homepage/Demo/Switcher.js +0 -25
- package/dist/components/homepage/Demo/Temperature.d.ts +0 -6
- package/dist/components/homepage/Demo/Temperature.js +0 -21
- package/dist/components/homepage/Demo/TemperatureNumber.d.ts +0 -5
- package/dist/components/homepage/Demo/TemperatureNumber.js +0 -36
- package/dist/components/homepage/Demo/ThemeNudge.d.ts +0 -3
- package/dist/components/homepage/Demo/ThemeNudge.js +0 -35
- package/dist/components/homepage/Demo/TimeDisplay.d.ts +0 -6
- package/dist/components/homepage/Demo/TimeDisplay.js +0 -27
- package/dist/components/homepage/Demo/TrendingRepos.d.ts +0 -6
- package/dist/components/homepage/Demo/TrendingRepos.js +0 -65
- package/dist/components/homepage/Demo/icons.d.ts +0 -10
- package/dist/components/homepage/Demo/icons.js +0 -22
- package/dist/components/homepage/Demo/index.d.ts +0 -2
- package/dist/components/homepage/Demo/index.js +0 -95
- package/dist/components/homepage/Demo/math.d.ts +0 -10
- package/dist/components/homepage/Demo/math.js +0 -29
- package/dist/components/homepage/Demo/types.d.ts +0 -6
- package/dist/components/homepage/Demo/types.js +0 -0
- package/dist/components/homepage/Editor.d.ts +0 -2
- package/dist/components/homepage/Editor.js +0 -37
- package/dist/components/homepage/EvaluateRemotion.d.ts +0 -3
- package/dist/components/homepage/EvaluateRemotion.js +0 -38
- package/dist/components/homepage/FreePricing.d.ts +0 -4
- package/dist/components/homepage/FreePricing.js +0 -80
- package/dist/components/homepage/GetStartedStrip.d.ts +0 -2
- package/dist/components/homepage/GetStartedStrip.js +0 -14
- package/dist/components/homepage/GitHubButton.d.ts +0 -2
- package/dist/components/homepage/GitHubButton.js +0 -7
- package/dist/components/homepage/IconForTemplate.d.ts +0 -6
- package/dist/components/homepage/IconForTemplate.js +0 -94
- package/dist/components/homepage/IfYouKnowReact.d.ts +0 -3
- package/dist/components/homepage/IfYouKnowReact.js +0 -20
- package/dist/components/homepage/InfoTooltip.d.ts +0 -6
- package/dist/components/homepage/InfoTooltip.js +0 -6
- package/dist/components/homepage/MoreTemplatesButton.d.ts +0 -2
- package/dist/components/homepage/MoreTemplatesButton.js +0 -10
- package/dist/components/homepage/MuxVideo.d.ts +0 -7
- package/dist/components/homepage/MuxVideo.js +0 -45
- package/dist/components/homepage/NewsletterButton.d.ts +0 -2
- package/dist/components/homepage/NewsletterButton.js +0 -38
- package/dist/components/homepage/Pricing.d.ts +0 -2
- package/dist/components/homepage/Pricing.js +0 -15
- package/dist/components/homepage/PricingBulletPoint.d.ts +0 -6
- package/dist/components/homepage/PricingBulletPoint.js +0 -19
- package/dist/components/homepage/RealMp4Videos.d.ts +0 -2
- package/dist/components/homepage/RealMp4Videos.js +0 -32
- package/dist/components/homepage/Spacer.d.ts +0 -2
- package/dist/components/homepage/Spacer.js +0 -4
- package/dist/components/homepage/TemplateIcon.d.ts +0 -5
- package/dist/components/homepage/TemplateIcon.js +0 -24
- package/dist/components/homepage/TextInput.d.ts +0 -7
- package/dist/components/homepage/TextInput.js +0 -34
- package/dist/components/homepage/TrustedByBanner.d.ts +0 -2
- package/dist/components/homepage/TrustedByBanner.js +0 -32
- package/dist/components/homepage/VideoApps.d.ts +0 -4
- package/dist/components/homepage/VideoApps.js +0 -72
- package/dist/components/homepage/VideoAppsShowcase.d.ts +0 -3
- package/dist/components/homepage/VideoAppsShowcase.js +0 -160
- package/dist/components/homepage/VideoAppsTitle.d.ts +0 -5
- package/dist/components/homepage/VideoAppsTitle.js +0 -7
- package/dist/components/homepage/VideoPlayerWithControls.d.ts +0 -20
- package/dist/components/homepage/VideoPlayerWithControls.js +0 -104
- package/dist/components/homepage/WriteInReact.d.ts +0 -2
- package/dist/components/homepage/WriteInReact.js +0 -10
- package/dist/components/homepage/YouAreHere.d.ts +0 -2
- package/dist/components/homepage/YouAreHere.js +0 -23
- package/dist/components/homepage/layout/Button.d.ts +0 -19
- package/dist/components/homepage/layout/Button.js +0 -29
- package/dist/components/homepage/layout/colors.d.ts +0 -13
- package/dist/components/homepage/layout/colors.js +0 -14
- package/dist/components/homepage/layout/use-color-mode.d.ts +0 -21
- package/dist/components/homepage/layout/use-color-mode.js +0 -22
- package/dist/components/homepage/layout/use-el-size.d.ts +0 -5
- package/dist/components/homepage/layout/use-el-size.js +0 -40
- package/dist/components/homepage/layout/use-mobile-layout.d.ts +0 -1
- package/dist/components/homepage/layout/use-mobile-layout.js +0 -6
- package/dist/components/icons/blank.d.ts +0 -3
- package/dist/components/icons/blank.js +0 -4
- package/dist/components/icons/clone.d.ts +0 -2
- package/dist/components/icons/clone.js +0 -2
- package/dist/components/icons/code-hike.d.ts +0 -3
- package/dist/components/icons/code-hike.js +0 -4
- package/dist/components/icons/cubes.d.ts +0 -3
- package/dist/components/icons/cubes.js +0 -4
- package/dist/components/icons/js.d.ts +0 -3
- package/dist/components/icons/js.js +0 -4
- package/dist/components/icons/music.d.ts +0 -2
- package/dist/components/icons/music.js +0 -4
- package/dist/components/icons/next.d.ts +0 -4
- package/dist/components/icons/next.js +0 -4
- package/dist/components/icons/overlay.d.ts +0 -3
- package/dist/components/icons/overlay.js +0 -4
- package/dist/components/icons/remix.d.ts +0 -3
- package/dist/components/icons/remix.js +0 -4
- package/dist/components/icons/skia.d.ts +0 -3
- package/dist/components/icons/skia.js +0 -4
- package/dist/components/icons/stargazer.d.ts +0 -3
- package/dist/components/icons/stargazer.js +0 -4
- package/dist/components/icons/still.d.ts +0 -3
- package/dist/components/icons/still.js +0 -4
- package/dist/components/icons/tailwind.d.ts +0 -3
- package/dist/components/icons/tailwind.js +0 -4
- package/dist/components/icons/tiktok.d.ts +0 -3
- package/dist/components/icons/tiktok.js +0 -4
- package/dist/components/icons/ts.d.ts +0 -3
- package/dist/components/icons/ts.js +0 -4
- package/dist/components/icons/tts.d.ts +0 -3
- package/dist/components/icons/tts.js +0 -4
- package/dist/components/icons/undo.d.ts +0 -3
- package/dist/components/icons/undo.js +0 -2
- package/dist/components/icons/waveform.d.ts +0 -3
- package/dist/components/icons/waveform.js +0 -4
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -6
package/.turbo/turbo-make.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @remotion/promo-pages@4.0.
|
|
3
|
+
> @remotion/promo-pages@4.0.287 make /Users/jonathanburger/remotion/packages/promo-pages
|
|
4
4
|
> bun --env-file=../.env.bundle bundle.ts
|
|
5
5
|
|
|
6
6
|
≈ tailwindcss v4.1.1
|
|
7
7
|
|
|
8
|
-
Done in
|
|
8
|
+
Done in 28ms
|
package/dist/Homepage.js
CHANGED
|
@@ -160,8 +160,7 @@ var createLruCache = (maxCacheSize) => {
|
|
|
160
160
|
get: () => {
|
|
161
161
|
return;
|
|
162
162
|
},
|
|
163
|
-
set: () => {
|
|
164
|
-
}
|
|
163
|
+
set: () => {}
|
|
165
164
|
};
|
|
166
165
|
}
|
|
167
166
|
let cacheSize = 0;
|
|
@@ -5086,6 +5085,7 @@ import {
|
|
|
5086
5085
|
useRef as useRef13
|
|
5087
5086
|
} from "react";
|
|
5088
5087
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
5088
|
+
import { createRef as createRef3 } from "react";
|
|
5089
5089
|
import React22, {
|
|
5090
5090
|
useCallback as useCallback14,
|
|
5091
5091
|
useImperativeHandle as useImperativeHandle8,
|
|
@@ -5228,7 +5228,7 @@ var useIsPlayer = () => {
|
|
|
5228
5228
|
function truthy(value) {
|
|
5229
5229
|
return Boolean(value);
|
|
5230
5230
|
}
|
|
5231
|
-
var VERSION = "4.0.
|
|
5231
|
+
var VERSION = "4.0.287";
|
|
5232
5232
|
var checkMultipleRemotionVersions = () => {
|
|
5233
5233
|
if (typeof globalThis === "undefined") {
|
|
5234
5234
|
return;
|
|
@@ -7103,9 +7103,31 @@ var PrefetchProvider = ({ children }) => {
|
|
|
7103
7103
|
children
|
|
7104
7104
|
});
|
|
7105
7105
|
};
|
|
7106
|
+
var removeAndGetHashFragment = (src) => {
|
|
7107
|
+
const hashIndex = src.indexOf("#");
|
|
7108
|
+
if (hashIndex === -1) {
|
|
7109
|
+
return null;
|
|
7110
|
+
}
|
|
7111
|
+
return hashIndex;
|
|
7112
|
+
};
|
|
7113
|
+
var getSrcWithoutHash = (src) => {
|
|
7114
|
+
const hashIndex = removeAndGetHashFragment(src);
|
|
7115
|
+
if (hashIndex === null) {
|
|
7116
|
+
return src;
|
|
7117
|
+
}
|
|
7118
|
+
return src.slice(0, hashIndex);
|
|
7119
|
+
};
|
|
7106
7120
|
var usePreload = (src) => {
|
|
7107
7121
|
const preloads2 = useContext12(PreloadContext);
|
|
7108
|
-
|
|
7122
|
+
const hashFragmentIndex = removeAndGetHashFragment(src);
|
|
7123
|
+
const withoutHashFragment = getSrcWithoutHash(src);
|
|
7124
|
+
if (!preloads2[withoutHashFragment]) {
|
|
7125
|
+
return src;
|
|
7126
|
+
}
|
|
7127
|
+
if (hashFragmentIndex !== null) {
|
|
7128
|
+
return preloads2[withoutHashFragment] + src.slice(hashFragmentIndex);
|
|
7129
|
+
}
|
|
7130
|
+
return preloads2[withoutHashFragment];
|
|
7109
7131
|
};
|
|
7110
7132
|
var blobToBase64 = function(blob) {
|
|
7111
7133
|
const reader = new FileReader;
|
|
@@ -7152,15 +7174,16 @@ var getBlobFromReader = async ({
|
|
|
7152
7174
|
var prefetch = (src, options) => {
|
|
7153
7175
|
const method = options?.method ?? "blob-url";
|
|
7154
7176
|
const logLevel = options?.logLevel ?? "info";
|
|
7177
|
+
const srcWithoutHash = getSrcWithoutHash(src);
|
|
7155
7178
|
if (getRemotionEnvironment().isRendering) {
|
|
7156
7179
|
return {
|
|
7157
7180
|
free: () => {
|
|
7158
7181
|
return;
|
|
7159
7182
|
},
|
|
7160
|
-
waitUntilDone: () => Promise.resolve(
|
|
7183
|
+
waitUntilDone: () => Promise.resolve(srcWithoutHash)
|
|
7161
7184
|
};
|
|
7162
7185
|
}
|
|
7163
|
-
Log.verbose(logLevel, `[prefetch] Starting prefetch ${
|
|
7186
|
+
Log.verbose(logLevel, `[prefetch] Starting prefetch ${srcWithoutHash}`);
|
|
7164
7187
|
let canceled = false;
|
|
7165
7188
|
let objectUrl = null;
|
|
7166
7189
|
let resolve = () => {
|
|
@@ -7175,7 +7198,7 @@ var prefetch = (src, options) => {
|
|
|
7175
7198
|
});
|
|
7176
7199
|
const controller = new AbortController;
|
|
7177
7200
|
let canBeAborted = true;
|
|
7178
|
-
fetch(
|
|
7201
|
+
fetch(srcWithoutHash, {
|
|
7179
7202
|
signal: controller.signal,
|
|
7180
7203
|
credentials: options?.credentials ?? undefined
|
|
7181
7204
|
}).then((res) => {
|
|
@@ -7190,10 +7213,10 @@ var prefetch = (src, options) => {
|
|
|
7190
7213
|
const contentType = options?.contentType ?? headerContentType;
|
|
7191
7214
|
const hasProperContentType = contentType && (contentType.startsWith("video/") || contentType.startsWith("audio/") || contentType.startsWith("image/"));
|
|
7192
7215
|
if (!hasProperContentType) {
|
|
7193
|
-
console.warn(`Called prefetch() on ${
|
|
7216
|
+
console.warn(`Called prefetch() on ${srcWithoutHash} which returned a "Content-Type" of ${headerContentType}. Prefetched content should have a proper content type (video/... or audio/...) or a contentType passed the options of prefetch(). Otherwise, prefetching will not work properly in all browsers.`);
|
|
7194
7217
|
}
|
|
7195
7218
|
if (!res.body) {
|
|
7196
|
-
throw new Error(`HTTP response of ${
|
|
7219
|
+
throw new Error(`HTTP response of ${srcWithoutHash} has no body`);
|
|
7197
7220
|
}
|
|
7198
7221
|
const reader = res.body.getReader();
|
|
7199
7222
|
return getBlobFromReader({
|
|
@@ -7218,13 +7241,13 @@ var prefetch = (src, options) => {
|
|
|
7218
7241
|
playbackLogging({
|
|
7219
7242
|
logLevel,
|
|
7220
7243
|
tag: "prefetch",
|
|
7221
|
-
message: `Finished prefetch ${
|
|
7244
|
+
message: `Finished prefetch ${srcWithoutHash} with method ${method}`,
|
|
7222
7245
|
mountTime: null
|
|
7223
7246
|
});
|
|
7224
7247
|
objectUrl = url;
|
|
7225
7248
|
setPreloads((p) => ({
|
|
7226
7249
|
...p,
|
|
7227
|
-
[
|
|
7250
|
+
[srcWithoutHash]: objectUrl
|
|
7228
7251
|
}));
|
|
7229
7252
|
resolve(objectUrl);
|
|
7230
7253
|
}).catch((err) => {
|
|
@@ -7238,7 +7261,7 @@ var prefetch = (src, options) => {
|
|
|
7238
7261
|
playbackLogging({
|
|
7239
7262
|
logLevel,
|
|
7240
7263
|
tag: "prefetch",
|
|
7241
|
-
message: `Freeing ${
|
|
7264
|
+
message: `Freeing ${srcWithoutHash}`,
|
|
7242
7265
|
mountTime: null
|
|
7243
7266
|
});
|
|
7244
7267
|
if (objectUrl) {
|
|
@@ -7247,7 +7270,7 @@ var prefetch = (src, options) => {
|
|
|
7247
7270
|
}
|
|
7248
7271
|
setPreloads((p) => {
|
|
7249
7272
|
const copy = { ...p };
|
|
7250
|
-
delete copy[
|
|
7273
|
+
delete copy[srcWithoutHash];
|
|
7251
7274
|
return copy;
|
|
7252
7275
|
});
|
|
7253
7276
|
} else {
|
|
@@ -7255,8 +7278,7 @@ var prefetch = (src, options) => {
|
|
|
7255
7278
|
if (canBeAborted) {
|
|
7256
7279
|
try {
|
|
7257
7280
|
controller.abort(new Error("free() called"));
|
|
7258
|
-
} catch {
|
|
7259
|
-
}
|
|
7281
|
+
} catch {}
|
|
7260
7282
|
}
|
|
7261
7283
|
}
|
|
7262
7284
|
},
|
|
@@ -8200,8 +8222,7 @@ function interpolateFunction(input, inputRange, outputRange, options) {
|
|
|
8200
8222
|
} else if (extrapolateLeft === "wrap") {
|
|
8201
8223
|
const range = inputMax - inputMin;
|
|
8202
8224
|
result = ((result - inputMin) % range + range) % range + inputMin;
|
|
8203
|
-
} else if (extrapolateLeft === "extend") {
|
|
8204
|
-
}
|
|
8225
|
+
} else if (extrapolateLeft === "extend") {}
|
|
8205
8226
|
}
|
|
8206
8227
|
if (result > inputMax) {
|
|
8207
8228
|
if (extrapolateRight === "identity") {
|
|
@@ -8212,8 +8233,7 @@ function interpolateFunction(input, inputRange, outputRange, options) {
|
|
|
8212
8233
|
} else if (extrapolateRight === "wrap") {
|
|
8213
8234
|
const range = inputMax - inputMin;
|
|
8214
8235
|
result = ((result - inputMin) % range + range) % range + inputMin;
|
|
8215
|
-
} else if (extrapolateRight === "extend") {
|
|
8216
|
-
}
|
|
8236
|
+
} else if (extrapolateRight === "extend") {}
|
|
8217
8237
|
}
|
|
8218
8238
|
if (outputMin === outputMax) {
|
|
8219
8239
|
return outputMin;
|
|
@@ -9902,8 +9922,7 @@ var getEnvVariables = () => {
|
|
|
9902
9922
|
}
|
|
9903
9923
|
return { ...JSON.parse(param), NODE_ENV: "production" };
|
|
9904
9924
|
}
|
|
9905
|
-
if (false) {
|
|
9906
|
-
}
|
|
9925
|
+
if (false) {}
|
|
9907
9926
|
return {
|
|
9908
9927
|
NODE_ENV: "production"
|
|
9909
9928
|
};
|
|
@@ -10020,6 +10039,7 @@ var RemotionContextProvider = (props2) => {
|
|
|
10020
10039
|
})
|
|
10021
10040
|
});
|
|
10022
10041
|
};
|
|
10042
|
+
var compositionSelectorRef = createRef3();
|
|
10023
10043
|
var Internals = {
|
|
10024
10044
|
useUnsafeVideoConfig,
|
|
10025
10045
|
Timeline: exports_timeline_position_state,
|
|
@@ -10085,7 +10105,8 @@ var Internals = {
|
|
|
10085
10105
|
LogLevelContext,
|
|
10086
10106
|
useLogLevel,
|
|
10087
10107
|
playbackLogging,
|
|
10088
|
-
timeValueRef
|
|
10108
|
+
timeValueRef,
|
|
10109
|
+
compositionSelectorRef
|
|
10089
10110
|
};
|
|
10090
10111
|
var NUMBER = "[-+]?\\d*\\.?\\d+";
|
|
10091
10112
|
var PERCENTAGE = NUMBER + "%";
|
|
@@ -10649,8 +10670,9 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
10649
10670
|
});
|
|
10650
10671
|
const actualFrom = parentSequence ? parentSequence.relativeFrom : 0;
|
|
10651
10672
|
const duration = parentSequence ? Math.min(parentSequence.durationInFrames, durationInFrames) : durationInFrames;
|
|
10673
|
+
const preloadedSrc = usePreload(src);
|
|
10652
10674
|
const actualSrc = useAppendVideoFragment({
|
|
10653
|
-
actualSrc:
|
|
10675
|
+
actualSrc: preloadedSrc,
|
|
10654
10676
|
actualFrom,
|
|
10655
10677
|
duration,
|
|
10656
10678
|
fps
|
|
@@ -10755,8 +10777,7 @@ var seekToTime = ({
|
|
|
10755
10777
|
if (isApproximatelyTheSame(element.currentTime, desiredTime)) {
|
|
10756
10778
|
return {
|
|
10757
10779
|
wait: Promise.resolve(desiredTime),
|
|
10758
|
-
cancel: () => {
|
|
10759
|
-
}
|
|
10780
|
+
cancel: () => {}
|
|
10760
10781
|
};
|
|
10761
10782
|
}
|
|
10762
10783
|
seek({
|
|
@@ -10813,8 +10834,7 @@ var seekToTimeMultipleUntilRight = ({
|
|
|
10813
10834
|
if (Number.isFinite(element.duration) && element.currentTime >= element.duration && desiredTime >= element.duration) {
|
|
10814
10835
|
return {
|
|
10815
10836
|
prom: Promise.resolve(),
|
|
10816
|
-
cancel: () => {
|
|
10817
|
-
}
|
|
10837
|
+
cancel: () => {}
|
|
10818
10838
|
};
|
|
10819
10839
|
}
|
|
10820
10840
|
const prom = new Promise((resolve, reject) => {
|
|
@@ -11089,8 +11109,7 @@ var VideoForwardingFunction = (props2, ref) => {
|
|
|
11089
11109
|
const onDuration = useCallback17((src, durationInSeconds) => {
|
|
11090
11110
|
setDurations({ type: "got-duration", durationInSeconds, src });
|
|
11091
11111
|
}, [setDurations]);
|
|
11092
|
-
const onVideoFrame = useCallback17(() => {
|
|
11093
|
-
}, []);
|
|
11112
|
+
const onVideoFrame = useCallback17(() => {}, []);
|
|
11094
11113
|
const durationFetched = durations[getAbsoluteSrc(preloadedSrc)] ?? durations[getAbsoluteSrc(props2.src)];
|
|
11095
11114
|
if (loop && durationFetched !== undefined) {
|
|
11096
11115
|
if (!Number.isFinite(durationFetched)) {
|
|
@@ -11259,8 +11278,7 @@ function interpolateFunction2(input, inputRange, outputRange, options) {
|
|
|
11259
11278
|
} else if (extrapolateLeft === "wrap") {
|
|
11260
11279
|
const range = inputMax - inputMin;
|
|
11261
11280
|
result = ((result - inputMin) % range + range) % range + inputMin;
|
|
11262
|
-
} else if (extrapolateLeft === "extend") {
|
|
11263
|
-
}
|
|
11281
|
+
} else if (extrapolateLeft === "extend") {}
|
|
11264
11282
|
}
|
|
11265
11283
|
if (result > inputMax) {
|
|
11266
11284
|
if (extrapolateRight === "identity") {
|
|
@@ -11271,8 +11289,7 @@ function interpolateFunction2(input, inputRange, outputRange, options) {
|
|
|
11271
11289
|
} else if (extrapolateRight === "wrap") {
|
|
11272
11290
|
const range = inputMax - inputMin;
|
|
11273
11291
|
result = ((result - inputMin) % range + range) % range + inputMin;
|
|
11274
|
-
} else if (extrapolateRight === "extend") {
|
|
11275
|
-
}
|
|
11292
|
+
} else if (extrapolateRight === "extend") {}
|
|
11276
11293
|
}
|
|
11277
11294
|
if (outputMin === outputMax) {
|
|
11278
11295
|
return outputMin;
|
|
@@ -13921,8 +13938,7 @@ var RenderWarningIfBlacklist = () => {
|
|
|
13921
13938
|
if (hash && DOMAIN_BLACKLIST.includes(hash)) {
|
|
13922
13939
|
setUnlicensed(true);
|
|
13923
13940
|
}
|
|
13924
|
-
}).catch(() => {
|
|
13925
|
-
});
|
|
13941
|
+
}).catch(() => {});
|
|
13926
13942
|
}, []);
|
|
13927
13943
|
useEffect122(() => {
|
|
13928
13944
|
if (!unlicensed) {
|
|
@@ -15250,10 +15266,8 @@ function _isNativeFunction(t) {
|
|
|
15250
15266
|
// ../../node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
15251
15267
|
function _isNativeReflectConstruct() {
|
|
15252
15268
|
try {
|
|
15253
|
-
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
15254
|
-
|
|
15255
|
-
} catch (t2) {
|
|
15256
|
-
}
|
|
15269
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
15270
|
+
} catch (t2) {}
|
|
15257
15271
|
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
15258
15272
|
return !!t;
|
|
15259
15273
|
})();
|
|
@@ -15304,8 +15318,7 @@ var PolishedError = /* @__PURE__ */ function(_Error) {
|
|
|
15304
15318
|
if (true) {
|
|
15305
15319
|
_this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
|
|
15306
15320
|
} else {
|
|
15307
|
-
for (var _len2, args, _key2;_key2 < _len2; _key2++) {
|
|
15308
|
-
}
|
|
15321
|
+
for (var _len2, args, _key2;_key2 < _len2; _key2++) {}
|
|
15309
15322
|
}
|
|
15310
15323
|
return _assertThisInitialized(_this);
|
|
15311
15324
|
}
|
|
@@ -15978,7 +15991,7 @@ import { useCallback as useCallback27, useEffect as useEffect30, useMemo as useM
|
|
|
15978
15991
|
|
|
15979
15992
|
// src/components/homepage/Demo/Cards.tsx
|
|
15980
15993
|
import {
|
|
15981
|
-
createRef as
|
|
15994
|
+
createRef as createRef4,
|
|
15982
15995
|
useCallback as useCallback26,
|
|
15983
15996
|
useEffect as useEffect29,
|
|
15984
15997
|
useRef as useRef25,
|
|
@@ -17067,7 +17080,7 @@ var Cards = ({
|
|
|
17067
17080
|
const container4 = useRef25(null);
|
|
17068
17081
|
const [refs] = useState26(() => {
|
|
17069
17082
|
return new Array(4).fill(true).map(() => {
|
|
17070
|
-
return
|
|
17083
|
+
return createRef4();
|
|
17071
17084
|
});
|
|
17072
17085
|
});
|
|
17073
17086
|
const positions = useRef25(getInitialPositions());
|
|
@@ -19692,8 +19705,7 @@ var VideoAppsShowcase = () => {
|
|
|
19692
19705
|
if (videoRef.current && videoRef.current.paused) {
|
|
19693
19706
|
videoRef.current.muted = true;
|
|
19694
19707
|
setIsMuted(true);
|
|
19695
|
-
videoRef.current.play().then(() => {
|
|
19696
|
-
}).catch((error) => {
|
|
19708
|
+
videoRef.current.play().then(() => {}).catch((error) => {
|
|
19697
19709
|
console.error("Playback error:", error);
|
|
19698
19710
|
});
|
|
19699
19711
|
}
|
|
@@ -19722,8 +19734,7 @@ var VideoAppsShowcase = () => {
|
|
|
19722
19734
|
if (video) {
|
|
19723
19735
|
video.muted = true;
|
|
19724
19736
|
setIsMuted(true);
|
|
19725
|
-
video.play().then(() => {
|
|
19726
|
-
}).catch((error) => {
|
|
19737
|
+
video.play().then(() => {}).catch((error) => {
|
|
19727
19738
|
console.error("Playback error:", error);
|
|
19728
19739
|
});
|
|
19729
19740
|
}
|
|
@@ -19746,8 +19757,7 @@ var VideoAppsShowcase = () => {
|
|
|
19746
19757
|
if (videoRef.current.paused) {
|
|
19747
19758
|
const playPromise = videoRef.current.play();
|
|
19748
19759
|
if (playPromise !== undefined) {
|
|
19749
|
-
playPromise.then(() => {
|
|
19750
|
-
}).catch((error) => {
|
|
19760
|
+
playPromise.then(() => {}).catch((error) => {
|
|
19751
19761
|
console.error("Playback error:", error);
|
|
19752
19762
|
});
|
|
19753
19763
|
}
|
package/dist/homepage/Pricing.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/promo-pages",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.287",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"polished": "4.3.1",
|
|
11
11
|
"zod": "3.22.3",
|
|
12
12
|
"bun-plugin-tailwind": "0.0.15",
|
|
13
|
-
"@remotion/
|
|
14
|
-
"@remotion/
|
|
15
|
-
"@remotion/
|
|
16
|
-
"@remotion/
|
|
17
|
-
"create-video": "4.0.
|
|
18
|
-
"remotion": "4.0.
|
|
19
|
-
"
|
|
20
|
-
"@remotion/
|
|
13
|
+
"@remotion/lambda": "4.0.287",
|
|
14
|
+
"@remotion/lottie": "4.0.287",
|
|
15
|
+
"@remotion/player": "4.0.287",
|
|
16
|
+
"@remotion/animated-emoji": "4.0.287",
|
|
17
|
+
"create-video": "4.0.287",
|
|
18
|
+
"@remotion/shapes": "4.0.287",
|
|
19
|
+
"remotion": "4.0.287",
|
|
20
|
+
"@remotion/paths": "4.0.287"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@eslint/eslintrc": "3.1.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"tailwind-merge": "2.5.2",
|
|
35
35
|
"bun-plugin-tailwind": "0.0.13",
|
|
36
36
|
"clsx": "2.1.1",
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.287"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/promo-pages"
|
package/dist/cn.d.ts
DELETED
package/dist/cn.js
DELETED
package/dist/components/Ai.d.ts
DELETED
package/dist/components/Ai.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback } from 'react';
|
|
3
|
-
export const AskAi = () => {
|
|
4
|
-
const click = useCallback(() => {
|
|
5
|
-
// @ts-expect-error
|
|
6
|
-
window.crawlchatEmbed.show();
|
|
7
|
-
}, []);
|
|
8
|
-
return (_jsx("button", { type: "button", onClick: click, style: {
|
|
9
|
-
backgroundColor: '#282A36',
|
|
10
|
-
cursor: 'pointer',
|
|
11
|
-
}, className: "rounded-full text-white fixed z-10 bottom-8 right-8 fontbrand appearance-none border-none px-4 py-2 font-medium text-sm", children: "Ask AI" }));
|
|
12
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { BackgroundAnimation } from './homepage/BackgroundAnimation';
|
|
4
|
-
import CommunityStats from './homepage/CommunityStats';
|
|
5
|
-
import { Demo } from './homepage/Demo';
|
|
6
|
-
import { LightningFastEditor } from './homepage/Editor';
|
|
7
|
-
import EvaluateRemotionSection from './homepage/EvaluateRemotion';
|
|
8
|
-
import { IfYouKnowReact } from './homepage/IfYouKnowReact';
|
|
9
|
-
import { ColorModeProvider } from './homepage/layout/use-color-mode';
|
|
10
|
-
import { NewsletterButton } from './homepage/NewsletterButton';
|
|
11
|
-
import { Pricing } from './homepage/Pricing';
|
|
12
|
-
import { RealMP4Videos } from './homepage/RealMp4Videos';
|
|
13
|
-
import TrustedByBanner from './homepage/TrustedByBanner';
|
|
14
|
-
import { VideoApps } from './homepage/VideoApps';
|
|
15
|
-
import VideoAppsShowcase from './homepage/VideoAppsShowcase';
|
|
16
|
-
import { SectionTitle, VideoAppsTitle } from './homepage/VideoAppsTitle';
|
|
17
|
-
import { WriteInReact } from './homepage/WriteInReact';
|
|
18
|
-
export const NewLanding = ({ colorMode, setColorMode }) => {
|
|
19
|
-
return (_jsx(ColorModeProvider, { colorMode: colorMode, setColorMode: setColorMode, children: _jsx("div", { className: "bg-[var(--background)] relative", children: _jsxs("div", { children: [_jsx("div", { children: _jsx(BackgroundAnimation, {}) }), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsxs("div", { className: "max-w-[500px] lg:max-w-[1000px] m-auto pl-5 pr-5 relative", children: [_jsx(WriteInReact, {}), _jsx("br", {}), _jsx(IfYouKnowReact, {}), _jsx(RealMP4Videos, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(LightningFastEditor, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(VideoAppsTitle, {}), _jsx(VideoApps, { active: "remotion" }), _jsx("br", {}), _jsx("br", {}), _jsx(VideoAppsShowcase, {}), _jsx("br", {}), _jsx("br", {}), _jsx(Demo, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(SectionTitle, { children: "Pricing" }), _jsx(Pricing, {}), _jsx(TrustedByBanner, {}), _jsx("br", {}), _jsx(EvaluateRemotionSection, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(CommunityStats, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(NewsletterButton, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {})] })] }) }) }));
|
|
20
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { getLength } from '@remotion/paths';
|
|
4
|
-
import { useEffect } from 'react';
|
|
5
|
-
const rx = 0.2;
|
|
6
|
-
const ry = 0.45;
|
|
7
|
-
function ellipseToPath(cx, cy) {
|
|
8
|
-
let output = 'M' + (cx - rx).toString() + ',' + cy.toString();
|
|
9
|
-
output +=
|
|
10
|
-
'a' +
|
|
11
|
-
rx.toString() +
|
|
12
|
-
',' +
|
|
13
|
-
ry.toString() +
|
|
14
|
-
' 0 1,0 ' +
|
|
15
|
-
(2 * rx).toString() +
|
|
16
|
-
',0';
|
|
17
|
-
output +=
|
|
18
|
-
'a' +
|
|
19
|
-
rx.toString() +
|
|
20
|
-
',' +
|
|
21
|
-
ry.toString() +
|
|
22
|
-
' 0 1,0 ' +
|
|
23
|
-
(-2 * rx).toString() +
|
|
24
|
-
',0';
|
|
25
|
-
return output;
|
|
26
|
-
}
|
|
27
|
-
const strokeWidth = 0.035;
|
|
28
|
-
export const BackgroundAnimation = () => {
|
|
29
|
-
const d = ellipseToPath(0.5, 0.5);
|
|
30
|
-
const length = getLength(d);
|
|
31
|
-
const css = `
|
|
32
|
-
@keyframes bganimation {
|
|
33
|
-
from {
|
|
34
|
-
stroke-dashoffset: 0
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
to {
|
|
38
|
-
stroke-dashoffset: ${length};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
42
|
-
useEffect(() => {
|
|
43
|
-
const _style = document.createElement('style');
|
|
44
|
-
_style.innerHTML = css;
|
|
45
|
-
document.head.appendChild(_style);
|
|
46
|
-
}, [css]);
|
|
47
|
-
return (_jsx("div", { className: " w-full h-full left-[50%] ml-[-50%] min-w-0 lg:m-auto lg:relative lg:min-w-[700px] lg:max-w-[1200px] lg:ml-auto lg:left-auto pointer-events-none", children: _jsxs("svg", { className: "translate-y-[-30%] lg:translate-y-[-50%]", viewBox: "0 0 1 1", style: {
|
|
48
|
-
width: '100%',
|
|
49
|
-
position: 'absolute',
|
|
50
|
-
}, children: [_jsx("path", { d: d, fill: "none", stroke: "var(--ifm-color-primary)", strokeLinecap: "round", className: "stroke-[0.04] lg:stroke-[0.035]", style: {
|
|
51
|
-
transformOrigin: 'center center',
|
|
52
|
-
transform: `rotate(120deg)`,
|
|
53
|
-
animation: `bganimation 20s linear infinite`,
|
|
54
|
-
strokeDasharray: `${length * 0.2} ${length * 0.8}`,
|
|
55
|
-
} }), _jsx("path", { d: d, fill: "none", stroke: "var(--ifm-color-primary)", strokeLinecap: "round", strokeWidth: strokeWidth, className: "stroke-[0.04] lg:stroke-[0.035]", style: {
|
|
56
|
-
transformOrigin: 'center center',
|
|
57
|
-
transform: `rotate(0deg)`,
|
|
58
|
-
animation: `bganimation 20s linear infinite`,
|
|
59
|
-
strokeDasharray: `${length * 0.2} ${length * 0.8}`,
|
|
60
|
-
} }), _jsx("path", { d: d, fill: "none", stroke: "var(--ifm-color-primary)", strokeLinecap: "round", strokeWidth: strokeWidth, className: "stroke-[0.04] lg:stroke-[0.035]", style: {
|
|
61
|
-
transformOrigin: 'center center',
|
|
62
|
-
transform: `rotate(240deg)`,
|
|
63
|
-
animation: `bganimation 20s linear infinite`,
|
|
64
|
-
strokeDasharray: `${length * 0.2} ${length * 0.8}`,
|
|
65
|
-
} })] }) }));
|
|
66
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { CreateVideoInternals } from 'create-video';
|
|
3
|
-
import { IconForTemplate } from './IconForTemplate';
|
|
4
|
-
import { MoreTemplatesButton } from './MoreTemplatesButton';
|
|
5
|
-
import { TemplateIcon } from './TemplateIcon';
|
|
6
|
-
export const ChooseTemplate = () => {
|
|
7
|
-
return (_jsx("div", { style: {
|
|
8
|
-
display: 'flex',
|
|
9
|
-
flexDirection: 'column',
|
|
10
|
-
}, children: _jsx("div", { style: {
|
|
11
|
-
position: 'relative',
|
|
12
|
-
textAlign: 'center',
|
|
13
|
-
}, children: _jsxs("div", { className: "no-scroll-bar", style: {
|
|
14
|
-
backgroundColor: 'var(--plain-button)',
|
|
15
|
-
display: 'inline-flex',
|
|
16
|
-
flexDirection: 'row',
|
|
17
|
-
justifyContent: 'space-around',
|
|
18
|
-
boxShadow: '0 0 4px 0px var(--ifm-color-emphasis-200)',
|
|
19
|
-
borderRadius: 50,
|
|
20
|
-
alignItems: 'center',
|
|
21
|
-
padding: 8,
|
|
22
|
-
width: '100%',
|
|
23
|
-
maxWidth: '550px',
|
|
24
|
-
}, children: [CreateVideoInternals.FEATURED_TEMPLATES.filter((f) => f.featuredOnHomePage).map((template) => {
|
|
25
|
-
return (_jsx("a", { className: "text-inherit no-underline", href: `/templates/${template.cliId}`, children: _jsx(TemplateIcon, { label: template.featuredOnHomePage, children: _jsx(IconForTemplate, { scale: 0.7, template: template }) }) }, template.cliId));
|
|
26
|
-
}), _jsx(MoreTemplatesButton, {})] }) }) }));
|
|
27
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Contributors, DiscordMembers, GitHubStars, InstallsPerMonth, PagesOfDocs, TemplatesAndExamples, } from './CommunityStatsItems';
|
|
3
|
-
import { SectionTitle } from './VideoAppsTitle';
|
|
4
|
-
const SectionLink = ({ href, children }) => (_jsx("a", { target: "_blank", href: href, className: 'no-underline text-inherit contents', children: children }));
|
|
5
|
-
const CommunityStats = () => (_jsxs("div", { className: 'm-auto max-w-[700px] text-center', children: [_jsx(SectionTitle, { children: "Never build alone" }), _jsx("div", { className: 'fontbrand text-center mb-10', children: "Join a thriving community of developers." }), _jsxs("div", { className: 'flex flex-wrap justify-between gap-4 w-full items-center', children: [_jsx(SectionLink, { href: "https://www.npmjs.com/package/remotion", children: _jsx(InstallsPerMonth, {}) }), _jsx(SectionLink, { href: "https://www.remotion.dev/docs/", children: _jsx(PagesOfDocs, {}) }), _jsx(SectionLink, { href: "https://www.remotion.dev/templates", children: _jsx(TemplatesAndExamples, {}) }), _jsx(SectionLink, { href: "https://github.com/remotion-dev/remotion", children: _jsx(GitHubStars, {}) }), _jsx(SectionLink, { href: "https://remotion.dev/discord", children: _jsx(DiscordMembers, {}) }), _jsx(SectionLink, { href: "https://github.com/remotion-dev/remotion/graphs/contributors", children: _jsx(Contributors, {}) })] })] }));
|
|
6
|
-
export default CommunityStats;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const InstallsPerMonth: React.FC;
|
|
3
|
-
export declare const PagesOfDocs: React.FC;
|
|
4
|
-
export declare const TemplatesAndExamples: React.FC;
|
|
5
|
-
export declare const GitHubStars: React.FC;
|
|
6
|
-
export declare const DiscordMembers: React.FC;
|
|
7
|
-
export declare const Contributors: React.FC;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '../../cn';
|
|
3
|
-
// StatItemContent component
|
|
4
|
-
const StatItemContent = ({ content, width, minWidth, maxWidth, height = 'auto', fontSize, fontWeight, }) => (_jsx("div", { style: {
|
|
5
|
-
width,
|
|
6
|
-
minWidth,
|
|
7
|
-
maxWidth,
|
|
8
|
-
height,
|
|
9
|
-
fontSize,
|
|
10
|
-
fontWeight,
|
|
11
|
-
display: 'flex',
|
|
12
|
-
justifyContent: 'center',
|
|
13
|
-
alignItems: 'center',
|
|
14
|
-
textAlign: 'center',
|
|
15
|
-
fontFamily: 'GTPlanar',
|
|
16
|
-
fontFeatureSettings: "'ss03' on",
|
|
17
|
-
}, children: content }));
|
|
18
|
-
const Pill = ({ children, className }) => {
|
|
19
|
-
return (_jsx("div", { className: cn(className, 'card leading-none flex flex-wrap justify-center items-center min-w-[200px] min-h-[80px] max-h-[110px] flex-1 p-0'), children: children }));
|
|
20
|
-
};
|
|
21
|
-
export const InstallsPerMonth = () => {
|
|
22
|
-
return (_jsxs(Pill, { className: 'w-[30%] flex-col', children: [_jsxs("div", { style: {
|
|
23
|
-
display: 'flex',
|
|
24
|
-
alignItems: 'center',
|
|
25
|
-
justifyContent: 'center',
|
|
26
|
-
}, children: [_jsx(StatItemContent, { content: "230k", width: "100px", fontSize: "2.5rem", fontWeight: "bold" }), _jsx(StatItemContent, { content: _jsx("svg", { width: "40", height: "40", viewBox: "0 0 25 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M12.6367 2.47534C12.5488 2.44116 12.4512 2.44116 12.3584 2.47534L3.10547 5.98608L12.5 9.67749L21.8945 5.98608L12.6367 2.47534ZM2.34375 18.4519C2.34375 18.613 2.44629 18.7595 2.59766 18.8181L11.3281 22.1287V11.738L2.34375 8.20776V18.4519ZM13.6719 22.1287L22.4023 18.8181C22.5537 18.7595 22.6562 18.613 22.6562 18.4519V8.20776L13.6719 11.738V22.1287ZM11.5283 0.287842C12.1533 0.048584 12.8418 0.048584 13.4668 0.287842L23.2324 3.9939C24.2969 4.39429 25 5.40991 25 6.54761V18.4519C25 19.5896 24.2969 20.6052 23.2373 21.0105L13.4717 24.7166C12.8467 24.9558 12.1582 24.9558 11.5332 24.7166L1.76758 21.0105C0.703125 20.6052 0 19.5896 0 18.4519V6.54761C0 5.40991 0.703125 4.39429 1.7627 3.98901L11.5283 0.282959V0.287842Z", fill: "var(--text-color)" }) }), width: "50px" })] }), _jsx(StatItemContent, { content: "installs per month", width: "75%", fontSize: "1.0rem", fontWeight: "bold" })] }));
|
|
27
|
-
};
|
|
28
|
-
export const PagesOfDocs = () => {
|
|
29
|
-
return (_jsxs(Pill, { className: "flex-col", children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center' }, children: [_jsx(StatItemContent, { content: _jsx("svg", { width: "28", height: "40", viewBox: "0 0 18 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M0 3.60938C0 1.61602 1.58304 0 3.53571 0H17.0357H18V0.984375V15.4219V16.4062H17.0357H16.7143V19.0312H17.0357H18V21H17.0357H3.21429C1.43839 21 0 19.5316 0 17.7188C0 17.608 0.00401786 17.4973 0.0160714 17.3906H0V3.60938ZM3.21429 16.4062C2.50312 16.4062 1.92857 16.9928 1.92857 17.7188C1.92857 18.4447 2.50312 19.0312 3.21429 19.0312H14.7857V16.4062H3.21429ZM1.92857 14.7123C2.32232 14.5359 2.75625 14.4375 3.21429 14.4375H16.0714V1.96875H3.53571C2.64777 1.96875 1.92857 2.70293 1.92857 3.60938V14.7123ZM6.10714 4.59375H13.1786H14.1429V6.5625H13.1786H6.10714H5.14286V4.59375H6.10714ZM6.10714 7.875H13.1786H14.1429V9.84375H13.1786H6.10714H5.14286V7.875H6.10714Z", fill: "var(--text-color)" }) }), width: "40px" }), _jsx(StatItemContent, { content: "600", width: "85px", maxWidth: "100px", fontSize: "2.5rem", fontWeight: "bold" })] }), _jsx(StatItemContent, { content: "pages of docs", width: "125px", fontSize: "1.0rem", fontWeight: "bold" })] }));
|
|
30
|
-
};
|
|
31
|
-
export const TemplatesAndExamples = () => (_jsxs(Pill, { className: "w-[30%] flex items-center flex-row", children: [_jsx(StatItemContent, { content: "35", width: "60px", fontSize: "2.7rem", fontWeight: "bold" }), _jsx(StatItemContent, { content: "templates & examples", width: "135px", fontSize: "1.35rem", fontWeight: "bold" })] }));
|
|
32
|
-
export const GitHubStars = () => {
|
|
33
|
-
return (_jsxs(Pill, { className: "w-[30%] flex-col", children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center' }, children: [_jsx(StatItemContent, { content: _jsx("svg", { width: "40", height: "40", viewBox: "0 0 26 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M12.9951 0C13.4424 0 13.8507 0.24375 14.0451 0.632812L17.3799 7.25625L24.8271 8.31562C25.2646 8.37656 25.6292 8.67188 25.7653 9.07969C25.9014 9.4875 25.7896 9.92812 25.4785 10.2281L20.0778 15.3937L21.3514 22.6875C21.4243 23.1094 21.2444 23.5359 20.8799 23.7891C20.5153 24.0422 20.0389 24.0703 19.65 23.8688L12.9903 20.4375L6.34027 23.8641C5.94652 24.0656 5.47014 24.0375 5.11041 23.7844C4.75069 23.5312 4.56597 23.1047 4.63889 22.6828L5.9125 15.3891L0.511803 10.2281C0.195831 9.92812 0.0888863 9.48281 0.224997 9.07969C0.361108 8.67656 0.725692 8.38125 1.16319 8.31562L8.61041 7.25625L11.9451 0.632812C12.1444 0.24375 12.5479 0 12.9951 0ZM12.9951 3.70312L10.4431 8.775C10.2729 9.10781 9.94722 9.34219 9.56319 9.39844L3.8125 10.2141L7.98819 14.2031C8.25555 14.4609 8.38194 14.8266 8.31875 15.1875L7.33194 20.7984L12.4458 18.1641C12.791 17.9859 13.2042 17.9859 13.5444 18.1641L18.6583 20.7984L17.6764 15.1922C17.6132 14.8313 17.7347 14.4656 18.0069 14.2078L22.1826 10.2188L16.4319 9.39844C16.0528 9.34219 15.7222 9.1125 15.5521 8.775L12.9951 3.70312Z", fill: "var(--text-color)" }) }), width: "45px" }), _jsx(StatItemContent, { content: "21k", width: "80px", fontSize: "2.5rem", fontWeight: "bold" })] }), _jsx(StatItemContent, { content: "GitHub stars", width: "125px", fontSize: "1.0rem", fontWeight: "bold" })] }));
|
|
34
|
-
};
|
|
35
|
-
export const DiscordMembers = () => {
|
|
36
|
-
return (_jsx(Pill, { className: 'w-[30%]', children: _jsxs("div", { style: {
|
|
37
|
-
width: '80%',
|
|
38
|
-
display: 'flex',
|
|
39
|
-
alignItems: 'center',
|
|
40
|
-
justifyContent: 'center',
|
|
41
|
-
}, children: [_jsxs("div", { style: {
|
|
42
|
-
display: 'flex',
|
|
43
|
-
flexDirection: 'column',
|
|
44
|
-
alignItems: 'center',
|
|
45
|
-
justifyContent: 'center',
|
|
46
|
-
}, children: [_jsx(StatItemContent, { content: "5000", width: "142px", fontSize: "2.5rem", fontWeight: "bold" }), _jsx(StatItemContent, { content: "Discord members", width: "142px", fontSize: "1rem", fontWeight: "bold" })] }), _jsx("div", { style: {
|
|
47
|
-
display: 'flex',
|
|
48
|
-
justifyContent: 'center',
|
|
49
|
-
}, children: _jsx(StatItemContent, { content: _jsx("svg", { width: "61", height: "47", viewBox: "0 0 46 35", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M38.9978 2.95533C38.9843 2.93009 38.962 2.91064 38.9352 2.90065C35.955 1.53492 32.8101 0.560692 29.5791 0.00230404C29.55 -0.00300893 29.5201 0.00092017 29.4934 0.0135365C29.4667 0.0261528 29.4447 0.0468187 29.4304 0.0726144C29.0019 0.84938 28.6129 1.64724 28.2648 2.46316C24.7802 1.93495 21.2356 1.93495 17.7509 2.46316C17.4015 1.64523 17.0072 0.847165 16.5697 0.0726144C16.5546 0.0475873 16.5324 0.0275657 16.506 0.0150584C16.4795 0.00255114 16.45 -0.00188563 16.421 0.00230404C13.1844 0.558177 10.034 1.53248 7.04927 2.90065C7.0231 2.91173 7.00116 2.93089 6.98669 2.95533C1.02568 11.8535 -0.609293 20.5251 0.188637 29.0951C0.190896 29.1167 0.197628 29.1376 0.208402 29.1564C0.219177 29.1752 0.233759 29.1916 0.25122 29.2045C3.7235 31.7693 7.60667 33.7268 11.7352 34.9934C11.7648 35.0025 11.7966 35.0022 11.8261 34.9924C11.8556 34.9826 11.8812 34.9638 11.8994 34.9387C12.7852 33.7344 13.5702 32.4593 14.2463 31.1263C14.2553 31.108 14.2604 31.088 14.2613 31.0676C14.2622 31.0471 14.2589 31.0268 14.2516 31.0077C14.2442 30.9886 14.233 30.9713 14.2186 30.9567C14.2043 30.9422 14.1871 30.9308 14.1681 30.9232C12.9278 30.4486 11.7271 29.8765 10.5774 29.2123C10.5571 29.1999 10.54 29.1828 10.5277 29.1624C10.5154 29.142 10.5082 29.119 10.5067 29.0953C10.5051 29.0715 10.5093 29.0478 10.5189 29.026C10.5285 29.0042 10.5432 28.985 10.5617 28.9701C10.8042 28.7904 11.0468 28.6029 11.2736 28.4155C11.2936 28.3979 11.3182 28.3864 11.3445 28.3822C11.3708 28.3781 11.3978 28.3815 11.4222 28.392C18.9478 31.8216 27.0992 31.8216 34.5388 28.392C34.5625 28.3804 34.589 28.3757 34.6153 28.3785C34.6416 28.3813 34.6666 28.3914 34.6874 28.4076C34.9143 28.5951 35.1568 28.7904 35.3993 28.9701C35.4178 28.985 35.4325 29.0042 35.4421 29.026C35.4517 29.0478 35.4559 29.0715 35.4543 29.0953C35.4528 29.119 35.4456 29.142 35.4333 29.1624C35.421 29.1828 35.4039 29.1999 35.3836 29.2123C34.2369 29.8799 33.0357 30.4496 31.7929 30.9154C31.7739 30.923 31.7567 30.9344 31.7424 30.9489C31.728 30.9635 31.7168 30.9808 31.7095 30.9999C31.7021 31.019 31.6988 31.0393 31.6997 31.0597C31.7006 31.0801 31.7057 31.1001 31.7147 31.1185C32.4026 32.4449 33.187 33.7191 34.0616 34.9309C34.0798 34.956 34.1054 34.9748 34.1349 34.9846C34.1644 34.9944 34.1962 34.9947 34.2258 34.9856C38.3663 33.7246 42.2606 31.7669 45.7411 29.1967C45.7589 29.1841 45.7737 29.1679 45.7846 29.149C45.7954 29.1301 45.8019 29.109 45.8037 29.0873C46.758 19.1892 44.1922 10.5879 38.9978 2.95533ZM15.3728 23.8765C13.1042 23.8765 11.2423 21.7985 11.2423 19.2517C11.2423 16.7049 13.0729 14.619 15.3728 14.619C17.6962 14.619 19.5424 16.7127 19.5032 19.2439C19.5032 21.7985 17.6727 23.8765 15.3728 23.8765ZM30.6586 23.8765C28.39 23.8765 26.5282 21.7985 26.5282 19.2517C26.5282 16.7049 28.3509 14.619 30.6586 14.619C32.982 14.619 34.8282 16.7127 34.7891 19.2439C34.7891 21.7985 32.9742 23.8765 30.6586 23.8765Z", fill: "var(--text-color)" }) }), width: "45px" }) })] }) }));
|
|
50
|
-
};
|
|
51
|
-
export const Contributors = () => {
|
|
52
|
-
return (_jsx(Pill, { className: "w-[30%]", children: _jsxs("div", { style: { display: 'flex', justifyContent: 'center' }, children: [_jsx("div", { style: { display: 'flex', justifyContent: 'center' }, children: _jsx(StatItemContent, { content: _jsx("svg", { width: "60", height: "50", viewBox: "0 0 63 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M6.975 5.375C6.975 3.94946 7.54656 2.58231 8.56395 1.5743C9.58133 0.566293 10.9612 0 12.4 0C13.8388 0 15.2187 0.566293 16.2361 1.5743C17.2534 2.58231 17.825 3.94946 17.825 5.375C17.825 6.80054 17.2534 8.16769 16.2361 9.1757C15.2187 10.1837 13.8388 10.75 12.4 10.75C10.9612 10.75 9.58133 10.1837 8.56395 9.1757C7.54656 8.16769 6.975 6.80054 6.975 5.375ZM6.2 20.5114C5.23125 21.5864 4.65 23.0165 4.65 24.5714C4.65 26.1263 5.23125 27.5565 6.2 28.6315V20.5114ZM20.1887 15.7795C17.3116 18.3038 15.5 21.9991 15.5 26.1071C15.5 29.3993 16.6625 32.4228 18.6 34.7935V36.8571C18.6 38.556 17.2147 39.9286 15.5 39.9286H9.3C7.58531 39.9286 6.2 38.556 6.2 36.8571V34.2848C2.53813 32.5571 0 28.8618 0 24.5714C0 18.6301 4.85344 13.8214 10.85 13.8214H13.95C16.275 13.8214 18.4256 14.5413 20.1887 15.7699V15.7795ZM43.4 36.8571V34.7935C45.3375 32.4228 46.5 29.3993 46.5 26.1071C46.5 21.9991 44.6884 18.3038 41.8112 15.7699C43.5744 14.5413 45.725 13.8214 48.05 13.8214H51.15C57.1466 13.8214 62 18.6301 62 24.5714C62 28.8618 59.4619 32.5571 55.8 34.2848V36.8571C55.8 38.556 54.4147 39.9286 52.7 39.9286H46.5C44.7853 39.9286 43.4 38.556 43.4 36.8571ZM44.175 5.375C44.175 3.94946 44.7466 2.58231 45.7639 1.5743C46.7813 0.566293 48.1612 0 49.6 0C51.0388 0 52.4187 0.566293 53.4361 1.5743C54.4534 2.58231 55.025 3.94946 55.025 5.375C55.025 6.80054 54.4534 8.16769 53.4361 9.1757C52.4187 10.1837 51.0388 10.75 49.6 10.75C48.1612 10.75 46.7813 10.1837 45.7639 9.1757C44.7466 8.16769 44.175 6.80054 44.175 5.375ZM55.8 20.5114V28.6411C56.7687 27.5565 57.35 26.1359 57.35 24.581C57.35 23.0261 56.7687 21.596 55.8 20.521V20.5114ZM31 0C32.6443 0 34.2213 0.647192 35.3841 1.7992C36.5468 2.95121 37.2 4.51367 37.2 6.14286C37.2 7.77204 36.5468 9.3345 35.3841 10.4865C34.2213 11.6385 32.6443 12.2857 31 12.2857C29.3557 12.2857 27.7787 11.6385 26.6159 10.4865C25.4532 9.3345 24.8 7.77204 24.8 6.14286C24.8 4.51367 25.4532 2.95121 26.6159 1.7992C27.7787 0.647192 29.3557 0 31 0ZM23.25 26.1071C23.25 27.6621 23.8312 29.0826 24.8 30.1672V22.0471C23.8312 23.1317 23.25 24.5522 23.25 26.1071ZM37.2 22.0471V30.1768C38.1687 29.0922 38.75 27.6717 38.75 26.1167C38.75 24.5618 38.1687 23.1317 37.2 22.0567V22.0471ZM43.4 26.1071C43.4 30.3975 40.8619 34.0929 37.2 35.8205V39.9286C37.2 41.6275 35.8147 43 34.1 43H27.9C26.1853 43 24.8 41.6275 24.8 39.9286V35.8205C21.1381 34.0929 18.6 30.3975 18.6 26.1071C18.6 20.1658 23.4534 15.3571 29.45 15.3571H32.55C38.5466 15.3571 43.4 20.1658 43.4 26.1071Z", fill: "var(--text-color)" }) }), width: "65px" }) }), _jsxs("div", { style: {
|
|
53
|
-
display: 'flex',
|
|
54
|
-
flexDirection: 'column',
|
|
55
|
-
alignItems: 'center',
|
|
56
|
-
justifyContent: 'center',
|
|
57
|
-
}, children: [_jsx(StatItemContent, { content: "250", width: "100px", fontSize: "2.5rem", fontWeight: "bold" }), _jsx(StatItemContent, { content: "contributors", width: "100px", fontSize: "1.0rem", fontWeight: "bold" })] })] }) }));
|
|
58
|
-
};
|