Spaces:
Running
Running
BraydenMoore
commited on
Commit
·
4340f17
1
Parent(s):
8503381
Update templates/index.html
Browse files- templates/index.html +27 -20
templates/index.html
CHANGED
@@ -50,18 +50,22 @@
|
|
50 |
width: 80vw;
|
51 |
}
|
52 |
|
53 |
-
.feed {
|
54 |
-
|
55 |
-
border-style: solid;
|
56 |
-
border-width: 1px;
|
57 |
-
border-color: yellow;
|
58 |
-
margin-right: 3%;
|
59 |
-
width: 100%;
|
60 |
-
object-fit: contain;
|
61 |
}
|
62 |
-
|
63 |
-
.feed
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
|
67 |
.map-div {
|
@@ -80,14 +84,14 @@
|
|
80 |
}
|
81 |
|
82 |
@media only screen and (max-width: 768px) {
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
}
|
92 |
|
93 |
</style>
|
@@ -97,7 +101,10 @@
|
|
97 |
<div class="outer-container">
|
98 |
<h1 style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50; margin-bottom: 3%;"> a random unsecured camera</h1>
|
99 |
<div class="flex-container">
|
100 |
-
<
|
|
|
|
|
|
|
101 |
<div class="info" style="display: flex; flex-direction: column; align-items: flex-start;">
|
102 |
|
103 |
<div class="map-div" style="position: relative; width: 500px; height: 300px; margin-bottom: 3%;">
|
|
|
50 |
width: 80vw;
|
51 |
}
|
52 |
|
53 |
+
.feed-wrapper, .info {
|
54 |
+
flex: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
+
|
57 |
+
.feed-wrapper {
|
58 |
+
padding-top: 75%; /* aspect ratio 4:3 */
|
59 |
+
position: relative;
|
60 |
+
}
|
61 |
+
|
62 |
+
.feed {
|
63 |
+
position: absolute;
|
64 |
+
top: 0;
|
65 |
+
left: 0;
|
66 |
+
width: 100%;
|
67 |
+
height: 100%;
|
68 |
+
object-fit: contain;
|
69 |
}
|
70 |
|
71 |
.map-div {
|
|
|
84 |
}
|
85 |
|
86 |
@media only screen and (max-width: 768px) {
|
87 |
+
.flex-container {
|
88 |
+
flex-direction: column;
|
89 |
+
align-items: center;
|
90 |
+
}
|
91 |
+
.feed-wrapper, .info {
|
92 |
+
width: 90%; /* full width for mobile */
|
93 |
+
flex: none; /* reset flex for mobile */
|
94 |
+
}
|
95 |
}
|
96 |
|
97 |
</style>
|
|
|
101 |
<div class="outer-container">
|
102 |
<h1 style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50; margin-bottom: 3%;"> a random unsecured camera</h1>
|
103 |
<div class="flex-container">
|
104 |
+
<div class="feed-wrapper">
|
105 |
+
<img id="feed" class="feed" src="{{ url_for('proxy', url=url) }}" />
|
106 |
+
</div>
|
107 |
+
|
108 |
<div class="info" style="display: flex; flex-direction: column; align-items: flex-start;">
|
109 |
|
110 |
<div class="map-div" style="position: relative; width: 500px; height: 300px; margin-bottom: 3%;">
|