diff --git a/app.py b/app.py index abfc228..93aaf2d 100644 --- a/app.py +++ b/app.py @@ -151,6 +151,20 @@ def api_images(): valid_images = [img for img in images if is_image_valid(os.path.join(app.config['UPLOAD_FOLDER'], img))] return jsonify(valid_images) +@app.route('/dump') +def dump(): + if not session.get('logged_in'): + return redirect(url_for('login')) + + dump_folder = 'dump_images' # Folder to store dump images + images = sorted( + os.listdir(dump_folder), + key=lambda x: os.path.getctime(os.path.join(dump_folder, x)), + reverse=True + ) + valid_images = [img for img in images if is_image_valid(os.path.join(dump_folder, img))] + return render_template('dump.html', images=valid_images) + def emit_gallery_update(): socketio.emit('update_gallery') diff --git a/static/gallery_styles.css b/static/gallery_styles.css index 50a5389..6a612d9 100644 --- a/static/gallery_styles.css +++ b/static/gallery_styles.css @@ -15,6 +15,29 @@ h1 { font-size: 24px; text-align: center; } +.button-container { + display: flex; + justify-content: center; + gap: 10px; + margin-bottom: 20px; + padding: 20px; +} +.button { + padding: 10px 50px; + background-color: #ebbbff; + color: #fff; + border: none; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s, transform 0.2s; + font-size: 16px; + text-decoration: none; + text-align: center; +} +.button:hover { + background-color: #e099ff; + transform: scale(1.02); +} .gallery-container { display: flex; flex-direction: column; diff --git a/templates/dump.html b/templates/dump.html new file mode 100644 index 0000000..5b2286b --- /dev/null +++ b/templates/dump.html @@ -0,0 +1,22 @@ + + + + Pumpkin Gallery🎃 + + + + +
+ 🤺🤺🤺 + 🎃🎃🎃 +
+

Pumpkin Gallery🎃

+ + + \ No newline at end of file diff --git a/templates/gallery.html b/templates/gallery.html index 5756b2b..90c974d 100644 --- a/templates/gallery.html +++ b/templates/gallery.html @@ -1,13 +1,17 @@ - Image Gallery + Fencing Gallery🤺 -

Image Gallery

+
+ 🤺🤺🤺 + 🎃🎃🎃 +
+

Fencing Gallery🤺