diff --git a/app/static/css/tailwind.css b/app/static/css/tailwind.css index 0af851c..95b5194 100644 --- a/app/static/css/tailwind.css +++ b/app/static/css/tailwind.css @@ -640,6 +640,14 @@ video { top: 1rem; } +.top-6 { + top: 1.5rem; +} + +.top-5 { + top: 1.25rem; +} + .z-10 { z-index: 10; } @@ -653,6 +661,16 @@ video { margin-right: auto; } +.my-2 { + margin-top: 0.5rem; + margin-bottom: 0.5rem; +} + +.my-3 { + margin-top: 0.75rem; + margin-bottom: 0.75rem; +} + .mb-2 { margin-bottom: 0.5rem; } @@ -774,6 +792,18 @@ video { height: 0.75rem; } +.h-28 { + height: 7rem; +} + +.h-32 { + height: 8rem; +} + +.h-44 { + height: 11rem; +} + .w-16 { width: 4rem; } @@ -806,6 +836,18 @@ video { width: 0.75rem; } +.w-28 { + width: 7rem; +} + +.w-32 { + width: 8rem; +} + +.w-44 { + width: 11rem; +} + .max-w-2xl { max-width: 42rem; } @@ -1178,6 +1220,10 @@ video { padding-top: 1.5rem; } +.pt-2 { + padding-top: 0.5rem; +} + .text-left { text-align: left; } diff --git a/app/templates/add_reading.html b/app/templates/add_reading.html index 14bdf2d..5e54914 100644 --- a/app/templates/add_reading.html +++ b/app/templates/add_reading.html @@ -1,6 +1,15 @@ {% extends "_layout.html" %} {% block content %} -
+
+ + + + + + Back +

Add Reading

{{ form.hidden_tag() }} diff --git a/app/templates/confirm_delete.html b/app/templates/confirm_delete.html index 6e3f1c7..310f77a 100644 --- a/app/templates/confirm_delete.html +++ b/app/templates/confirm_delete.html @@ -1,28 +1,40 @@ {% extends "_layout.html" %} {% block content %} -
-

Confirm Deletion

-

Are you sure you want to delete the following reading?

+
+ + + + + + Back + +

Confirm Deletion

+
+

Are you sure you want to delete the following reading?

- -
-

Timestamp: {{ reading.timestamp.strftime('%d %b %Y, %I:%M %p') }}

-

Systolic: {{ reading.systolic }} mmHg

-

Diastolic: {{ reading.diastolic }} mmHg

-

Heart Rate: {{ reading.heart_rate }} bpm

-
+ +
+

Timestamp: {{ reading.timestamp.strftime('%d %b %Y, %I:%M %p') }}

+

Systolic: {{ reading.systolic }} mmHg

+

Diastolic: {{ reading.diastolic }} mmHg

+

Heart Rate: {{ reading.heart_rate }} bpm

+
- -
- - Cancel - - - - + +
+ + Cancel + +
+ +
+
{% endblock %} \ No newline at end of file diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index ba56b1c..7e63b0f 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -288,7 +288,7 @@ {% for day in range(1, days_in_month + 1) %} {% set current_day = current_date.replace(day=day) %} -
+
{{ current_day.day }}
diff --git a/app/templates/data.html b/app/templates/data.html index 7227872..6529108 100644 --- a/app/templates/data.html +++ b/app/templates/data.html @@ -1,8 +1,17 @@ {% extends "_layout.html" %} {% block content %} -
-

Import/Export Data

+
+ + + + + + Back + +

Import/Export Data

diff --git a/app/templates/edit_reading.html b/app/templates/edit_reading.html index 522e183..bd4173c 100644 --- a/app/templates/edit_reading.html +++ b/app/templates/edit_reading.html @@ -1,9 +1,9 @@ {% extends "_layout.html" %} {% block content %} -
+
- + @@ -22,8 +22,9 @@ -

Edit Reading

-
+

Edit Reading

+ {{ form.hidden_tag() }} diff --git a/app/templates/profile.html b/app/templates/profile.html index 0c75da2..48d8b27 100644 --- a/app/templates/profile.html +++ b/app/templates/profile.html @@ -1,58 +1,71 @@ {% extends "_layout.html" %} {% block content %} -
-

Profile Settings

+
+ + + + + + Back + +

Profile Settings

-
- {% if profile.profile_pic %} - Profile Picture - {% else %} - Default Profile Picture - {% endif %} +
+ +
+ {% if profile.profile_pic %} + Profile Picture + {% else %} + Default Profile Picture + {% endif %} +
+ + + + {{ form.hidden_tag() }} + +
+ {{ form.name.label(class="block text-sm font-medium text-gray-700") }} + {{ form.name(class="w-full p-2 border rounded focus:outline-none focus:ring-2 focus:ring-blue-500") }} +
+ +
+ {{ form.email.label(class="block text-sm font-medium text-gray-700") }} + {{ form.email(class="w-full p-2 border rounded focus:outline-none focus:ring-2 focus:ring-blue-500") }} +
+ +
+ {{ form.profile_pic.label(class="block text-sm font-medium text-gray-700") }} + {{ form.profile_pic(class="w-full p-2 border rounded focus:outline-none focus:ring-2 + focus:ring-blue-500") + }} +
+ +
+ {{ form.systolic_threshold.label(class="block text-sm font-medium text-gray-700") }} + {{ form.systolic_threshold(class="w-full p-2 border rounded focus:outline-none focus:ring-2 + focus:ring-blue-500") }} +
+ +
+ {{ form.diastolic_threshold.label(class="block text-sm font-medium text-gray-700") }} + {{ form.diastolic_threshold(class="w-full p-2 border rounded focus:outline-none focus:ring-2 + focus:ring-blue-500") }} +
+ +
+ {{ form.dark_mode }} + {{ form.dark_mode.label(class="ml-2 text-sm font-medium text-gray-700") }} +
+ +
+ {{ form.submit(class="w-full bg-blue-600 text-white py-2 rounded hover:bg-blue-700") }} +
+
- - -
- {{ form.hidden_tag() }} - -
- {{ form.name.label(class="block text-sm font-medium text-gray-700") }} - {{ form.name(class="w-full p-2 border rounded focus:outline-none focus:ring-2 focus:ring-blue-500") }} -
- -
- {{ form.email.label(class="block text-sm font-medium text-gray-700") }} - {{ form.email(class="w-full p-2 border rounded focus:outline-none focus:ring-2 focus:ring-blue-500") }} -
- -
- {{ form.profile_pic.label(class="block text-sm font-medium text-gray-700") }} - {{ form.profile_pic(class="w-full p-2 border rounded focus:outline-none focus:ring-2 focus:ring-blue-500") - }} -
- -
- {{ form.systolic_threshold.label(class="block text-sm font-medium text-gray-700") }} - {{ form.systolic_threshold(class="w-full p-2 border rounded focus:outline-none focus:ring-2 - focus:ring-blue-500") }} -
- -
- {{ form.diastolic_threshold.label(class="block text-sm font-medium text-gray-700") }} - {{ form.diastolic_threshold(class="w-full p-2 border rounded focus:outline-none focus:ring-2 - focus:ring-blue-500") }} -
- -
- {{ form.dark_mode }} - {{ form.dark_mode.label(class="ml-2 text-sm font-medium text-gray-700") }} -
- -
- {{ form.submit(class="w-full bg-blue-600 text-white py-2 rounded hover:bg-blue-700") }} -
-
{% endblock %} \ No newline at end of file