Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Adding video-wrapper for mobile fiendly preview of the youtube video #3171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function VideoContainer() {
return (
<div className="container text--center margin-bottom--xl margin-top--lg">
<div className="row">
<div className="col">
<div className={`${styles.ifr-wrapper} col`}>
<h2>Check it out in the intro video</h2>
<iframe
width="560"
Expand Down
8 changes: 8 additions & 0 deletions website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,11 @@ div[class^="announcementBarContent"] a:hover {
padding: 6px 30px;
}
}

/* YouTube video well display in smartphones*/
@media only screen and (max-width: 580px) {
.ifr-wrapper {
width: 90vw;
height: 50.63vw;
}
}