BraydenMoore commited on
Commit
37cd3ac
1 Parent(s): 4290743

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +26 -39
templates/index.html CHANGED
@@ -50,33 +50,24 @@
50
  width: 80vw;
51
  }
52
 
53
- .feed-wrapper {
54
- width: 100%;
55
- padding-top: 75%; /* 4:3 Aspect Ratio */
56
- position: relative; /* If you want text inside of the container to be aligned to the bottom */
57
  }
58
 
59
- .feed, .info {
60
- flex: 1;
61
- max-width: 50%; /* Limit each to half the container's width */
62
- }
63
-
64
  .feed-wrapper {
65
- padding: 1%;
66
- border-style: solid;
67
- border-width: 1px;
68
- border-color: yellow;
69
- margin-right: 3%;
70
- position: relative;
71
  }
72
-
73
  .feed {
74
- position: absolute;
75
- top: 0;
76
- left: 0;
77
- bottom: 0;
78
- right: 0;
79
- object-fit: contain;
80
  }
81
 
82
  .map-div {
@@ -95,19 +86,15 @@
95
  }
96
 
97
  @media only screen and (max-width: 768px) {
98
- .flex-container {
99
- flex-direction: column;
100
- align-items: center;
101
- }
102
-
103
- .feed, .info {
104
- max-width: 100%; /* Allow them to take up the entire width */
105
- width: 90%; /* Set width to 90% of the container */
106
- }
107
-
108
- .feed-wrapper {
109
- padding-top: 56.25%; /* 16:9 Aspect Ratio */
110
- }
111
  }
112
 
113
  </style>
@@ -116,10 +103,10 @@
116
  <body style="background-color: black;">
117
  <div class="outer-container">
118
  <h1 style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50; margin-bottom: 3%;"> a random unsecured camera</h1>
119
- <div class="flex-container">
120
- <div class="feed-wrapper">
121
- <img id="feed" class="feed" src="{{ url_for('proxy', url=url) }}" />
122
- </div>
123
 
124
  <div class="info" style="display: flex; flex-direction: column; align-items: flex-start;">
125
 
 
50
  width: 80vw;
51
  }
52
 
53
+ .feed-wrapper, .info {
54
+ flex: 1;
55
+ max-width: 50%;
 
56
  }
57
 
 
 
 
 
 
58
  .feed-wrapper {
59
+ padding-top: 56.25%; /* 16:9 Aspect Ratio */
60
+ position: relative;
61
+ border: 1px solid yellow;
 
 
 
62
  }
63
+
64
  .feed {
65
+ position: absolute;
66
+ top: 0;
67
+ left: 0;
68
+ width: 100%;
69
+ height: 100%;
70
+ object-fit: contain;
71
  }
72
 
73
  .map-div {
 
86
  }
87
 
88
  @media only screen and (max-width: 768px) {
89
+ .flex-container {
90
+ flex-direction: column;
91
+ align-items: center;
92
+ }
93
+
94
+ .feed-wrapper, .info {
95
+ max-width: 100%;
96
+ width: 90%;
97
+ }
 
 
 
 
98
  }
99
 
100
  </style>
 
103
  <body style="background-color: black;">
104
  <div class="outer-container">
105
  <h1 style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50; margin-bottom: 3%;"> a random unsecured camera</h1>
106
+ <div class="flex-container">
107
+ <div class="feed-wrapper">
108
+ <img id="feed" class="feed" src="{{ url_for('proxy', url=url) }}" />
109
+ </div>
110
 
111
  <div class="info" style="display: flex; flex-direction: column; align-items: flex-start;">
112