Skip to content

Conversation

@nidhi-singh02
Copy link
Contributor

@nidhi-singh02 nidhi-singh02 commented Dec 22, 2025

Summary

Embed Youtube videos in the relevant doc pages allowing users to watch the video on the same page. If they wish, they can redirect to YT.

image

Rationale

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@vercel
Copy link

vercel bot commented Dec 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
component-library Ready Ready Preview, Comment Dec 22, 2025 0:00am
developer-hub Ready Ready Preview, Comment Dec 22, 2025 0:00am
5 Skipped Deployments
Project Deployment Review Updated (UTC)
api-reference Skipped Skipped Dec 22, 2025 0:00am
entropy-explorer Skipped Skipped Dec 22, 2025 0:00am
insights Skipped Skipped Dec 22, 2025 0:00am
proposals Skipped Skipped Dec 22, 2025 0:00am
staking Skipped Skipped Dec 22, 2025 0:00am

Comment on lines +1 to +21
@use "@pythnetwork/component-library/theme";

.container {
position: relative;
width: 100%;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
margin: theme.spacing(6) 0;
border-radius: theme.border-radius("xl");
overflow: hidden;
background-color: theme.color("background", "primary");
box-shadow: 0 4px 24px rgb(0 0 0 / 12%);
}

.iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need a container here, stying iframe should be enough. You can remove all the iframe styles here and just copy paste the ones from .container and use https://github.com/pyth-network/pyth-crosschain/pull/3323/changes#r2640249221 instead of a padding-bottom trick

Comment on lines +5 to +6
width: 100%;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

width: 100%;
aspect-ratio: 16 / 9;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants