Skip to content

Commit 3ee5ed1

Browse files
authored
feat(worklets): adjust the view of the video promoting worklets (#8611)
## Summary <img width="969" height="708" alt="image" src="https://github.com/user-attachments/assets/94dd229c-189e-46ae-ae65-e25afe332b13" /> ## Test plan
1 parent afd3a67 commit 3ee5ed1

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

docs/docs-worklets/src/components/HomepageAboutSection/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function HomepageAboutSection(): JSX.Element {
1212
<div className={styles.videoContainer}>
1313
<iframe
1414
allowFullScreen
15-
src="https://drive.google.com/file/d/1Js57i7_mnN41mqbIRU3NX3DIHGtcUMEU/preview"
15+
src="https://www.youtube.com/embed/SHEyzLJ6hGY"
1616
/>
1717
</div>
1818
</div>

docs/docs-worklets/src/components/HomepageAboutSection/styles.module.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,19 @@
4141
}
4242

4343
.videoContainer {
44-
height: 200px;
44+
height: 400px;
4545
margin-top: 24px;
4646
}
4747
}
48+
49+
@media (max-width: 768px) {
50+
.videoContainer {
51+
height: 300px;
52+
}
53+
}
54+
55+
@media (max-width: 420px) {
56+
.videoContainer {
57+
height: 200px;
58+
}
59+
}

0 commit comments

Comments
 (0)