Computer Science Club of the University of Waterloo's website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
www-new/components/TeamMember.tsx

28 lines
577 B

2 years ago
import React from "react";
2 years ago
import { Image } from "./Image";
import styles from "./TeamMember.module.css";
2 years ago
interface TeamMemberProps {
name: string;
role: string;
image: string;
2 years ago
}
2 years ago
export const TeamMember: React.FC<TeamMemberProps> = ({
name,
role,
image,
}) => {
2 years ago
return (
<div className={styles.container}>
<Image className={styles.img} src={image} alt={`Picture of ${name}`} />
2 years ago
<div className={styles.caption}>
<div className={styles.name}>{name}</div>
<div className={styles.role}>{role}</div>
</div>
</div>
);
};