Update main.py
Browse files
main.py
CHANGED
@@ -139,19 +139,20 @@ def proxy(path):
|
|
139 |
# Add CSS styles to improve design
|
140 |
style_tag = soup.new_tag('style')
|
141 |
style_tag.string = '''
|
142 |
-
body { font-family: Arial, sans-serif; line-height: 1.6; padding: 20px; max-width: 1200px; margin: 0 auto; background: #
|
143 |
-
.breadcrumb { display: flex; flex-wrap: wrap; gap:
|
144 |
-
.breadcrumb a { text-decoration: none; color: #
|
145 |
-
.breadcrumb a:hover { background: #e6f0ff; }
|
146 |
-
.breadcrumb > span:after { content: '
|
147 |
.breadcrumb > span:last-child:after { display: none; }
|
148 |
-
table { width: 100%; border-collapse:
|
149 |
-
td { padding:
|
150 |
-
tr:nth-child(even) { background:
|
151 |
-
tr:hover { background: #
|
152 |
-
img { border-radius:
|
153 |
-
|
154 |
-
.open-image-btn
|
|
|
155 |
@media (max-width: 768px) {
|
156 |
body { padding: 10px; }
|
157 |
.breadcrumb { flex-direction: column; align-items: flex-start; }
|
|
|
139 |
# Add CSS styles to improve design
|
140 |
style_tag = soup.new_tag('style')
|
141 |
style_tag.string = '''
|
142 |
+
body { font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.6; padding: 20px; max-width: 1200px; margin: 0 auto; background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%); color: #2c3e50; }
|
143 |
+
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 15px; background: rgba(255, 255, 255, 0.95); border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 25px; backdrop-filter: blur(5px); }
|
144 |
+
.breadcrumb a { text-decoration: none; color: #3498db; padding: 6px 12px; border-radius: 6px; transition: all 0.3s ease; font-weight: 500; }
|
145 |
+
.breadcrumb a:hover { background: linear-gradient(135deg, #e6f0ff 0%, #f0f7ff 100%); transform: translateY(-1px); color: #2980b9; }
|
146 |
+
.breadcrumb > span:after { content: '›'; margin-left: 12px; color: #95a5a6; font-size: 1.2em; }
|
147 |
.breadcrumb > span:last-child:after { display: none; }
|
148 |
+
table { width: 100%; border-collapse: separate; border-spacing: 0; background: rgba(255, 255, 255, 0.95); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin: 25px 0; backdrop-filter: blur(5px); }
|
149 |
+
td { padding: 15px; border: 1px solid #ecf0f1; transition: all 0.2s ease; }
|
150 |
+
tr:nth-child(even) { background: rgba(245, 247, 250, 0.5); }
|
151 |
+
tr:hover { background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%); transform: scale(1.001); }
|
152 |
+
img { border-radius: 12px; box-shadow: 0 6px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
|
153 |
+
img:hover { transform: scale(1.02); }
|
154 |
+
.open-image-btn { display: inline-block; margin: 12px 0; padding: 10px 20px; background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white !important; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; font-weight: 500; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
|
155 |
+
.open-image-btn:hover { background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
|
156 |
@media (max-width: 768px) {
|
157 |
body { padding: 10px; }
|
158 |
.breadcrumb { flex-direction: column; align-items: flex-start; }
|