Skip to content

Commit

Permalink
update webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
hkchengrex committed Dec 7, 2024
1 parent 2e655eb commit d836ca5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
13 changes: 5 additions & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<meta charset="UTF-8">
<title>MMAudio</title>

<link rel="icon" type="image/png" href="images/icon.png">

<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
Expand Down Expand Up @@ -130,14 +132,9 @@
</div>
</div>
<br>
<div style="text-align: center;">
<video style="width: 100%" controls>
<source
src="./videos/demo.mp4"
type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<div class="video-container" style="text-align: center;">
<iframe src="https://youtube.com/embed/YElewUT2M4M"></iframe>
</div>

<br>

Expand Down
14 changes: 14 additions & 0 deletions docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,18 @@ hr {
border: 0;
height: 1px;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.video-container {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
}

.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

0 comments on commit d836ca5

Please sign in to comment.