♻️ separate teamcard in one component

This commit is contained in:
stefan080106
2022-09-20 15:58:21 +02:00
parent 2cb34c8b40
commit 44d0fb110e
2 changed files with 33 additions and 12 deletions

View File

@@ -0,0 +1,16 @@
import Image from "next/image";
import React from "react";
const TeamCard = (props) => {
return (
<div>
<Image src={props.imgUrl} alt="ProfileImage" width={125} height={125} />
<div>
<h2>{props.name}</h2>
<h3>{props.stellung}</h3>
</div>
</div>
);
};
export default TeamCard;