Skip to content

Commit 3c4b1e9

Browse files
authored
Merge pull request #1241 from trcrsired/next
video should align with the width of the text itself for PWA
2 parents 63f688f + 90b677a commit 3c4b1e9

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

docs/docs/examples.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Examples - fast_io Documentation</title>
7-
<<<<<<< HEAD
87
<link rel="stylesheet" href="../style.css">
98
<link rel="manifest" href="../manifest.json">
10-
=======
11-
<link rel="stylesheet" href="/style.css">
12-
<link rel="manifest" href="/manifest.json">
13-
>>>>>>> parent/next
149
</head>
1510
<body>
1611
<main>
@@ -41,13 +36,8 @@ <h2>More Examples Coming Soon</h2>
4136
</section>
4237

4338
<div class="page-navigation">
44-
<<<<<<< HEAD
4539
<a href="intro.html" class="prev-button">← Previous: Introduction</a>
4640
<a href="api.html" class="next-button">Next: API Reference →</a>
47-
=======
48-
<a href="/docs/intro.html" class="prev-button">← Previous: Introduction</a>
49-
<a href="/docs/api.html" class="next-button">Next: API Reference →</a>
50-
>>>>>>> parent/next
5141
</div>
5242
</main>
5343

docs/docs/intro.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ <h2>Video Introduction</h2>
138138
Here’s a talk that further illustrates the ideas behind <strong>fast_io</strong>:
139139
</p>
140140
<div class="video-container">
141-
<iframe width="560" height="315"
141+
<iframe
142142
src="https://www.youtube.com/embed/CefgZlXeMUg"
143143
title="YouTube video player"
144144
frameborder="0"
145145
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
146146
allowfullscreen>
147-
</iframe>
147+
</iframe>
148148
</div>
149149
</section>
150150
<!-- Add this after the last section -->

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>fast_io - fast_io documentations</title>
6+
<title>fast_io - fast_io documentations (Under Construction)</title>
77
<link rel="manifest" href="manifest.json">
88
<link rel="stylesheet" href="style.css">
99
</head>

docs/style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,19 @@ nav a {
6363
.next-button:hover {
6464
background-color: #004c99;
6565
}
66+
67+
.video-container {
68+
position: relative;
69+
width: 100%; /* take full width of text content area */
70+
padding-bottom: 56.25%; /* 16:9 aspect ratio (height = 9/16 of width) */
71+
height: 0;
72+
overflow: hidden;
73+
}
74+
75+
.video-container iframe {
76+
position: absolute;
77+
top: 0;
78+
left: 0;
79+
width: 100%; /* scale to container width */
80+
height: 100%; /* scale height accordingly */
81+
}

0 commit comments

Comments
 (0)