@@ -4,119 +4,37 @@ import ReleaseVideoPlaceholder from "../../assets/img/audacity-placeholder.webp"
4
4
import PromoVideoPlaceholder from " ../../assets/img/promo/ace-placeholder.webp" ;
5
5
import FeaturedVideo from " ../video/FeaturedVideo" ;
6
6
7
- // Generate WebP format thumbnails
8
7
const releaseVideoPlaceholderImage = await getImage ({
9
8
src: ReleaseVideoPlaceholder ,
10
9
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 ,
22
12
});
23
13
24
14
const featuredVideoPlaceholderImage = await getImage ({
25
15
src: PromoVideoPlaceholder ,
26
16
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 ,
71
19
});
72
20
73
21
const 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" ,
94
27
}
95
28
96
29
const 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 ,
109
33
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 ,
118
36
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"
120
38
}
121
39
---
122
40
@@ -128,20 +46,18 @@ const promoVideo = {
128
46
client:load
129
47
title ={ releaseVideo .title }
130
48
label ={ releaseVideo .label }
131
- placeholderImages ={ releaseVideo .placeholderImages }
49
+ placeholderImage ={ releaseVideo .placeholderImage }
132
50
imageAltText ={ releaseVideo .imageAltText }
133
51
videoURL ={ releaseVideo .videoURL }
134
- dimensions ={ releaseVideo .dimensions }
135
52
matomoEventName ={ releaseVideo .title }
136
53
/>
137
54
<FeaturedVideo
138
55
client:load
139
56
title ={ promoVideo .title }
140
57
label ={ promoVideo .label }
141
- placeholderImages ={ promoVideo .placeholderImages }
58
+ placeholderImage ={ promoVideo .placeholderImage }
142
59
imageAltText ={ promoVideo .imageAltText }
143
60
videoURL ={ promoVideo .videoURL }
144
- dimensions ={ promoVideo .dimensions }
145
61
CTA ={ promoVideo .CTA }
146
62
ctaText ={ promoVideo .ctaText }
147
63
ctaURL ={ promoVideo .ctaURL }
0 commit comments