Skip to content

Commit 67b76c6

Browse files
authored
Merge branch 'recodehive:main' into dahsboard-leaderboard
2 parents 70c8332 + 67b9a16 commit 67b76c6

File tree

2 files changed

+200
-10
lines changed

2 files changed

+200
-10
lines changed

src/components/FloatingContributors/FloatingContributors.css

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,22 @@
8383
cursor: pointer; /* Add pointer cursor to indicate clickable */
8484
}
8585

86+
[data-theme='dark'] .contributor-activity-item {
87+
background-color: rgba(71, 85, 105, 0.3);
88+
}
89+
90+
[data-theme='dark'] .contributor-activity-item:hover {
91+
background-color: rgba(71, 85, 105, 0.5);
92+
}
93+
94+
[data-theme='light'] .contributor-activity-item {
95+
background-color: rgba(241, 245, 249, 0.6);
96+
}
97+
98+
[data-theme='light'] .contributor-activity-item:hover {
99+
background-color: rgba(226, 232, 240, 0.8);
100+
}
101+
86102
.contributor-activity-item:hover {
87103
background-color: rgba(255, 255, 255, 0.15);
88104
transform: translateY(-2px); /* Slight lift effect on hover */
@@ -131,6 +147,14 @@
131147
color: rgba(255, 255, 255, 0.95);
132148
}
133149

150+
[data-theme='dark'] .activity-item-username {
151+
color: #f1f5f9;
152+
}
153+
154+
[data-theme='light'] .activity-item-username {
155+
color: #1e293b;
156+
}
157+
134158
.activity-item-badge {
135159
background-color: rgba(59, 130, 246, 0.2);
136160
padding: 2px 6px;
@@ -139,12 +163,30 @@
139163
color: rgba(255, 255, 255, 0.9);
140164
}
141165

166+
[data-theme='dark'] .activity-item-badge {
167+
background-color: rgba(139, 92, 246, 0.2);
168+
color: #c084fc;
169+
}
170+
171+
[data-theme='light'] .activity-item-badge {
172+
background-color: rgba(59, 130, 246, 0.15);
173+
color: #3b82f6;
174+
}
175+
142176
.activity-item-action {
143177
font-size: 0.8rem;
144178
color: rgba(255, 255, 255, 0.7);
145179
margin-top: 2px;
146180
}
147181

182+
[data-theme='dark'] .activity-item-action {
183+
color: rgba(203, 213, 225, 0.8);
184+
}
185+
186+
[data-theme='light'] .activity-item-action {
187+
color: rgba(71, 85, 105, 0.8);
188+
}
189+
148190
.activities-more {
149191
text-align: center;
150192
padding: 8px;
@@ -155,6 +197,16 @@
155197
margin-top: 4px;
156198
}
157199

200+
[data-theme='dark'] .activities-more {
201+
color: rgba(203, 213, 225, 0.8);
202+
background-color: rgba(71, 85, 105, 0.2);
203+
}
204+
205+
[data-theme='light'] .activities-more {
206+
color: rgba(71, 85, 105, 0.8);
207+
background-color: rgba(241, 245, 249, 0.5);
208+
}
209+
158210
/* Header embedded version - larger size */
159211
.floating-contributors-container.header-embedded .floating-contributors-card {
160212
min-width: 450px;
@@ -199,6 +251,71 @@
199251
transition: background 0.3s ease, box-shadow 0.3s ease;
200252
}
201253

254+
/* Dark mode text color overrides */
255+
[data-theme='dark'] .floating-contributors-title {
256+
color: #f1f5f9;
257+
}
258+
259+
[data-theme='dark'] .floating-contributors-subtitle {
260+
color: rgba(203, 213, 225, 0.8);
261+
}
262+
263+
[data-theme='dark'] .floating-contributors-close {
264+
color: rgba(203, 213, 225, 0.7);
265+
background: rgba(71, 85, 105, 0.3);
266+
}
267+
268+
[data-theme='dark'] .activity-username {
269+
color: #f1f5f9;
270+
}
271+
272+
[data-theme='dark'] .activity-message {
273+
color: rgba(203, 213, 225, 0.8);
274+
}
275+
276+
[data-theme='dark'] .activity-time {
277+
color: rgba(148, 163, 184, 0.7);
278+
}
279+
280+
[data-theme='dark'] .contributors-grid-header {
281+
color: #f1f5f9;
282+
background: rgba(71, 85, 105, 0.4);
283+
}
284+
285+
[data-theme='dark'] .floating-contributors-activity {
286+
background: rgba(71, 85, 105, 0.3);
287+
}
288+
289+
[data-theme='dark'] .floating-contributors-activity:hover {
290+
background: rgba(71, 85, 105, 0.5);
291+
}
292+
293+
[data-theme='dark'] .contributors-avatars {
294+
background: rgba(71, 85, 105, 0.2);
295+
}
296+
297+
[data-theme='dark'] .activity-action-badge {
298+
background: rgba(139, 92, 246, 0.2);
299+
color: #c084fc;
300+
}
301+
302+
[data-theme='dark'] .contributors-count {
303+
background: rgba(139, 92, 246, 0.2);
304+
color: #c084fc;
305+
}
306+
307+
[data-theme='dark'] .contributors-more {
308+
background: rgba(71, 85, 105, 0.3);
309+
border-color: rgba(148, 163, 184, 0.3);
310+
color: rgba(203, 213, 225, 0.8);
311+
}
312+
313+
[data-theme='dark'] .contributors-more:hover {
314+
background: rgba(139, 92, 246, 0.3);
315+
border-color: rgba(139, 92, 246, 0.5);
316+
color: #f1f5f9;
317+
}
318+
202319
.floating-contributors-card::before {
203320
content: '';
204321
position: absolute;

src/pages/courses/courses.css

Lines changed: 83 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
transition: var(--courses-transition-slow);
7070
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
7171
line-height: 1.6;
72+
min-height: 100vh;
73+
position: relative;
7274
}
7375

7476
/* Section Layouts */
@@ -924,13 +926,41 @@
924926
}
925927
}
926928

927-
/* Mobile Large (576px - 767px) */
928-
@media (max-width: 767px) and (min-width: 576px) {
929+
/* Mobile and Small Tablet (320px - 768px) - RESPONSIVE FIX */
930+
@media (max-width: 768px) and (min-width: 320px) {
931+
/* Main page layout fixes */
932+
.courses-page {
933+
min-height: 100vh;
934+
position: relative;
935+
padding-bottom: var(--courses-spacing-xl);
936+
}
937+
929938
.courses-container {
930-
max-width: 540px;
939+
max-width: 100%;
940+
padding: 0 var(--courses-spacing-md);
941+
}
942+
943+
.courses-container-wide {
944+
max-width: 100%;
931945
padding: 0 var(--courses-spacing-md);
932946
}
933947

948+
/* Ensure proper section spacing */
949+
.courses-section {
950+
margin-bottom: var(--courses-spacing-lg);
951+
padding: var(--courses-spacing-lg) 0;
952+
}
953+
954+
.courses-stats-section {
955+
margin-bottom: var(--courses-spacing-lg);
956+
padding: var(--courses-spacing-lg) 0;
957+
}
958+
959+
.courses-faq-section {
960+
margin-bottom: var(--courses-spacing-xl);
961+
padding: var(--courses-spacing-lg) 0;
962+
}
963+
934964
.courses-heading-1 {
935965
font-size: 2.5rem;
936966
line-height: 1.2;
@@ -947,13 +977,62 @@
947977
text-align: center;
948978
}
949979

980+
/* Force all grids to single column for better mobile experience */
950981
.courses-grid-4,
951982
.courses-grid-3,
952983
.courses-grid-2 {
953984
grid-template-columns: 1fr;
954985
gap: var(--courses-spacing-md);
955986
}
956987

988+
/* Enhanced card styling for mobile */
989+
.courses-card {
990+
padding: var(--courses-spacing-md);
991+
margin-bottom: var(--courses-spacing-sm);
992+
text-align: center;
993+
display: flex;
994+
flex-direction: column;
995+
align-items: center;
996+
justify-content: center;
997+
}
998+
999+
/* Testimonial cards specific improvements */
1000+
.courses-card img {
1001+
width: 60px !important;
1002+
height: 60px !important;
1003+
margin-bottom: var(--courses-spacing-sm);
1004+
}
1005+
1006+
.courses-card h4 {
1007+
margin-bottom: var(--courses-spacing-xs);
1008+
font-size: var(--courses-text-lg);
1009+
}
1010+
1011+
.courses-card p {
1012+
line-height: 1.5;
1013+
font-size: var(--courses-text-sm);
1014+
text-align: center;
1015+
}
1016+
1017+
/* Stat cards improvements */
1018+
.courses-stat-card {
1019+
padding: var(--courses-spacing-md);
1020+
text-align: center;
1021+
}
1022+
1023+
/* Timeline cards improvements */
1024+
.courses-timeline-card {
1025+
padding: var(--courses-spacing-md);
1026+
flex-direction: column;
1027+
text-align: center;
1028+
align-items: center;
1029+
}
1030+
1031+
.courses-flex {
1032+
flex-direction: column;
1033+
gap: var(--courses-spacing-md);
1034+
}
1035+
9571036
.courses-spacing-3xl {
9581037
--courses-spacing-3xl: 2.5rem;
9591038
}
@@ -972,18 +1051,12 @@
9721051
text-align: center;
9731052
}
9741053

975-
/* Cards */
976-
.courses-card,
977-
.courses-stat-card,
978-
.courses-timeline-card {
979-
padding: var(--courses-spacing-md);
980-
}
981-
9821054
/* Buttons */
9831055
.courses-button {
9841056
width: 100%;
9851057
padding: var(--courses-spacing-md) var(--courses-spacing-lg);
9861058
font-size: var(--courses-text-base);
1059+
justify-content: center;
9871060
}
9881061

9891062
.courses-button-primary,

0 commit comments

Comments
 (0)