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

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +14 -32
templates/index.html CHANGED
@@ -39,26 +39,20 @@
39
 
40
  .flex-container {
41
  display: flex;
42
- justify-content: left;
43
- align-items: top;
44
- }
45
-
46
- .outer-container {
47
- margin: auto;
48
- justify-content: center;
49
- align-items: left;
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 {
@@ -69,21 +63,6 @@
69
  height: 100%;
70
  object-fit: contain;
71
  }
72
-
73
- .map-div {
74
- width: 100%;
75
- object-fit: contain;
76
- padding: 1%;
77
- border-style: solid;
78
- border-width: 1px;
79
- border-color: yellow;
80
- }
81
-
82
- a:hover {
83
- background-color: yellow;
84
- color: black;
85
- transition: 0.5s ease-in-out;
86
- }
87
 
88
  @media only screen and (max-width: 768px) {
89
  .flex-container {
@@ -92,9 +71,14 @@
92
  }
93
 
94
  .feed-wrapper, .info {
95
- max-width: 100%;
96
  width: 90%;
97
  }
 
 
 
 
 
98
  }
99
 
100
  </style>
@@ -102,14 +86,12 @@
102
 
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
-
113
  <div class="map-div" style="position: relative; width: 500px; height: 300px; margin-bottom: 3%;">
114
  <div style="position: relative;">
115
  <img id="map" src="{{ url_for('static', filename='map.png') }}" style="width: 500px; height: 300px;" />
 
39
 
40
  .flex-container {
41
  display: flex;
42
+ justify-content: space-between; /* Adds space between feed and info */
 
 
 
 
 
 
 
 
43
  }
44
 
45
  .feed-wrapper, .info {
46
+ flex-basis: 48%; /* Takes up roughly half the space, accounting for margins */
 
47
  }
48
 
49
  .feed-wrapper {
 
50
  position: relative;
51
+ padding-bottom: 56.25%; /* 16:9 ratio */
52
+ height: 0;
53
+ overflow: hidden;
54
  border: 1px solid yellow;
55
+ margin-right: 2%; /* Reintroduced margin */
56
  }
57
 
58
  .feed {
 
63
  height: 100%;
64
  object-fit: contain;
65
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
  @media only screen and (max-width: 768px) {
68
  .flex-container {
 
71
  }
72
 
73
  .feed-wrapper, .info {
74
+ flex-basis: auto;
75
  width: 90%;
76
  }
77
+
78
+ .feed-wrapper {
79
+ padding-bottom: 50%; /* Adjusting for mobile */
80
+ margin-right: 0; /* Remove margin */
81
+ }
82
  }
83
 
84
  </style>
 
86
 
87
  <body style="background-color: black;">
88
  <div class="outer-container">
89
+ <!-- ... existing content ... -->
90
  <div class="flex-container">
91
  <div class="feed-wrapper">
92
  <img id="feed" class="feed" src="{{ url_for('proxy', url=url) }}" />
93
  </div>
94
+ <div class="info">
 
 
95
  <div class="map-div" style="position: relative; width: 500px; height: 300px; margin-bottom: 3%;">
96
  <div style="position: relative;">
97
  <img id="map" src="{{ url_for('static', filename='map.png') }}" style="width: 500px; height: 300px;" />