Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
|
| 2 |
-
|
| 3 |
from flask import Flask, render_template_string, request, redirect, url_for, send_file, flash, jsonify
|
| 4 |
import json
|
| 5 |
import os
|
|
@@ -217,7 +216,7 @@ CATALOG_TEMPLATE = '''
|
|
| 217 |
.container { max-width: 1300px; margin: 0 auto; padding: 20px; }
|
| 218 |
.header { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #444; }
|
| 219 |
.header h1 { font-size: 1.8rem; font-weight: 600; color: #ffcc00; display: flex; align-items: center;}
|
| 220 |
-
.header img { height: 40px; margin-right: 10px;}
|
| 221 |
.store-address { padding: 15px; text-align: center; background-color: #2a2a2a; margin: 20px 0; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); font-size: 1rem; color: #ccc; border: 1px solid #444;}
|
| 222 |
.filters-container { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
|
| 223 |
.search-container { margin: 20px 0; text-align: center; }
|
|
@@ -903,7 +902,7 @@ ADMIN_TEMPLATE = '''
|
|
| 903 |
.header { padding-bottom: 15px; margin-bottom: 25px; border-bottom: 1px solid #444; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;}
|
| 904 |
h1, h2, h3 { font-weight: 600; color: #ffcc00; margin-bottom: 15px; }
|
| 905 |
h1 { font-size: 1.8rem; display: flex; align-items: center; gap: 10px;}
|
| 906 |
-
h1 img { height: 40px; }
|
| 907 |
h2 { font-size: 1.5rem; margin-top: 30px; display: flex; align-items: center; gap: 8px; }
|
| 908 |
h3 { font-size: 1.2rem; color: #ffcc00; margin-top: 20px; }
|
| 909 |
.section { margin-bottom: 30px; padding: 20px; background-color: #333; border: 1px solid #444; border-radius: 8px; }
|
|
@@ -1171,7 +1170,7 @@ ADMIN_TEMPLATE = '''
|
|
| 1171 |
{% endfor %}
|
| 1172 |
{% else %}
|
| 1173 |
<div class="color-input-group">
|
| 1174 |
-
<input type="text" name="colors" placeholder="Например:
|
| 1175 |
<button type="button" class="remove-color-btn" onclick="removeColorInput(this)"><i class="fas fa-times"></i></button>
|
| 1176 |
</div>
|
| 1177 |
{% endif %}
|
|
@@ -1709,5 +1708,3 @@ if __name__ == '__main__':
|
|
| 1709 |
port = int(os.environ.get('PORT', 7860))
|
| 1710 |
logging.info(f"Starting Flask app on host 0.0.0.0 and port {port}")
|
| 1711 |
app.run(debug=False, host='0.0.0.0', port=port)
|
| 1712 |
-
|
| 1713 |
-
|
|
|
|
| 1 |
|
|
|
|
| 2 |
from flask import Flask, render_template_string, request, redirect, url_for, send_file, flash, jsonify
|
| 3 |
import json
|
| 4 |
import os
|
|
|
|
| 216 |
.container { max-width: 1300px; margin: 0 auto; padding: 20px; }
|
| 217 |
.header { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #444; }
|
| 218 |
.header h1 { font-size: 1.8rem; font-weight: 600; color: #ffcc00; display: flex; align-items: center;}
|
| 219 |
+
.header img { height: 40px; margin-right: 10px; border-radius: 50%;}
|
| 220 |
.store-address { padding: 15px; text-align: center; background-color: #2a2a2a; margin: 20px 0; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); font-size: 1rem; color: #ccc; border: 1px solid #444;}
|
| 221 |
.filters-container { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
|
| 222 |
.search-container { margin: 20px 0; text-align: center; }
|
|
|
|
| 902 |
.header { padding-bottom: 15px; margin-bottom: 25px; border-bottom: 1px solid #444; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;}
|
| 903 |
h1, h2, h3 { font-weight: 600; color: #ffcc00; margin-bottom: 15px; }
|
| 904 |
h1 { font-size: 1.8rem; display: flex; align-items: center; gap: 10px;}
|
| 905 |
+
h1 img { height: 40px; border-radius: 50%; }
|
| 906 |
h2 { font-size: 1.5rem; margin-top: 30px; display: flex; align-items: center; gap: 8px; }
|
| 907 |
h3 { font-size: 1.2rem; color: #ffcc00; margin-top: 20px; }
|
| 908 |
.section { margin-bottom: 30px; padding: 20px; background-color: #333; border: 1px solid #444; border-radius: 8px; }
|
|
|
|
| 1170 |
{% endfor %}
|
| 1171 |
{% else %}
|
| 1172 |
<div class="color-input-group">
|
| 1173 |
+
<input type="text" name="colors" placeholder="Например: Цвет">
|
| 1174 |
<button type="button" class="remove-color-btn" onclick="removeColorInput(this)"><i class="fas fa-times"></i></button>
|
| 1175 |
</div>
|
| 1176 |
{% endif %}
|
|
|
|
| 1708 |
port = int(os.environ.get('PORT', 7860))
|
| 1709 |
logging.info(f"Starting Flask app on host 0.0.0.0 and port {port}")
|
| 1710 |
app.run(debug=False, host='0.0.0.0', port=port)
|
|
|
|
|
|