@@ -4,119 +4,37 @@ import ReleaseVideoPlaceholder from "../../assets/img/audacity-placeholder.webp"
44import PromoVideoPlaceholder from " ../../assets/img/promo/ace-placeholder.webp" ;
55import FeaturedVideo from " ../video/FeaturedVideo" ;
66
7- // Generate WebP format thumbnails
87const releaseVideoPlaceholderImage = await getImage ({
98 src: ReleaseVideoPlaceholder ,
109 format: ' webp' ,
11- width: 732 ,
12- height: 412 , // 16:9 aspect ratio
13- quality: 75 ,
14- });
15-
16- const releaseVideoPlaceholderImageMobile = await getImage ({
17- src: ReleaseVideoPlaceholder ,
18- format: ' webp' ,
19- width: 400 ,
20- height: 225 , // Maintaining the same aspect ratio
21- quality: 75 ,
10+ width: 624 ,
11+ quality: 80 ,
2212});
2313
2414const featuredVideoPlaceholderImage = await getImage ({
2515 src: PromoVideoPlaceholder ,
2616 format: ' webp' ,
27- width: 732 ,
28- height: 412 ,
29- quality: 75 ,
30- });
31-
32- const featuredVideoPlaceholderImageMobile = await getImage ({
33- src: PromoVideoPlaceholder ,
34- format: ' webp' ,
35- width: 400 ,
36- height: 225 ,
37- quality: 75 ,
38- });
39-
40- // Generate AVIF format thumbnails (superior compression)
41- const releaseVideoPlaceholderImageAvif = await getImage ({
42- src: ReleaseVideoPlaceholder ,
43- format: ' avif' ,
44- width: 732 ,
45- height: 412 ,
46- quality: 70 ,
47- });
48-
49- const releaseVideoPlaceholderImageMobileAvif = await getImage ({
50- src: ReleaseVideoPlaceholder ,
51- format: ' avif' ,
52- width: 400 ,
53- height: 225 ,
54- quality: 70 ,
55- });
56-
57- const featuredVideoPlaceholderImageAvif = await getImage ({
58- src: PromoVideoPlaceholder ,
59- format: ' avif' ,
60- width: 732 ,
61- height: 412 ,
62- quality: 70 ,
63- });
64-
65- const featuredVideoPlaceholderImageMobileAvif = await getImage ({
66- src: PromoVideoPlaceholder ,
67- format: ' avif' ,
68- width: 400 ,
69- height: 225 ,
70- quality: 70 ,
17+ width: 624 ,
18+ quality: 80 ,
7119});
7220
7321const releaseVideo = {
74- title: " Our latest release" ,
75- label: " Master channel, new realtime effects & more!" ,
76- placeholderImages: {
77- webp: {
78- default: releaseVideoPlaceholderImage .src ,
79- mobile: releaseVideoPlaceholderImageMobile .src ,
80- },
81- avif: {
82- default: releaseVideoPlaceholderImageAvif .src ,
83- mobile: releaseVideoPlaceholderImageMobileAvif .src ,
84- }
85- },
86- imageAltText: " Video thumbnail: Audacity 3.6 - New effects" ,
87- videoURL: " https://www.youtube-nocookie.com/embed/f5TXPUOFH6A?autoplay=1" ,
88- dimensions: {
89- width: 732 ,
90- height: 412 ,
91- mobileWidth: 400 ,
92- mobileHeight: 225
93- }
22+ title:" Our latest release" ,
23+ label:" Master channel, new realtime effects & more!" ,
24+ placeholderImage: releaseVideoPlaceholderImage .src ,
25+ imageAltText: " Video thumbnial: Audacity 3.6 - New effects" ,
26+ videoURL:" https://www.youtube-nocookie.com/embed/f5TXPUOFH6A?autoplay=1" ,
9427}
9528
9629const promoVideo = {
97- title: " ACE Studio showcase" ,
98- label: " Ad: Turn your lyrics into song with ACE Studio, the AI singing voice generator." ,
99- placeholderImages: {
100- webp: {
101- default: featuredVideoPlaceholderImage .src ,
102- mobile: featuredVideoPlaceholderImageMobile .src ,
103- },
104- avif: {
105- default: featuredVideoPlaceholderImageAvif .src ,
106- mobile: featuredVideoPlaceholderImageMobileAvif .src ,
107- }
108- },
30+ title:" ACE Studio showcase" ,
31+ label:" Ad: Turn your lyrics into song with ACE Studio, the AI singing voice generator." ,
32+ placeholderImage: featuredVideoPlaceholderImage .src ,
10933 imageAltText: " Video thumbnail: What is ACE studio?" ,
110- videoURL: " https://www.youtube-nocookie.com/embed/QTlB5UR-IEE?autoplay=1" ,
111- dimensions: {
112- width: 732 ,
113- height: 412 ,
114- mobileWidth: 400 ,
115- mobileHeight: 225
116- },
117- CTA: true ,
34+ videoURL:" https://www.youtube-nocookie.com/embed/QTlB5UR-IEE?autoplay=1" ,
35+ CTA: true ,
11836 ctaText: " Try for free" ,
119- ctaURL: " https://www.musehub.com/app/ace-studio?utm_source=au-web&utm_medium=mh-app-cta&utm_campaign=au-web-mh-app-ace-studio"
37+ ctaURL:" https://www.musehub.com/app/ace-studio?utm_source=au-web&utm_medium=mh-app-cta&utm_campaign=au-web-mh-app-ace-studio"
12038}
12139---
12240
@@ -128,20 +46,18 @@ const promoVideo = {
12846 client:load
12947 title ={ releaseVideo .title }
13048 label ={ releaseVideo .label }
131- placeholderImages ={ releaseVideo .placeholderImages }
49+ placeholderImage ={ releaseVideo .placeholderImage }
13250 imageAltText ={ releaseVideo .imageAltText }
13351 videoURL ={ releaseVideo .videoURL }
134- dimensions ={ releaseVideo .dimensions }
13552 matomoEventName ={ releaseVideo .title }
13653 />
13754 <FeaturedVideo
13855 client:load
13956 title ={ promoVideo .title }
14057 label ={ promoVideo .label }
141- placeholderImages ={ promoVideo .placeholderImages }
58+ placeholderImage ={ promoVideo .placeholderImage }
14259 imageAltText ={ promoVideo .imageAltText }
14360 videoURL ={ promoVideo .videoURL }
144- dimensions ={ promoVideo .dimensions }
14561 CTA ={ promoVideo .CTA }
14662 ctaText ={ promoVideo .ctaText }
14763 ctaURL ={ promoVideo .ctaURL }
0 commit comments