@vibecuting/video-project-core 0.1.26 → 0.1.27
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/package.json +4 -4
- package/src/core/intro/_shared/intro-layout.test.ts +18 -0
- package/src/core/intro/_shared/intro-layout.ts +50 -0
- package/src/core/intro/cyberpunk-intro-holo/default-cyberpunk-intro-bumper-Horizontal.tsx +25 -0
- package/src/core/intro/cyberpunk-intro-holo/default-cyberpunk-intro-bumper-Landscape.tsx +25 -0
- package/src/core/intro/cyberpunk-intro-holo/default-cyberpunk-intro-bumper.stories.tsx +31 -0
- package/src/core/intro/cyberpunk-intro-holo/default-cyberpunk-intro-bumper.tsx +118 -0
- package/src/core/intro/cyberpunk-intro-holo/index.ts +11 -0
- package/src/core/intro/cyberpunk-intro-neon/default-cyberpunk-intro-bumper-Horizontal.tsx +24 -0
- package/src/core/intro/cyberpunk-intro-neon/default-cyberpunk-intro-bumper-Landscape.tsx +24 -0
- package/src/core/intro/cyberpunk-intro-neon/default-cyberpunk-intro-bumper.stories.tsx +30 -0
- package/src/core/intro/cyberpunk-intro-neon/default-cyberpunk-intro-bumper.tsx +108 -0
- package/src/core/intro/cyberpunk-intro-neon/index.ts +10 -0
- package/src/core/intro/default-cinematic-intro-bumper/default-cinematic-intro-bumper-Horizontal.tsx +24 -0
- package/src/core/intro/default-cinematic-intro-bumper/default-cinematic-intro-bumper-Landscape.tsx +24 -0
- package/src/core/intro/default-cinematic-intro-bumper/default-cinematic-intro-bumper.stories.tsx +29 -0
- package/src/core/intro/default-cinematic-intro-bumper/default-cinematic-intro-bumper.tsx +234 -0
- package/src/core/intro/default-cinematic-intro-bumper/index.ts +11 -0
- package/src/core/intro/default-festival-intro-bumper/default-festival-intro-bumper-Horizontal.tsx +24 -0
- package/src/core/intro/default-festival-intro-bumper/default-festival-intro-bumper-Landscape.tsx +24 -0
- package/src/core/intro/default-festival-intro-bumper/default-festival-intro-bumper.stories.tsx +29 -0
- package/src/core/intro/default-festival-intro-bumper/default-festival-intro-bumper.tsx +187 -0
- package/src/core/intro/default-festival-intro-bumper/index.ts +11 -0
- package/src/core/intro/default-intro-bumper/default-intro-bumper-Horizontal.tsx +24 -0
- package/src/core/intro/default-intro-bumper/default-intro-bumper-Landscape.tsx +24 -0
- package/src/core/intro/default-intro-bumper/default-intro-bumper.stories.tsx +41 -0
- package/src/core/intro/default-intro-bumper/default-intro-bumper.tsx +256 -0
- package/src/core/intro/default-intro-bumper/index.ts +11 -0
- package/src/core/intro/default-noir-intro-bumper/default-noir-intro-bumper-Horizontal.tsx +24 -0
- package/src/core/intro/default-noir-intro-bumper/default-noir-intro-bumper-Landscape.tsx +24 -0
- package/src/core/intro/default-noir-intro-bumper/default-noir-intro-bumper.stories.tsx +29 -0
- package/src/core/intro/default-noir-intro-bumper/default-noir-intro-bumper.tsx +122 -0
- package/src/core/intro/default-noir-intro-bumper/index.ts +11 -0
- package/src/core/intro/default-trailer-intro-bumper/default-trailer-intro-bumper-Horizontal.tsx +24 -0
- package/src/core/intro/default-trailer-intro-bumper/default-trailer-intro-bumper-Landscape.tsx +24 -0
- package/src/core/intro/default-trailer-intro-bumper/default-trailer-intro-bumper.stories.tsx +29 -0
- package/src/core/intro/default-trailer-intro-bumper/default-trailer-intro-bumper.tsx +181 -0
- package/src/core/intro/default-trailer-intro-bumper/index.ts +11 -0
- package/src/core/intro/documentary-intro-observation/default-documentary-intro-bumper-Horizontal.tsx +18 -0
- package/src/core/intro/documentary-intro-observation/default-documentary-intro-bumper-Landscape.tsx +18 -0
- package/src/core/intro/documentary-intro-observation/default-documentary-intro-bumper.stories.tsx +31 -0
- package/src/core/intro/documentary-intro-observation/default-documentary-intro-bumper.tsx +158 -0
- package/src/core/intro/documentary-intro-observation/index.ts +10 -0
- package/src/core/intro/family-intro-reunion/default-family-intro-bumper-Horizontal.tsx +18 -0
- package/src/core/intro/family-intro-reunion/default-family-intro-bumper-Landscape.tsx +18 -0
- package/src/core/intro/family-intro-reunion/default-family-intro-bumper.stories.tsx +43 -0
- package/src/core/intro/family-intro-reunion/default-family-intro-bumper.tsx +165 -0
- package/src/core/intro/family-intro-reunion/index.ts +10 -0
- package/src/core/intro/festival-intro-spotlight/default-festival-intro-bumper-Horizontal.tsx +1 -0
- package/src/core/intro/festival-intro-spotlight/default-festival-intro-bumper-Landscape.tsx +1 -0
- package/src/core/intro/festival-intro-spotlight/default-festival-intro-bumper.stories.tsx +30 -0
- package/src/core/intro/festival-intro-spotlight/default-festival-intro-bumper.tsx +105 -0
- package/src/core/intro/festival-intro-spotlight/index.ts +10 -0
- package/src/core/intro/index.test.ts +45 -0
- package/src/core/intro/index.ts +17 -0
- package/src/core/intro/noir-intro-city/default-noir-intro-bumper-Horizontal.tsx +24 -0
- package/src/core/intro/noir-intro-city/default-noir-intro-bumper-Landscape.tsx +24 -0
- package/src/core/intro/noir-intro-city/default-noir-intro-bumper.stories.tsx +31 -0
- package/src/core/intro/noir-intro-city/default-noir-intro-bumper.tsx +96 -0
- package/src/core/intro/noir-intro-city/index.ts +10 -0
- package/src/core/intro/noir-intro-deluxe/default-noir-intro-bumper-Horizontal.tsx +1 -0
- package/src/core/intro/noir-intro-deluxe/default-noir-intro-bumper-Landscape.tsx +1 -0
- package/src/core/intro/noir-intro-deluxe/default-noir-intro-bumper.stories.tsx +31 -0
- package/src/core/intro/noir-intro-deluxe/default-noir-intro-bumper.tsx +117 -0
- package/src/core/intro/noir-intro-deluxe/index.ts +10 -0
- package/src/core/intro/sci-fi-intro/default-sci-fi-intro-bumper-Horizontal.tsx +1 -0
- package/src/core/intro/sci-fi-intro/default-sci-fi-intro-bumper-Landscape.tsx +1 -0
- package/src/core/intro/sci-fi-intro/default-sci-fi-intro-bumper.stories.tsx +48 -0
- package/src/core/intro/sci-fi-intro/default-sci-fi-intro-bumper.tsx +105 -0
- package/src/core/intro/sci-fi-intro/index.ts +10 -0
- package/src/core/intro/thriller-intro-suspense/default-thriller-intro-bumper-Horizontal.tsx +18 -0
- package/src/core/intro/thriller-intro-suspense/default-thriller-intro-bumper-Landscape.tsx +18 -0
- package/src/core/intro/thriller-intro-suspense/default-thriller-intro-bumper.stories.tsx +31 -0
- package/src/core/intro/thriller-intro-suspense/default-thriller-intro-bumper.tsx +155 -0
- package/src/core/intro/thriller-intro-suspense/index.ts +10 -0
- package/src/core/intro/trailer-intro-premiere/default-trailer-intro-bumper-Horizontal.tsx +1 -0
- package/src/core/intro/trailer-intro-premiere/default-trailer-intro-bumper-Landscape.tsx +1 -0
- package/src/core/intro/trailer-intro-premiere/default-trailer-intro-bumper.stories.tsx +30 -0
- package/src/core/intro/trailer-intro-premiere/default-trailer-intro-bumper.tsx +104 -0
- package/src/core/intro/trailer-intro-premiere/index.ts +10 -0
- package/src/core/intro/travel-intro-journey/default-travel-intro-bumper-Horizontal.tsx +18 -0
- package/src/core/intro/travel-intro-journey/default-travel-intro-bumper-Landscape.tsx +18 -0
- package/src/core/intro/travel-intro-journey/default-travel-intro-bumper.stories.tsx +43 -0
- package/src/core/intro/travel-intro-journey/default-travel-intro-bumper.tsx +158 -0
- package/src/core/intro/travel-intro-journey/index.ts +10 -0
- package/src/core/intro/western-intro/default-western-intro-bumper-Horizontal.tsx +24 -0
- package/src/core/intro/western-intro/default-western-intro-bumper-Landscape.tsx +24 -0
- package/src/core/intro/western-intro/default-western-intro-bumper.stories.tsx +29 -0
- package/src/core/intro/western-intro/default-western-intro-bumper.tsx +146 -0
- package/src/core/intro/western-intro/index.ts +4 -0
- package/src/core/intro/western-intro-gangster/default-western-intro-bumper-Horizontal.tsx +25 -0
- package/src/core/intro/western-intro-gangster/default-western-intro-bumper-Landscape.tsx +25 -0
- package/src/core/intro/western-intro-gangster/default-western-intro-bumper.stories.tsx +31 -0
- package/src/core/intro/western-intro-gangster/default-western-intro-bumper.tsx +105 -0
- package/src/core/intro/western-intro-gangster/index.ts +11 -0
- package/src/core/outro/_shared/outro-layout.test.ts +32 -0
- package/src/core/outro/_shared/outro-layout.ts +72 -0
- package/src/core/outro/award-outro-celebration/default-award-outro-bumper-Horizontal.tsx +18 -0
- package/src/core/outro/award-outro-celebration/default-award-outro-bumper-Landscape.tsx +18 -0
- package/src/core/outro/award-outro-celebration/default-award-outro-bumper.stories.tsx +42 -0
- package/src/core/outro/award-outro-celebration/default-award-outro-bumper.tsx +152 -0
- package/src/core/outro/award-outro-celebration/index.ts +10 -0
- package/src/core/outro/blackout-outro-finale/default-blackout-outro-bumper-Horizontal.tsx +1 -0
- package/src/core/outro/blackout-outro-finale/default-blackout-outro-bumper-Landscape.tsx +1 -0
- package/src/core/outro/blackout-outro-finale/default-blackout-outro-bumper.stories.tsx +28 -0
- package/src/core/outro/blackout-outro-finale/default-blackout-outro-bumper.tsx +71 -0
- package/src/core/outro/blackout-outro-finale/index.ts +10 -0
- package/src/core/outro/credits-roll-outro-epic/default-credits-roll-outro-Horizontal.tsx +24 -0
- package/src/core/outro/credits-roll-outro-epic/default-credits-roll-outro-Landscape.tsx +24 -0
- package/src/core/outro/credits-roll-outro-epic/default-credits-roll-outro.stories.tsx +31 -0
- package/src/core/outro/credits-roll-outro-epic/default-credits-roll-outro.tsx +106 -0
- package/src/core/outro/credits-roll-outro-epic/index.ts +10 -0
- package/src/core/outro/credits-roll-outro-premium/default-credits-roll-outro-Horizontal.tsx +1 -0
- package/src/core/outro/credits-roll-outro-premium/default-credits-roll-outro-Landscape.tsx +1 -0
- package/src/core/outro/credits-roll-outro-premium/default-credits-roll-outro.stories.tsx +30 -0
- package/src/core/outro/credits-roll-outro-premium/default-credits-roll-outro.tsx +88 -0
- package/src/core/outro/credits-roll-outro-premium/index.ts +10 -0
- package/src/core/outro/credits-roll-outro-royal/default-credits-roll-outro-Horizontal.tsx +25 -0
- package/src/core/outro/credits-roll-outro-royal/default-credits-roll-outro-Landscape.tsx +25 -0
- package/src/core/outro/credits-roll-outro-royal/default-credits-roll-outro.stories.tsx +32 -0
- package/src/core/outro/credits-roll-outro-royal/default-credits-roll-outro.tsx +110 -0
- package/src/core/outro/credits-roll-outro-royal/index.ts +11 -0
- package/src/core/outro/default-blackout-outro-bumper/default-blackout-outro-bumper-Horizontal.tsx +22 -0
- package/src/core/outro/default-blackout-outro-bumper/default-blackout-outro-bumper-Landscape.tsx +22 -0
- package/src/core/outro/default-blackout-outro-bumper/default-blackout-outro-bumper.stories.tsx +48 -0
- package/src/core/outro/default-blackout-outro-bumper/default-blackout-outro-bumper.tsx +124 -0
- package/src/core/outro/default-blackout-outro-bumper/index.ts +11 -0
- package/src/core/outro/default-credits-roll-outro/default-credits-roll-outro-Horizontal.tsx +22 -0
- package/src/core/outro/default-credits-roll-outro/default-credits-roll-outro-Landscape.tsx +22 -0
- package/src/core/outro/default-credits-roll-outro/default-credits-roll-outro.stories.tsx +48 -0
- package/src/core/outro/default-credits-roll-outro/default-credits-roll-outro.tsx +208 -0
- package/src/core/outro/default-credits-roll-outro/index.ts +11 -0
- package/src/core/outro/default-epilogue-outro/default-epilogue-outro-Horizontal.tsx +22 -0
- package/src/core/outro/default-epilogue-outro/default-epilogue-outro-Landscape.tsx +22 -0
- package/src/core/outro/default-epilogue-outro/default-epilogue-outro.stories.tsx +48 -0
- package/src/core/outro/default-epilogue-outro/default-epilogue-outro.tsx +115 -0
- package/src/core/outro/default-epilogue-outro/index.ts +11 -0
- package/src/core/outro/default-outro-bumper/default-outro-bumper-Horizontal.tsx +22 -0
- package/src/core/outro/default-outro-bumper/default-outro-bumper-Landscape.tsx +22 -0
- package/src/core/outro/default-outro-bumper/default-outro-bumper.stories.tsx +48 -0
- package/src/core/outro/default-outro-bumper/default-outro-bumper.tsx +159 -0
- package/src/core/outro/default-outro-bumper/index.ts +11 -0
- package/src/core/outro/default-sunset-outro-bumper/default-sunset-outro-bumper-Horizontal.tsx +22 -0
- package/src/core/outro/default-sunset-outro-bumper/default-sunset-outro-bumper-Landscape.tsx +22 -0
- package/src/core/outro/default-sunset-outro-bumper/default-sunset-outro-bumper.stories.tsx +48 -0
- package/src/core/outro/default-sunset-outro-bumper/default-sunset-outro-bumper.tsx +183 -0
- package/src/core/outro/default-sunset-outro-bumper/index.ts +11 -0
- package/src/core/outro/festival-outro-encore/default-festival-outro-bumper-Horizontal.tsx +18 -0
- package/src/core/outro/festival-outro-encore/default-festival-outro-bumper-Landscape.tsx +18 -0
- package/src/core/outro/festival-outro-encore/default-festival-outro-bumper.stories.tsx +31 -0
- package/src/core/outro/festival-outro-encore/default-festival-outro-bumper.tsx +130 -0
- package/src/core/outro/festival-outro-encore/index.ts +10 -0
- package/src/core/outro/heist-outro/default-heist-outro-bumper-Horizontal.tsx +24 -0
- package/src/core/outro/heist-outro/default-heist-outro-bumper-Landscape.tsx +24 -0
- package/src/core/outro/heist-outro/default-heist-outro-bumper.stories.tsx +29 -0
- package/src/core/outro/heist-outro/default-heist-outro-bumper.tsx +160 -0
- package/src/core/outro/heist-outro/index.ts +4 -0
- package/src/core/outro/index.test.ts +88 -0
- package/src/core/outro/index.ts +73 -0
- package/src/core/outro/memoir-outro-reflection/default-memoir-outro-bumper-Horizontal.tsx +18 -0
- package/src/core/outro/memoir-outro-reflection/default-memoir-outro-bumper-Landscape.tsx +18 -0
- package/src/core/outro/memoir-outro-reflection/default-memoir-outro-bumper.stories.tsx +42 -0
- package/src/core/outro/memoir-outro-reflection/default-memoir-outro-bumper.tsx +158 -0
- package/src/core/outro/memoir-outro-reflection/index.ts +10 -0
- package/src/core/outro/romance-outro/default-romance-outro-bumper-Horizontal.tsx +1 -0
- package/src/core/outro/romance-outro/default-romance-outro-bumper-Landscape.tsx +1 -0
- package/src/core/outro/romance-outro/default-romance-outro-bumper.stories.tsx +48 -0
- package/src/core/outro/romance-outro/default-romance-outro-bumper.tsx +123 -0
- package/src/core/outro/romance-outro/index.ts +10 -0
- package/src/core/outro/sunset-outro-coda/default-sunset-outro-bumper-Horizontal.tsx +1 -0
- package/src/core/outro/sunset-outro-coda/default-sunset-outro-bumper-Landscape.tsx +1 -0
- package/src/core/outro/sunset-outro-coda/default-sunset-outro-bumper.stories.tsx +30 -0
- package/src/core/outro/sunset-outro-coda/default-sunset-outro-bumper.tsx +75 -0
- package/src/core/outro/sunset-outro-coda/index.ts +10 -0
- package/src/core/scene/slide/_shared/index.ts +27 -0
- package/src/core/scene/slide/_shared/media-templates.test.ts +47 -0
- package/src/core/scene/slide/_shared/media-templates.tsx +324 -0
- package/src/core/scene/slide/index.test.ts +28 -0
- package/src/core/scene/slide/index.ts +14 -0
- package/src/core/scene/slide/person-intro/default-person-intro-duo-slide.tsx +19 -0
- package/src/core/scene/slide/person-intro/default-person-intro-group-slide.tsx +168 -0
- package/src/core/scene/slide/person-intro/default-person-intro-quad-slide.tsx +19 -0
- package/src/core/scene/slide/person-intro/default-person-intro-slide-Horizontal.animated.stories.tsx +47 -0
- package/src/core/scene/slide/person-intro/default-person-intro-slide-Horizontal.stories.tsx +46 -0
- package/src/core/scene/slide/person-intro/default-person-intro-slide-Horizontal.tsx +302 -0
- package/src/core/scene/slide/person-intro/default-person-intro-slide-Landscape.tsx +20 -0
- package/src/core/scene/slide/person-intro/default-person-intro-slide.animated.stories.tsx +126 -0
- package/src/core/scene/slide/person-intro/default-person-intro-slide.stories.tsx +119 -0
- package/src/core/scene/slide/person-intro/default-person-intro-slide.tsx +363 -0
- package/src/core/scene/slide/person-intro/default-person-intro-trio-slide.tsx +19 -0
- package/src/core/scene/slide/person-intro/index.ts +8 -0
- package/src/core/scene/slide/photo-album/default-photo-album-multi-slide.tsx +19 -0
- package/src/core/scene/slide/photo-album/default-photo-album-pair-slide.tsx +19 -0
- package/src/core/scene/slide/photo-album/default-photo-album-single-slide.tsx +19 -0
- package/src/core/scene/slide/photo-album/default-photo-album-slide-Horizontal.animated.stories.tsx +26 -0
- package/src/core/scene/slide/photo-album/default-photo-album-slide-Horizontal.stories.tsx +25 -0
- package/src/core/scene/slide/photo-album/default-photo-album-slide-Horizontal.tsx +20 -0
- package/src/core/scene/slide/photo-album/default-photo-album-slide-Landscape.tsx +20 -0
- package/src/core/scene/slide/photo-album/default-photo-album-slide.animated.stories.tsx +94 -0
- package/src/core/scene/slide/photo-album/default-photo-album-slide.stories.tsx +87 -0
- package/src/core/scene/slide/photo-album/default-photo-album-slide.tsx +414 -0
- package/src/core/scene/slide/photo-album/index.ts +7 -0
- package/src/core/scene/slide/video-showcase/default-video-showcase-multi-slide.tsx +195 -0
- package/src/core/scene/slide/video-showcase/default-video-showcase-slide-Horizontal.tsx +212 -0
- package/src/core/scene/slide/video-showcase/default-video-showcase-slide-Landscape.tsx +20 -0
- package/src/core/scene/slide/video-showcase/default-video-showcase-slide.animated.stories.tsx +78 -0
- package/src/core/scene/slide/video-showcase/default-video-showcase-slide.stories.tsx +74 -0
- package/src/core/scene/slide/video-showcase/default-video-showcase-slide.tsx +365 -0
- package/src/core/scene/slide/video-showcase/index.ts +5 -0
- package/src/core/intro/default-intro-bumper.stories.tsx +0 -19
- package/src/core/intro/default-intro-bumper.tsx +0 -218
- package/src/core/outro/default-outro-bumper.stories.tsx +0 -19
- package/src/core/outro/default-outro-bumper.tsx +0 -218
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { ReactNode } from 'react'
|
|
2
|
+
|
|
3
|
+
import { VideoComponent, defineComponentProjectComponentMetadata } from '@vibecuting/component-project-helper'
|
|
4
|
+
|
|
5
|
+
import { BaseRemotionScene, type BaseRemotionSceneProps, useRemotionSceneRuntime } from '../../../base'
|
|
6
|
+
import { useSceneMotion } from '../../../base'
|
|
7
|
+
import { getOutroTypographyScale, resolveOutroLayout, type OutroLayout } from '../_shared/outro-layout'
|
|
8
|
+
|
|
9
|
+
export interface DefaultFestivalOutroBumperProps extends BaseRemotionSceneProps {
|
|
10
|
+
title: string
|
|
11
|
+
note?: string
|
|
12
|
+
kicker?: string
|
|
13
|
+
creditLine?: string
|
|
14
|
+
footer?: string
|
|
15
|
+
accent?: string
|
|
16
|
+
secondaryAccent?: string
|
|
17
|
+
textColor?: string
|
|
18
|
+
layout?: OutroLayout
|
|
19
|
+
children?: ReactNode
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const componentMetadata = defineComponentProjectComponentMetadata({
|
|
23
|
+
name: 'DefaultFestivalOutroBumper',
|
|
24
|
+
description: 'Festival encore outro with a stage-note wall and bow-out energy',
|
|
25
|
+
sourceFile: 'src/core/outro/festival-outro-encore/default-festival-outro-bumper.tsx',
|
|
26
|
+
aspectRatio: '16:9',
|
|
27
|
+
sceneType: 'outro',
|
|
28
|
+
tags: ['outro', 'bumper', 'festival', 'encore'],
|
|
29
|
+
propsTypeName: 'DefaultFestivalOutroBumperProps',
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
export function DefaultFestivalOutroBumper({
|
|
33
|
+
id,
|
|
34
|
+
name,
|
|
35
|
+
title,
|
|
36
|
+
note,
|
|
37
|
+
kicker,
|
|
38
|
+
creditLine,
|
|
39
|
+
footer,
|
|
40
|
+
accent,
|
|
41
|
+
secondaryAccent,
|
|
42
|
+
textColor,
|
|
43
|
+
layout,
|
|
44
|
+
children,
|
|
45
|
+
}: DefaultFestivalOutroBumperProps) {
|
|
46
|
+
const runtime = useRemotionSceneRuntime()
|
|
47
|
+
const motion = useSceneMotion()
|
|
48
|
+
const resolvedLayout = resolveOutroLayout(layout, runtime.width, runtime.height)
|
|
49
|
+
const isHorizontal = resolvedLayout === 'horizontal'
|
|
50
|
+
const { titleFontSize, noteFontSize, kickerFontSize, footerFontSize } = getOutroTypographyScale(runtime.height, resolvedLayout)
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<BaseRemotionScene
|
|
54
|
+
id={id}
|
|
55
|
+
name={name}
|
|
56
|
+
style={{
|
|
57
|
+
background: isHorizontal
|
|
58
|
+
? `radial-gradient(circle at 50% 18%, ${secondaryAccent ?? '#fde68a'} 0%, ${accent ?? '#111827'} 42%, #020617 100%)`
|
|
59
|
+
: `linear-gradient(180deg, ${accent ?? '#111827'} 0%, #0f172a 45%, #020617 100%)`,
|
|
60
|
+
color: textColor ?? '#f8fafc',
|
|
61
|
+
display: 'grid',
|
|
62
|
+
placeItems: 'center',
|
|
63
|
+
padding: Math.round(runtime.height * (isHorizontal ? 0.055 : 0.07)),
|
|
64
|
+
}}
|
|
65
|
+
>
|
|
66
|
+
<section
|
|
67
|
+
style={{
|
|
68
|
+
position: 'relative',
|
|
69
|
+
zIndex: 1,
|
|
70
|
+
width: '100%',
|
|
71
|
+
height: '100%',
|
|
72
|
+
display: 'grid',
|
|
73
|
+
gridTemplateColumns: isHorizontal ? 'minmax(0, 1fr) minmax(280px, 0.9fr)' : '1fr',
|
|
74
|
+
gap: isHorizontal ? 24 : 16,
|
|
75
|
+
alignItems: 'stretch',
|
|
76
|
+
minWidth: 0,
|
|
77
|
+
minHeight: 0,
|
|
78
|
+
}}
|
|
79
|
+
>
|
|
80
|
+
<div style={{ display: 'grid', gap: 12, alignContent: 'center', textAlign: isHorizontal ? 'left' : 'center' }}>
|
|
81
|
+
<p style={{ margin: 0, fontSize: kickerFontSize, letterSpacing: '0.34em', textTransform: 'uppercase', opacity: 0.64 }}>
|
|
82
|
+
{kicker ?? 'Festival Finale'}
|
|
83
|
+
</p>
|
|
84
|
+
<h1 style={{ margin: 0, fontSize: titleFontSize, lineHeight: 0.92, letterSpacing: '-0.08em', textTransform: 'uppercase', transform: motion.isAnimation ? `translate3d(0, ${(1 - motion.progress) * 10}px, 0)` : 'none' }}>
|
|
85
|
+
{title}
|
|
86
|
+
</h1>
|
|
87
|
+
{note ? <p style={{ margin: 0, maxWidth: isHorizontal ? Math.round(runtime.width * 0.42) : '100%', fontSize: noteFontSize, lineHeight: 1.55, opacity: 0.8 }}>{note}</p> : null}
|
|
88
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', justifyContent: isHorizontal ? 'flex-start' : 'center', gap: 10 }}>
|
|
89
|
+
{creditLine ? <span style={{ fontSize: footerFontSize, letterSpacing: '0.22em', textTransform: 'uppercase', opacity: 0.8 }}>{creditLine}</span> : null}
|
|
90
|
+
{footer ? <span style={{ fontSize: footerFontSize, letterSpacing: '0.2em', textTransform: 'uppercase', opacity: 0.54 }}>{footer}</span> : null}
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
<div style={{ display: 'grid', gap: 12, alignContent: 'center' }}>
|
|
95
|
+
<div style={{ border: '1px solid rgba(248,250,252,0.14)', background: 'linear-gradient(180deg, rgba(255,255,255,0.06), rgba(251,191,36,0.08) 42%, rgba(15,23,42,0.18))', padding: 18, display: 'grid', gap: 12, overflow: 'hidden' }}>
|
|
96
|
+
<div style={{ fontSize: Math.round(runtime.height * 0.016), letterSpacing: '0.3em', textTransform: 'uppercase', opacity: 0.58 }}>
|
|
97
|
+
Encore Notes
|
|
98
|
+
</div>
|
|
99
|
+
<div style={{ display: 'grid', gap: 10 }}>
|
|
100
|
+
{[
|
|
101
|
+
['Stage', 'Closing lights'],
|
|
102
|
+
['Energy', 'High'],
|
|
103
|
+
['Audience', 'Standing ovation'],
|
|
104
|
+
].map(([label, value], index) => (
|
|
105
|
+
<div
|
|
106
|
+
key={label}
|
|
107
|
+
style={{
|
|
108
|
+
border: '1px solid rgba(248,250,252,0.1)',
|
|
109
|
+
background: index === 1 ? 'rgba(251,191,36,0.14)' : 'rgba(0,0,0,0.14)',
|
|
110
|
+
padding: '12px 14px',
|
|
111
|
+
display: 'flex',
|
|
112
|
+
justifyContent: 'space-between',
|
|
113
|
+
gap: 12,
|
|
114
|
+
fontSize: Math.round(runtime.height * 0.018),
|
|
115
|
+
}}
|
|
116
|
+
>
|
|
117
|
+
<span style={{ opacity: 0.56, textTransform: 'uppercase', letterSpacing: '0.18em' }}>{label}</span>
|
|
118
|
+
<span>{value}</span>
|
|
119
|
+
</div>
|
|
120
|
+
))}
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
{children ? <div>{children}</div> : null}
|
|
124
|
+
</div>
|
|
125
|
+
</section>
|
|
126
|
+
</BaseRemotionScene>
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
VideoComponent(componentMetadata)(DefaultFestivalOutroBumper)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { DefaultFestivalOutroBumper } from './default-festival-outro-bumper'
|
|
2
|
+
export { componentMetadata } from './default-festival-outro-bumper'
|
|
3
|
+
export {
|
|
4
|
+
DefaultFestivalOutroBumperLandscape,
|
|
5
|
+
componentMetadata as DefaultFestivalOutroBumperLandscapeMetadata,
|
|
6
|
+
} from './default-festival-outro-bumper-Landscape'
|
|
7
|
+
export {
|
|
8
|
+
DefaultFestivalOutroBumperHorizontal,
|
|
9
|
+
componentMetadata as DefaultFestivalOutroBumperHorizontalMetadata,
|
|
10
|
+
} from './default-festival-outro-bumper-Horizontal'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react'
|
|
2
|
+
|
|
3
|
+
import { VideoComponent, type ScenePluginMetadata } from '@vibecuting/component-project-helper'
|
|
4
|
+
|
|
5
|
+
import { DefaultHeistOutroBumper, componentMetadata as baseComponentMetadata } from './default-heist-outro-bumper'
|
|
6
|
+
|
|
7
|
+
export const componentMetadata: ScenePluginMetadata = {
|
|
8
|
+
...baseComponentMetadata,
|
|
9
|
+
resourceKind: 'scene',
|
|
10
|
+
pluginKey: 'core.outro.heist',
|
|
11
|
+
sceneFamily: 'custom',
|
|
12
|
+
rootLayout: 'absolute-fill',
|
|
13
|
+
name: 'DefaultHeistOutroBumperHorizontal',
|
|
14
|
+
description: 'Heist film-style outro bumper (Portrait 9:16 variant)',
|
|
15
|
+
sourceFile: 'src/core/outro/heist-outro/default-heist-outro-bumper-Horizontal.tsx',
|
|
16
|
+
aspectRatio: '9:16',
|
|
17
|
+
tags: Array.from(new Set([...(baseComponentMetadata.tags ?? []), 'horizontal'])),
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const DefaultHeistOutroBumperHorizontal = VideoComponent(componentMetadata)(function DefaultHeistOutroBumperHorizontal(
|
|
21
|
+
props: ComponentProps<typeof DefaultHeistOutroBumper>,
|
|
22
|
+
) {
|
|
23
|
+
return <DefaultHeistOutroBumper {...props} layout="horizontal" />
|
|
24
|
+
})
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react'
|
|
2
|
+
|
|
3
|
+
import { VideoComponent, type ScenePluginMetadata } from '@vibecuting/component-project-helper'
|
|
4
|
+
|
|
5
|
+
import { DefaultHeistOutroBumper, componentMetadata as baseComponentMetadata } from './default-heist-outro-bumper'
|
|
6
|
+
|
|
7
|
+
export const componentMetadata: ScenePluginMetadata = {
|
|
8
|
+
...baseComponentMetadata,
|
|
9
|
+
resourceKind: 'scene',
|
|
10
|
+
pluginKey: 'core.outro.heist',
|
|
11
|
+
sceneFamily: 'custom',
|
|
12
|
+
rootLayout: 'absolute-fill',
|
|
13
|
+
name: 'DefaultHeistOutroBumperLandscape',
|
|
14
|
+
description: 'Heist film-style outro bumper (Landscape 16:9 variant)',
|
|
15
|
+
sourceFile: 'src/core/outro/heist-outro/default-heist-outro-bumper-Landscape.tsx',
|
|
16
|
+
aspectRatio: '16:9',
|
|
17
|
+
tags: Array.from(new Set([...(baseComponentMetadata.tags ?? []), 'landscape'])),
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const DefaultHeistOutroBumperLandscape = VideoComponent(componentMetadata)(function DefaultHeistOutroBumperLandscape(
|
|
21
|
+
props: ComponentProps<typeof DefaultHeistOutroBumper>,
|
|
22
|
+
) {
|
|
23
|
+
return <DefaultHeistOutroBumper {...props} layout="landscape" />
|
|
24
|
+
})
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DefaultHeistOutroBumperHorizontal } from './default-heist-outro-bumper-Horizontal'
|
|
2
|
+
import { DefaultHeistOutroBumperLandscape } from './default-heist-outro-bumper-Landscape'
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'core/outro/heist-outro/DefaultHeistOutroBumperLandscape',
|
|
6
|
+
component: DefaultHeistOutroBumperLandscape,
|
|
7
|
+
args: {
|
|
8
|
+
kicker: 'Heist Finale',
|
|
9
|
+
title: 'The Getaway',
|
|
10
|
+
note: 'A dossier-led closing card with route notes, proof tags, and a clean escape-board cadence.',
|
|
11
|
+
creditLine: 'A Vibecuting Thriller',
|
|
12
|
+
footer: 'End Credits',
|
|
13
|
+
accent: '#f97316',
|
|
14
|
+
secondaryAccent: '#7f1d1d',
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default meta
|
|
19
|
+
|
|
20
|
+
export const Default = { parameters: { scenePreviewAspectRatio: '16:9' } }
|
|
21
|
+
export const Animated = { parameters: { scenePreviewMode: 'animation', scenePreviewAspectRatio: '16:9' } }
|
|
22
|
+
export const Horizontal = {
|
|
23
|
+
render: (storyArgs: typeof meta.args) => <DefaultHeistOutroBumperHorizontal {...storyArgs} />,
|
|
24
|
+
parameters: { scenePreviewAspectRatio: '9:16' },
|
|
25
|
+
}
|
|
26
|
+
export const HorizontalAnimated = {
|
|
27
|
+
render: (storyArgs: typeof meta.args) => <DefaultHeistOutroBumperHorizontal {...storyArgs} />,
|
|
28
|
+
parameters: { scenePreviewMode: 'animation', scenePreviewAspectRatio: '9:16' },
|
|
29
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import type { ReactNode } from 'react'
|
|
2
|
+
|
|
3
|
+
import { VideoComponent, defineComponentProjectComponentMetadata } from '@vibecuting/component-project-helper'
|
|
4
|
+
|
|
5
|
+
import { BaseRemotionScene, type BaseRemotionSceneProps, useRemotionSceneRuntime } from '../../../base'
|
|
6
|
+
import { useSceneMotion } from '../../../base'
|
|
7
|
+
import type { OutroLayout } from '../_shared/outro-layout'
|
|
8
|
+
import { getOutroTypographyScale, resolveOutroLayout } from '../_shared/outro-layout'
|
|
9
|
+
|
|
10
|
+
export interface DefaultHeistOutroBumperProps extends BaseRemotionSceneProps {
|
|
11
|
+
title: string
|
|
12
|
+
note?: string
|
|
13
|
+
kicker?: string
|
|
14
|
+
creditLine?: string
|
|
15
|
+
footer?: string
|
|
16
|
+
accent?: string
|
|
17
|
+
secondaryAccent?: string
|
|
18
|
+
textColor?: string
|
|
19
|
+
layout?: OutroLayout
|
|
20
|
+
children?: ReactNode
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const componentMetadata = defineComponentProjectComponentMetadata({
|
|
24
|
+
name: 'DefaultHeistOutroBumper',
|
|
25
|
+
description: 'Heist outro with an escape-route board and caper dossier layout',
|
|
26
|
+
sourceFile: 'src/core/outro/heist-outro/default-heist-outro-bumper.tsx',
|
|
27
|
+
aspectRatio: '16:9',
|
|
28
|
+
sceneType: 'outro',
|
|
29
|
+
tags: ['outro', 'bumper', 'heist', 'thriller'],
|
|
30
|
+
propsTypeName: 'DefaultHeistOutroBumperProps',
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
export function DefaultHeistOutroBumper({
|
|
34
|
+
id,
|
|
35
|
+
name,
|
|
36
|
+
title,
|
|
37
|
+
note,
|
|
38
|
+
kicker,
|
|
39
|
+
creditLine,
|
|
40
|
+
footer,
|
|
41
|
+
accent,
|
|
42
|
+
secondaryAccent,
|
|
43
|
+
textColor,
|
|
44
|
+
layout,
|
|
45
|
+
children,
|
|
46
|
+
}: DefaultHeistOutroBumperProps) {
|
|
47
|
+
const runtime = useRemotionSceneRuntime()
|
|
48
|
+
const motion = useSceneMotion()
|
|
49
|
+
const resolvedLayout = resolveOutroLayout(layout, runtime.width, runtime.height)
|
|
50
|
+
const isHorizontal = resolvedLayout === 'horizontal'
|
|
51
|
+
const { titleFontSize, noteFontSize, kickerFontSize, footerFontSize } = getOutroTypographyScale(
|
|
52
|
+
runtime.height,
|
|
53
|
+
resolvedLayout,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<BaseRemotionScene
|
|
58
|
+
id={id}
|
|
59
|
+
name={name}
|
|
60
|
+
style={{
|
|
61
|
+
background: isHorizontal
|
|
62
|
+
? `radial-gradient(circle at 20% 24%, ${accent ?? '#f97316'} 0%, ${secondaryAccent ?? '#7f1d1d'} 38%, #020617 100%)`
|
|
63
|
+
: 'linear-gradient(180deg, #111827 0%, #020617 42%, #000000 100%)',
|
|
64
|
+
color: textColor ?? '#f8fafc',
|
|
65
|
+
display: 'grid',
|
|
66
|
+
placeItems: 'center',
|
|
67
|
+
padding: Math.round(runtime.height * (isHorizontal ? 0.055 : 0.07)),
|
|
68
|
+
}}
|
|
69
|
+
>
|
|
70
|
+
<section
|
|
71
|
+
style={{
|
|
72
|
+
width: '100%',
|
|
73
|
+
height: '100%',
|
|
74
|
+
display: 'grid',
|
|
75
|
+
gridTemplateColumns: isHorizontal ? 'minmax(0, 0.88fr) minmax(300px, 1.12fr)' : '1fr',
|
|
76
|
+
gap: isHorizontal ? 24 : 16,
|
|
77
|
+
alignItems: 'stretch',
|
|
78
|
+
minWidth: 0,
|
|
79
|
+
minHeight: 0,
|
|
80
|
+
}}
|
|
81
|
+
>
|
|
82
|
+
<div style={{ display: 'grid', gap: 14, textAlign: isHorizontal ? 'left' : 'center', alignContent: 'center', minWidth: 0 }}>
|
|
83
|
+
<p style={{ margin: 0, fontSize: kickerFontSize, letterSpacing: '0.3em', textTransform: 'uppercase', opacity: 0.66 }}>
|
|
84
|
+
{kicker ?? 'Heist Finale'}
|
|
85
|
+
</p>
|
|
86
|
+
<h1
|
|
87
|
+
style={{
|
|
88
|
+
margin: 0,
|
|
89
|
+
fontSize: titleFontSize,
|
|
90
|
+
lineHeight: 0.9,
|
|
91
|
+
letterSpacing: '-0.08em',
|
|
92
|
+
textTransform: 'uppercase',
|
|
93
|
+
transform: motion.isAnimation ? `translate3d(0, ${(1 - motion.progress) * 9}px, 0)` : 'none',
|
|
94
|
+
}}
|
|
95
|
+
>
|
|
96
|
+
{title}
|
|
97
|
+
</h1>
|
|
98
|
+
{note ? (
|
|
99
|
+
<p
|
|
100
|
+
style={{
|
|
101
|
+
margin: 0,
|
|
102
|
+
maxWidth: isHorizontal ? Math.round(runtime.width * 0.4) : '100%',
|
|
103
|
+
fontSize: noteFontSize,
|
|
104
|
+
lineHeight: 1.55,
|
|
105
|
+
opacity: 0.82,
|
|
106
|
+
}}
|
|
107
|
+
>
|
|
108
|
+
{note}
|
|
109
|
+
</p>
|
|
110
|
+
) : null}
|
|
111
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', justifyContent: isHorizontal ? 'flex-start' : 'center', gap: 10 }}>
|
|
112
|
+
{creditLine ? <span style={{ fontSize: footerFontSize, letterSpacing: '0.2em', textTransform: 'uppercase', opacity: 0.72 }}>{creditLine}</span> : null}
|
|
113
|
+
{footer ? <span style={{ fontSize: footerFontSize, letterSpacing: '0.2em', textTransform: 'uppercase', opacity: 0.52 }}>{footer}</span> : null}
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<div style={{ display: 'grid', gap: 12, minWidth: 0, alignContent: 'center' }}>
|
|
118
|
+
<div style={{ border: '1px solid rgba(248,250,252,0.12)', background: 'rgba(15,23,42,0.28)', display: 'grid', gap: 10, overflow: 'hidden', padding: 18 }}>
|
|
119
|
+
<div style={{ display: 'grid', gridTemplateColumns: isHorizontal ? 'minmax(0, 0.82fr) minmax(200px, 1.18fr)' : '1fr', gap: 12 }}>
|
|
120
|
+
<div style={{ border: '1px solid rgba(248,250,252,0.1)', background: 'rgba(0,0,0,0.16)', padding: 14, display: 'grid', gap: 8 }}>
|
|
121
|
+
<span style={{ fontSize: footerFontSize, letterSpacing: '0.28em', textTransform: 'uppercase', opacity: 0.56 }}>Escape Route</span>
|
|
122
|
+
<strong style={{ fontSize: Math.round(runtime.height * 0.028), letterSpacing: '-0.05em' }}>Locked. Loaded. Gone.</strong>
|
|
123
|
+
<span style={{ fontSize: Math.round(runtime.height * 0.018), lineHeight: 1.5, opacity: 0.8 }}>
|
|
124
|
+
A dossier-style ending for thrillers, capers, and final reveal moments.
|
|
125
|
+
</span>
|
|
126
|
+
</div>
|
|
127
|
+
<div style={{ display: 'grid', gap: 10 }}>
|
|
128
|
+
{[
|
|
129
|
+
['Target', 'Vault exit'],
|
|
130
|
+
['Status', 'Silent mode'],
|
|
131
|
+
['Route', 'Undercover'],
|
|
132
|
+
].map(([label, value], index) => (
|
|
133
|
+
<div
|
|
134
|
+
key={label}
|
|
135
|
+
style={{
|
|
136
|
+
border: '1px solid rgba(248,250,252,0.1)',
|
|
137
|
+
padding: '12px 14px',
|
|
138
|
+
background: index === 1 ? 'rgba(249,115,22,0.14)' : 'rgba(0,0,0,0.14)',
|
|
139
|
+
display: 'flex',
|
|
140
|
+
justifyContent: 'space-between',
|
|
141
|
+
gap: 12,
|
|
142
|
+
fontSize: Math.round(runtime.height * 0.018),
|
|
143
|
+
}}
|
|
144
|
+
>
|
|
145
|
+
<span style={{ opacity: 0.56, textTransform: 'uppercase', letterSpacing: '0.18em' }}>{label}</span>
|
|
146
|
+
<span>{value}</span>
|
|
147
|
+
</div>
|
|
148
|
+
))}
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
<div style={{ height: 1, background: `linear-gradient(90deg, transparent, ${accent ?? '#f97316'}, transparent)` }} />
|
|
152
|
+
</div>
|
|
153
|
+
{children ? <div>{children}</div> : null}
|
|
154
|
+
</div>
|
|
155
|
+
</section>
|
|
156
|
+
</BaseRemotionScene>
|
|
157
|
+
)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
VideoComponent(componentMetadata)(DefaultHeistOutroBumper)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DefaultHeistOutroBumper } from './default-heist-outro-bumper'
|
|
2
|
+
export { componentMetadata } from './default-heist-outro-bumper'
|
|
3
|
+
export { DefaultHeistOutroBumperLandscape, componentMetadata as DefaultHeistOutroBumperLandscapeMetadata } from './default-heist-outro-bumper-Landscape'
|
|
4
|
+
export { DefaultHeistOutroBumperHorizontal, componentMetadata as DefaultHeistOutroBumperHorizontalMetadata } from './default-heist-outro-bumper-Horizontal'
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
DefaultBlackoutOutroBumper,
|
|
5
|
+
DefaultBlackoutOutroBumperHorizontal,
|
|
6
|
+
DefaultBlackoutOutroBumperHorizontalMetadata,
|
|
7
|
+
DefaultBlackoutOutroBumperLandscape,
|
|
8
|
+
DefaultBlackoutOutroBumperLandscapeMetadata,
|
|
9
|
+
DefaultCreditsRollOutro,
|
|
10
|
+
DefaultCreditsRollOutroHorizontal,
|
|
11
|
+
DefaultCreditsRollOutroHorizontalMetadata,
|
|
12
|
+
DefaultCreditsRollOutroLandscape,
|
|
13
|
+
DefaultCreditsRollOutroLandscapeMetadata,
|
|
14
|
+
DefaultEpilogueOutro,
|
|
15
|
+
DefaultEpilogueOutroHorizontal,
|
|
16
|
+
DefaultEpilogueOutroHorizontalMetadata,
|
|
17
|
+
DefaultEpilogueOutroLandscape,
|
|
18
|
+
DefaultEpilogueOutroLandscapeMetadata,
|
|
19
|
+
DefaultHeistOutroBumper,
|
|
20
|
+
DefaultHeistOutroBumperHorizontal,
|
|
21
|
+
DefaultHeistOutroBumperHorizontalMetadata,
|
|
22
|
+
DefaultHeistOutroBumperLandscape,
|
|
23
|
+
DefaultHeistOutroBumperLandscapeMetadata,
|
|
24
|
+
DefaultBlackoutOutroBumperFinale,
|
|
25
|
+
DefaultCreditsRollOutroPremium,
|
|
26
|
+
DefaultCreditsRollOutroEpic,
|
|
27
|
+
DefaultCreditsRollOutroRoyal,
|
|
28
|
+
DefaultAwardOutroBumper,
|
|
29
|
+
DefaultFestivalOutroBumper,
|
|
30
|
+
DefaultMemoirOutroBumper,
|
|
31
|
+
DefaultOutroBumper,
|
|
32
|
+
DefaultOutroBumperHorizontal,
|
|
33
|
+
DefaultOutroBumperHorizontalMetadata,
|
|
34
|
+
DefaultOutroBumperLandscape,
|
|
35
|
+
DefaultOutroBumperLandscapeMetadata,
|
|
36
|
+
DefaultRomanceOutroBumper,
|
|
37
|
+
DefaultSunsetOutroBumper,
|
|
38
|
+
DefaultSunsetOutroBumperCoda,
|
|
39
|
+
DefaultSunsetOutroBumperHorizontal,
|
|
40
|
+
DefaultSunsetOutroBumperHorizontalMetadata,
|
|
41
|
+
DefaultSunsetOutroBumperLandscape,
|
|
42
|
+
DefaultSunsetOutroBumperLandscapeMetadata,
|
|
43
|
+
} from './index'
|
|
44
|
+
|
|
45
|
+
describe('video-project-core outro exports', () => {
|
|
46
|
+
it('exports cinematic outro families for both layouts', () => {
|
|
47
|
+
expect(DefaultOutroBumper).toBeTypeOf('function')
|
|
48
|
+
expect(DefaultOutroBumperLandscape).toBeTypeOf('function')
|
|
49
|
+
expect(DefaultOutroBumperHorizontal).toBeTypeOf('function')
|
|
50
|
+
expect(DefaultCreditsRollOutro).toBeTypeOf('function')
|
|
51
|
+
expect(DefaultCreditsRollOutroLandscape).toBeTypeOf('function')
|
|
52
|
+
expect(DefaultCreditsRollOutroHorizontal).toBeTypeOf('function')
|
|
53
|
+
expect(DefaultEpilogueOutro).toBeTypeOf('function')
|
|
54
|
+
expect(DefaultEpilogueOutroLandscape).toBeTypeOf('function')
|
|
55
|
+
expect(DefaultEpilogueOutroHorizontal).toBeTypeOf('function')
|
|
56
|
+
expect(DefaultBlackoutOutroBumper).toBeTypeOf('function')
|
|
57
|
+
expect(DefaultBlackoutOutroBumperLandscape).toBeTypeOf('function')
|
|
58
|
+
expect(DefaultBlackoutOutroBumperHorizontal).toBeTypeOf('function')
|
|
59
|
+
expect(DefaultSunsetOutroBumper).toBeTypeOf('function')
|
|
60
|
+
expect(DefaultSunsetOutroBumperLandscape).toBeTypeOf('function')
|
|
61
|
+
expect(DefaultSunsetOutroBumperHorizontal).toBeTypeOf('function')
|
|
62
|
+
expect(DefaultHeistOutroBumper).toBeTypeOf('function')
|
|
63
|
+
expect(DefaultHeistOutroBumperLandscape).toBeTypeOf('function')
|
|
64
|
+
expect(DefaultHeistOutroBumperHorizontal).toBeTypeOf('function')
|
|
65
|
+
expect(DefaultRomanceOutroBumper).toBeTypeOf('function')
|
|
66
|
+
expect(DefaultBlackoutOutroBumperFinale).toBeTypeOf('function')
|
|
67
|
+
expect(DefaultSunsetOutroBumperCoda).toBeTypeOf('function')
|
|
68
|
+
expect(DefaultCreditsRollOutroPremium).toBeTypeOf('function')
|
|
69
|
+
expect(DefaultCreditsRollOutroEpic).toBeTypeOf('function')
|
|
70
|
+
expect(DefaultCreditsRollOutroRoyal).toBeTypeOf('function')
|
|
71
|
+
expect(DefaultAwardOutroBumper).toBeTypeOf('function')
|
|
72
|
+
expect(DefaultFestivalOutroBumper).toBeTypeOf('function')
|
|
73
|
+
expect(DefaultMemoirOutroBumper).toBeTypeOf('function')
|
|
74
|
+
|
|
75
|
+
expect(DefaultOutroBumperLandscapeMetadata.aspectRatio).toBe('16:9')
|
|
76
|
+
expect(DefaultOutroBumperHorizontalMetadata.aspectRatio).toBe('9:16')
|
|
77
|
+
expect(DefaultCreditsRollOutroLandscapeMetadata.aspectRatio).toBe('16:9')
|
|
78
|
+
expect(DefaultCreditsRollOutroHorizontalMetadata.aspectRatio).toBe('9:16')
|
|
79
|
+
expect(DefaultEpilogueOutroLandscapeMetadata.aspectRatio).toBe('16:9')
|
|
80
|
+
expect(DefaultEpilogueOutroHorizontalMetadata.aspectRatio).toBe('9:16')
|
|
81
|
+
expect(DefaultBlackoutOutroBumperLandscapeMetadata.aspectRatio).toBe('16:9')
|
|
82
|
+
expect(DefaultBlackoutOutroBumperHorizontalMetadata.aspectRatio).toBe('9:16')
|
|
83
|
+
expect(DefaultSunsetOutroBumperLandscapeMetadata.aspectRatio).toBe('16:9')
|
|
84
|
+
expect(DefaultSunsetOutroBumperHorizontalMetadata.aspectRatio).toBe('9:16')
|
|
85
|
+
expect(DefaultHeistOutroBumperLandscapeMetadata.aspectRatio).toBe('16:9')
|
|
86
|
+
expect(DefaultHeistOutroBumperHorizontalMetadata.aspectRatio).toBe('9:16')
|
|
87
|
+
})
|
|
88
|
+
})
|
package/src/core/outro/index.ts
CHANGED
|
@@ -1 +1,74 @@
|
|
|
1
1
|
export { DefaultOutroBumper } from './default-outro-bumper'
|
|
2
|
+
export { DefaultOutroBumperLandscape, DefaultOutroBumperLandscapeMetadata } from './default-outro-bumper'
|
|
3
|
+
export { DefaultOutroBumperHorizontal, DefaultOutroBumperHorizontalMetadata } from './default-outro-bumper'
|
|
4
|
+
|
|
5
|
+
export { DefaultCreditsRollOutro } from './default-credits-roll-outro'
|
|
6
|
+
export { DefaultCreditsRollOutroLandscape, DefaultCreditsRollOutroLandscapeMetadata } from './default-credits-roll-outro'
|
|
7
|
+
export { DefaultCreditsRollOutroHorizontal, DefaultCreditsRollOutroHorizontalMetadata } from './default-credits-roll-outro'
|
|
8
|
+
|
|
9
|
+
export { DefaultEpilogueOutro } from './default-epilogue-outro'
|
|
10
|
+
export { DefaultEpilogueOutroLandscape, DefaultEpilogueOutroLandscapeMetadata } from './default-epilogue-outro'
|
|
11
|
+
export { DefaultEpilogueOutroHorizontal, DefaultEpilogueOutroHorizontalMetadata } from './default-epilogue-outro'
|
|
12
|
+
|
|
13
|
+
export { DefaultBlackoutOutroBumper } from './default-blackout-outro-bumper'
|
|
14
|
+
export {
|
|
15
|
+
DefaultBlackoutOutroBumperLandscape,
|
|
16
|
+
DefaultBlackoutOutroBumperLandscapeMetadata,
|
|
17
|
+
} from './default-blackout-outro-bumper'
|
|
18
|
+
export {
|
|
19
|
+
DefaultBlackoutOutroBumperHorizontal,
|
|
20
|
+
DefaultBlackoutOutroBumperHorizontalMetadata,
|
|
21
|
+
} from './default-blackout-outro-bumper'
|
|
22
|
+
|
|
23
|
+
export { DefaultSunsetOutroBumper } from './default-sunset-outro-bumper'
|
|
24
|
+
export { DefaultSunsetOutroBumperLandscape, DefaultSunsetOutroBumperLandscapeMetadata } from './default-sunset-outro-bumper'
|
|
25
|
+
export { DefaultSunsetOutroBumperHorizontal, DefaultSunsetOutroBumperHorizontalMetadata } from './default-sunset-outro-bumper'
|
|
26
|
+
export { DefaultCreditsRollOutroRoyal } from './credits-roll-outro-royal'
|
|
27
|
+
export {
|
|
28
|
+
DefaultCreditsRollOutroRoyalLandscape,
|
|
29
|
+
DefaultCreditsRollOutroRoyalLandscapeMetadata,
|
|
30
|
+
} from './credits-roll-outro-royal'
|
|
31
|
+
export {
|
|
32
|
+
DefaultCreditsRollOutroRoyalHorizontal,
|
|
33
|
+
DefaultCreditsRollOutroRoyalHorizontalMetadata,
|
|
34
|
+
} from './credits-roll-outro-royal'
|
|
35
|
+
export { DefaultFestivalOutroBumper } from './festival-outro-encore'
|
|
36
|
+
export {
|
|
37
|
+
DefaultFestivalOutroBumperLandscape,
|
|
38
|
+
DefaultFestivalOutroBumperLandscapeMetadata,
|
|
39
|
+
} from './festival-outro-encore'
|
|
40
|
+
export {
|
|
41
|
+
DefaultFestivalOutroBumperHorizontal,
|
|
42
|
+
DefaultFestivalOutroBumperHorizontalMetadata,
|
|
43
|
+
} from './festival-outro-encore'
|
|
44
|
+
export { DefaultAwardOutroBumper } from './award-outro-celebration'
|
|
45
|
+
export {
|
|
46
|
+
DefaultAwardOutroBumperLandscape,
|
|
47
|
+
DefaultAwardOutroBumperLandscapeMetadata,
|
|
48
|
+
} from './award-outro-celebration'
|
|
49
|
+
export {
|
|
50
|
+
DefaultAwardOutroBumperHorizontal,
|
|
51
|
+
DefaultAwardOutroBumperHorizontalMetadata,
|
|
52
|
+
} from './award-outro-celebration'
|
|
53
|
+
export { DefaultMemoirOutroBumper } from './memoir-outro-reflection'
|
|
54
|
+
export {
|
|
55
|
+
DefaultMemoirOutroBumperLandscape,
|
|
56
|
+
DefaultMemoirOutroBumperLandscapeMetadata,
|
|
57
|
+
} from './memoir-outro-reflection'
|
|
58
|
+
export {
|
|
59
|
+
DefaultMemoirOutroBumperHorizontal,
|
|
60
|
+
DefaultMemoirOutroBumperHorizontalMetadata,
|
|
61
|
+
} from './memoir-outro-reflection'
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
DefaultHeistOutroBumper,
|
|
65
|
+
DefaultHeistOutroBumperLandscape,
|
|
66
|
+
DefaultHeistOutroBumperLandscapeMetadata,
|
|
67
|
+
DefaultHeistOutroBumperHorizontal,
|
|
68
|
+
DefaultHeistOutroBumperHorizontalMetadata,
|
|
69
|
+
} from './heist-outro'
|
|
70
|
+
export { DefaultRomanceOutroBumper } from './romance-outro'
|
|
71
|
+
export { DefaultBlackoutOutroBumperFinale } from './blackout-outro-finale'
|
|
72
|
+
export { DefaultSunsetOutroBumperCoda } from './sunset-outro-coda'
|
|
73
|
+
export { DefaultCreditsRollOutroPremium } from './credits-roll-outro-premium'
|
|
74
|
+
export { DefaultCreditsRollOutroEpic } from './credits-roll-outro-epic'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react'
|
|
2
|
+
|
|
3
|
+
import { VideoComponent, defineComponentProjectComponentMetadata } from '@vibecuting/component-project-helper'
|
|
4
|
+
|
|
5
|
+
import { DefaultMemoirOutroBumper, componentMetadata as baseComponentMetadata } from './default-memoir-outro-bumper'
|
|
6
|
+
|
|
7
|
+
export const componentMetadata = defineComponentProjectComponentMetadata({
|
|
8
|
+
...baseComponentMetadata,
|
|
9
|
+
name: 'DefaultMemoirOutroBumperHorizontal',
|
|
10
|
+
aspectRatio: '9:16',
|
|
11
|
+
sourceFile: 'src/core/outro/memoir-outro-reflection/default-memoir-outro-bumper-Horizontal.tsx',
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export const DefaultMemoirOutroBumperHorizontal = VideoComponent(componentMetadata)(
|
|
15
|
+
function DefaultMemoirOutroBumperHorizontal(props: ComponentProps<typeof DefaultMemoirOutroBumper>) {
|
|
16
|
+
return <DefaultMemoirOutroBumper {...props} />
|
|
17
|
+
},
|
|
18
|
+
)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react'
|
|
2
|
+
|
|
3
|
+
import { VideoComponent, defineComponentProjectComponentMetadata } from '@vibecuting/component-project-helper'
|
|
4
|
+
|
|
5
|
+
import { DefaultMemoirOutroBumper, componentMetadata as baseComponentMetadata } from './default-memoir-outro-bumper'
|
|
6
|
+
|
|
7
|
+
export const componentMetadata = defineComponentProjectComponentMetadata({
|
|
8
|
+
...baseComponentMetadata,
|
|
9
|
+
name: 'DefaultMemoirOutroBumperLandscape',
|
|
10
|
+
aspectRatio: '16:9',
|
|
11
|
+
sourceFile: 'src/core/outro/memoir-outro-reflection/default-memoir-outro-bumper-Landscape.tsx',
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export const DefaultMemoirOutroBumperLandscape = VideoComponent(componentMetadata)(
|
|
15
|
+
function DefaultMemoirOutroBumperLandscape(props: ComponentProps<typeof DefaultMemoirOutroBumper>) {
|
|
16
|
+
return <DefaultMemoirOutroBumper {...props} />
|
|
17
|
+
},
|
|
18
|
+
)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DefaultMemoirOutroBumperHorizontal } from './default-memoir-outro-bumper-Horizontal'
|
|
2
|
+
import { DefaultMemoirOutroBumperLandscape } from './default-memoir-outro-bumper-Landscape'
|
|
3
|
+
|
|
4
|
+
const posterImageSrc = `data:image/svg+xml;utf8,${encodeURIComponent(`
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="900" viewBox="0 0 1200 900">
|
|
6
|
+
<rect width="1200" height="900" fill="#0f172a"/>
|
|
7
|
+
<rect x="80" y="120" width="1040" height="660" fill="#94a3b8" fill-opacity="0.12"/>
|
|
8
|
+
<text x="120" y="270" fill="#e2e8f0" font-size="76" font-family="Arial, sans-serif" letter-spacing="8">MEMOIR</text>
|
|
9
|
+
<text x="120" y="360" fill="#cbd5e1" font-size="38" font-family="Arial, sans-serif" opacity="0.82">chapters remembered</text>
|
|
10
|
+
</svg>
|
|
11
|
+
`)}`;
|
|
12
|
+
|
|
13
|
+
const args = {
|
|
14
|
+
kicker: 'Reflection',
|
|
15
|
+
title: 'What Remains',
|
|
16
|
+
note: 'A scrapbook closing page with layered keepsakes, chapter notes, and reflective breathing room.',
|
|
17
|
+
creditLine: 'A Vibecuting Original',
|
|
18
|
+
footer: 'End Credits',
|
|
19
|
+
accent: '#0f172a',
|
|
20
|
+
secondaryAccent: '#94a3b8',
|
|
21
|
+
posterImageSrc,
|
|
22
|
+
posterImageAlt: 'Memoir reflection image',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const meta = {
|
|
26
|
+
title: 'core/outro/memoir-outro-reflection/DefaultMemoirOutroBumperLandscape',
|
|
27
|
+
component: DefaultMemoirOutroBumperLandscape,
|
|
28
|
+
args,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default meta
|
|
32
|
+
|
|
33
|
+
export const Default = { parameters: { scenePreviewAspectRatio: '16:9' } }
|
|
34
|
+
export const Animated = { parameters: { scenePreviewAspectRatio: '16:9', scenePreviewMode: 'animation' } }
|
|
35
|
+
export const Horizontal = {
|
|
36
|
+
render: (storyArgs: typeof args) => <DefaultMemoirOutroBumperHorizontal {...storyArgs} />,
|
|
37
|
+
parameters: { scenePreviewAspectRatio: '9:16' },
|
|
38
|
+
}
|
|
39
|
+
export const HorizontalAnimated = {
|
|
40
|
+
render: (storyArgs: typeof args) => <DefaultMemoirOutroBumperHorizontal {...storyArgs} />,
|
|
41
|
+
parameters: { scenePreviewAspectRatio: '9:16', scenePreviewMode: 'animation' },
|
|
42
|
+
}
|