Skip to content

Commit

Permalink
Merge pull request #305 from blz-it/fix-team-page
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke authored Oct 30, 2024
2 parents e30f0e8 + 04074fb commit cfb4dae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/team/Person.astro
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const t = useTranslations(lang);
</p>
</div>
<p>
{skill || <br />}
{skill ? t(skill) : <br />}
</p>
</div>
</div>
4 changes: 2 additions & 2 deletions src/components/team/PersonImage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ interface Props {
const { imagePath } = Astro.props;
const images = import.meta.glob<{ default: ImageMetadata }>(
"/src/assets/**/*.{jpeg,jpg,png,gif,webp}",
"/src/assets/**/*.{jpeg,jpg,png,gif,webp}"
);
---

<Image
class={clsx(
"mx-auto h-40 w-40 rounded-full object-cover shadow-lg xl:h-56 xl:w-56",
imagePath && "p-5",
!imagePath && "p-5"
)}
src={imagePath ? images[imagePath]() : WsgHandsImage}
alt=""
Expand Down

0 comments on commit cfb4dae

Please sign in to comment.