Mythus commited on
Commit
c627018
·
verified ·
1 Parent(s): f2d01ab

Update static/static.py

Browse files
Files changed (1) hide show
  1. static/static.py +20 -13
static/static.py CHANGED
@@ -24,26 +24,26 @@ HTML = """
24
  display: flex;
25
  align-items: center;
26
  justify-content: center;
27
- overflow-y: auto; /* Allows vertical scrolling */
28
  }
29
  #addon {
30
  background: rgba(0, 0, 0, 0.8);
31
  padding: 2vh;
32
  border-radius: 10px;
33
- width: 45vh;
34
- max-width: 90%;
35
  text-align: center;
36
- margin-top: 5vh;
37
  }
38
  .logo {
39
- width: 15vh; /* Increased logo size */
40
  margin: 0 auto;
41
  margin-bottom: 3vh;
42
- filter: drop-shadow(0 0 2vh rgba(0, 0, 0, 0.5)); /* Improved visibility */
43
  }
44
  .logo img {
45
  width: 100%;
46
  height: auto;
 
47
  }
48
  h1, h2, h3 {
49
  margin: 0;
@@ -54,7 +54,7 @@ HTML = """
54
  font-weight: 700;
55
  }
56
  h2 {
57
- font-size: 2vh;
58
  font-weight: normal;
59
  font-style: italic;
60
  opacity: 0.8;
@@ -76,12 +76,15 @@ HTML = """
76
  .provider-group label {
77
  display: flex;
78
  align-items: center;
79
- font-size: 2.5vh;
80
  }
81
  .provider-group input[type="checkbox"] {
82
  margin-right: 1.5vh;
83
  width: 3vh;
84
- height: 3vh;
 
 
 
85
  }
86
  .contact {
87
  position: absolute;
@@ -108,7 +111,7 @@ HTML = """
108
  display: block;
109
  box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2);
110
  transition: box-shadow 0.1s ease-in-out;
111
- width: 80%;
112
  max-width: 35vh;
113
  margin: 1vh auto;
114
  }
@@ -160,6 +163,8 @@ HTML = """
160
  <div class="provider-group">
161
  <label for="streamingcommunity">
162
  <input type="checkbox" id="streamingcommunity"> StreamingCommunity
 
 
163
  <input type="checkbox" id="fast_search_sc"> Fast Search
164
  </label>
165
  </div>
@@ -176,6 +181,8 @@ HTML = """
176
  <div class="provider-group">
177
  <label for="tantifilm">
178
  <input type="checkbox" id="tantifilm"> Tantifilm
 
 
179
  <input type="checkbox" id="fast_search_tf"> Fast Search
180
  </label>
181
  </div>
@@ -224,12 +231,12 @@ HTML = """
224
  });
225
  document.getElementById('installButton').addEventListener('click', function() {
226
  let manifestUrl = generateManifest();
227
- manifestUrl = manifestUrl.replace("http://", "");
228
- const stremioUrl = "stremio://" + manifestUrl;
229
- window.location.href = stremioUrl;
230
  });
231
  </script>
232
  </body>
233
  </html>
234
 
 
235
  """
 
24
  display: flex;
25
  align-items: center;
26
  justify-content: center;
27
+ overflow-y: auto; /* Enables scrolling */
28
  }
29
  #addon {
30
  background: rgba(0, 0, 0, 0.8);
31
  padding: 2vh;
32
  border-radius: 10px;
33
+ width: 45vh; /* Increased width to make the box larger */
34
+ max-width: 90%; /* Fit within mobile screens */
35
  text-align: center;
36
+ margin-top: 5vh; /* Added margin to push the content down slightly */
37
  }
38
  .logo {
39
+ width: 15vh; /* Increased size for better visibility */
40
  margin: 0 auto;
41
  margin-bottom: 3vh;
 
42
  }
43
  .logo img {
44
  width: 100%;
45
  height: auto;
46
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Added shadow for better visibility */
47
  }
48
  h1, h2, h3 {
49
  margin: 0;
 
54
  font-weight: 700;
55
  }
56
  h2 {
57
+ font-size: 2vh; /* Reduced font size for a better fit */
58
  font-weight: normal;
59
  font-style: italic;
60
  opacity: 0.8;
 
76
  .provider-group label {
77
  display: flex;
78
  align-items: center;
79
+ font-size: 2.5vh; /* Increased font size for better clickability */
80
  }
81
  .provider-group input[type="checkbox"] {
82
  margin-right: 1.5vh;
83
  width: 3vh;
84
+ height: 3vh; /* Increased checkbox size */
85
+ }
86
+ .fast-search {
87
+ margin-left: auto; /* Pushes Fast Search to the right */
88
  }
89
  .contact {
90
  position: absolute;
 
111
  display: block;
112
  box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2);
113
  transition: box-shadow 0.1s ease-in-out;
114
+ width: 80%; /* Ensures buttons take the majority of the width */
115
  max-width: 35vh;
116
  margin: 1vh auto;
117
  }
 
163
  <div class="provider-group">
164
  <label for="streamingcommunity">
165
  <input type="checkbox" id="streamingcommunity"> StreamingCommunity
166
+ </label>
167
+ <label for="fast_search_sc" class="fast-search">
168
  <input type="checkbox" id="fast_search_sc"> Fast Search
169
  </label>
170
  </div>
 
181
  <div class="provider-group">
182
  <label for="tantifilm">
183
  <input type="checkbox" id="tantifilm"> Tantifilm
184
+ </label>
185
+ <label for="fast_search_tf" class="fast-search">
186
  <input type="checkbox" id="fast_search_tf"> Fast Search
187
  </label>
188
  </div>
 
231
  });
232
  document.getElementById('installButton').addEventListener('click', function() {
233
  let manifestUrl = generateManifest();
234
+ manifestUrl = manifestUrl.replace("{instance_url}", "http://localhost:1234"); // Replace with your local URL
235
+ window.location.href = manifestUrl;
 
236
  });
237
  </script>
238
  </body>
239
  </html>
240
 
241
+
242
  """