diff --git a/src/Run.py b/src/Run.py index 46f7972..5912db3 100644 --- a/src/Run.py +++ b/src/Run.py @@ -219,6 +219,12 @@ def delete_nutrition(): conn.close() +@app.route('/random') +def random_page(): + # Diese Route gibt die HTML-Seite 'random.html' zurück + return render_template('random.html') + + exposed_app = ProxyFix(app, x_for=1, x_host=1) diff --git a/src/static/style.css b/src/static/style.css index c52bc19..9271201 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -260,7 +260,7 @@ button#remove-button { background-repeat: no-repeat; /* Verhindert das Wiederholen des Bildes */ background-position: center; /* Zentriert das Bild im Button */ color: transparent; /* Macht den Text unsichtbar, damit nur das Bild sichtbar ist */ - width: 62px; /* Setzt die Breite automatisch entsprechend des Inhalts */ + width: 70px; /* Setzt die Breite automatisch entsprechend des Inhalts */ height: 85px; /* Passt die Höhe an, um das Bild vollständig anzuzeigen */ padding: 10px 20px; /* Hinzufügen von etwas Platz um das Bild */ } diff --git a/src/templates/index.html b/src/templates/index.html index 7db9f6f..f8cac43 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -301,7 +301,7 @@ function updateTotalNutrition() { - +
Lebensmittel | diff --git a/src/templates/nutrition.html b/src/templates/nutrition.html index 6bf5008..b9de6df 100644 --- a/src/templates/nutrition.html +++ b/src/templates/nutrition.html @@ -173,7 +173,7 @@ } function openImagePage() { - window.open('random.html', '_blank'); // Öffnet die neue Seite in einem neuen Tab + window.open('random', '_blank'); // Öffnet die neue Seite in einem neuen Tab }
---|