+
{galleryImages.map((image, index) => (
-
+

= ({
{member.name}
-
+
{member.position}
{member.department && (
@@ -138,7 +138,7 @@ const TeamListing: React.FC
= ({
)}
{member.specialty && (
-
+
{member.specialty}
)}
diff --git a/src/components/home/HeroSection.tsx b/src/components/home/HeroSection.tsx
index d53cc41..4a27bd4 100644
--- a/src/components/home/HeroSection.tsx
+++ b/src/components/home/HeroSection.tsx
@@ -31,12 +31,18 @@ const HeroSection = () => {
{/* CTA Button */}
-
+
+
diff --git a/src/components/blogs/BlogDetail.tsx b/src/components/publications/BlogDetail.tsx
similarity index 99%
rename from src/components/blogs/BlogDetail.tsx
rename to src/components/publications/BlogDetail.tsx
index bbb642b..239d8dd 100644
--- a/src/components/blogs/BlogDetail.tsx
+++ b/src/components/publications/BlogDetail.tsx
@@ -360,7 +360,7 @@ const BlogDetail: React.FC = () => {
key={post.id}
className="group bg-white rounded-lg overflow-hidden border border-gray-300 hover:shadow-lg transition-all duration-300"
>
-
+
{
>
{/* All cards redirect to blog detail page with ID */}
diff --git a/src/lib/facultyData.ts b/src/lib/facultyData.ts
index ce985e3..50ebff6 100644
--- a/src/lib/facultyData.ts
+++ b/src/lib/facultyData.ts
@@ -63,9 +63,9 @@ export class FacultyService {
'Content-Type': 'application/json',
},
});
-
+
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
-
+
const data: FacultyApiResponse = await response.json();
return this.transformProfessorsToTeamMembers(data.content);
} catch (error) {
@@ -81,7 +81,7 @@ export class FacultyService {
if (typeof id === 'string' && id.includes('-')) {
return await this.getFacultyByProfessorId(id);
}
-
+
// Otherwise, fetch all and find by numeric ID
const allFaculty = await this.getAllFaculty();
return allFaculty.find(member => member.id === id) || null;
@@ -99,11 +99,11 @@ export class FacultyService {
'Content-Type': 'application/json',
},
});
-
+
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
-
+
const professor = await response.json();
const transformed = this.transformProfessorsToTeamMembers([professor]);
return transformed[0] || null;
@@ -144,7 +144,7 @@ export class FacultyService {
// Create proper image URL - remove /api from baseUrl for images
const imageBaseUrl = this.baseUrl;
let imageUrl = '/images/default-avatar.jpg'; // Default fallback
-
+
if (prof.profileImageUrl) {
// If it's already a full URL, use it as is
if (prof.profileImageUrl.startsWith('http')) {
@@ -183,23 +183,23 @@ export class FacultyService {
name: skill.name,
level: skill.level
})) || [
- { name: 'Clinical Practice', level: 90 },
- { name: 'Research', level: 85 },
- { name: 'Teaching', level: 88 }
- ],
+ { name: 'Clinical Practice', level: 90 },
+ { name: 'Research', level: 85 },
+ { name: 'Teaching', level: 88 }
+ ],
awards: prof.awards?.map((award: any) => ({
title: award.title,
year: award.year,
description: award.description,
image: award.imageUrl || '/images/award-icon.png'
})) || [
- {
- title: 'Excellence in Medical Practice',
- year: new Date().getFullYear().toString(),
- description: 'Recognized for outstanding contribution to medical practice and patient care.',
- image: '/images/award-icon.png'
- }
- ],
+ {
+ title: 'Excellence in Medical Practice',
+ year: new Date().getFullYear().toString(),
+ description: 'Recognized for outstanding contribution to medical practice and patient care.',
+ image: '/images/award-icon.png'
+ }
+ ],
status: prof.status,
department: prof.department,
officeLocation: prof.officeLocation,