Update main.py
Browse files
main.py
CHANGED
@@ -139,25 +139,168 @@ def proxy(path):
|
|
139 |
# Add CSS styles to improve design
|
140 |
style_tag = soup.new_tag('style')
|
141 |
style_tag.string = '''
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
@media (max-width: 768px) {
|
157 |
-
body { padding:
|
158 |
-
.breadcrumb {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
table { font-size: 14px; }
|
160 |
-
td { padding:
|
|
|
|
|
|
|
|
|
161 |
}
|
162 |
'''
|
163 |
# Check if head exists, if not create it
|
|
|
139 |
# Add CSS styles to improve design
|
140 |
style_tag = soup.new_tag('style')
|
141 |
style_tag.string = '''
|
142 |
+
:root {
|
143 |
+
--primary-gradient: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
|
144 |
+
--hover-gradient: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
|
145 |
+
--bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
|
146 |
+
--card-shadow: 0 8px 20px rgba(0,0,0,0.08);
|
147 |
+
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
148 |
+
}
|
149 |
+
body {
|
150 |
+
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
151 |
+
line-height: 1.7;
|
152 |
+
padding: 30px;
|
153 |
+
max-width: 1400px;
|
154 |
+
margin: 0 auto;
|
155 |
+
background: var(--bg-gradient);
|
156 |
+
color: #2c3e50;
|
157 |
+
min-height: 100vh;
|
158 |
+
}
|
159 |
+
.breadcrumb {
|
160 |
+
display: flex;
|
161 |
+
flex-wrap: wrap;
|
162 |
+
gap: 15px;
|
163 |
+
align-items: center;
|
164 |
+
padding: 20px;
|
165 |
+
background: rgba(255, 255, 255, 0.98);
|
166 |
+
border-radius: 16px;
|
167 |
+
box-shadow: var(--card-shadow);
|
168 |
+
margin-bottom: 30px;
|
169 |
+
backdrop-filter: blur(10px);
|
170 |
+
border: 1px solid rgba(255, 255, 255, 0.8);
|
171 |
+
}
|
172 |
+
.breadcrumb a {
|
173 |
+
text-decoration: none;
|
174 |
+
color: #3498db;
|
175 |
+
padding: 8px 16px;
|
176 |
+
border-radius: 8px;
|
177 |
+
transition: var(--transition);
|
178 |
+
font-weight: 500;
|
179 |
+
background: rgba(52, 152, 219, 0.1);
|
180 |
+
}
|
181 |
+
.breadcrumb a:hover {
|
182 |
+
background: var(--primary-gradient);
|
183 |
+
transform: translateY(-2px);
|
184 |
+
color: white;
|
185 |
+
}
|
186 |
+
.breadcrumb > span:after {
|
187 |
+
content: '›';
|
188 |
+
margin-left: 15px;
|
189 |
+
color: #95a5a6;
|
190 |
+
font-size: 1.4em;
|
191 |
+
font-weight: 300;
|
192 |
+
}
|
193 |
+
ul {
|
194 |
+
list-style: none;
|
195 |
+
padding: 0;
|
196 |
+
display: grid;
|
197 |
+
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
198 |
+
gap: 20px;
|
199 |
+
margin: 30px 0;
|
200 |
+
}
|
201 |
+
li {
|
202 |
+
background: rgba(255, 255, 255, 0.98);
|
203 |
+
border-radius: 16px;
|
204 |
+
overflow: hidden;
|
205 |
+
transition: var(--transition);
|
206 |
+
box-shadow: var(--card-shadow);
|
207 |
+
border: 1px solid rgba(255, 255, 255, 0.8);
|
208 |
+
}
|
209 |
+
li:hover {
|
210 |
+
transform: translateY(-5px);
|
211 |
+
box-shadow: 0 12px 25px rgba(0,0,0,0.1);
|
212 |
+
}
|
213 |
+
li a {
|
214 |
+
display: block;
|
215 |
+
padding: 20px;
|
216 |
+
text-decoration: none;
|
217 |
+
color: #2c3e50;
|
218 |
+
font-weight: 500;
|
219 |
+
transition: var(--transition);
|
220 |
+
background: rgba(255, 255, 255, 0.98);
|
221 |
+
}
|
222 |
+
li a:hover {
|
223 |
+
background: var(--primary-gradient);
|
224 |
+
color: white;
|
225 |
+
}
|
226 |
+
table {
|
227 |
+
width: 100%;
|
228 |
+
border-collapse: separate;
|
229 |
+
border-spacing: 0;
|
230 |
+
background: rgba(255, 255, 255, 0.98);
|
231 |
+
border-radius: 16px;
|
232 |
+
overflow: hidden;
|
233 |
+
box-shadow: var(--card-shadow);
|
234 |
+
margin: 30px 0;
|
235 |
+
backdrop-filter: blur(10px);
|
236 |
+
border: 1px solid rgba(255, 255, 255, 0.8);
|
237 |
+
}
|
238 |
+
td {
|
239 |
+
padding: 20px;
|
240 |
+
border: 1px solid rgba(236, 240, 241, 0.8);
|
241 |
+
transition: var(--transition);
|
242 |
+
}
|
243 |
+
tr:nth-child(even) {
|
244 |
+
background: rgba(245, 247, 250, 0.5);
|
245 |
+
}
|
246 |
+
tr:hover {
|
247 |
+
background: var(--bg-gradient);
|
248 |
+
transform: scale(1.002);
|
249 |
+
}
|
250 |
+
img {
|
251 |
+
border-radius: 16px;
|
252 |
+
box-shadow: var(--card-shadow);
|
253 |
+
transition: var(--transition);
|
254 |
+
max-width: 100%;
|
255 |
+
height: auto;
|
256 |
+
display: block;
|
257 |
+
margin: 10px 0;
|
258 |
+
}
|
259 |
+
img:hover {
|
260 |
+
transform: scale(1.03);
|
261 |
+
box-shadow: 0 12px 25px rgba(0,0,0,0.15);
|
262 |
+
}
|
263 |
+
.open-image-btn {
|
264 |
+
display: inline-block;
|
265 |
+
margin: 15px 0;
|
266 |
+
padding: 12px 24px;
|
267 |
+
background: var(--primary-gradient);
|
268 |
+
color: white !important;
|
269 |
+
border-radius: 12px;
|
270 |
+
text-decoration: none;
|
271 |
+
transition: var(--transition);
|
272 |
+
font-weight: 500;
|
273 |
+
box-shadow: var(--card-shadow);
|
274 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
275 |
+
}
|
276 |
+
.open-image-btn:hover {
|
277 |
+
background: var(--hover-gradient);
|
278 |
+
transform: translateY(-3px);
|
279 |
+
box-shadow: 0 12px 25px rgba(0,0,0,0.15);
|
280 |
+
}
|
281 |
+
hr {
|
282 |
+
border: none;
|
283 |
+
height: 1px;
|
284 |
+
background: linear-gradient(to right, transparent, rgba(44, 62, 80, 0.2), transparent);
|
285 |
+
margin: 30px 0;
|
286 |
+
}
|
287 |
@media (max-width: 768px) {
|
288 |
+
body { padding: 15px; }
|
289 |
+
.breadcrumb {
|
290 |
+
flex-direction: column;
|
291 |
+
align-items: flex-start;
|
292 |
+
padding: 15px;
|
293 |
+
}
|
294 |
+
ul {
|
295 |
+
grid-template-columns: 1fr;
|
296 |
+
gap: 15px;
|
297 |
+
}
|
298 |
table { font-size: 14px; }
|
299 |
+
td { padding: 12px; }
|
300 |
+
.open-image-btn {
|
301 |
+
width: 100%;
|
302 |
+
text-align: center;
|
303 |
+
}
|
304 |
}
|
305 |
'''
|
306 |
# Check if head exists, if not create it
|