From ecde4b3da0cc243b41982720c55f94dcc4ec276b Mon Sep 17 00:00:00 2001 From: Pravin030399 Date: Sat, 25 May 2024 12:00:34 +0800 Subject: [PATCH] add css and improve UI --- dashboard/static/css/dashboard.css | 41 ++++++++++++++++++++++++++++++ dashboard/templates/dashboard.html | 16 +++++++----- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/dashboard/static/css/dashboard.css b/dashboard/static/css/dashboard.css index 4958490..9749eed 100644 --- a/dashboard/static/css/dashboard.css +++ b/dashboard/static/css/dashboard.css @@ -1,3 +1,44 @@ +/* dashboard.css */ + +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.card { + background-color: #191313; + border-radius: 10px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + padding: 20px; + margin: 3.5 auto; + background-color: #171111; + background-image: linear-gradient(to bottom, #ffffff, #f0f0f0); + border: 1px solid #e0e0e0; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.card:hover { + transform: translateY(-5px); + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); +} + +#popularItems { + list-style: none; + padding: 0; +} + +#popularItems li { + padding: 8px 0; + border-bottom: 1px solid #eee; + font-size: 16px; + color: #555555; +} + +#popularItems li:last-child { + border-bottom: none; +} + .dashboard-container { padding: 20px; background-color: #f5f5f5; diff --git a/dashboard/templates/dashboard.html b/dashboard/templates/dashboard.html index b8a12a2..ae12061 100644 --- a/dashboard/templates/dashboard.html +++ b/dashboard/templates/dashboard.html @@ -2,6 +2,10 @@ {% load static %} +{% block css_files %} + +{% endblock %} + {% block content %}
@@ -10,29 +14,29 @@

Dashboard

-

Total Orders

0

-

Total Accepted

0

-

Total Rejected

0

-

Total Revenue

RM 0.00

-

Popular Menu Items

    @@ -49,7 +53,7 @@

    Popular Menu Item

-

Revenue Chart (Monthly)