@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,124 @@
|
|
|
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 { getOutroBodyMaxWidth, getOutroLineClamp, getOutroTypographyScale, resolveOutroLayout } from '../_shared/outro-layout'
|
|
9
|
+
|
|
10
|
+
export interface DefaultBlackoutOutroBumperProps 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: 'DefaultBlackoutOutroBumper',
|
|
25
|
+
description: 'Minimal blackout ending with a single closing line and faint signal',
|
|
26
|
+
sourceFile: 'src/core/outro/default-blackout-outro-bumper/default-blackout-outro-bumper.tsx',
|
|
27
|
+
aspectRatio: '16:9',
|
|
28
|
+
sceneType: 'outro',
|
|
29
|
+
tags: ['outro', 'bumper', 'blackout', 'minimal'],
|
|
30
|
+
propsTypeName: 'DefaultBlackoutOutroBumperProps',
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
export function DefaultBlackoutOutroBumper({
|
|
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
|
+
}: DefaultBlackoutOutroBumperProps) {
|
|
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: '#000000',
|
|
62
|
+
color: textColor ?? '#f8fafc',
|
|
63
|
+
display: 'grid',
|
|
64
|
+
placeItems: 'center',
|
|
65
|
+
padding: Math.round(runtime.height * (isHorizontal ? 0.055 : 0.07)),
|
|
66
|
+
overflow: 'hidden',
|
|
67
|
+
}}
|
|
68
|
+
>
|
|
69
|
+
<div
|
|
70
|
+
aria-hidden="true"
|
|
71
|
+
style={{
|
|
72
|
+
position: 'absolute',
|
|
73
|
+
inset: 0,
|
|
74
|
+
background: 'radial-gradient(circle at center, rgba(255,255,255,0.02) 0%, rgba(2,6,23,0.16) 35%, rgba(0,0,0,0.94) 100%)',
|
|
75
|
+
pointerEvents: 'none',
|
|
76
|
+
}}
|
|
77
|
+
/>
|
|
78
|
+
<section
|
|
79
|
+
style={{
|
|
80
|
+
position: 'relative',
|
|
81
|
+
zIndex: 1,
|
|
82
|
+
width: '100%',
|
|
83
|
+
height: '100%',
|
|
84
|
+
display: 'grid',
|
|
85
|
+
alignContent: 'center',
|
|
86
|
+
justifyItems: 'center',
|
|
87
|
+
gap: 10,
|
|
88
|
+
textAlign: 'center',
|
|
89
|
+
minWidth: 0,
|
|
90
|
+
minHeight: 0,
|
|
91
|
+
}}
|
|
92
|
+
>
|
|
93
|
+
<p style={{ margin: 0, fontSize: kickerFontSize, letterSpacing: '0.34em', textTransform: 'uppercase', opacity: 0.44 }}>
|
|
94
|
+
{kicker ?? 'Fade to Black'}
|
|
95
|
+
</p>
|
|
96
|
+
<h1
|
|
97
|
+
style={{
|
|
98
|
+
margin: 0,
|
|
99
|
+
fontSize: titleFontSize,
|
|
100
|
+
lineHeight: 0.92,
|
|
101
|
+
letterSpacing: '-0.07em',
|
|
102
|
+
textTransform: 'uppercase',
|
|
103
|
+
transform: motion.isAnimation ? `translate3d(0, ${(1 - motion.progress) * 8}px, 0)` : 'none',
|
|
104
|
+
}}
|
|
105
|
+
>
|
|
106
|
+
{title}
|
|
107
|
+
</h1>
|
|
108
|
+
{note ? (
|
|
109
|
+
<p style={{ margin: 0, maxWidth: getOutroBodyMaxWidth(runtime.width, resolvedLayout, 0.58, 0.48, { min: 220, max: 600 }), fontSize: noteFontSize, lineHeight: 1.56, opacity: 0.62, ...getOutroLineClamp(isHorizontal ? 3 : 4) }}>
|
|
110
|
+
{note}
|
|
111
|
+
</p>
|
|
112
|
+
) : null}
|
|
113
|
+
<div style={{ width: Math.round(runtime.width * (isHorizontal ? 0.18 : 0.24)), height: 1, background: 'rgba(248,250,252,0.16)' }} />
|
|
114
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'center', gap: 14, fontSize: footerFontSize, letterSpacing: '0.2em', textTransform: 'uppercase', opacity: 0.48 }}>
|
|
115
|
+
{creditLine ? <span>{creditLine}</span> : null}
|
|
116
|
+
{footer ? <span>{footer}</span> : null}
|
|
117
|
+
</div>
|
|
118
|
+
{children ? <div>{children}</div> : null}
|
|
119
|
+
</section>
|
|
120
|
+
</BaseRemotionScene>
|
|
121
|
+
)
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
VideoComponent(componentMetadata)(DefaultBlackoutOutroBumper)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { DefaultBlackoutOutroBumper } from './default-blackout-outro-bumper'
|
|
2
|
+
export { componentMetadata } from './default-blackout-outro-bumper'
|
|
3
|
+
export {
|
|
4
|
+
DefaultBlackoutOutroBumperLandscape,
|
|
5
|
+
componentMetadata as DefaultBlackoutOutroBumperLandscapeMetadata,
|
|
6
|
+
} from './default-blackout-outro-bumper-Landscape'
|
|
7
|
+
export {
|
|
8
|
+
DefaultBlackoutOutroBumperHorizontal,
|
|
9
|
+
componentMetadata as DefaultBlackoutOutroBumperHorizontalMetadata,
|
|
10
|
+
} from './default-blackout-outro-bumper-Horizontal'
|
|
11
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VideoComponent,
|
|
3
|
+
defineComponentProjectComponentMetadata,
|
|
4
|
+
} from '@vibecuting/component-project-helper'
|
|
5
|
+
|
|
6
|
+
import { DefaultCreditsRollOutro, type DefaultCreditsRollOutroProps } from './default-credits-roll-outro'
|
|
7
|
+
|
|
8
|
+
export const componentMetadata = defineComponentProjectComponentMetadata({
|
|
9
|
+
name: 'DefaultCreditsRollOutroHorizontal',
|
|
10
|
+
description: 'Credits-roll outro with a native 9:16 portrait layout',
|
|
11
|
+
sourceFile: 'src/core/outro/default-credits-roll-outro/default-credits-roll-outro-Horizontal.tsx',
|
|
12
|
+
aspectRatio: '9:16',
|
|
13
|
+
sceneType: 'outro',
|
|
14
|
+
tags: ['outro', 'credits', 'roll', 'portrait'],
|
|
15
|
+
propsTypeName: 'DefaultCreditsRollOutroProps',
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export const DefaultCreditsRollOutroHorizontal = VideoComponent(componentMetadata)(
|
|
19
|
+
function DefaultCreditsRollOutroHorizontal(props: DefaultCreditsRollOutroProps) {
|
|
20
|
+
return <DefaultCreditsRollOutro {...props} layout="horizontal" />
|
|
21
|
+
},
|
|
22
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VideoComponent,
|
|
3
|
+
defineComponentProjectComponentMetadata,
|
|
4
|
+
} from '@vibecuting/component-project-helper'
|
|
5
|
+
|
|
6
|
+
import { DefaultCreditsRollOutro, type DefaultCreditsRollOutroProps } from './default-credits-roll-outro'
|
|
7
|
+
|
|
8
|
+
export const componentMetadata = defineComponentProjectComponentMetadata({
|
|
9
|
+
name: 'DefaultCreditsRollOutroLandscape',
|
|
10
|
+
description: 'Credits-roll outro with a widescreen 16:9 layout',
|
|
11
|
+
sourceFile: 'src/core/outro/default-credits-roll-outro/default-credits-roll-outro-Landscape.tsx',
|
|
12
|
+
aspectRatio: '16:9',
|
|
13
|
+
sceneType: 'outro',
|
|
14
|
+
tags: ['outro', 'credits', 'roll', 'landscape'],
|
|
15
|
+
propsTypeName: 'DefaultCreditsRollOutroProps',
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export const DefaultCreditsRollOutroLandscape = VideoComponent(componentMetadata)(
|
|
19
|
+
function DefaultCreditsRollOutroLandscape(props: DefaultCreditsRollOutroProps) {
|
|
20
|
+
return <DefaultCreditsRollOutro {...props} layout="landscape" />
|
|
21
|
+
},
|
|
22
|
+
)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { DefaultCreditsRollOutroHorizontal } from './default-credits-roll-outro-Horizontal'
|
|
2
|
+
import { DefaultCreditsRollOutroLandscape } from './default-credits-roll-outro-Landscape'
|
|
3
|
+
|
|
4
|
+
const args = {
|
|
5
|
+
kicker: 'Final Credits',
|
|
6
|
+
title: 'A Roll of Names, Roles, and Thanks',
|
|
7
|
+
note: 'A column-driven credits panel with clearer rows and a stronger roll structure.',
|
|
8
|
+
creditLine: 'Music, post, and finishing by Vibecuting',
|
|
9
|
+
footer: 'Credits Roll',
|
|
10
|
+
accent: '#0a0a0a',
|
|
11
|
+
secondaryAccent: '#1f2937',
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const meta = {
|
|
15
|
+
title: 'core/outro/default-credits-roll-outro/DefaultCreditsRollOutroLandscape',
|
|
16
|
+
component: DefaultCreditsRollOutroLandscape,
|
|
17
|
+
args,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default meta
|
|
21
|
+
|
|
22
|
+
export const Landscape = {
|
|
23
|
+
parameters: {
|
|
24
|
+
scenePreviewAspectRatio: '16:9',
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const LandscapeAnimated = {
|
|
29
|
+
parameters: {
|
|
30
|
+
scenePreviewAspectRatio: '16:9',
|
|
31
|
+
scenePreviewMode: 'animation',
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const Horizontal = {
|
|
36
|
+
render: (storyArgs: typeof args) => <DefaultCreditsRollOutroHorizontal {...storyArgs} />,
|
|
37
|
+
parameters: {
|
|
38
|
+
scenePreviewAspectRatio: '9:16',
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const HorizontalAnimated = {
|
|
43
|
+
render: (storyArgs: typeof args) => <DefaultCreditsRollOutroHorizontal {...storyArgs} />,
|
|
44
|
+
parameters: {
|
|
45
|
+
scenePreviewAspectRatio: '9:16',
|
|
46
|
+
scenePreviewMode: 'animation',
|
|
47
|
+
},
|
|
48
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
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 {
|
|
9
|
+
getOutroBodyMaxWidth,
|
|
10
|
+
getOutroLineClamp,
|
|
11
|
+
getOutroPanelMinHeight,
|
|
12
|
+
getOutroTypographyScale,
|
|
13
|
+
resolveOutroLayout,
|
|
14
|
+
} from '../_shared/outro-layout'
|
|
15
|
+
|
|
16
|
+
export interface DefaultCreditsRollOutroProps extends BaseRemotionSceneProps {
|
|
17
|
+
title: string
|
|
18
|
+
note?: string
|
|
19
|
+
kicker?: string
|
|
20
|
+
creditLine?: string
|
|
21
|
+
footer?: string
|
|
22
|
+
accent?: string
|
|
23
|
+
secondaryAccent?: string
|
|
24
|
+
textColor?: string
|
|
25
|
+
layout?: OutroLayout
|
|
26
|
+
children?: ReactNode
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const componentMetadata = defineComponentProjectComponentMetadata({
|
|
30
|
+
name: 'DefaultCreditsRollOutro',
|
|
31
|
+
description: 'Scrollable credits panel with a clear column-driven layout',
|
|
32
|
+
sourceFile: 'src/core/outro/default-credits-roll-outro/default-credits-roll-outro.tsx',
|
|
33
|
+
aspectRatio: '16:9',
|
|
34
|
+
sceneType: 'outro',
|
|
35
|
+
tags: ['outro', 'credits', 'roll', 'editorial'],
|
|
36
|
+
propsTypeName: 'DefaultCreditsRollOutroProps',
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
export function DefaultCreditsRollOutro({
|
|
40
|
+
id,
|
|
41
|
+
name,
|
|
42
|
+
title,
|
|
43
|
+
note,
|
|
44
|
+
kicker,
|
|
45
|
+
creditLine,
|
|
46
|
+
footer,
|
|
47
|
+
accent,
|
|
48
|
+
secondaryAccent,
|
|
49
|
+
textColor,
|
|
50
|
+
layout,
|
|
51
|
+
children,
|
|
52
|
+
}: DefaultCreditsRollOutroProps) {
|
|
53
|
+
const runtime = useRemotionSceneRuntime()
|
|
54
|
+
const motion = useSceneMotion()
|
|
55
|
+
const resolvedLayout = resolveOutroLayout(layout, runtime.width, runtime.height)
|
|
56
|
+
const isHorizontal = resolvedLayout === 'horizontal'
|
|
57
|
+
const { titleFontSize, noteFontSize, kickerFontSize, footerFontSize } = getOutroTypographyScale(
|
|
58
|
+
runtime.height,
|
|
59
|
+
resolvedLayout,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
const rows = [
|
|
63
|
+
['Written', 'Vibecuting Studio'],
|
|
64
|
+
['Produced', 'Motion Team'],
|
|
65
|
+
['Direction', 'Editorial Crew'],
|
|
66
|
+
['Finishing', 'Post Department'],
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<BaseRemotionScene
|
|
71
|
+
id={id}
|
|
72
|
+
name={name}
|
|
73
|
+
style={{
|
|
74
|
+
background: isHorizontal
|
|
75
|
+
? 'linear-gradient(180deg, #0a0a0a 0%, #121212 40%, #000000 100%)'
|
|
76
|
+
: `radial-gradient(circle at 50% 85%, ${secondaryAccent ?? 'rgba(255,255,255,0.12)'} 0%, ${accent ?? '#0f172a'} 44%, #000 100%)`,
|
|
77
|
+
color: textColor ?? '#f8fafc',
|
|
78
|
+
display: 'grid',
|
|
79
|
+
placeItems: 'center',
|
|
80
|
+
padding: Math.round(runtime.height * (isHorizontal ? 0.055 : 0.07)),
|
|
81
|
+
overflow: 'hidden',
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
84
|
+
<section
|
|
85
|
+
style={{
|
|
86
|
+
position: 'relative',
|
|
87
|
+
zIndex: 1,
|
|
88
|
+
width: '100%',
|
|
89
|
+
height: '100%',
|
|
90
|
+
display: 'grid',
|
|
91
|
+
gridTemplateColumns: isHorizontal ? 'minmax(220px, 0.56fr) minmax(0, 1.44fr)' : '1fr',
|
|
92
|
+
gap: isHorizontal ? 20 : 18,
|
|
93
|
+
alignItems: 'stretch',
|
|
94
|
+
minWidth: 0,
|
|
95
|
+
minHeight: 0,
|
|
96
|
+
}}
|
|
97
|
+
>
|
|
98
|
+
<div
|
|
99
|
+
style={{
|
|
100
|
+
display: 'grid',
|
|
101
|
+
gap: 12,
|
|
102
|
+
alignContent: 'center',
|
|
103
|
+
textAlign: isHorizontal ? 'left' : 'center',
|
|
104
|
+
minWidth: 0,
|
|
105
|
+
}}
|
|
106
|
+
>
|
|
107
|
+
<p style={{ margin: 0, fontSize: kickerFontSize, letterSpacing: '0.34em', textTransform: 'uppercase', opacity: 0.62 }}>
|
|
108
|
+
{kicker ?? 'End Credits'}
|
|
109
|
+
</p>
|
|
110
|
+
<h1
|
|
111
|
+
style={{
|
|
112
|
+
margin: 0,
|
|
113
|
+
fontSize: titleFontSize,
|
|
114
|
+
lineHeight: 0.92,
|
|
115
|
+
letterSpacing: '-0.07em',
|
|
116
|
+
textTransform: 'uppercase',
|
|
117
|
+
transform: motion.isAnimation ? `translate3d(0, ${(1 - motion.progress) * 10}px, 0)` : 'none',
|
|
118
|
+
}}
|
|
119
|
+
>
|
|
120
|
+
{title}
|
|
121
|
+
</h1>
|
|
122
|
+
{note ? (
|
|
123
|
+
<p
|
|
124
|
+
style={{
|
|
125
|
+
margin: 0,
|
|
126
|
+
maxWidth: getOutroBodyMaxWidth(runtime.width, resolvedLayout, 0.34, 0.24, { min: 220, max: 420 }),
|
|
127
|
+
fontSize: noteFontSize,
|
|
128
|
+
lineHeight: 1.55,
|
|
129
|
+
opacity: 0.8,
|
|
130
|
+
...getOutroLineClamp(isHorizontal ? 3 : 4),
|
|
131
|
+
}}
|
|
132
|
+
>
|
|
133
|
+
{note}
|
|
134
|
+
</p>
|
|
135
|
+
) : null}
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<div
|
|
139
|
+
style={{
|
|
140
|
+
display: 'grid',
|
|
141
|
+
gap: 12,
|
|
142
|
+
alignContent: 'center',
|
|
143
|
+
minWidth: 0,
|
|
144
|
+
}}
|
|
145
|
+
>
|
|
146
|
+
<div
|
|
147
|
+
style={{
|
|
148
|
+
minHeight: getOutroPanelMinHeight(runtime.height, resolvedLayout, 0.24, 0.28, { min: 220, max: 320 }),
|
|
149
|
+
border: '1px solid rgba(248,250,252,0.12)',
|
|
150
|
+
background: 'linear-gradient(180deg, rgba(255,255,255,0.04), rgba(15,23,42,0.18))',
|
|
151
|
+
padding: 18,
|
|
152
|
+
display: 'grid',
|
|
153
|
+
gap: 12,
|
|
154
|
+
overflow: 'hidden',
|
|
155
|
+
}}
|
|
156
|
+
>
|
|
157
|
+
<div style={{ display: 'flex', justifyContent: 'space-between', gap: 12, alignItems: 'baseline' }}>
|
|
158
|
+
<span style={{ fontSize: footerFontSize, letterSpacing: '0.3em', textTransform: 'uppercase', opacity: 0.56 }}>
|
|
159
|
+
Credits Roll
|
|
160
|
+
</span>
|
|
161
|
+
{creditLine ? (
|
|
162
|
+
<span style={{ fontSize: footerFontSize, letterSpacing: '0.18em', textTransform: 'uppercase', opacity: 0.72 }}>
|
|
163
|
+
{creditLine}
|
|
164
|
+
</span>
|
|
165
|
+
) : null}
|
|
166
|
+
</div>
|
|
167
|
+
<div
|
|
168
|
+
style={{
|
|
169
|
+
display: 'grid',
|
|
170
|
+
gridTemplateColumns: isHorizontal ? 'repeat(2, minmax(0, 1fr))' : '1fr',
|
|
171
|
+
gap: 12,
|
|
172
|
+
minWidth: 0,
|
|
173
|
+
}}
|
|
174
|
+
>
|
|
175
|
+
{rows.map(([label, value], index) => (
|
|
176
|
+
<div
|
|
177
|
+
key={label}
|
|
178
|
+
style={{
|
|
179
|
+
border: '1px solid rgba(248,250,252,0.1)',
|
|
180
|
+
background: index % 2 === 0 ? 'rgba(2,6,23,0.14)' : 'rgba(255,255,255,0.03)',
|
|
181
|
+
padding: '12px 14px',
|
|
182
|
+
display: 'grid',
|
|
183
|
+
gap: 6,
|
|
184
|
+
minWidth: 0,
|
|
185
|
+
transform: motion.isAnimation ? `translate3d(0, ${(1 - motion.progress) * (index + 1) * 3}px, 0)` : 'none',
|
|
186
|
+
}}
|
|
187
|
+
>
|
|
188
|
+
<span style={{ fontSize: footerFontSize, letterSpacing: '0.2em', textTransform: 'uppercase', opacity: 0.54 }}>
|
|
189
|
+
{label}
|
|
190
|
+
</span>
|
|
191
|
+
<span style={{ fontSize: Math.round(runtime.height * (isHorizontal ? 0.02 : 0.018)), letterSpacing: '-0.02em', ...getOutroLineClamp(1) }}>{value}</span>
|
|
192
|
+
</div>
|
|
193
|
+
))}
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
{footer ? (
|
|
197
|
+
<div style={{ fontSize: footerFontSize, letterSpacing: '0.2em', textTransform: 'uppercase', opacity: 0.52, textAlign: 'center' }}>
|
|
198
|
+
{footer}
|
|
199
|
+
</div>
|
|
200
|
+
) : null}
|
|
201
|
+
{children ? <div>{children}</div> : null}
|
|
202
|
+
</div>
|
|
203
|
+
</section>
|
|
204
|
+
</BaseRemotionScene>
|
|
205
|
+
)
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
VideoComponent(componentMetadata)(DefaultCreditsRollOutro)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { DefaultCreditsRollOutro } from './default-credits-roll-outro'
|
|
2
|
+
export { componentMetadata } from './default-credits-roll-outro'
|
|
3
|
+
export {
|
|
4
|
+
DefaultCreditsRollOutroLandscape,
|
|
5
|
+
componentMetadata as DefaultCreditsRollOutroLandscapeMetadata,
|
|
6
|
+
} from './default-credits-roll-outro-Landscape'
|
|
7
|
+
export {
|
|
8
|
+
DefaultCreditsRollOutroHorizontal,
|
|
9
|
+
componentMetadata as DefaultCreditsRollOutroHorizontalMetadata,
|
|
10
|
+
} from './default-credits-roll-outro-Horizontal'
|
|
11
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VideoComponent,
|
|
3
|
+
defineComponentProjectComponentMetadata,
|
|
4
|
+
} from '@vibecuting/component-project-helper'
|
|
5
|
+
|
|
6
|
+
import { DefaultEpilogueOutro, type DefaultEpilogueOutroProps } from './default-epilogue-outro'
|
|
7
|
+
|
|
8
|
+
export const componentMetadata = defineComponentProjectComponentMetadata({
|
|
9
|
+
name: 'DefaultEpilogueOutroHorizontal',
|
|
10
|
+
description: 'Epilogue outro with a native 9:16 portrait layout',
|
|
11
|
+
sourceFile: 'src/core/outro/default-epilogue-outro/default-epilogue-outro-Horizontal.tsx',
|
|
12
|
+
aspectRatio: '9:16',
|
|
13
|
+
sceneType: 'outro',
|
|
14
|
+
tags: ['outro', 'epilogue', 'portrait'],
|
|
15
|
+
propsTypeName: 'DefaultEpilogueOutroProps',
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export const DefaultEpilogueOutroHorizontal = VideoComponent(componentMetadata)(
|
|
19
|
+
function DefaultEpilogueOutroHorizontal(props: DefaultEpilogueOutroProps) {
|
|
20
|
+
return <DefaultEpilogueOutro {...props} layout="horizontal" />
|
|
21
|
+
},
|
|
22
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VideoComponent,
|
|
3
|
+
defineComponentProjectComponentMetadata,
|
|
4
|
+
} from '@vibecuting/component-project-helper'
|
|
5
|
+
|
|
6
|
+
import { DefaultEpilogueOutro, type DefaultEpilogueOutroProps } from './default-epilogue-outro'
|
|
7
|
+
|
|
8
|
+
export const componentMetadata = defineComponentProjectComponentMetadata({
|
|
9
|
+
name: 'DefaultEpilogueOutroLandscape',
|
|
10
|
+
description: 'Epilogue outro with a widescreen 16:9 layout',
|
|
11
|
+
sourceFile: 'src/core/outro/default-epilogue-outro/default-epilogue-outro-Landscape.tsx',
|
|
12
|
+
aspectRatio: '16:9',
|
|
13
|
+
sceneType: 'outro',
|
|
14
|
+
tags: ['outro', 'epilogue', 'landscape'],
|
|
15
|
+
propsTypeName: 'DefaultEpilogueOutroProps',
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export const DefaultEpilogueOutroLandscape = VideoComponent(componentMetadata)(
|
|
19
|
+
function DefaultEpilogueOutroLandscape(props: DefaultEpilogueOutroProps) {
|
|
20
|
+
return <DefaultEpilogueOutro {...props} layout="landscape" />
|
|
21
|
+
},
|
|
22
|
+
)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { DefaultEpilogueOutroHorizontal } from './default-epilogue-outro-Horizontal'
|
|
2
|
+
import { DefaultEpilogueOutroLandscape } from './default-epilogue-outro-Landscape'
|
|
3
|
+
|
|
4
|
+
const args = {
|
|
5
|
+
kicker: 'Epilogue',
|
|
6
|
+
title: 'One Last Quiet Scene',
|
|
7
|
+
note: 'A minimal coda that reads like a final page rather than a generic thank-you slide.',
|
|
8
|
+
creditLine: 'The story continues off screen',
|
|
9
|
+
footer: 'Fade Out',
|
|
10
|
+
accent: '#020617',
|
|
11
|
+
secondaryAccent: '#0f172a',
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const meta = {
|
|
15
|
+
title: 'core/outro/default-epilogue-outro/DefaultEpilogueOutroLandscape',
|
|
16
|
+
component: DefaultEpilogueOutroLandscape,
|
|
17
|
+
args,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default meta
|
|
21
|
+
|
|
22
|
+
export const Landscape = {
|
|
23
|
+
parameters: {
|
|
24
|
+
scenePreviewAspectRatio: '16:9',
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const LandscapeAnimated = {
|
|
29
|
+
parameters: {
|
|
30
|
+
scenePreviewAspectRatio: '16:9',
|
|
31
|
+
scenePreviewMode: 'animation',
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const Horizontal = {
|
|
36
|
+
render: (storyArgs: typeof args) => <DefaultEpilogueOutroHorizontal {...storyArgs} />,
|
|
37
|
+
parameters: {
|
|
38
|
+
scenePreviewAspectRatio: '9:16',
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const HorizontalAnimated = {
|
|
43
|
+
render: (storyArgs: typeof args) => <DefaultEpilogueOutroHorizontal {...storyArgs} />,
|
|
44
|
+
parameters: {
|
|
45
|
+
scenePreviewAspectRatio: '9:16',
|
|
46
|
+
scenePreviewMode: 'animation',
|
|
47
|
+
},
|
|
48
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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 { getOutroBodyMaxWidth, getOutroLineClamp, getOutroTypographyScale, resolveOutroLayout } from '../_shared/outro-layout'
|
|
9
|
+
|
|
10
|
+
export interface DefaultEpilogueOutroProps 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: 'DefaultEpilogueOutro',
|
|
25
|
+
description: 'Minimal epilogue outro with a note rail and final-frame framing',
|
|
26
|
+
sourceFile: 'src/core/outro/default-epilogue-outro/default-epilogue-outro.tsx',
|
|
27
|
+
aspectRatio: '16:9',
|
|
28
|
+
sceneType: 'outro',
|
|
29
|
+
tags: ['outro', 'bumper', 'epilogue', 'fade'],
|
|
30
|
+
propsTypeName: 'DefaultEpilogueOutroProps',
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
export function DefaultEpilogueOutro({
|
|
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
|
+
}: DefaultEpilogueOutroProps) {
|
|
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
|
+
? 'linear-gradient(180deg, #0b1120 0%, #020617 42%, #000000 100%)'
|
|
63
|
+
: `radial-gradient(circle at 50% 24%, ${secondaryAccent ?? 'rgba(255,255,255,0.08)'} 0%, ${accent ?? '#020617'} 46%, #000 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
|
+
position: 'relative',
|
|
73
|
+
zIndex: 1,
|
|
74
|
+
width: '100%',
|
|
75
|
+
height: '100%',
|
|
76
|
+
display: 'grid',
|
|
77
|
+
gridTemplateColumns: isHorizontal ? 'minmax(180px, 0.32fr) minmax(0, 1.68fr)' : '1fr',
|
|
78
|
+
gap: isHorizontal ? 24 : 14,
|
|
79
|
+
alignItems: 'center',
|
|
80
|
+
minWidth: 0,
|
|
81
|
+
minHeight: 0,
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
84
|
+
<aside style={{ display: 'grid', gap: 10, alignContent: 'center', border: '1px solid rgba(248,250,252,0.1)', padding: 16, background: 'rgba(255,255,255,0.03)', textAlign: isHorizontal ? 'left' : 'center', minWidth: 0 }}>
|
|
85
|
+
<p style={{ margin: 0, fontSize: kickerFontSize, letterSpacing: '0.3em', textTransform: 'uppercase', opacity: 0.58 }}>
|
|
86
|
+
{kicker ?? 'Epilogue'}
|
|
87
|
+
</p>
|
|
88
|
+
<div style={{ width: '100%', height: 1, background: 'rgba(248,250,252,0.12)' }} />
|
|
89
|
+
<p style={{ margin: 0, fontSize: footerFontSize, letterSpacing: '0.2em', textTransform: 'uppercase', opacity: 0.5 }}>
|
|
90
|
+
{footer ?? 'Fade Out'}
|
|
91
|
+
</p>
|
|
92
|
+
</aside>
|
|
93
|
+
<div style={{ display: 'grid', gap: 14, justifyItems: isHorizontal ? 'start' : 'center', textAlign: isHorizontal ? 'left' : 'center', minWidth: 0 }}>
|
|
94
|
+
<h1
|
|
95
|
+
style={{
|
|
96
|
+
margin: 0,
|
|
97
|
+
fontSize: titleFontSize,
|
|
98
|
+
lineHeight: 0.92,
|
|
99
|
+
letterSpacing: '-0.07em',
|
|
100
|
+
textTransform: 'uppercase',
|
|
101
|
+
transform: motion.isAnimation ? `translate3d(0, ${(1 - motion.progress) * 10}px, 0)` : 'none',
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
104
|
+
{title}
|
|
105
|
+
</h1>
|
|
106
|
+
{note ? <p style={{ margin: 0, maxWidth: getOutroBodyMaxWidth(runtime.width, resolvedLayout, 0.68, 0.58, { min: 240, max: 720 }), fontSize: noteFontSize, lineHeight: 1.55, opacity: 0.8, ...getOutroLineClamp(isHorizontal ? 3 : 4) }}>{note}</p> : null}
|
|
107
|
+
{creditLine ? <p style={{ margin: 0, fontSize: footerFontSize, letterSpacing: '0.22em', textTransform: 'uppercase', opacity: 0.72 }}>{creditLine}</p> : null}
|
|
108
|
+
{children ? <div style={{ marginTop: 4 }}>{children}</div> : null}
|
|
109
|
+
</div>
|
|
110
|
+
</section>
|
|
111
|
+
</BaseRemotionScene>
|
|
112
|
+
)
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
VideoComponent(componentMetadata)(DefaultEpilogueOutro)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { DefaultEpilogueOutro } from './default-epilogue-outro'
|
|
2
|
+
export { componentMetadata } from './default-epilogue-outro'
|
|
3
|
+
export {
|
|
4
|
+
DefaultEpilogueOutroLandscape,
|
|
5
|
+
componentMetadata as DefaultEpilogueOutroLandscapeMetadata,
|
|
6
|
+
} from './default-epilogue-outro-Landscape'
|
|
7
|
+
export {
|
|
8
|
+
DefaultEpilogueOutroHorizontal,
|
|
9
|
+
componentMetadata as DefaultEpilogueOutroHorizontalMetadata,
|
|
10
|
+
} from './default-epilogue-outro-Horizontal'
|
|
11
|
+
|