Skip to content

Commit 49b7239

Browse files
committed
feat: Enhance LeaguesCarousel with responsive design, detailed league information, and improved styling
1 parent 79f0c28 commit 49b7239

File tree

8 files changed

+467
-60
lines changed

8 files changed

+467
-60
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# League Display Enhancement
2+
3+
## Overview
4+
The LeaguesCarousel now displays detailed information about each league including starting dates and facilitating organizations.
5+
6+
## Updated League Data Structure
7+
8+
Each league now includes:
9+
```javascript
10+
{
11+
id: 'league-id',
12+
name: 'League Name',
13+
title: 'Full League Title',
14+
description: 'League description...',
15+
cover: '/path/to/cover.jpg',
16+
color: '#HEX_COLOR',
17+
startingDate: 'DD Month YYYY', // NEW
18+
facilitatedBy: 'Organization Name' // NEW
19+
}
20+
```
21+
22+
## Current League Schedule
23+
24+
### 📚 **Soft Skills League**
25+
- **Starting:** 28 August 2025
26+
- **Facilitated by:** Zeal Society
27+
- **Focus:** Communication, leadership, and interpersonal skills
28+
29+
### 💰 **Finance League**
30+
- **Starting:** 30 August 2025
31+
- **Facilitated by:** Fnnest NITJ
32+
- **Focus:** Financial literacy and investment strategies
33+
34+
### 💻 **Competitive Programming League**
35+
- **Starting:** 1 September 2025
36+
- **Facilitated by:** Coding Club
37+
- **Focus:** Algorithmic thinking and problem-solving
38+
39+
### 🤖 **Machine Learning League**
40+
- **Starting:** 2 September 2025
41+
- **Facilitated by:** OpenLearn
42+
- **Focus:** ML algorithms and AI applications
43+
44+
### ⚛️ **Quantum Computing League**
45+
- **Starting:** 5 September 2025
46+
- **Facilitated by:** QMania
47+
- **Focus:** Quantum algorithms and computational science
48+
49+
### 🌐 **Internet of Things League**
50+
- **Starting:** 7 September 2025
51+
- **Facilitated by:** Electronics Society
52+
- **Focus:** Connected devices and smart systems
53+
54+
## Visual Display Features
55+
56+
### Card Layout
57+
Each league card now shows:
58+
1. **League Badge** (top-left with color coding)
59+
2. **Title & Description** (main content area)
60+
3. **League Details Section** (new addition):
61+
- 📅 **Starting Date** (highlighted in league color)
62+
- 👥 **Facilitated By** (organization name)
63+
4. **Call-to-Action Button**
64+
65+
### Responsive Design
66+
- **Mobile:** Compact layout with smaller text and icons
67+
- **Tablet/Desktop:** Full-size layout with enhanced spacing
68+
- **Visual Icons:** Calendar and people emojis for better UX
69+
70+
### Styling Enhancements
71+
- Subtle border separator for league details
72+
- Color-coded starting dates matching league themes
73+
- Consistent typography hierarchy
74+
- Touch-friendly sizing for mobile devices
75+
76+
## Usage Example
77+
78+
The carousel automatically displays all league information:
79+
```jsx
80+
<LeaguesCarousel />
81+
```
82+
83+
No additional props needed - all data is pulled from `leaguesData.js`.
84+
85+
## Benefits
86+
- **Clear Schedule Visibility** - Users can see when leagues start
87+
- **Organization Recognition** - Credits facilitating societies
88+
- **Better Decision Making** - More information helps users choose
89+
- **Professional Presentation** - Enhanced visual hierarchy
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# LeaguesCarousel Component - Responsive Enhancement
2+
3+
## Overview
4+
The LeaguesCarousel component has been significantly enhanced for better responsiveness and user experience across all device types.
5+
6+
## Key Improvements
7+
8+
### 📱 Mobile Responsiveness
9+
- **Adaptive Layout**: Cards switch from horizontal to vertical layout on mobile devices
10+
- **Touch Gestures**: Full swipe support for natural mobile navigation
11+
- **Optimized Sizing**: Smaller text, padding, and spacing for mobile screens
12+
- **Hidden Arrow Navigation**: Cleaner interface on mobile with touch-only navigation
13+
- **Mobile-First Design**: Responsive breakpoints and mobile-optimized interactions
14+
15+
### 🖥️ Desktop & Tablet Experience
16+
- **Enhanced Arrow Navigation**: Improved positioning and hover effects
17+
- **Keyboard Support**: Arrow key navigation for accessibility
18+
- **Smooth Animations**: Refined transitions and micro-interactions
19+
- **Better Visual Hierarchy**: Improved typography and spacing scaling
20+
21+
### ♿ Accessibility Improvements
22+
- **ARIA Labels**: Comprehensive labeling for screen readers
23+
- **Keyboard Navigation**: Full keyboard support with arrow keys
24+
- **Focus Management**: Proper focus indicators and management
25+
- **Role Attributes**: Semantic HTML with proper ARIA roles
26+
27+
### 🎨 Visual Enhancements
28+
- **Custom CSS Module**: Dedicated styling for enhanced performance
29+
- **Loading States**: Responsive loading indicators
30+
- **Smooth Transitions**: Enhanced animations with cubic-bezier easing
31+
- **Hover Effects**: Improved interactive feedback
32+
33+
## Technical Features
34+
35+
### Responsive Breakpoints
36+
- **Mobile**: < 768px - Vertical layout, touch navigation
37+
- **Tablet**: 768px - 1023px - Hybrid layout with optimized spacing
38+
- **Desktop**: > 1024px - Full horizontal layout with all features
39+
40+
### Touch Interaction
41+
- **Swipe Detection**: Minimum 50px swipe distance for activation
42+
- **Touch Prevention**: Prevents accidental activations
43+
- **Smooth Gestures**: Natural iOS/Android-like swipe behavior
44+
45+
### Performance Optimizations
46+
- **CSS Module**: Scoped styles for better performance
47+
- **Efficient Re-renders**: Optimized state management
48+
- **Lazy Loading**: Efficient image handling with fallbacks
49+
- **Smooth Scrolling**: Hardware-accelerated animations
50+
51+
## Usage
52+
53+
The component automatically detects screen size and adjusts its behavior accordingly:
54+
55+
```jsx
56+
<LeaguesCarousel />
57+
```
58+
59+
## Browser Support
60+
- ✅ Modern browsers (Chrome, Firefox, Safari, Edge)
61+
- ✅ Mobile browsers (iOS Safari, Chrome Mobile)
62+
- ✅ Touch devices and desktop
63+
- ✅ Keyboard navigation
64+
65+
## Files Modified
66+
- `LeaguesCarousel.jsx` - Main component with responsive logic
67+
- `LeaguesCarousel.module.css` - Custom styles and responsive utilities
68+
69+
## Future Enhancements
70+
- Multi-card display on ultra-wide screens
71+
- Intersection Observer for performance
72+
- Prefers-reduced-motion support
73+
- Advanced gesture recognition

src/components/dashboard/WelcomeBanner.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ const WelcomeBanner = ({ user, onExploreClick }) => {
3030
{/* Compact Feature Pills */}
3131
<div className="flex flex-wrap gap-3 mb-4">
3232
<div className="flex items-center gap-2 bg-white/30 backdrop-blur-sm rounded-full px-4 py-2 border border-white/40">
33-
<div className="w-6 h-6 bg-gradient-to-r from-blue-500 to-indigo-600 rounded-full flex items-center justify-center">
34-
<BookOpen className="text-white" size={12} />
35-
</div>
3633
<span className="text-sm font-medium text-gray-800">Learn at Your Pace</span>
3734
</div>
3835

0 commit comments

Comments
 (0)