Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,6 +142,7 @@ def catalog():
|
|
| 142 |
.theme-toggle {
|
| 143 |
background: none;
|
| 144 |
border: none;
|
|
|
|
| 145 |
cursor: pointer;
|
| 146 |
color: #4a5568;
|
| 147 |
transition: color 0.3s ease;
|
|
@@ -226,7 +227,7 @@ def catalog():
|
|
| 226 |
.product-image img {
|
| 227 |
max-width: 100%;
|
| 228 |
max-height: 100%;
|
| 229 |
-
object-fit:
|
| 230 |
transition: transform 0.3s ease;
|
| 231 |
}
|
| 232 |
.product-image img:hover {
|
|
@@ -312,22 +313,22 @@ def catalog():
|
|
| 312 |
.modal {
|
| 313 |
display: none;
|
| 314 |
position: fixed;
|
| 315 |
-
z-index:
|
| 316 |
left: 0;
|
| 317 |
top: 0;
|
| 318 |
width: 100%;
|
| 319 |
height: 100%;
|
| 320 |
-
background-color: rgba(0,0,
|
| 321 |
backdrop-filter: blur(5px);
|
| 322 |
}
|
| 323 |
.modal-content {
|
| 324 |
background: #fff;
|
| 325 |
-
margin:
|
| 326 |
padding: 20px;
|
| 327 |
border-radius: 15px;
|
| 328 |
width: 90%;
|
| 329 |
max-width: 700px;
|
| 330 |
-
box-shadow: 0 10px 30px rgba(0,
|
| 331 |
animation: slideIn 0.3s ease-out;
|
| 332 |
}
|
| 333 |
body.dark-mode .modal-content {
|
|
@@ -367,7 +368,7 @@ def catalog():
|
|
| 367 |
.cart-item img {
|
| 368 |
width: 50px;
|
| 369 |
height: 50px;
|
| 370 |
-
object-fit:
|
| 371 |
border-radius: 8px;
|
| 372 |
margin-right: 15px;
|
| 373 |
}
|
|
@@ -621,7 +622,7 @@ def catalog():
|
|
| 621 |
orderText += `${index + 1}. ${item.name} - ${item.price} с × ${item.quantity}%0A`;
|
| 622 |
});
|
| 623 |
orderText += `Итого: ${total} с`;
|
| 624 |
-
window.open(`https://api.whatsapp.com/send?phone=
|
| 625 |
}
|
| 626 |
|
| 627 |
function clearCart() {
|
|
@@ -682,7 +683,7 @@ def product_detail(index):
|
|
| 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:
|
| 686 |
</div>
|
| 687 |
</div>
|
| 688 |
{% endfor %}
|
|
|
|
| 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 |
.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 |
.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 |
.cart-item img {
|
| 369 |
width: 50px;
|
| 370 |
height: 50px;
|
| 371 |
+
object-fit: contain;
|
| 372 |
border-radius: 8px;
|
| 373 |
margin-right: 15px;
|
| 374 |
}
|
|
|
|
| 622 |
orderText += `${index + 1}. ${item.name} - ${item.price} с × ${item.quantity}%0A`;
|
| 623 |
});
|
| 624 |
orderText += `Итого: ${total} с`;
|
| 625 |
+
window.open(`https://api.whatsapp.com/send?phone=996709513331&text=${orderText}`, '_blank');
|
| 626 |
}
|
| 627 |
|
| 628 |
function clearCart() {
|
|
|
|
| 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 %}
|