mirror of
https://github.com/audacity/audacity.github.io.git
synced 2026-04-19 21:11:20 -05:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user