update img tags and correct deploy
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-10 09:52:42 +01:00
parent d930de2081
commit 26676ab4e9
6 changed files with 53 additions and 26 deletions
+7 -7
View File
@@ -11,10 +11,14 @@ export function ProjectCard(props) {
>
<Image
className={props.mockupUrl ? styles.card_mockup : styles.card_gitea}
src={props.mockupUrl ? props.mockupUrl : props.avatarUrl}
src={
props.mockupUrl
? props.mockupUrl
: props.avatarUrl || "/article_black_48dp.svg"
}
alt={props.name}
width="15vw"
height="15vw"
width="15"
height="15"
unoptimized={true}
/>
<h2>{props.name}</h2>
@@ -22,7 +26,3 @@ export function ProjectCard(props) {
</a>
);
}
ProjectCard.defaultProps = {
avatarUrl: "/article_black_48dp.svg",
};