From 1ce680f126def780d8fca679aa4ad59bb483788d Mon Sep 17 00:00:00 2001 From: Aadhil Ahamed Date: Fri, 27 Dec 2024 22:26:37 +0530 Subject: [PATCH 1/7] Refactored CSS in src/screens/OrganizationEvents/OrganizationEvents.tsx --- .../OrganizationEvents.module.css | 389 ------------------ .../OrganizationEvents/OrganizationEvents.tsx | 32 +- src/style/app.module.css | 98 ++++- 3 files changed, 113 insertions(+), 406 deletions(-) delete mode 100644 src/screens/OrganizationEvents/OrganizationEvents.module.css diff --git a/src/screens/OrganizationEvents/OrganizationEvents.module.css b/src/screens/OrganizationEvents/OrganizationEvents.module.css deleted file mode 100644 index c26c074634..0000000000 --- a/src/screens/OrganizationEvents/OrganizationEvents.module.css +++ /dev/null @@ -1,389 +0,0 @@ -.navbarbg { - height: 60px; - background-color: white; - display: flex; - margin-bottom: 30px; - z-index: 1; - position: relative; - flex-direction: row; - justify-content: space-between; - box-shadow: 0px 0px 8px 2px #c8c8c8; -} - -.logo { - color: #707070; - margin-left: 0; - display: flex; - align-items: center; - text-decoration: none; -} - -.logo img { - margin-top: 0px; - margin-left: 10px; - height: 64px; - width: 70px; -} - -.logo > strong { - line-height: 1.5rem; - margin-left: -5px; - font-family: sans-serif; - font-size: 19px; - color: #707070; -} - -.mainpage { - display: flex; - flex-direction: row; -} - -.sidebar:after { - background-color: #f7f7f7; - position: absolute; - width: 2px; - height: 600px; - top: 10px; - left: 94%; - display: block; -} - -.navitem { - padding-left: 27%; - padding-top: 12px; - padding-bottom: 12px; - cursor: pointer; -} - -.logintitle { - color: #707070; - font-weight: 600; - font-size: 20px; - margin-bottom: 30px; - padding-bottom: 5px; - border-bottom: 3px solid #eaebef; - width: 15%; -} - -.logintitleadmin { - color: #707070; - font-weight: 600; - font-size: 18px; - margin-top: 50px; - margin-bottom: 40px; - padding-bottom: 5px; - border-bottom: 3px solid #eaebef; - width: 30%; -} - -.admindetails { - display: flex; - justify-content: space-between; -} - -.admindetails > p { - margin-top: -12px; - margin-right: 30px; -} - -.mainpageright > hr { - margin-top: 20px; - width: 100%; - margin-left: -15px; - margin-right: -15px; - margin-bottom: 20px; -} - -.justifysp { - display: block; - justify-content: space-between; - margin-top: 20px; -} - -.addbtn { - border: 1px solid #e8e5e5; - box-shadow: 0 2px 2px #e8e5e5; - border-radius: 5px; - font-size: 16px; - height: 60%; - color: white; - outline: none; - font-weight: 600; - cursor: pointer; - transition: - transform 0.2s, - box-shadow 0.2s; -} - -.flexdir { - display: flex; - flex-direction: row; - justify-content: space-between; - border: none; -} - -.form_wrapper { - margin-top: 27px; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - position: absolute; - display: flex; - flex-direction: column; - padding: 40px 30px; - background: #ffffff; - border-color: #e8e5e5; - border-width: 5px; - border-radius: 10px; - max-height: 86vh; - overflow: auto; -} - -.form_wrapper form { - display: flex; - align-items: left; - justify-content: left; - flex-direction: column; -} - -.logintitleinvite { - color: #707070; - font-weight: 600; - font-size: 20px; - margin-bottom: 20px; - padding-bottom: 5px; - border-bottom: 3px solid #eaebef; - width: 40%; -} - -.titlemodal { - color: #707070; - font-weight: 600; - font-size: 20px; - margin-bottom: 20px; - padding-bottom: 5px; - border-bottom: 3px solid #eaebef; - width: 65%; -} - -.closeButton { - color: var(--delete-button-color); - margin-right: 5px; - background-color: var(--delete-button-bg); - border: white; -} - -.closeButton:hover { - color: var(--delete-button-bg) !important; - background-color: var(--delete-button-color) !important; - border: white; -} - -.cancel > i { - margin-top: 5px; - transform: scale(1.2); - cursor: pointer; - color: #707070; -} - -.modalbody { - width: 50px; -} - -.greenregbtn { - margin: 1rem 0 0; - margin-top: 15px; - border: 1px solid #e8e5e5; - box-shadow: 0 2px 2px #e8e5e5; - padding: 10px 10px; - border-radius: 5px; - background-color: #eaebef; - width: 100%; - font-size: 16px; - color: white; - outline: none; - font-weight: 600; - cursor: pointer; - transition: - transform 0.2s, - box-shadow 0.2s; - width: 100%; -} - -.datediv { - display: flex; - flex-direction: row; - margin-bottom: 15px; -} - -.datebox { - width: 90%; - border-radius: 7px; - border-color: #e8e5e5; - outline: none; - box-shadow: none; - padding-top: 2px; - padding-bottom: 2px; - padding-right: 5px; - padding-left: 5px; - margin-right: 5px; - margin-left: 5px; -} - -.checkboxdiv > label { - margin-right: 50px; -} - -.checkboxdiv > label > input { - margin-left: 10px; -} - -.loader, -.loader:after { - border-radius: 50%; - width: 10em; - height: 10em; -} - -.loader { - margin: 60px auto; - margin-top: 35vh !important; - font-size: 10px; - position: relative; - text-indent: -9999em; - border-top: 1.1em solid rgba(255, 255, 255, 0.2); - border-right: 1.1em solid rgba(255, 255, 255, 0.2); - border-bottom: 1.1em solid rgba(255, 255, 255, 0.2); - border-left: 1.1em solid #febc59; - -webkit-transform: translateZ(0); - -ms-transform: translateZ(0); - transform: translateZ(0); - -webkit-animation: load8 1.1s infinite linear; - animation: load8 1.1s infinite linear; -} - -@-webkit-keyframes load8 { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes load8 { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -.dispflex { - display: flex; - align-items: center; - justify-content: space-between; -} - -.dispflex > input { - border: none; - box-shadow: none; - margin-top: 5px; -} - -.checkboxdiv { - display: flex; - margin-bottom: 5px; -} - -.checkboxdiv > div { - width: 50%; -} - -.recurrenceRuleNumberInput { - width: 70px; -} - -.recurrenceRuleDateBox { - width: 70%; -} - -.recurrenceDayButton { - width: 33px; - height: 33px; - border: 1px solid var(--bs-gray); - cursor: pointer; - transition: background-color 0.3s; - display: inline-flex; - justify-content: center; - align-items: center; - margin-right: 0.5rem; - border-radius: 50%; -} - -.recurrenceDayButton:hover { - background-color: var(--bs-gray); -} - -.recurrenceDayButton.selected { - background-color: var(--bs-primary); - border-color: var(--bs-primary); - color: var(--bs-white); -} - -.recurrenceDayButton span { - color: var(--bs-gray); - padding: 0.25rem; - text-align: center; -} - -.recurrenceDayButton:hover span { - color: var(--bs-white); -} - -.recurrenceDayButton.selected span { - color: var(--bs-white); -} - -.recurrenceRuleSubmitBtn { - margin-left: 82%; - padding: 7px 15px; -} - -.createButton { - background-color: #a8c7fa !important; - color: black !important; - margin: 1rem 0 0; - margin-top: 15px; - padding: 10px 10px; - border-radius: 5px; - font-size: 16px; - outline: none; - font-weight: 600; - cursor: pointer; - transition: - transform 0.2s, - box-shadow 0.2s; - width: 100%; - border: 1px solid var(--dropdown-border-color); -} - -.createButton:hover { - background-color: #286fe0 !important; - color: black !important; - border: 1px solid var(--dropdown-border-color) !important; -} - -@media only screen and (max-width: 600px) { - .form_wrapper { - width: 90%; - top: 45%; - } -} diff --git a/src/screens/OrganizationEvents/OrganizationEvents.tsx b/src/screens/OrganizationEvents/OrganizationEvents.tsx index 12abb3e74a..302e1d590b 100644 --- a/src/screens/OrganizationEvents/OrganizationEvents.tsx +++ b/src/screens/OrganizationEvents/OrganizationEvents.tsx @@ -7,7 +7,7 @@ import { toast } from 'react-toastify'; import { useTranslation } from 'react-i18next'; import EventCalendar from 'components/EventCalendar/EventCalendar'; import { TimePicker, DatePicker } from '@mui/x-date-pickers'; -import styles from './OrganizationEvents.module.css'; +import styles from '../../style/app.module.css'; import { ORGANIZATION_EVENT_CONNECTION_LIST, ORGANIZATIONS_LIST, @@ -261,7 +261,7 @@ function organizationEvents(): JSX.Element { return ( <>
-
+
-

{t('eventDetails')}

+

+ {t('eventDetails')} +