Skip to content

Commit d016cbc

Browse files
committed
Replace iframe video with clickable thumbnail linking to YouTube
1 parent fccec58 commit d016cbc

1 file changed

Lines changed: 64 additions & 8 deletions

File tree

src/components/RaagaGenerator.jsx

Lines changed: 64 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,23 +161,79 @@ function RaagaGenerator() {
161161
</Box>
162162
</Box>
163163

164-
{/* Technical Demo Video */}
165-
<Box sx={{ position: 'relative', paddingTop: '56.25%', width: '100%', mb: 2, borderRadius: '12px', overflow: 'hidden', border: '2px solid #F1C40F' }}>
164+
{/* Technical Demo Video - Click to Play on YouTube */}
165+
<Box
166+
component="a"
167+
href="https://www.youtube.com/watch?v=O8hMDRZVhWM"
168+
target="_blank"
169+
rel="noopener noreferrer"
170+
sx={{
171+
display: 'block',
172+
position: 'relative',
173+
width: '100%',
174+
paddingTop: '56.25%',
175+
mb: 2,
176+
borderRadius: '12px',
177+
overflow: 'hidden',
178+
border: '2px solid #F1C40F',
179+
textDecoration: 'none',
180+
cursor: 'pointer',
181+
'&:hover': {
182+
opacity: 0.9,
183+
transform: 'scale(1.01)',
184+
transition: 'all 0.2s ease',
185+
}
186+
}}
187+
>
166188
<Box
167-
component="iframe"
168-
src="https://www.youtube.com/embed/jCij1xF1X9w?rel=0&enablejsapi=1"
169-
title="AI Music Generation with Deep Learning"
170-
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
171-
allowFullScreen
189+
component="img"
190+
src="https://img.youtube.com/vi/O8hMDRZVhWM/maxresdefault.jpg"
191+
alt="DeepRaaga Technical Demo - Click to Watch on YouTube"
172192
sx={{
173193
position: 'absolute',
174194
top: 0,
175195
left: 0,
176196
width: '100%',
177197
height: '100%',
178-
border: 'none',
198+
objectFit: 'cover',
179199
}}
180200
/>
201+
{/* Play button overlay */}
202+
<Box
203+
sx={{
204+
position: 'absolute',
205+
top: '50%',
206+
left: '50%',
207+
transform: 'translate(-50%, -50%)',
208+
width: 80,
209+
height: 80,
210+
bgcolor: 'rgba(211, 84, 0, 0.9)',
211+
borderRadius: '50%',
212+
display: 'flex',
213+
alignItems: 'center',
214+
justifyContent: 'center',
215+
boxShadow: '0 4px 20px rgba(0,0,0,0.3)',
216+
}}
217+
>
218+
<PlayArrowIcon sx={{ color: 'white', fontSize: 40, ml: 0.5 }} />
219+
</Box>
220+
{/* Label */}
221+
<Box
222+
sx={{
223+
position: 'absolute',
224+
bottom: 0,
225+
left: 0,
226+
right: 0,
227+
bgcolor: 'rgba(0,0,0,0.7)',
228+
color: 'white',
229+
p: 1.5,
230+
textAlign: 'center',
231+
}}
232+
>
233+
<Typography variant="body2" sx={{ fontWeight: 500 }}>
234+
▶ Watch Technical Demo on YouTube
235+
</Typography>
236+
</Box>
181237
</Box>
182238

183239
{/* Workflow Steps */}

0 commit comments

Comments
 (0)