Skip to content

Commit dba9920

Browse files
Update promo image
1 parent e28e6c2 commit dba9920

File tree

3 files changed

+42
-11
lines changed

3 files changed

+42
-11
lines changed
23 KB
Loading
Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,46 @@
11
---
22
import ReleaseVideoPlaceholder from "../../assets/img/audacity-placeholder.webp";
3-
import PromoProductVideoPlaceholder from "../../assets/img/waves-denoiz-plugin.webp";
3+
import MbcpolyspectralPlaceholder from "../../assets/img/mbc_polyspectral-placeholder.webp";
44
import FeaturedVideo from "../video/FeaturedVideo";
5-
---
65
7-
<section class="bg-gray-900">
8-
<div class="grid md:grid-cols-2 max-w-screen-2xl px-6 sm:px-12 mx-auto py-8 gap-8 ">
9-
<FeaturedVideo client:load title="Our latest release" label="Master channel, new realtime effects & more!" placeholderImage={ReleaseVideoPlaceholder} videoURL="https://www.youtube-nocookie.com/embed/f5TXPUOFH6A?autoplay=1"/>
10-
<FeaturedVideo client:load title="Waves Denoiz Plugin" label="A new generation of noise removal that outpeforms traditional plugins." placeholderImage={PromoProductVideoPlaceholder} videoURL="https://www.youtube-nocookie.com/embed/f5TXPUOFH6A?autoplay=1" CTA ctaText="Get 50% off"/>
11-
</div>
12-
</section>
13-
6+
const releaseVideo = {
7+
title:"Our latest release",
8+
label:"Master channel, new realtime effects & more!",
9+
placeholderImage: ReleaseVideoPlaceholder,
10+
videoURL:"https://www.youtube-nocookie.com/embed/f5TXPUOFH6A?autoplay=1"
11+
}
1412
13+
const promoVideo = {
14+
title:"Multiband Compressor",
15+
label:"Low-latency, transparent multiband compressor for real-time tracking and live mixing.",
16+
placeholderImage: MbcpolyspectralPlaceholder,
17+
videoURL:"https://www.youtube-nocookie.com/embed/Lb7jx4wdXXE?autoplay=1",
18+
CTA: true,
19+
ctaText: "Get 80% off",
20+
ctaURL:"https://www.musehub.com/plugin/polyspectral-mbc?utm_source=au-web&utm_medium=mh-cta&utm_campaign=polyspectral"
21+
}
22+
---
1523

24+
<section class="bg-gray-900">
25+
<div
26+
class="grid md:grid-cols-2 max-w-screen-2xl px-6 sm:px-12 mx-auto py-8 gap-8"
27+
>
28+
<FeaturedVideo
29+
client:load
30+
title={releaseVideo.title}
31+
label={releaseVideo.label}
32+
placeholderImage={releaseVideo.placeholderImage}
33+
videoURL={releaseVideo.videoURL}
34+
/>
35+
<FeaturedVideo
36+
client:load
37+
title={promoVideo.title}
38+
label={promoVideo.label}
39+
placeholderImage={promoVideo.placeholderImage}
40+
videoURL={promoVideo.videoURL}
41+
CTA={promoVideo.CTA}
42+
ctaText={promoVideo.ctaText}
43+
ctaURL={promoVideo.ctaURL}
44+
/>
45+
</div>
46+
</section>

src/components/video/FeaturedVideo.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { useState } from "react";
33
function FeaturedVideo(props) {
44
const [isClicked, setIsClicked] = useState(false);
55

6-
const { placeholderImage, videoURL, label, title, CTA, ctaText = "" } = props;
6+
const { placeholderImage, videoURL, label, title, CTA, ctaText, ctaURL = "" } = props;
77

88
function handleVideoClick() {
99
setIsClicked(true);
@@ -22,7 +22,7 @@ function FeaturedVideo(props) {
2222
<div className="flex flex-col xs:flex-row xs:justify-between md:h-10">
2323
<h3 className="text-white content-center">{title}</h3>
2424
{CTA && (
25-
<a className="py-3 px-2 rounded-md justify-center bg-yellow-300 hover:bg-yellow-400 active:bg-yellow-500 w-fit">
25+
<a className="py-3 px-2 rounded-md justify-center bg-yellow-300 hover:bg-yellow-400 active:bg-yellow-500 w-fit" href={ctaURL}>
2626
<p className="leading-none font-semibold">{ctaText}</p>
2727
</a>
2828
)}

0 commit comments

Comments
 (0)