feat(shorts): assets on title/cta/hook scenes too (not just caption)
This commit is contained in:
1 parent
fb9d3667b7
commit
3b019b2462
1 file changed
+2
-4
@@ -69,10 +69,8 @@ const ASSET_POOL = [
|
|||||||
type AssetKey = (typeof ASSET_POOL)[number];
|
type AssetKey = (typeof ASSET_POOL)[number];
|
||||||
|
|
||||||
const AssetDecor: React.FC<{ index: number; seed: number; text: string; label: string }> = ({ index, seed = 0, text, label }) => {
|
const AssetDecor: React.FC<{ index: number; seed: number; text: string; label: string }> = ({ index, seed = 0, text, label }) => {
|
||||||
// skip asset on tiny/labeled scenes? no — variety is the point; but CTA/HOOK
|
// skip asset only for source cards — they already render a big visual.
|
||||||
// already have big visuals so only attach to caption-ish scenes by intent.
|
|
||||||
const L = (label || "").toUpperCase();
|
const L = (label || "").toUpperCase();
|
||||||
if (["CTA", "HOOK", "ON SCREEN"].includes(L)) return null;
|
|
||||||
// Label-aware asset choice: THE STORY → growth charts, THE CONFLICT → bang
|
// Label-aware asset choice: THE STORY → growth charts, THE CONFLICT → bang
|
||||||
// energy (pulse/ring), THE INSIGHT → checklist/nodeflow. Falls back to the
|
// energy (pulse/ring), THE INSIGHT → checklist/nodeflow. Falls back to the
|
||||||
// seeded pool for anything else, so videos vary regardless.
|
// seeded pool for anything else, so videos vary regardless.
|
||||||
@@ -293,7 +291,7 @@ const Scene: React.FC<{
|
|||||||
<SvgBackground variant={index + (seed || 0)} />
|
<SvgBackground variant={index + (seed || 0)} />
|
||||||
<SlideMotion>
|
<SlideMotion>
|
||||||
{label ? <BrandTag label={label} /> : null}
|
{label ? <BrandTag label={label} /> : null}
|
||||||
{scene === "caption" ? (
|
{scene === "caption" || scene === "title" || scene === "cta" ? (
|
||||||
<AssetDecor index={index} seed={seed} text={text} label={label || ""} />
|
<AssetDecor index={index} seed={seed} text={text} label={label || ""} />
|
||||||
) : null}
|
) : null}
|
||||||
<KineticTitle text={titleFor(seg)} size={54} />
|
<KineticTitle text={titleFor(seg)} size={54} />
|
||||||
|
|||||||
Reference in new issue
Block a user