fix: display empty circle when no photo is provided

This commit is contained in:
Benno Tielen 2026-06-05 10:25:13 +02:00
parent a85c0e609a
commit 14056701d0
2 changed files with 10 additions and 1 deletions

View file

@ -31,7 +31,7 @@ export const ContactPersonCard = ({
return (
<div className={styles.card}>
<div>
{photo && (
{photo ? (
<Image
className={styles.photo}
src={photo}
@ -40,6 +40,8 @@ export const ContactPersonCard = ({
height={200}
unoptimized={true}
/>
) : (
<div className={styles.photoPlaceholder} />
)}
</div>

View file

@ -14,6 +14,13 @@
border-radius: 50%;
}
.photoPlaceholder {
width: 200px;
height: 200px;
border-radius: 50%;
background-color: #efefef;
}
.role {
font-size: 25px;
color: $base-color;