Starchik1 commited on
Commit
c644fca
·
verified ·
1 Parent(s): 159cee8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +13 -12
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: #f5f5f5; }
143
- .breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px; }
144
- .breadcrumb a { text-decoration: none; color: #0066cc; padding: 5px 10px; border-radius: 4px; transition: background 0.3s; }
145
- .breadcrumb a:hover { background: #e6f0ff; }
146
- .breadcrumb > span:after { content: '>'; margin-left: 10px; color: #666; }
147
  .breadcrumb > span:last-child:after { display: none; }
148
- table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin: 20px 0; }
149
- td { padding: 12px; border: 1px solid #eee; }
150
- tr:nth-child(even) { background: #f9f9f9; }
151
- tr:hover { background: #f0f0f0; }
152
- img { border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
153
- .open-image-btn { display: inline-block; margin: 10px 0; padding: 8px 16px; background: #0066cc; color: white !important; border-radius: 4px; text-decoration: none; transition: all 0.3s; }
154
- .open-image-btn:hover { background: #0052a3; transform: translateY(-1px); }
 
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; }