From 01c67a214e4be4bd0b8a47d92a9f64aac425b867 Mon Sep 17 00:00:00 2001
From: mohamedrehan1 <77732921+mohamedrehan1@users.noreply.github.com>
Date: Sat, 28 Dec 2024 14:46:02 +0200
Subject: [PATCH] Refactor CSS in
src/components/EventManagement/EventAttendance/EventStatistics.tsx
---
.../EventAttendance/EventStatistics.tsx | 44 +++++--------------
src/style/app.module.css | 37 ++++++++++++++++
2 files changed, 47 insertions(+), 34 deletions(-)
diff --git a/src/components/EventManagement/EventAttendance/EventStatistics.tsx b/src/components/EventManagement/EventAttendance/EventStatistics.tsx
index 686ad049fa..9136f7c0b1 100644
--- a/src/components/EventManagement/EventAttendance/EventStatistics.tsx
+++ b/src/components/EventManagement/EventAttendance/EventStatistics.tsx
@@ -30,6 +30,7 @@ import type {
InterfaceEvent,
InterfaceRecurringEvent,
} from './InterfaceEvents';
+import styles from '../../../style/app.module.css';
ChartJS.register(
CategoryScale,
LinearScale,
@@ -376,34 +377,25 @@ export const AttendanceStatisticsModal: React.FC<
id="pdf-content"
>
{isEventRecurring ? (
@@ -455,23 +447,13 @@ export const AttendanceStatisticsModal: React.FC<
) : (
-
+
{statistics.totalMembers}
@@ -530,13 +512,7 @@ export const AttendanceStatisticsModal: React.FC<
}}
/>
diff --git a/src/style/app.module.css b/src/style/app.module.css
index 448b80bd88..a24c3e6f2c 100644
--- a/src/style/app.module.css
+++ b/src/style/app.module.css
@@ -3423,3 +3423,40 @@ button[data-testid='createPostBtn'] {
opacity: 1;
}
}
+
+.attendance-modal .borderRightGreen {
+ border-right: 1px solid green;
+}
+.attendance-modal .positionedTopRight {
+ top: 10px;
+ right: 15px;
+ z-index: 1;
+}
+.attendance-modal .topRightCorner {
+ position: absolute;
+ right: 0;
+ top: 0;
+ border-bottom-left-radius: 8px;
+}
+.attendance-modal .bottomRightCorner {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ border-top-left-radius: 12px;
+}
+.attendance-modal .topLeftCorner {
+ position: absolute;
+ left: 0;
+ top: 0;
+ border-bottom-right-radius: 8px;
+}
+.attendance-modal .largeBoldText {
+ font-size: 80px;
+ font-weight: 400;
+}
+.attendance-modal .paddingBottom30 {
+ padding-bottom: 30px;
+}
+.attendance-modal .paddingBottom2Rem {
+ padding-bottom: 2rem;
+}