flpolprojects commited on
Commit
53ab425
·
verified ·
1 Parent(s): cbecbd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -142,7 +142,6 @@ def catalog():
142
  .theme-toggle {
143
  background: none;
144
  border: none;
145
- font-size: 1.5rem;
146
  cursor: pointer;
147
  color: #4a5568;
148
  transition: color 0.3s ease;
@@ -227,7 +226,7 @@ def catalog():
227
  .product-image img {
228
  max-width: 100%;
229
  max-height: 100%;
230
- object-fit: contain;
231
  transition: transform 0.3s ease;
232
  }
233
  .product-image img:hover {
@@ -313,22 +312,22 @@ def catalog():
313
  .modal {
314
  display: none;
315
  position: fixed;
316
- z-index: 1001;
317
  left: 0;
318
  top: 0;
319
  width: 100%;
320
  height: 100%;
321
- background-color: rgba(0,0,0,0.5);
322
  backdrop-filter: blur(5px);
323
  }
324
  .modal-content {
325
  background: #fff;
326
- margin: 5% auto;
327
  padding: 20px;
328
  border-radius: 15px;
329
  width: 90%;
330
  max-width: 700px;
331
- box-shadow: 0 10px 30px rgba(0,0,0,0.2);
332
  animation: slideIn 0.3s ease-out;
333
  }
334
  body.dark-mode .modal-content {
@@ -368,7 +367,7 @@ def catalog():
368
  .cart-item img {
369
  width: 50px;
370
  height: 50px;
371
- object-fit: contain;
372
  border-radius: 8px;
373
  margin-right: 15px;
374
  }
@@ -683,7 +682,7 @@ def product_detail(index):
683
  <div class="swiper-zoom-container">
684
  <img src="https://huggingface.co/datasets/{{ repo_id }}/resolve/main/photos/{{ photo }}"
685
  alt="{{ product['name'] }}"
686
- style="max-width: 100%; max-height: 300px; object-fit: contain;">
687
  </div>
688
  </div>
689
  {% endfor %}
 
142
  .theme-toggle {
143
  background: none;
144
  border: none;
 
145
  cursor: pointer;
146
  color: #4a5568;
147
  transition: color 0.3s ease;
 
226
  .product-image img {
227
  max-width: 100%;
228
  max-height: 100%;
229
+ object-fit: cover;
230
  transition: transform 0.3s ease;
231
  }
232
  .product-image img:hover {
 
312
  .modal {
313
  display: none;
314
  position: fixed;
315
+ z-index: 1000;
316
  left: 0;
317
  top: 0;
318
  width: 100%;
319
  height: 100%;
320
+ background-color: rgba(0,0, 0, 0.5);
321
  backdrop-filter: blur(5px);
322
  }
323
  .modal-content {
324
  background: #fff;
325
+ margin: 15% auto;
326
  padding: 20px;
327
  border-radius: 15px;
328
  width: 90%;
329
  max-width: 700px;
330
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
331
  animation: slideIn 0.3s ease-out;
332
  }
333
  body.dark-mode .modal-content {
 
367
  .cart-item img {
368
  width: 50px;
369
  height: 50px;
370
+ object-fit: cover;
371
  border-radius: 8px;
372
  margin-right: 15px;
373
  }
 
682
  <div class="swiper-zoom-container">
683
  <img src="https://huggingface.co/datasets/{{ repo_id }}/resolve/main/photos/{{ photo }}"
684
  alt="{{ product['name'] }}"
685
+ style="max-width: 100%; max-height: 300px; object-fit: cover;">
686
  </div>
687
  </div>
688
  {% endfor %}