Skip to content

Commit 4a400d5

Browse files
committed
fix: load Technical Team image from local assets instead of Cloudinary
- Import local image file directly in Teams.js - Check if image path starts with 'Team/' to use local import - Fixes broken image for Technical Team member - Other teams continue using Cloudinary as before
1 parent f4dff83 commit 4a400d5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/pages/Teams.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Styles from '../components/teams/Team.module.css';
77
import { TeamData } from '../lib/data/TeamData';
88
import HalloweenBackground from '../components/halloween/HalloweenBackground';
99
import { getCloudinaryImage } from '../components/teams/GetCloudinaryImage';
10+
import technicalTeamImage from '../assets/Team/WhatsApp Image 2025-11-24 at 10.42.20 PM.jpeg';
1011

1112
function Teams() {
1213
return (
@@ -61,10 +62,14 @@ function Teams() {
6162
<h2 className={Styles.postHead}>Technical Team</h2>
6263
<div className="flex-wrap flex justify-center gap-10 mt-8 mb-16 ">
6364
{TeamData.technicalTeam.map((item, index) => {
65+
// Use local import for technical team image
66+
const imageSource = item.image.startsWith('Team/')
67+
? technicalTeamImage
68+
: getCloudinaryImage(item.image);
6469
return (
6570
<TeamCard
6671
key={`${String(index)}-team`}
67-
image={getCloudinaryImage(item.image)}
72+
image={imageSource}
6873
name={item.name}
6974
role={item.role}
7075
/>

0 commit comments

Comments
 (0)