-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (66 loc) · 3.54 KB
/
index.html
File metadata and controls
66 lines (66 loc) · 3.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>React ResponsiveEmbed</title><meta name="viewport" content="width=device-width, initial-scale=1"/><style>
html { background-color: #50E3C2;}
body {
color: #4A4A4A;
background-color: #fff;
padding: 2em 1em;
margin:0px 0 6px;
line-height: 1.6;
font-size:20px;
letter-spacing: 0.2px;
min-height:100vh;
font-family: -apple-system, BlinkMacSystemFont,
"avenir next", avenir,
helvetica, "helvetica neue",
ubuntu,
roboto, noto,
"segoe ui", arial,
sans-serif;
}
code {
font-size: .875rem;
font-family: Consolas, monaco, monospace;
}
a {
color: #333;
}
a:hover {
color: #319C84;
}
blockquote {
color: #888;
padding: .5rem 1.2rem;
margin: 1rem 0;
font-size: 1.1rem;
border-left: .25rem solid #eceeef;
}
blockquote p:first-child {
margin-top: 0.25rem;
}
blockquote p:last-child {
margin-bottom: 0.25rem;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: .875rem; }
img { max-width: 100%; }
.m-b-1 {
margin-bottom: 1rem !important;
}
.m-t-3 {
margin-top: 3rem !important;
}
.max-width-md {
max-width: 700px;
margin:0 auto;
}
.text-decoration-none {
text-decoration: none;
}
.tracked {
letter-spacing: 0.5px;
}
</style></head><body><div style="max-width:800px;margin:0 auto;"><header class="m-b-1"><a class="tracked text-decoration-none" href="https://tableflip.io"><img src="https://tableflip.io/img/tableflip.min.svg" style="width:38px;vertical-align:-14px;"/><strong>TABLEFLIP</strong></a></header><h1><a href="https://github.com/tableflip/react-responsive-embed">React ResponsiveEmbed</a></h1><p>You want to embed a YouTube or other `iframe` style embedded content, and you'd like it to take up the available width, and retain it's aspect ratio.</p><p>Much like the <a href="https://v4-alpha.getbootstrap.com/utilities/responsive-helpers/" target="_blank">Bootstrap responsive embed helpers</a> of old, but for react.</p><code class="m-t-3" style="color:#FEFEFE;background:#4A4A4A;padding:20px;display:block;"><ResponsiveEmbed ratio='16:9'><br/> <iframe src='https://www.youtube.com/embed/2yqz9zgoC-U' /><br/></ResponsiveEmbed></code><div style="position:relative;overflow:hidden;max-width:100%;height:0;padding-bottom:56.25%;"><iframe src="https://www.youtube.com/embed/2yqz9zgoC-U" frameborder="0" style="position:absolute;top:0;left:0;width:100%;height:100%;"></iframe></div><code class="m-t-3" style="color:#FEFEFE;background:#4A4A4A;padding:20px;display:block;"><ResponsiveEmbed ratio='4:3'><br/> <iframe src='https://www.youtube.com/embed/mM5_T-F1Yn4' /><br/></ResponsiveEmbed></code><div style="position:relative;overflow:hidden;max-width:100%;height:0;padding-bottom:75%;"><iframe src="https://www.youtube.com/embed/mM5_T-F1Yn4" frameborder="0" style="position:absolute;top:0;left:0;width:100%;height:100%;"></iframe></div><p class="m-t-3"><a href="https://github.com/tableflip/react-responsive-embed">https://github.com/tableflip/react-responsive-embed</a></p><footer class="m-t-3"><a class="tracked text-decoration-none" href="https://tableflip.io"><img src="https://tableflip.io/img/tableflip.min.svg" style="width:38px;vertical-align:-14px;"/><strong>TABLEFLIP</strong></a></footer></div></body></html>