From 35e29df43d7e702418e5941c810b035eccc11f0b Mon Sep 17 00:00:00 2001 From: Akshith <33996844+akshith312@users.noreply.github.com> Date: Tue, 3 Feb 2026 18:08:08 -0800 Subject: [PATCH] feat: Added icons to the events in activity list --- .../Activities/ActivityList.jsx | 46 ++++++++++++++- .../Activities/ActivityList.module.css | 57 +++++++++++++++++++ 2 files changed, 101 insertions(+), 2 deletions(-) diff --git a/src/components/CommunityPortal/Activities/ActivityList.jsx b/src/components/CommunityPortal/Activities/ActivityList.jsx index 802ab26a4a..a146efa597 100644 --- a/src/components/CommunityPortal/Activities/ActivityList.jsx +++ b/src/components/CommunityPortal/Activities/ActivityList.jsx @@ -4,6 +4,15 @@ import { useSelector } from 'react-redux'; import styles from './ActivityList.module.css'; import { mockActivities } from './mockActivities'; // import { useHistory } from 'react-router-dom'; +import { + FaTag, + FaCalendarAlt, + FaMapMarkerAlt, + FaDumbbell, + FaUsers, + FaGraduationCap, + FaPalette, +} from 'react-icons/fa'; function ActivityList() { const [activities, setActivities] = useState([]); @@ -102,6 +111,21 @@ function ActivityList() { setShowSuggestions(false); }; + const getTypeIcon = type => { + switch (type) { + case 'Fitness': + return ; + case 'Social': + return ; + case 'Educational': + return ; + case 'Art': + return ; + default: + return ; + } + }; + return (

Activity List

@@ -193,8 +217,26 @@ function ActivityList() {
    {filteredActivities.map(activity => (
  • - {activity.name} - {activity.type} - {activity.date} -{' '} - {activity.location} + {activity.name} + + {/* Type */} +
    + {getTypeIcon(activity.type)} + {activity.type} +
    + + {/* Location + Date */} +
    +
    + + {activity.location} +
    + +
    + + {activity.date} +
    +
  • ))}
diff --git a/src/components/CommunityPortal/Activities/ActivityList.module.css b/src/components/CommunityPortal/Activities/ActivityList.module.css index 7b7c977def..be983e6bec 100644 --- a/src/components/CommunityPortal/Activities/ActivityList.module.css +++ b/src/components/CommunityPortal/Activities/ActivityList.module.css @@ -231,3 +231,60 @@ padding: 10px; } } + +.alactivityIcon { + color: #2c3e50; + margin-top: 2px; + flex-shrink: 0; + font-size: 1rem; + margin-right: 4px; +} + +.activityRow { + display: flex; + justify-content: space-between; + align-items: center; + gap: 16px; +} + +.leftInfo { + display: flex; + align-items: center; + gap: 16px; + flex-wrap: wrap; +} + +.rightInfo { + display: flex; + align-items: center; + gap: 6px; + white-space: nowrap; +} + +.altypeRow { + display: flex; + align-items: center; + gap: 8px; + margin-top: 4px; +} + +.altypeText { + font-style: italic; + color: #6b7280; + margin-top: 4px; +} + +.allocationDateRow { + display: flex; + justify-content: space-between; + align-items: center; + margin-top: 10px; +} + +.allocation, +.aldate { + display: flex; + align-items: center; + gap: 6px; +} +