Add LANDR FX Voice video promo, fix banner filtering

- Add landrFxVoiceVideo promo entry
- Deactivate playgrndFxVideo
- Fix PromoBanner to only select type: 'banner' promos
This commit is contained in:
Teetow
2025-12-03 19:03:52 +01:00
parent 2b4c0b7d10
commit 976aeb5fe5
2 changed files with 24 additions and 2 deletions

View File

@@ -201,7 +201,7 @@ const promoData: Record<string, PromoData> = {
},
playgrndFxVideo: {
type: "video",
isActive: true,
isActive: false,
priority: 90,
message: "Install once. Access tons of powerful plugins. Blend for infinite creativity.",
cta: {
@@ -219,6 +219,26 @@ const promoData: Record<string, PromoData> = {
videoURL: "https://www.youtube-nocookie.com/embed/UGiJCTu67Ak?autoplay=1",
},
},
landrFxVoiceVideo: {
type: "video",
isActive: true,
priority: 80,
message: "One knob for polished studio quality vocals",
cta: {
text: "Get it on MuseHub",
link: "https://www.musehub.com/plugin/landr-fx-voice?utm_source=au-web&utm_medium=au-web-video&utm_campaign=au-web-mh-web-landr-fx-voice",
},
tracking: {
category: "Video embed",
action: "Watch release video",
name: "LANDR FX Voice",
},
video: {
placeholderImage: "https://i.ytimg.com/vi/JKAvMrLpIRI/maxresdefault.jpg",
imageAltText: "Video thumbnail: LANDR FX Voice",
videoURL: "https://www.youtube-nocookie.com/embed/JKAvMrLpIRI?autoplay=1",
},
},
};
export default promoData;

View File

@@ -25,7 +25,9 @@ type PromoBannerProps = {
requestPath?: string;
};
const STATIC_PROMOS: PromoData[] = Object.values(promoData);
const STATIC_PROMOS: PromoData[] = Object.values(promoData).filter(
(promo) => promo.type === "banner"
);
const isPromoActive = (promo: PromoData | null | undefined) =>
promo?.isActive ?? true;