Skip to content

Commit 976aeb5

Browse files
committed
Add LANDR FX Voice video promo, fix banner filtering
- Add landrFxVoiceVideo promo entry - Deactivate playgrndFxVideo - Fix PromoBanner to only select type: 'banner' promos
1 parent 2b4c0b7 commit 976aeb5

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

src/assets/data/promotions.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const promoData: Record<string, PromoData> = {
201201
},
202202
playgrndFxVideo: {
203203
type: "video",
204-
isActive: true,
204+
isActive: false,
205205
priority: 90,
206206
message: "Install once. Access tons of powerful plugins. Blend for infinite creativity.",
207207
cta: {
@@ -219,6 +219,26 @@ const promoData: Record<string, PromoData> = {
219219
videoURL: "https://www.youtube-nocookie.com/embed/UGiJCTu67Ak?autoplay=1",
220220
},
221221
},
222+
landrFxVoiceVideo: {
223+
type: "video",
224+
isActive: true,
225+
priority: 80,
226+
message: "One knob for polished studio quality vocals",
227+
cta: {
228+
text: "Get it on MuseHub",
229+
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",
230+
},
231+
tracking: {
232+
category: "Video embed",
233+
action: "Watch release video",
234+
name: "LANDR FX Voice",
235+
},
236+
video: {
237+
placeholderImage: "https://i.ytimg.com/vi/JKAvMrLpIRI/maxresdefault.jpg",
238+
imageAltText: "Video thumbnail: LANDR FX Voice",
239+
videoURL: "https://www.youtube-nocookie.com/embed/JKAvMrLpIRI?autoplay=1",
240+
},
241+
},
222242
};
223243

224244
export default promoData;

src/components/banner/PromoBanner.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ type PromoBannerProps = {
2525
requestPath?: string;
2626
};
2727

28-
const STATIC_PROMOS: PromoData[] = Object.values(promoData);
28+
const STATIC_PROMOS: PromoData[] = Object.values(promoData).filter(
29+
(promo) => promo.type === "banner"
30+
);
2931

3032
const isPromoActive = (promo: PromoData | null | undefined) =>
3133
promo?.isActive ?? true;

0 commit comments

Comments
 (0)