Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,7 +108,7 @@ def catalog():
|
|
| 108 |
}
|
| 109 |
body {
|
| 110 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 111 |
-
background: linear-gradient(135deg, #
|
| 112 |
color: #ffffff;
|
| 113 |
line-height: 1.6;
|
| 114 |
padding: 20px;
|
|
@@ -117,7 +117,7 @@ def catalog():
|
|
| 117 |
max-width: 1200px;
|
| 118 |
margin: 0 auto;
|
| 119 |
background: rgba(0, 0, 0, 0.1);
|
| 120 |
-
border-radius:
|
| 121 |
padding: 20px;
|
| 122 |
}
|
| 123 |
.logo {
|
|
@@ -129,12 +129,6 @@ def catalog():
|
|
| 129 |
.logo img {
|
| 130 |
width: 50px;
|
| 131 |
height: 50px;
|
| 132 |
-
margin-right: 10px;
|
| 133 |
-
}
|
| 134 |
-
.logo h1 {
|
| 135 |
-
font-size: 2em;
|
| 136 |
-
color: #ffffff;
|
| 137 |
-
font-weight: 700;
|
| 138 |
}
|
| 139 |
.search-container {
|
| 140 |
text-align: center;
|
|
@@ -146,19 +140,19 @@ def catalog():
|
|
| 146 |
padding: 12px;
|
| 147 |
font-size: 1em;
|
| 148 |
border: none;
|
| 149 |
-
border-radius:
|
| 150 |
outline: none;
|
| 151 |
background-color: #ffffff;
|
| 152 |
-
color: #
|
| 153 |
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
| 154 |
}
|
| 155 |
#search-input::placeholder {
|
| 156 |
-
color: #
|
| 157 |
opacity: 0.7;
|
| 158 |
}
|
| 159 |
#search-input:focus {
|
| 160 |
-
border-color: #
|
| 161 |
-
box-shadow: 0 0 8px rgba(
|
| 162 |
}
|
| 163 |
.products-grid {
|
| 164 |
display: grid;
|
|
@@ -168,23 +162,22 @@ def catalog():
|
|
| 168 |
}
|
| 169 |
.product {
|
| 170 |
background: rgba(255, 255, 255, 0.1);
|
| 171 |
-
border-radius:
|
| 172 |
padding: 20px;
|
| 173 |
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 174 |
display: flex;
|
| 175 |
flex-direction: column;
|
| 176 |
-
box-shadow: 0 2px
|
| 177 |
-
backdrop-filter: blur(5px);
|
| 178 |
}
|
| 179 |
.product:hover {
|
| 180 |
transform: translateY(-5px);
|
| 181 |
-
box-shadow: 0 5px
|
| 182 |
}
|
| 183 |
.product-image {
|
| 184 |
width: 200px;
|
| 185 |
height: 200px;
|
| 186 |
background-color: #ffffff;
|
| 187 |
-
border-radius:
|
| 188 |
margin: 0 auto 15px;
|
| 189 |
overflow: hidden;
|
| 190 |
position: relative;
|
|
@@ -212,7 +205,7 @@ def catalog():
|
|
| 212 |
}
|
| 213 |
.product-price {
|
| 214 |
font-size: 1.3em;
|
| 215 |
-
color: #
|
| 216 |
font-weight: 700;
|
| 217 |
margin: 10px 0;
|
| 218 |
text-align: center;
|
|
@@ -225,35 +218,33 @@ def catalog():
|
|
| 225 |
text-align: center;
|
| 226 |
}
|
| 227 |
.product-button {
|
| 228 |
-
background
|
| 229 |
color: #ffffff;
|
| 230 |
padding: 10px 20px;
|
| 231 |
border: none;
|
| 232 |
-
border-radius:
|
| 233 |
cursor: pointer;
|
| 234 |
-
transition: background
|
| 235 |
text-align: center;
|
| 236 |
text-decoration: none;
|
| 237 |
display: block;
|
| 238 |
margin: 5px auto;
|
| 239 |
font-weight: 500;
|
| 240 |
-
border: 2px solid #25D366;
|
| 241 |
}
|
| 242 |
.product-button:hover {
|
| 243 |
-
background
|
| 244 |
-
border-color: #20B956;
|
| 245 |
}
|
| 246 |
.add-to-cart {
|
| 247 |
-
background
|
| 248 |
}
|
| 249 |
.add-to-cart:hover {
|
| 250 |
-
background
|
| 251 |
}
|
| 252 |
#cart-button {
|
| 253 |
position: fixed;
|
| 254 |
bottom: 20px;
|
| 255 |
right: 20px;
|
| 256 |
-
background
|
| 257 |
color: #ffffff;
|
| 258 |
border: none;
|
| 259 |
border-radius: 50%;
|
|
@@ -266,7 +257,7 @@ def catalog():
|
|
| 266 |
z-index: 1000;
|
| 267 |
}
|
| 268 |
#cart-button:hover {
|
| 269 |
-
background
|
| 270 |
}
|
| 271 |
.modal {
|
| 272 |
display: none;
|
|
@@ -288,8 +279,7 @@ def catalog():
|
|
| 288 |
width: 80%;
|
| 289 |
max-width: 600px;
|
| 290 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 291 |
-
border-radius:
|
| 292 |
-
backdrop-filter: blur(5px);
|
| 293 |
color: #ffffff;
|
| 294 |
}
|
| 295 |
@keyframes animatetop {
|
|
@@ -330,25 +320,23 @@ def catalog():
|
|
| 330 |
color: #ffffff;
|
| 331 |
}
|
| 332 |
.clear-cart {
|
| 333 |
-
background
|
| 334 |
margin-top: 10px;
|
| 335 |
margin-right: 10px;
|
| 336 |
-
border-radius:
|
| 337 |
-
border:
|
| 338 |
}
|
| 339 |
.clear-cart:hover {
|
| 340 |
-
background
|
| 341 |
-
border-color: #c0392b;
|
| 342 |
}
|
| 343 |
.order-button {
|
| 344 |
-
background
|
| 345 |
margin-top: 10px;
|
| 346 |
-
border-radius:
|
| 347 |
-
border:
|
| 348 |
}
|
| 349 |
.order-button:hover {
|
| 350 |
-
background
|
| 351 |
-
border-color: #20B956;
|
| 352 |
}
|
| 353 |
@media (max-width: 768px) {
|
| 354 |
body {
|
|
@@ -438,8 +426,7 @@ def catalog():
|
|
| 438 |
<body>
|
| 439 |
<div class="container">
|
| 440 |
<div class="logo">
|
| 441 |
-
<img src="https://
|
| 442 |
-
<h1>Morshen Alpha</h1>
|
| 443 |
</div>
|
| 444 |
<div class="search-container">
|
| 445 |
<input type="text" id="search-input" placeholder="Поиск по названию или описанию...">
|
|
@@ -873,7 +860,7 @@ def admin():
|
|
| 873 |
<style>
|
| 874 |
body {
|
| 875 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 876 |
-
background: linear-gradient(135deg, #
|
| 877 |
color: #ffffff;
|
| 878 |
margin: 20px;
|
| 879 |
line-height: 1.6;
|
|
@@ -882,10 +869,9 @@ def admin():
|
|
| 882 |
max-width: 1200px;
|
| 883 |
margin: 0 auto;
|
| 884 |
background: rgba(255, 255, 255, 0.1);
|
| 885 |
-
border-radius:
|
| 886 |
padding: 20px;
|
| 887 |
-
box-shadow: 0 2px
|
| 888 |
-
backdrop-filter: blur(5px);
|
| 889 |
}
|
| 890 |
h1 {
|
| 891 |
color: #ffffff;
|
|
@@ -903,7 +889,7 @@ def admin():
|
|
| 903 |
background: rgba(255, 255, 255, 0.05);
|
| 904 |
padding: 20px;
|
| 905 |
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 906 |
-
border-radius:
|
| 907 |
margin-bottom: 20px;
|
| 908 |
}
|
| 909 |
label {
|
|
@@ -928,17 +914,15 @@ def admin():
|
|
| 928 |
button {
|
| 929 |
margin-top: 15px;
|
| 930 |
padding: 10px 20px;
|
| 931 |
-
background
|
| 932 |
color: #ffffff;
|
| 933 |
border: none;
|
| 934 |
-
border-radius:
|
| 935 |
cursor: pointer;
|
| 936 |
-
transition: background
|
| 937 |
-
border: 2px solid #25D366;
|
| 938 |
}
|
| 939 |
button:hover {
|
| 940 |
-
background
|
| 941 |
-
border-color: #20B956;
|
| 942 |
}
|
| 943 |
.product-list {
|
| 944 |
margin-top: 20px;
|
|
@@ -948,14 +932,14 @@ def admin():
|
|
| 948 |
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 949 |
padding: 15px;
|
| 950 |
margin-bottom: 10px;
|
| 951 |
-
border-radius:
|
| 952 |
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
| 953 |
}
|
| 954 |
.edit-form {
|
| 955 |
margin-top: 10px;
|
| 956 |
padding: 10px;
|
| 957 |
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 958 |
-
border-radius:
|
| 959 |
background: rgba(255, 255, 255, 0.05);
|
| 960 |
}
|
| 961 |
p, strong {
|
|
|
|
| 108 |
}
|
| 109 |
body {
|
| 110 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 111 |
+
background: linear-gradient(135deg, #1e4a4a, #2e6a6a);
|
| 112 |
color: #ffffff;
|
| 113 |
line-height: 1.6;
|
| 114 |
padding: 20px;
|
|
|
|
| 117 |
max-width: 1200px;
|
| 118 |
margin: 0 auto;
|
| 119 |
background: rgba(0, 0, 0, 0.1);
|
| 120 |
+
border-radius: 5px;
|
| 121 |
padding: 20px;
|
| 122 |
}
|
| 123 |
.logo {
|
|
|
|
| 129 |
.logo img {
|
| 130 |
width: 50px;
|
| 131 |
height: 50px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
}
|
| 133 |
.search-container {
|
| 134 |
text-align: center;
|
|
|
|
| 140 |
padding: 12px;
|
| 141 |
font-size: 1em;
|
| 142 |
border: none;
|
| 143 |
+
border-radius: 5px;
|
| 144 |
outline: none;
|
| 145 |
background-color: #ffffff;
|
| 146 |
+
color: #2e6a6a;
|
| 147 |
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
| 148 |
}
|
| 149 |
#search-input::placeholder {
|
| 150 |
+
color: #2e6a6a;
|
| 151 |
opacity: 0.7;
|
| 152 |
}
|
| 153 |
#search-input:focus {
|
| 154 |
+
border-color: #00b4d8;
|
| 155 |
+
box-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
|
| 156 |
}
|
| 157 |
.products-grid {
|
| 158 |
display: grid;
|
|
|
|
| 162 |
}
|
| 163 |
.product {
|
| 164 |
background: rgba(255, 255, 255, 0.1);
|
| 165 |
+
border-radius: 5px;
|
| 166 |
padding: 20px;
|
| 167 |
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 168 |
display: flex;
|
| 169 |
flex-direction: column;
|
| 170 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
|
|
| 171 |
}
|
| 172 |
.product:hover {
|
| 173 |
transform: translateY(-5px);
|
| 174 |
+
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
|
| 175 |
}
|
| 176 |
.product-image {
|
| 177 |
width: 200px;
|
| 178 |
height: 200px;
|
| 179 |
background-color: #ffffff;
|
| 180 |
+
border-radius: 5px;
|
| 181 |
margin: 0 auto 15px;
|
| 182 |
overflow: hidden;
|
| 183 |
position: relative;
|
|
|
|
| 205 |
}
|
| 206 |
.product-price {
|
| 207 |
font-size: 1.3em;
|
| 208 |
+
color: #00b4d8;
|
| 209 |
font-weight: 700;
|
| 210 |
margin: 10px 0;
|
| 211 |
text-align: center;
|
|
|
|
| 218 |
text-align: center;
|
| 219 |
}
|
| 220 |
.product-button {
|
| 221 |
+
background: linear-gradient(45deg, #00b4d8, #0096c7);
|
| 222 |
color: #ffffff;
|
| 223 |
padding: 10px 20px;
|
| 224 |
border: none;
|
| 225 |
+
border-radius: 5px;
|
| 226 |
cursor: pointer;
|
| 227 |
+
transition: background 0.3s ease;
|
| 228 |
text-align: center;
|
| 229 |
text-decoration: none;
|
| 230 |
display: block;
|
| 231 |
margin: 5px auto;
|
| 232 |
font-weight: 500;
|
|
|
|
| 233 |
}
|
| 234 |
.product-button:hover {
|
| 235 |
+
background: linear-gradient(45deg, #0096c7, #0086b3);
|
|
|
|
| 236 |
}
|
| 237 |
.add-to-cart {
|
| 238 |
+
background: linear-gradient(45deg, #00b4d8, #0096c7);
|
| 239 |
}
|
| 240 |
.add-to-cart:hover {
|
| 241 |
+
background: linear-gradient(45deg, #0096c7, #0086b3);
|
| 242 |
}
|
| 243 |
#cart-button {
|
| 244 |
position: fixed;
|
| 245 |
bottom: 20px;
|
| 246 |
right: 20px;
|
| 247 |
+
background: linear-gradient(45deg, #00b4d8, #0096c7);
|
| 248 |
color: #ffffff;
|
| 249 |
border: none;
|
| 250 |
border-radius: 50%;
|
|
|
|
| 257 |
z-index: 1000;
|
| 258 |
}
|
| 259 |
#cart-button:hover {
|
| 260 |
+
background: linear-gradient(45deg, #0096c7, #0086b3);
|
| 261 |
}
|
| 262 |
.modal {
|
| 263 |
display: none;
|
|
|
|
| 279 |
width: 80%;
|
| 280 |
max-width: 600px;
|
| 281 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 282 |
+
border-radius: 5px;
|
|
|
|
| 283 |
color: #ffffff;
|
| 284 |
}
|
| 285 |
@keyframes animatetop {
|
|
|
|
| 320 |
color: #ffffff;
|
| 321 |
}
|
| 322 |
.clear-cart {
|
| 323 |
+
background: linear-gradient(45deg, #e74c3c, #c0392b);
|
| 324 |
margin-top: 10px;
|
| 325 |
margin-right: 10px;
|
| 326 |
+
border-radius: 5px;
|
| 327 |
+
border: none;
|
| 328 |
}
|
| 329 |
.clear-cart:hover {
|
| 330 |
+
background: linear-gradient(45deg, #c0392b, #a32f2f);
|
|
|
|
| 331 |
}
|
| 332 |
.order-button {
|
| 333 |
+
background: linear-gradient(45deg, #00b4d8, #0096c7);
|
| 334 |
margin-top: 10px;
|
| 335 |
+
border-radius: 5px;
|
| 336 |
+
border: none;
|
| 337 |
}
|
| 338 |
.order-button:hover {
|
| 339 |
+
background: linear-gradient(45deg, #0096c7, #0086b3);
|
|
|
|
| 340 |
}
|
| 341 |
@media (max-width: 768px) {
|
| 342 |
body {
|
|
|
|
| 426 |
<body>
|
| 427 |
<div class="container">
|
| 428 |
<div class="logo">
|
| 429 |
+
<img src="https://morshen-alpha-static.hf.space/file=morshen-alpha-static/logo.png" alt="Logo">
|
|
|
|
| 430 |
</div>
|
| 431 |
<div class="search-container">
|
| 432 |
<input type="text" id="search-input" placeholder="Поиск по названию или описанию...">
|
|
|
|
| 860 |
<style>
|
| 861 |
body {
|
| 862 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 863 |
+
background: linear-gradient(135deg, #1e4a4a, #2e6a6a);
|
| 864 |
color: #ffffff;
|
| 865 |
margin: 20px;
|
| 866 |
line-height: 1.6;
|
|
|
|
| 869 |
max-width: 1200px;
|
| 870 |
margin: 0 auto;
|
| 871 |
background: rgba(255, 255, 255, 0.1);
|
| 872 |
+
border-radius: 5px;
|
| 873 |
padding: 20px;
|
| 874 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
|
|
| 875 |
}
|
| 876 |
h1 {
|
| 877 |
color: #ffffff;
|
|
|
|
| 889 |
background: rgba(255, 255, 255, 0.05);
|
| 890 |
padding: 20px;
|
| 891 |
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 892 |
+
border-radius: 5px;
|
| 893 |
margin-bottom: 20px;
|
| 894 |
}
|
| 895 |
label {
|
|
|
|
| 914 |
button {
|
| 915 |
margin-top: 15px;
|
| 916 |
padding: 10px 20px;
|
| 917 |
+
background: linear-gradient(45deg, #00b4d8, #0096c7);
|
| 918 |
color: #ffffff;
|
| 919 |
border: none;
|
| 920 |
+
border-radius: 5px;
|
| 921 |
cursor: pointer;
|
| 922 |
+
transition: background 0.3s ease;
|
|
|
|
| 923 |
}
|
| 924 |
button:hover {
|
| 925 |
+
background: linear-gradient(45deg, #0096c7, #0086b3);
|
|
|
|
| 926 |
}
|
| 927 |
.product-list {
|
| 928 |
margin-top: 20px;
|
|
|
|
| 932 |
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 933 |
padding: 15px;
|
| 934 |
margin-bottom: 10px;
|
| 935 |
+
border-radius: 5px;
|
| 936 |
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
| 937 |
}
|
| 938 |
.edit-form {
|
| 939 |
margin-top: 10px;
|
| 940 |
padding: 10px;
|
| 941 |
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 942 |
+
border-radius: 5px;
|
| 943 |
background: rgba(255, 255, 255, 0.05);
|
| 944 |
}
|
| 945 |
p, strong {
|