placeholder img issue fixed

This commit is contained in:
Selvi 2026-04-13 10:29:50 +05:30
parent f19291c94e
commit 902c098cf1
2 changed files with 4 additions and 2 deletions

View File

@ -346,7 +346,8 @@ export default function AboutContent({ initialReviews }: { initialReviews?: Revi
alt={name} alt={name}
className={styles.authorImage} className={styles.authorImage}
style={{ width: '100%', height: '100%', objectFit: 'cover' }} style={{ width: '100%', height: '100%', objectFit: 'cover' }}
onError={(e) => ((e.target as HTMLImageElement).src = '/images/placeholder.png')} referrerPolicy="no-referrer"
onError={(e) => ((e.target as HTMLImageElement).src = 'data:image/svg+xml;charset=UTF-8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23ccc%22%3E%3Cpath d=%22M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z%22/%3E%3C/svg%3E')}
/> />
) : ( ) : (
<div style={{ width: '100%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center', background: '#333', fontSize: '24px', fontWeight: 'bold', color: '#fff' }}> <div style={{ width: '100%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center', background: '#333', fontSize: '24px', fontWeight: 'bold', color: '#fff' }}>

View File

@ -198,7 +198,8 @@ export default function Testimonials({ initialReviews }: { initialReviews?: Revi
alt={name} alt={name}
className={styles.authorImage} className={styles.authorImage}
style={{ width: '100%', height: '100%', objectFit: 'cover' }} style={{ width: '100%', height: '100%', objectFit: 'cover' }}
onError={(e) => ((e.target as HTMLImageElement).src = '/images/placeholder.png')} referrerPolicy="no-referrer"
onError={(e) => ((e.target as HTMLImageElement).src = 'data:image/svg+xml;charset=UTF-8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23ccc%22%3E%3Cpath d=%22M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z%22/%3E%3C/svg%3E')}
/> />
) : ( ) : (
<div className={styles.initials}> <div className={styles.initials}>