Skip to content

Commit 31a859c

Browse files
committed
feat: Enhance ConferenceCard and CVPreview components; update layout, remove commented code, and improve registration functionality. Add new EmrTrainingComponent for EMR training sessions.
1 parent 6dd9cc9 commit 31a859c

File tree

6 files changed

+384
-28
lines changed

6 files changed

+384
-28
lines changed

frontend/src/components/Common/ConferenceCard.jsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@ import { Calendar, MapPin, Globe, ExternalLink } from 'lucide-react';
33

44
const ConferenceCard = ({ conference, onRegister }) => {
55
return (
6-
<div className="border border-gray-200 rounded-lg p-6 hover:shadow-md transition-shadow bg-white">
6+
<div className="border border-gray-200 rounded-lg p-6 hover:shadow-md transition-shadow bg-white flex flex-col h-full">
77
<div className="flex justify-between items-start mb-4">
88
<div className="flex-1">
99
<h3 className="text-xl font-bold text-[#04445E] mb-2">{conference.name}</h3>
10-
<span className="inline-block px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm font-medium mb-3">
11-
{conference.category}
12-
</span>
1310
</div>
1411
</div>
15-
16-
<p className="text-gray-600 text-sm mb-4 leading-relaxed line-clamp-3">
12+
13+
<p className="text-gray-600 text-sm mb-4 leading-relaxed line-clamp-3 flex-grow">
1714
{conference.description}
1815
</p>
19-
16+
2017
<div className="space-y-3 mb-6">
2118
<div className="flex items-center gap-2 text-sm text-gray-600">
2219
<Calendar className="h-4 w-4 text-[#169AB4]" />
@@ -26,13 +23,13 @@ const ConferenceCard = ({ conference, onRegister }) => {
2623
<MapPin className="h-4 w-4 text-[#169AB4]" />
2724
<span>{conference.location}</span>
2825
</div>
29-
<div className="flex items-center gap-2 text-sm text-gray-600">
26+
{/* <div className="flex items-center gap-2 text-sm text-gray-600">
3027
<Globe className="h-4 w-4 text-[#169AB4]" />
3128
<span>{conference.modality}</span>
32-
</div>
29+
</div> */}
3330
</div>
34-
35-
<div className="flex justify-between items-center">
31+
32+
<div className="flex justify-between items-center mt-auto">
3633
<div className="flex gap-2">
3734
{conference.brochureLink && (
3835
<a
@@ -51,7 +48,7 @@ const ConferenceCard = ({ conference, onRegister }) => {
5148
onClick={() => onRegister(conference._id)}
5249
className="px-6 py-2 bg-[#169AB4] text-white rounded-lg hover:bg-[#147a8f] transition-colors font-medium"
5350
>
54-
Learn More
51+
Book Conference
5552
</button>
5653
</div>
5754
</div>

frontend/src/components/Dashboard/CVBuilder/CVPreview.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ const CVPreview = ({ cvData, onBack, onDownload }) => {
178178
</div>
179179
)}
180180

181-
{/* EMR & RCM Training */}
182181
{(cvData?.emrRcmTraining?.emrSystems?.length > 0 || cvData?.emrRcmTraining?.rcmTraining) && (
183182
<div className="mb-10">
184183
<h2 className="text-2xl font-bold text-[#04445E] mb-6 border-b-2 border-gray-200 pb-2">
@@ -200,7 +199,6 @@ const CVPreview = ({ cvData, onBack, onDownload }) => {
200199
</div>
201200
)}
202201

203-
{/* Achievements */}
204202
{cvData?.significantAchievements && (
205203
<div className="mb-10">
206204
<h2 className="text-2xl font-bold text-[#04445E] mb-6 border-b-2 border-gray-200 pb-2">
@@ -213,7 +211,6 @@ const CVPreview = ({ cvData, onBack, onDownload }) => {
213211
)}
214212
</div>
215213

216-
{/* Action Buttons */}
217214
<div className="flex justify-center gap-6">
218215
<button
219216
onClick={onBack}

frontend/src/components/Dashboard/Conferences/UpcomingConferences.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const UpcomingConferencesTab = () => {
1414
setLoading(true);
1515
setError(null);
1616

17-
// Fetch all conferences from your backend
1817
const response = await api.get('/conferences');
1918

2019
if (response.data.success) {
@@ -91,10 +90,8 @@ const UpcomingConferencesTab = () => {
9190
);
9291
}
9392

94-
// Conferences loaded successfully
9593
return (
9694
<div className="space-y-6">
97-
{/* Header with refresh button */}
9895
<div className="flex justify-between items-center">
9996
<div>
10097
<h2 className="text-xl font-semibold text-[#04445E]">Available Conferences</h2>

0 commit comments

Comments
 (0)