Skip to content

Commit

Permalink
Add no picture display
Browse files Browse the repository at this point in the history
  • Loading branch information
as3810t committed Jul 4, 2024
1 parent 9894647 commit a069672
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/aboutpage-components/Member.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ const Member: React.FC<MemberProps> = ({
return (
<div className="feature-1 border person text-center d-flex flex-column justify-content-between">
{avatarImage && <GatsbyImage image={avatarImage} className="img-fluid" alt={firstName + lastName} />}
{!avatarImage && (
<div className="img-fluid">
<FaUser />
</div>
)}
<div className="feature-1-content">
<h2>
{memberName(t, { firstName, lastName, namePrefix, nameSuffix })}
Expand Down
7 changes: 7 additions & 0 deletions src/utils/scss/_site-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,13 @@
border-radius: 50%;
margin-left: auto;
margin-right: auto;
background-color: $secondary-light;

> svg {
width: 70%;
height: 70%;
margin: 10% 15% 20% 15%;
}
}
}

Expand Down

0 comments on commit a069672

Please sign in to comment.