@remotion/promo-pages 4.0.321 → 4.0.323
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 +28 -23
- package/dist/homepage/Pricing.js +2 -2
- package/dist/tailwind.css +6 -0
- package/package.json +10 -10
- package/src/components/homepage/Counter.tsx +3 -3
- package/.turbo/turbo-lint.log +0 -5
- package/dist/cn.d.ts +0 -2
- package/dist/cn.js +0 -5
- 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 -9
- package/dist/components/homepage/Counter.js +0 -55
- 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 -63
- 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/EvaluateRemotion.d.ts +0 -3
- package/dist/components/homepage/EvaluateRemotion.js +0 -39
- package/dist/components/homepage/FreePricing.d.ts +0 -4
- package/dist/components/homepage/FreePricing.js +0 -75
- 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 -98
- package/dist/components/homepage/IfYouKnowReact.d.ts +0 -3
- package/dist/components/homepage/IfYouKnowReact.js +0 -23
- 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/MoreVideoPowerSection.d.ts +0 -2
- package/dist/components/homepage/MoreVideoPowerSection.js +0 -16
- 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 -39
- package/dist/components/homepage/ParameterizeAndEdit.d.ts +0 -2
- package/dist/components/homepage/ParameterizeAndEdit.js +0 -22
- 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 -41
- 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 -163
- package/dist/components/homepage/VideoAppsTitle.d.ts +0 -4
- package/dist/components/homepage/VideoAppsTitle.js +0 -4
- 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/recorder.d.ts +0 -3
- package/dist/components/icons/recorder.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.323 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 307ms
|
package/dist/Homepage.js
CHANGED
|
@@ -735,7 +735,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
735
735
|
});
|
|
736
736
|
}, useIsPlayer = () => {
|
|
737
737
|
return useContext(IsPlayerContext);
|
|
738
|
-
}, VERSION = "4.0.
|
|
738
|
+
}, VERSION = "4.0.323", checkMultipleRemotionVersions = () => {
|
|
739
739
|
if (typeof globalThis === "undefined") {
|
|
740
740
|
return;
|
|
741
741
|
}
|
|
@@ -8076,7 +8076,7 @@ var Counter = ({
|
|
|
8076
8076
|
children: [
|
|
8077
8077
|
/* @__PURE__ */ jsx("button", {
|
|
8078
8078
|
type: "button",
|
|
8079
|
-
className: "border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text",
|
|
8079
|
+
className: "border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text border-b-[var(--box-stroke)] border-l-[var(--box-stroke)]",
|
|
8080
8080
|
style: {
|
|
8081
8081
|
...buttonContainer
|
|
8082
8082
|
},
|
|
@@ -8087,7 +8087,7 @@ var Counter = ({
|
|
|
8087
8087
|
}),
|
|
8088
8088
|
/* @__PURE__ */ jsx("button", {
|
|
8089
8089
|
type: "button",
|
|
8090
|
-
className: "border-0 border-l-2 border-l-solid flex-1 border-text",
|
|
8090
|
+
className: "border-0 border-l-2 border-l-solid flex-1 border-text border-l-[var(--box-stroke)]",
|
|
8091
8091
|
style: {
|
|
8092
8092
|
...buttonContainer
|
|
8093
8093
|
},
|
|
@@ -12537,14 +12537,23 @@ var calculateOuterStyle = ({
|
|
|
12537
12537
|
};
|
|
12538
12538
|
var calculateContainerStyle = ({
|
|
12539
12539
|
config,
|
|
12540
|
-
canvasSize,
|
|
12541
12540
|
layout,
|
|
12542
12541
|
scale,
|
|
12543
12542
|
overflowVisible
|
|
12544
12543
|
}) => {
|
|
12545
|
-
if (!config
|
|
12544
|
+
if (!config) {
|
|
12546
12545
|
return {};
|
|
12547
12546
|
}
|
|
12547
|
+
if (!layout) {
|
|
12548
|
+
return {
|
|
12549
|
+
position: "absolute",
|
|
12550
|
+
width: config.width,
|
|
12551
|
+
height: config.height,
|
|
12552
|
+
display: "flex",
|
|
12553
|
+
transform: `scale(${scale})`,
|
|
12554
|
+
overflow: overflowVisible ? "visible" : "hidden"
|
|
12555
|
+
};
|
|
12556
|
+
}
|
|
12548
12557
|
return {
|
|
12549
12558
|
position: "absolute",
|
|
12550
12559
|
width: config.width,
|
|
@@ -12562,9 +12571,19 @@ var calculateOuter = ({
|
|
|
12562
12571
|
config,
|
|
12563
12572
|
overflowVisible
|
|
12564
12573
|
}) => {
|
|
12565
|
-
if (!
|
|
12574
|
+
if (!config) {
|
|
12566
12575
|
return {};
|
|
12567
12576
|
}
|
|
12577
|
+
if (!layout) {
|
|
12578
|
+
return {
|
|
12579
|
+
width: config.width * scale,
|
|
12580
|
+
height: config.height * scale,
|
|
12581
|
+
display: "flex",
|
|
12582
|
+
flexDirection: "column",
|
|
12583
|
+
position: "absolute",
|
|
12584
|
+
overflow: overflowVisible ? "visible" : "hidden"
|
|
12585
|
+
};
|
|
12586
|
+
}
|
|
12568
12587
|
const { centerX, centerY } = layout;
|
|
12569
12588
|
return {
|
|
12570
12589
|
width: config.width * scale,
|
|
@@ -12728,15 +12747,6 @@ var PlayerEmitterProvider = ({ children, currentPlaybackRate }) => {
|
|
|
12728
12747
|
children
|
|
12729
12748
|
});
|
|
12730
12749
|
};
|
|
12731
|
-
var useFrameImperative = () => {
|
|
12732
|
-
const frame = Internals.Timeline.useTimelinePosition();
|
|
12733
|
-
const frameRef = useRef18(frame);
|
|
12734
|
-
frameRef.current = frame;
|
|
12735
|
-
const getCurrentFrame = useCallback17(() => {
|
|
12736
|
-
return frameRef.current;
|
|
12737
|
-
}, []);
|
|
12738
|
-
return getCurrentFrame;
|
|
12739
|
-
};
|
|
12740
12750
|
var useHoverState = (ref, hideControlsWhenPointerDoesntMove) => {
|
|
12741
12751
|
const [hovered, setHovered] = useState23(false);
|
|
12742
12752
|
useEffect32(() => {
|
|
@@ -12896,7 +12906,6 @@ var usePlayer = () => {
|
|
|
12896
12906
|
};
|
|
12897
12907
|
});
|
|
12898
12908
|
}, [videoId, imperativePlaying, lastFrame, setFrame]);
|
|
12899
|
-
const getCurrentFrame = useFrameImperative();
|
|
12900
12909
|
const toggle = useCallback23((e) => {
|
|
12901
12910
|
if (imperativePlaying.current) {
|
|
12902
12911
|
pause();
|
|
@@ -12915,12 +12924,11 @@ var usePlayer = () => {
|
|
|
12915
12924
|
pause,
|
|
12916
12925
|
seek: seek2,
|
|
12917
12926
|
isFirstFrame,
|
|
12918
|
-
getCurrentFrame,
|
|
12927
|
+
getCurrentFrame: () => frameRef.current,
|
|
12919
12928
|
isPlaying: () => imperativePlaying.current,
|
|
12920
12929
|
isBuffering: () => buffering.current,
|
|
12921
12930
|
pauseAndReturnToPlayStart,
|
|
12922
12931
|
hasPlayed,
|
|
12923
|
-
remotionInternal_currentFrameRef: frameRef,
|
|
12924
12932
|
toggle
|
|
12925
12933
|
};
|
|
12926
12934
|
}, [
|
|
@@ -12928,7 +12936,6 @@ var usePlayer = () => {
|
|
|
12928
12936
|
emitter,
|
|
12929
12937
|
frameBack,
|
|
12930
12938
|
frameForward,
|
|
12931
|
-
getCurrentFrame,
|
|
12932
12939
|
hasPlayed,
|
|
12933
12940
|
imperativePlaying,
|
|
12934
12941
|
isFirstFrame,
|
|
@@ -14763,13 +14770,12 @@ var PlayerUI = ({
|
|
|
14763
14770
|
}, [config, layout, overflowVisible, scale]);
|
|
14764
14771
|
const containerStyle3 = useMemo122(() => {
|
|
14765
14772
|
return calculateContainerStyle({
|
|
14766
|
-
canvasSize,
|
|
14767
14773
|
config,
|
|
14768
14774
|
layout,
|
|
14769
14775
|
scale,
|
|
14770
14776
|
overflowVisible
|
|
14771
14777
|
});
|
|
14772
|
-
}, [
|
|
14778
|
+
}, [config, layout, overflowVisible, scale]);
|
|
14773
14779
|
const playerPause = player.pause;
|
|
14774
14780
|
const playerDispatchError = player.emitter.dispatchError;
|
|
14775
14781
|
const onError = useCallback112((error) => {
|
|
@@ -15462,13 +15468,12 @@ var ThumbnailUI = ({
|
|
|
15462
15468
|
}, [config, layout, overflowVisible, scale]);
|
|
15463
15469
|
const containerStyle3 = useMemo162(() => {
|
|
15464
15470
|
return calculateContainerStyle({
|
|
15465
|
-
canvasSize,
|
|
15466
15471
|
config,
|
|
15467
15472
|
layout,
|
|
15468
15473
|
scale,
|
|
15469
15474
|
overflowVisible
|
|
15470
15475
|
});
|
|
15471
|
-
}, [
|
|
15476
|
+
}, [config, layout, overflowVisible, scale]);
|
|
15472
15477
|
const onError = useCallback132((error) => {
|
|
15473
15478
|
thumbnail.emitter.dispatchError(error);
|
|
15474
15479
|
}, [thumbnail.emitter]);
|
package/dist/homepage/Pricing.js
CHANGED
|
@@ -1435,7 +1435,7 @@ var Counter = ({
|
|
|
1435
1435
|
children: [
|
|
1436
1436
|
/* @__PURE__ */ jsx("button", {
|
|
1437
1437
|
type: "button",
|
|
1438
|
-
className: "border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text",
|
|
1438
|
+
className: "border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text border-b-[var(--box-stroke)] border-l-[var(--box-stroke)]",
|
|
1439
1439
|
style: {
|
|
1440
1440
|
...buttonContainer
|
|
1441
1441
|
},
|
|
@@ -1446,7 +1446,7 @@ var Counter = ({
|
|
|
1446
1446
|
}),
|
|
1447
1447
|
/* @__PURE__ */ jsx("button", {
|
|
1448
1448
|
type: "button",
|
|
1449
|
-
className: "border-0 border-l-2 border-l-solid flex-1 border-text",
|
|
1449
|
+
className: "border-0 border-l-2 border-l-solid flex-1 border-text border-l-[var(--box-stroke)]",
|
|
1450
1450
|
style: {
|
|
1451
1451
|
...buttonContainer
|
|
1452
1452
|
},
|
package/dist/tailwind.css
CHANGED
|
@@ -523,9 +523,15 @@
|
|
|
523
523
|
.border-r-transparent {
|
|
524
524
|
border-right-color: transparent;
|
|
525
525
|
}
|
|
526
|
+
.border-b-\[var\(--box-stroke\)\] {
|
|
527
|
+
border-bottom-color: var(--box-stroke);
|
|
528
|
+
}
|
|
526
529
|
.border-b-transparent {
|
|
527
530
|
border-bottom-color: transparent;
|
|
528
531
|
}
|
|
532
|
+
.border-l-\[var\(--box-stroke\)\] {
|
|
533
|
+
border-left-color: var(--box-stroke);
|
|
534
|
+
}
|
|
529
535
|
.border-l-transparent {
|
|
530
536
|
border-left-color: transparent;
|
|
531
537
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/promo-pages",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.323",
|
|
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/animated-emoji": "4.0.
|
|
14
|
-
"@remotion/lambda": "4.0.
|
|
15
|
-
"@remotion/
|
|
16
|
-
"@remotion/
|
|
17
|
-
"@remotion/
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"remotion": "4.0.
|
|
13
|
+
"@remotion/animated-emoji": "4.0.323",
|
|
14
|
+
"@remotion/lambda": "4.0.323",
|
|
15
|
+
"@remotion/paths": "4.0.323",
|
|
16
|
+
"@remotion/player": "4.0.323",
|
|
17
|
+
"@remotion/lottie": "4.0.323",
|
|
18
|
+
"@remotion/shapes": "4.0.323",
|
|
19
|
+
"create-video": "4.0.323",
|
|
20
|
+
"remotion": "4.0.323"
|
|
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.323"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/promo-pages"
|
|
@@ -83,7 +83,7 @@ export const Counter: React.FC<CounterProps> = ({
|
|
|
83
83
|
|
|
84
84
|
const inputValue = parseInt(e.target.value, 10);
|
|
85
85
|
const validValue = Math.max(inputValue, minCount);
|
|
86
|
-
|
|
86
|
+
|
|
87
87
|
// For steps > 1, round to the nearest valid step
|
|
88
88
|
if (step > 1) {
|
|
89
89
|
const roundedValue = Math.round(validValue / step) * step;
|
|
@@ -96,7 +96,7 @@ export const Counter: React.FC<CounterProps> = ({
|
|
|
96
96
|
<div className="flex flex-col ml-3 h-full">
|
|
97
97
|
<button
|
|
98
98
|
type="button"
|
|
99
|
-
className="border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text"
|
|
99
|
+
className="border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text border-b-[var(--box-stroke)] border-l-[var(--box-stroke)]"
|
|
100
100
|
style={{
|
|
101
101
|
...buttonContainer,
|
|
102
102
|
}}
|
|
@@ -106,7 +106,7 @@ export const Counter: React.FC<CounterProps> = ({
|
|
|
106
106
|
</button>
|
|
107
107
|
<button
|
|
108
108
|
type="button"
|
|
109
|
-
className="border-0 border-l-2 border-l-solid flex-1 border-text"
|
|
109
|
+
className="border-0 border-l-2 border-l-solid flex-1 border-text border-l-[var(--box-stroke)]"
|
|
110
110
|
style={{
|
|
111
111
|
...buttonContainer,
|
|
112
112
|
}}
|
package/.turbo/turbo-lint.log
DELETED
package/dist/cn.d.ts
DELETED
package/dist/cn.js
DELETED
|
@@ -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 EvaluateRemotionSection from './homepage/EvaluateRemotion';
|
|
7
|
-
import { IfYouKnowReact } from './homepage/IfYouKnowReact';
|
|
8
|
-
import { ColorModeProvider } from './homepage/layout/use-color-mode';
|
|
9
|
-
import { MoreVideoPowerSection } from './homepage/MoreVideoPowerSection';
|
|
10
|
-
import { NewsletterButton } from './homepage/NewsletterButton';
|
|
11
|
-
import { ParameterizeAndEdit } from './homepage/ParameterizeAndEdit';
|
|
12
|
-
import { Pricing } from './homepage/Pricing';
|
|
13
|
-
import { RealMP4Videos } from './homepage/RealMp4Videos';
|
|
14
|
-
import TrustedByBanner from './homepage/TrustedByBanner';
|
|
15
|
-
import VideoAppsShowcase from './homepage/VideoAppsShowcase';
|
|
16
|
-
import { SectionTitle } 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", { style: { overflow: 'hidden' }, 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 overflow-x-clip md:overflow-x-visible relative", children: [_jsx(WriteInReact, {}), _jsx("br", {}), _jsx(IfYouKnowReact, {}), _jsx(ParameterizeAndEdit, {}), _jsx(RealMP4Videos, {}), _jsx("br", {}), _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(SectionTitle, { children: "Even more power to developers" }), _jsx("div", { className: 'fontbrand text-center mb-10 -mt-4', children: "Innovative video products that you might enjoy." }), _jsx(MoreVideoPowerSection, {}), _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 min-w-0 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 -mt-4', 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: "22k", 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
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '../../cn';
|
|
3
|
-
const Triangle = ({ rotated }) => (_jsx("svg", { width: "12px", height: "7px", viewBox: "0 0 12 7", fill: "none", style: {
|
|
4
|
-
transform: rotated ? 'rotate(180deg)' : 'rotate(0deg)',
|
|
5
|
-
}, children: _jsx("path", { className: "fill-text", d: "M7.17096 0.475588C6.73198 0.0764969 6.01906 0.0764969 5.58007 0.475588L1.08483 4.56228C0.761737 4.85601 0.666915 5.29341 0.84251 5.67654C1.01811 6.05966 1.42549 6.3087 1.88203 6.3087H10.8725C11.3255 6.3087 11.7364 6.05966 11.912 5.67654C12.0876 5.29341 11.9893 4.85601 11.6697 4.56228L7.17448 0.475588H7.17096Z" }) }));
|
|
6
|
-
const container = {
|
|
7
|
-
display: 'flex',
|
|
8
|
-
flexDirection: 'row',
|
|
9
|
-
justifyContent: 'flex-end',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
borderRadius: 4,
|
|
12
|
-
height: 42,
|
|
13
|
-
overflow: 'hidden',
|
|
14
|
-
flexShrink: 0,
|
|
15
|
-
};
|
|
16
|
-
const buttonContainer = {
|
|
17
|
-
display: 'flex',
|
|
18
|
-
width: 30,
|
|
19
|
-
padding: 2,
|
|
20
|
-
height: 20,
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
alignItems: 'center',
|
|
23
|
-
backgroundColor: 'inherit',
|
|
24
|
-
cursor: 'pointer',
|
|
25
|
-
};
|
|
26
|
-
export const Counter = ({ count, setCount, minCount = 0, step = 1, }) => {
|
|
27
|
-
const decrement = () => {
|
|
28
|
-
if (count > minCount) {
|
|
29
|
-
setCount(Math.max(minCount, count - step));
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const increment = () => {
|
|
33
|
-
setCount(count + step);
|
|
34
|
-
};
|
|
35
|
-
return (_jsxs("div", { style: container, className: cn('border-effect w-[140px] text-text'), children: [_jsx("input", { className: 'fontbrand text-2xl font-medium min-w-[80px] border-0 text-end bg-transparent outline-0 text-text', type: "number", onClick: (e) => e.currentTarget.select(), value: count, onChange: (e) => {
|
|
36
|
-
if (e.target.value.trim() === '') {
|
|
37
|
-
setCount(step === 1 ? 1 : minCount);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
const inputValue = parseInt(e.target.value, 10);
|
|
41
|
-
const validValue = Math.max(inputValue, minCount);
|
|
42
|
-
// For steps > 1, round to the nearest valid step
|
|
43
|
-
if (step > 1) {
|
|
44
|
-
const roundedValue = Math.round(validValue / step) * step;
|
|
45
|
-
setCount(Math.max(roundedValue, minCount));
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
setCount(validValue);
|
|
49
|
-
}
|
|
50
|
-
} }), _jsxs("div", { className: "flex flex-col ml-3 h-full", children: [_jsx("button", { type: "button", className: "border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text", style: {
|
|
51
|
-
...buttonContainer,
|
|
52
|
-
}, onClick: increment, children: _jsx(Triangle, { rotated: false }) }), _jsx("button", { type: "button", className: "border-0 border-l-2 border-l-solid flex-1 border-text", style: {
|
|
53
|
-
...buttonContainer,
|
|
54
|
-
}, onClick: decrement, children: _jsx(Triangle, { rotated: true }) })] })] }));
|
|
55
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type Position } from './math';
|
|
3
|
-
export declare const Card: React.FC<{
|
|
4
|
-
readonly index: number;
|
|
5
|
-
readonly refsToUse: React.MutableRefObject<HTMLDivElement>[];
|
|
6
|
-
readonly onUpdate: (newIndices: number[]) => void;
|
|
7
|
-
readonly content: React.ReactNode;
|
|
8
|
-
readonly positions: React.MutableRefObject<Position[]>;
|
|
9
|
-
readonly shouldBePositions: React.MutableRefObject<Position[]>;
|
|
10
|
-
readonly indices: number[];
|
|
11
|
-
readonly theme: 'dark' | 'light';
|
|
12
|
-
readonly withSwitcher: boolean;
|
|
13
|
-
readonly onClickLeft: () => void;
|
|
14
|
-
readonly onClickRight: () => void;
|
|
15
|
-
}>;
|