From 1d4073c04aac11226fa3394ba84a745ed427d1cd Mon Sep 17 00:00:00 2001 From: Gunther6070 Date: Sat, 5 Apr 2025 23:26:11 -0400 Subject: Updated dashboard styling --- .../components/dashboard/dashboard.component.css | 28 ++++++++++++++++++++ .../components/dashboard/dashboard.component.html | 30 +++++++++++++++------- 2 files changed, 49 insertions(+), 9 deletions(-) diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.css b/ufund-ui/src/app/components/dashboard/dashboard.component.css index 742a151..303b890 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.css +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.css @@ -9,3 +9,31 @@ flex-direction: column; gap: 10px; } + +#stats { + display: flex; + flex-direction: row; + gap: 10px; +} + +.card { + background-color: #2e2e2e; + width: 400px; + height: 130px; + border-radius: 5px; + padding: 20px; + display: flex; + flex-direction: column; + +} + +.listCard { + background-color: #2e2e2e; + border-radius: 5px; + padding: 10px; + +} + +.content { + align-self: end; +} diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.html b/ufund-ui/src/app/components/dashboard/dashboard.component.html index 074ca76..233096a 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.html +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.html @@ -1,15 +1,27 @@
@if ((authService.getCurrentUserSubject() | async)?.type === userType.MANAGER) {

Admin Dashboard

- _ Registered users - {{count | async}} - _ Fulfilled needs - - _ Most fulfilled needs - - _ Total monetary contributions - ${{totalDonations | async}} - _ +
+
+ Registered users +

{{count | async}}

+
+ +
+ Total monetary contributions +

${{totalDonations | async}}

+
+
+ +
+ Fulfilled needs + +
+
+ Most fulfilled needs + +
+ } @else {

Unauthorized

This page requires you to be logged in as an admin! Log In -- cgit v1.2.3