From cfff4b15d03cf548680200e6624b3ce63c8f211a Mon Sep 17 00:00:00 2001 From: Stef Date: Sun, 29 Jun 2025 09:11:20 +0200 Subject: [PATCH] Add theme toggle and admin nav link, update styles Introduced a dark/light theme toggle with persistent user preference using localStorage. Updated base template to use Bootstrap's theme system, adjusted body background class, and added a conditional 'Food Items' nav link for admins. Simplified scan page header text. --- application/templates/base.html | 32 +++++++++++++++++++++++++------- application/templates/scan.html | 4 ++-- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/application/templates/base.html b/application/templates/base.html index 72b110e..60d714b 100644 --- a/application/templates/base.html +++ b/application/templates/base.html @@ -1,5 +1,5 @@ - + @@ -10,8 +10,7 @@ - - + @@ -55,9 +57,25 @@ {% endif %} {% endwith %} - {% block content %}{% endblock %} + {% block content %} + {% endblock %} + + diff --git a/application/templates/scan.html b/application/templates/scan.html index eac628c..023c84f 100644 --- a/application/templates/scan.html +++ b/application/templates/scan.html @@ -3,8 +3,8 @@ {% block content %}
-

📷 ZXing Barcode Scanner

-

Use your camera to scan barcodes in real time.

+

Barcode Scanner

+

Use your camera to scan barcodes