diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 6abdf0f..aeea159 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/templates/core/blood_request_list.html b/core/templates/core/blood_request_list.html index 86d24d8..f76c069 100644 --- a/core/templates/core/blood_request_list.html +++ b/core/templates/core/blood_request_list.html @@ -11,10 +11,30 @@ font-size: 0.7rem; font-weight: 700; text-transform: uppercase; + display: inline-flex; + align-items: center; + gap: 5px; } - .bg-critical { background: #FF4D4D; color: #fff; } + .bg-critical { background: #FF4D4D; color: #fff; box-shadow: 0 0 10px rgba(255, 77, 77, 0.4); } .bg-urgent { background: #FFA500; color: #000; } .bg-normal { background: #4CAF50; color: #fff; } + + .request-card { + border-left: 5px solid transparent !important; + transition: all 0.3s ease; + } + .request-card.border-critical { border-left-color: #FF4D4D !important; } + .request-card.border-urgent { border-left-color: #FFA500 !important; } + .request-card.border-normal { border-left-color: #4CAF50 !important; } + + @keyframes pulse-red { + 0% { transform: scale(1); opacity: 1; } + 50% { transform: scale(1.1); opacity: 0.8; } + 100% { transform: scale(1); opacity: 1; } + } + .pulse-icon { + animation: pulse-red 2s infinite ease-in-out; + }
@@ -32,10 +52,19 @@
{% for req in requests %}
-
+
- {{ req.urgency }} + + {% if req.urgency == 'CRITICAL' %} + + {% elif req.urgency == 'URGENT' %} + + {% else %} + + {% endif %} + {{ req.urgency }} + {% if req.status == 'Active' %} Active {% else %} @@ -76,11 +105,11 @@ {% endif %} {% if user.is_authenticated and user.donor_profile and req.user != user %} - {% if can_volunteer %} + {% if req.can_volunteer %} Volunteer {% else %} - {% endif %} {% endif %} diff --git a/core/templates/core/index.html b/core/templates/core/index.html index d7a3b4b..1fc249b 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -77,11 +77,32 @@ font-size: 0.7rem; font-weight: 700; text-transform: uppercase; + display: inline-flex; + align-items: center; + gap: 5px; } - .bg-critical { background: #FF4D4D; color: #fff; } + .bg-critical { background: #FF4D4D; color: #fff; box-shadow: 0 0 10px rgba(255, 77, 77, 0.4); } .bg-urgent { background: #FFA500; color: #000; } .bg-normal { background: #4CAF50; color: #fff; } + .request-item { + border-left: 4px solid transparent; + transition: all 0.3s ease; + padding-left: 12px; + } + .request-item.border-critical { border-left-color: #FF4D4D; background: rgba(255, 77, 77, 0.03); } + .request-item.border-urgent { border-left-color: #FFA500; background: rgba(255, 165, 0, 0.03); } + .request-item.border-normal { border-left-color: #4CAF50; background: rgba(76, 175, 80, 0.03); } + + @keyframes pulse-red { + 0% { transform: scale(1); opacity: 1; } + 50% { transform: scale(1.1); opacity: 0.8; } + 100% { transform: scale(1); opacity: 1; } + } + .pulse-icon { + animation: pulse-red 2s infinite ease-in-out; + } + .progress { background-color: #2A2A2A; border-radius: 10px; @@ -153,7 +174,13 @@
-

{% trans "RaktaPulse Community Dashboard" %}

+
+

{% trans "RaktaPulse Community Dashboard" %}

+ + + SYSTEM ONLINE + +

{% trans "Overview of blood donation activity and requirements in your area." %}

{% if user.is_authenticated and user_badges %} @@ -380,6 +407,14 @@
+ +
+
Urgency Distribution
+
+ +
+
+
@@ -396,9 +431,18 @@
{% for req in blood_requests %} -
+
- {{ req.urgency }} + + {% if req.urgency == 'CRITICAL' %} + + {% elif req.urgency == 'URGENT' %} + + {% else %} + + {% endif %} + {{ req.urgency }} + {{ req.blood_group }}
{{ req.patient_name }}
@@ -473,7 +517,61 @@ {% endblock %} {% block scripts %} +