Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def upload_db_to_hf():
|
|
| 64 |
repo_id=REPO_ID,
|
| 65 |
repo_type="dataset",
|
| 66 |
token=HF_TOKEN_WRITE,
|
| 67 |
-
commit_message=f"Автоматическое резервное копирование базы данных {datetime.now().strftime('%Y-%m-%d %H:%M
|
| 68 |
)
|
| 69 |
logging.info("Резервная копия JSON базы успешно загружена на Hugging Face.")
|
| 70 |
except Exception as e:
|
|
@@ -211,8 +211,8 @@ def catalog():
|
|
| 211 |
}
|
| 212 |
.products-grid {
|
| 213 |
display: grid;
|
| 214 |
-
grid-template-columns: repeat(
|
| 215 |
-
gap:
|
| 216 |
padding: 10px;
|
| 217 |
}
|
| 218 |
.product {
|
|
@@ -251,7 +251,7 @@ def catalog():
|
|
| 251 |
transform: scale(1.1);
|
| 252 |
}
|
| 253 |
.product h2 {
|
| 254 |
-
font-size:
|
| 255 |
font-weight: 600;
|
| 256 |
margin: 10px 0;
|
| 257 |
text-align: center;
|
|
@@ -260,14 +260,14 @@ def catalog():
|
|
| 260 |
text-overflow: ellipsis;
|
| 261 |
}
|
| 262 |
.product-price {
|
| 263 |
-
font-size: 1.
|
| 264 |
color: #ef4444;
|
| 265 |
font-weight: 700;
|
| 266 |
text-align: center;
|
| 267 |
margin: 5px 0;
|
| 268 |
}
|
| 269 |
.product-description {
|
| 270 |
-
font-size: 0.
|
| 271 |
color: #718096;
|
| 272 |
text-align: center;
|
| 273 |
margin-bottom: 15px;
|
|
@@ -281,12 +281,12 @@ def catalog():
|
|
| 281 |
.product-button {
|
| 282 |
display: block;
|
| 283 |
width: 100%;
|
| 284 |
-
padding:
|
| 285 |
border: none;
|
| 286 |
border-radius: 8px;
|
| 287 |
background-color: #3b82f6;
|
| 288 |
color: white;
|
| 289 |
-
font-size: 0.
|
| 290 |
font-weight: 500;
|
| 291 |
cursor: pointer;
|
| 292 |
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -314,9 +314,9 @@ def catalog():
|
|
| 314 |
color: white;
|
| 315 |
border: none;
|
| 316 |
border-radius: 50%;
|
| 317 |
-
width:
|
| 318 |
-
height:
|
| 319 |
-
font-size: 1.
|
| 320 |
cursor: pointer;
|
| 321 |
display: none;
|
| 322 |
box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
|
|
@@ -410,34 +410,6 @@ def catalog():
|
|
| 410 |
background-color: #059669;
|
| 411 |
box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
|
| 412 |
}
|
| 413 |
-
@media (max-width: 768px) {
|
| 414 |
-
.products-grid {
|
| 415 |
-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
| 416 |
-
gap: 15px;
|
| 417 |
-
}
|
| 418 |
-
.product h2 {
|
| 419 |
-
font-size: 1rem;
|
| 420 |
-
}
|
| 421 |
-
.product-price {
|
| 422 |
-
font-size: 1.1rem;
|
| 423 |
-
}
|
| 424 |
-
.product-description {
|
| 425 |
-
font-size: 0.8rem;
|
| 426 |
-
}
|
| 427 |
-
.product-button {
|
| 428 |
-
font-size: 0.8rem;
|
| 429 |
-
padding: 8px;
|
| 430 |
-
}
|
| 431 |
-
.header-logo {
|
| 432 |
-
width: 50px;
|
| 433 |
-
height: 50px;
|
| 434 |
-
}
|
| 435 |
-
#cart-button {
|
| 436 |
-
width: 50px;
|
| 437 |
-
height: 50px;
|
| 438 |
-
font-size: 1.2rem;
|
| 439 |
-
}
|
| 440 |
-
}
|
| 441 |
</style>
|
| 442 |
</head>
|
| 443 |
<body>
|
|
|
|
| 64 |
repo_id=REPO_ID,
|
| 65 |
repo_type="dataset",
|
| 66 |
token=HF_TOKEN_WRITE,
|
| 67 |
+
commit_message=f"Автоматическое резервное копирование базы данных {datetime.now().strftime('%Y-%m-%d %H:%M:S')}"
|
| 68 |
)
|
| 69 |
logging.info("Резервная копия JSON базы успешно загружена на Hugging Face.")
|
| 70 |
except Exception as e:
|
|
|
|
| 211 |
}
|
| 212 |
.products-grid {
|
| 213 |
display: grid;
|
| 214 |
+
grid-template-columns: repeat(2, minmax(200px, 1fr)); /* Два столбца по умолчанию на всех устройствах */
|
| 215 |
+
gap: 15px; /* Уменьшаем gap для мобильных устройств */
|
| 216 |
padding: 10px;
|
| 217 |
}
|
| 218 |
.product {
|
|
|
|
| 251 |
transform: scale(1.1);
|
| 252 |
}
|
| 253 |
.product h2 {
|
| 254 |
+
font-size: 1rem; /* Уменьшаем размер текста для всех устройств */
|
| 255 |
font-weight: 600;
|
| 256 |
margin: 10px 0;
|
| 257 |
text-align: center;
|
|
|
|
| 260 |
text-overflow: ellipsis;
|
| 261 |
}
|
| 262 |
.product-price {
|
| 263 |
+
font-size: 1.1rem; /* Уменьшаем размер цены для всех устройств */
|
| 264 |
color: #ef4444;
|
| 265 |
font-weight: 700;
|
| 266 |
text-align: center;
|
| 267 |
margin: 5px 0;
|
| 268 |
}
|
| 269 |
.product-description {
|
| 270 |
+
font-size: 0.8rem; /* Уменьшаем размер описания для всех устройств */
|
| 271 |
color: #718096;
|
| 272 |
text-align: center;
|
| 273 |
margin-bottom: 15px;
|
|
|
|
| 281 |
.product-button {
|
| 282 |
display: block;
|
| 283 |
width: 100%;
|
| 284 |
+
padding: 8px; /* Уменьшаем отступы кнопок для всех устройств */
|
| 285 |
border: none;
|
| 286 |
border-radius: 8px;
|
| 287 |
background-color: #3b82f6;
|
| 288 |
color: white;
|
| 289 |
+
font-size: 0.8rem; /* Уменьшаем размер текста кнопок для всех устройств */
|
| 290 |
font-weight: 500;
|
| 291 |
cursor: pointer;
|
| 292 |
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
| 314 |
color: white;
|
| 315 |
border: none;
|
| 316 |
border-radius: 50%;
|
| 317 |
+
width: 50px;
|
| 318 |
+
height: 50px;
|
| 319 |
+
font-size: 1.2rem;
|
| 320 |
cursor: pointer;
|
| 321 |
display: none;
|
| 322 |
box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
|
|
|
|
| 410 |
background-color: #059669;
|
| 411 |
box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
|
| 412 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 413 |
</style>
|
| 414 |
</head>
|
| 415 |
<body>
|