Skip to content

Commit 7ea0941

Browse files
committed
fixed merge errors
1 parent e695fa9 commit 7ea0941

2 files changed

Lines changed: 51 additions & 69 deletions

File tree

src/components/CommunityPortal/Activities/ActivityList.jsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,14 @@ function ActivityList() {
111111
});
112112

113113
return (
114-
<div className={`${styles.activityListContainer} ${darkMode ? 'bg-oxford-blue' : ''}`}>
114+
<div
115+
className={`${styles.activityListContainer} ${
116+
darkMode ? styles.activityListContainerDark : ''
117+
}`}
118+
>
115119
<h1 className={`${styles.heading} ${darkMode ? 'text-light' : ''}`}>Activity List</h1>
116120

117-
<div className={`${styles.filters} ${darkMode ? styles.darkModeFilters : ''}`}>
121+
<div className={`${darkMode ? styles.darkModeFilters : styles.filters}`}>
118122
<label className={darkMode ? 'text-light' : ''}>
119123
Type:
120124
<input
@@ -203,7 +207,9 @@ function ActivityList() {
203207
type="button"
204208
onClick={handleClearFilters}
205209
disabled={!filter.type && !filter.date && !filter.location}
206-
className={`${styles.clearFiltersButton} ${darkMode ? styles.clearFiltersButtonDark : ''}`}
210+
className={`${styles.clearFiltersButton} ${
211+
darkMode ? styles.clearFiltersButtonDark : ''
212+
}`}
207213
>
208214
Clear All
209215
</button>

src/components/CommunityPortal/Activities/ActivityList.module.css

Lines changed: 42 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
/* ===== ORIGINAL STYLES (UNCHANGED) ===== */
2-
3-
/* Activity List Container */
41
.activityListContainer {
52
padding: 20px;
63
min-height: calc(100vh - 140px);
74
}
85

9-
/* Dark mode follows Dashboard pattern using bg-oxford-blue */
10-
.activityListContainer:global(.bg-oxford-blue) {
11-
color: #ffffff;
6+
.activityListContainerDark {
7+
color: #fff;
128
padding-bottom: 40px;
139
}
1410

@@ -20,19 +16,6 @@
2016
font-weight: 600;
2117
}
2218

23-
/* Dark mode heading */
24-
.activityListContainer:global(.bg-oxford-blue) .heading {
25-
color: #ffffff !important;
26-
}
27-
28-
/* Body background helper */
29-
:global(.activity-list-dark-body),
30-
:global(.activity-list-dark-body #root),
31-
:global(.activity-list-dark-body .App) {
32-
background-color: #1b2a41 !important;
33-
color: #ffffff !important;
34-
}
35-
3619
.filters {
3720
display: flex;
3821
justify-content: center;
@@ -42,38 +25,47 @@
4225
padding: 10px;
4326
background: #fff;
4427
border-radius: 8px;
45-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
28+
box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
4629
}
4730

4831
.darkModeFilters {
32+
display: flex;
33+
justify-content: center;
34+
align-items: flex-end;
35+
gap: 30px;
36+
margin: 30px 0;
37+
padding: 10px;
4938
background: #1e2a3a;
5039
box-shadow: none;
5140
border: 1px solid #3a4a5c;
5241
border-radius: 0;
5342
}
5443

55-
.filters label {
44+
.filters label,
45+
.darkModeFilters label {
5646
display: flex;
5747
flex-direction: column;
5848
font-weight: 500;
5949
color: #1f2937;
6050
}
6151

6252
.filters input,
63-
.filters select {
53+
.filters select,
54+
.darkModeFilters input,
55+
.darkModeFilters select {
6456
padding: 10px;
6557
border: 1px solid #d1d5db;
6658
border-radius: 6px;
6759
margin-top: 5px;
6860
font-size: 1rem;
6961
transition: all 0.3s ease;
70-
background-color: #ffffff;
62+
background-color: #fff;
7163
color: #333;
7264
}
7365

7466
.darkModeInput {
7567
background-color: #1e2a3a !important;
76-
color: #ffffff !important;
68+
color: #fff !important;
7769
border: 1px solid #3a4a5c !important;
7870
color-scheme: dark;
7971
}
@@ -86,53 +78,29 @@
8678
.filters input:focus {
8779
outline: none;
8880
border-color: #3b82f6;
89-
box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
81+
box-shadow: 0 0 8px rgb(59 130 246 / 30%);
9082
}
9183

9284
.darkModeInput:focus {
9385
border-color: #5c9ce6 !important;
94-
box-shadow: 0 0 8px rgba(92, 156, 230, 0.5) !important;
86+
box-shadow: 0 0 8px rgb(92 156 230 / 50%) !important;
9587
}
9688

9789
.darkModeInput::placeholder {
9890
color: #a0a0a0;
9991
}
10092

101-
/* Clear button */
102-
.clearButton {
103-
padding: 10px 20px;
104-
background-color: #ef4444;
105-
color: #ffffff;
106-
border: none;
107-
border-radius: 6px;
108-
font-size: 1rem;
109-
cursor: pointer;
110-
transition: all 0.3s ease;
111-
}
112-
113-
.clearButton:hover:not(:disabled) {
114-
background-color: #dc2626;
115-
transform: translateY(-2px);
116-
box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
117-
}
118-
119-
.clearButton:disabled {
120-
background-color: #9ca3af;
121-
cursor: not-allowed;
122-
opacity: 0.6;
123-
}
124-
12593
.darkFilters input[type="date"]::-webkit-calendar-picker-indicator {
12694
filter: invert(1);
12795
}
12896

12997
.activityList {
13098
max-width: 900px;
13199
margin: 0 auto;
132-
background: #ffffff;
100+
background: #fff;
133101
padding: 30px;
134102
border-radius: 12px;
135-
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
103+
box-shadow: 0 6px 12px rgb(0 0 0 / 10%);
136104
}
137105

138106
.darkModeList {
@@ -162,13 +130,13 @@
162130
.darkModeItem {
163131
background-color: #1e2a3a !important;
164132
border: 1px solid #3a4a5c !important;
165-
color: #ffffff !important;
133+
color: #fff !important;
166134
border-radius: 0;
167135
}
168136

169137
.activityList li:hover {
170138
transform: translateY(-3px);
171-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
139+
box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
172140
}
173141

174142
.darkModeItem:hover {
@@ -200,33 +168,41 @@
200168
margin: 20px 0;
201169
}
202170

171+
.clearButtonWrapper{
172+
display: flex;
173+
justify-content: center;
174+
gap: 30px;
175+
padding: 10px;
176+
border-radius: 8px;
177+
}
178+
203179
.clearFiltersButton {
204-
margin: 30px 0;
205180
padding: 10px 14px;
206-
border: 1px solid #000000;
181+
border: 1px solid #000;
207182
border-radius: 6px;
208183
background: #f9fafb;
209184
color: #1f2937;
210-
font-family: 'Poppins', sans-serif;
185+
font-family: Poppins, sans-serif;
211186
font-size: 1rem;
212187
font-weight: 500;
213188
cursor: pointer;
214189
transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
215190
}
216191

217-
.clearFiltersButton:hover:not(:disabled) {
218-
transform: scale(1.05);
219-
background-color: #f9fafb;
220-
}
221-
222192
.clearFiltersButton:disabled {
223193
opacity: 0.5;
224194
cursor: not-allowed;
225195
transform: none;
226196
}
227197

198+
.clearFiltersButton:hover:not(:disabled) {
199+
transform: scale(1.05);
200+
background-color: #f9fafb;
201+
}
202+
203+
228204
.clearFiltersButtonDark {
229-
border: 1px solid #ffffff;
205+
border: 1px solid #fff;
230206
background: #0f172a;
231207
color: #f1f5f9;
232208
}
@@ -242,13 +218,13 @@
242218
top: 100%;
243219
left: 0;
244220
right: 0;
245-
background: #ffffff;
221+
background: #fff;
246222
border: 1px solid #d1d5db;
247223
border-radius: 6px;
248224
margin-top: 4px;
249225
max-height: 250px;
250226
overflow-y: auto;
251-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
227+
box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
252228
z-index: 1000;
253229
}
254230

@@ -277,7 +253,7 @@
277253
}
278254

279255
/* Responsive */
280-
@media (max-width: 768px) {
256+
@media (width <= 768px) {
281257
.filters {
282258
flex-direction: column;
283259
align-items: center;

0 commit comments

Comments
 (0)