Skip to content

Commit 4bf7272

Browse files
Dev-Code24saghul
authored andcommitted
fixed responsiveness
1 parent 3e48781 commit 4bf7272

File tree

2 files changed

+57
-51
lines changed

2 files changed

+57
-51
lines changed

src/pages/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ function VideoContainer() {
8484
<div className="col">
8585
<h2>What is Jitsi?</h2>
8686
<iframe
87-
width="560"
88-
height="315"
87+
8988
src="https://www.youtube.com/embed/TB7LlM4erx8"
9089
title="What is Jitsi?"
9190
frameBorder="0"

src/pages/styles.module.css

Lines changed: 56 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -12,53 +12,60 @@
1212
* and scoped locally.
1313
*/
1414

15-
.heroBanner {
16-
padding: 4rem 0;
17-
text-align: center;
18-
position: relative;
19-
overflow: hidden;
20-
}
21-
22-
@media screen and (max-width: 966px) {
23-
.heroBanner {
24-
padding: 2rem;
25-
}
26-
}
27-
28-
.buttons {
29-
display: flex;
30-
align-items: center;
31-
justify-content: center;
32-
}
33-
34-
.features {
35-
display: flex;
36-
align-items: center;
37-
padding: 2rem 0;
38-
width: 100%;
39-
}
40-
41-
.featureImage {
42-
height: 180px;
43-
width: 180px;
44-
}
45-
46-
.banner {
47-
font-weight: bold;
48-
font-size: 20px;
49-
padding: 20px;
50-
max-width: 768px;
51-
margin: 0 auto;
52-
text-align: center;
53-
color: white;
54-
}
55-
56-
.banner a {
57-
color: #f2f2f2;
58-
text-decoration: underline;
15+
.heroBanner {
16+
padding: 4rem 0;
17+
text-align: center;
18+
position: relative;
19+
overflow: hidden;
20+
}
21+
22+
@media screen and (max-width: 966px) {
23+
.heroBanner {
24+
padding: 2rem;
5925
}
60-
61-
.bannerWrapper {
62-
padding: 0 0;
63-
background-color: black;
64-
}
26+
}
27+
28+
.buttons {
29+
display: flex;
30+
align-items: center;
31+
justify-content: center;
32+
}
33+
34+
.features {
35+
display: flex;
36+
align-items: center;
37+
padding: 2rem 0;
38+
width: 100%;
39+
}
40+
41+
.featureImage {
42+
height: 180px;
43+
width: 180px;
44+
}
45+
46+
.banner {
47+
font-weight: bold;
48+
font-size: 20px;
49+
padding: 20px;
50+
max-width: 768px;
51+
margin: 0 auto;
52+
text-align: center;
53+
color: white;
54+
}
55+
56+
.banner a {
57+
color: #f2f2f2;
58+
text-decoration: underline;
59+
}
60+
61+
.bannerWrapper {
62+
padding: 0 0;
63+
background-color: black;
64+
}
65+
66+
/* The iframe is the element that is containing the YT video in the index.js file */
67+
iframe {
68+
max-width: 900px;
69+
width: calc(100% - 32px);
70+
height: calc(50vh - 50px);
71+
}

0 commit comments

Comments
 (0)