forked from www/www-new
parent
8a9935ba27
commit
ed9724a36e
@ -0,0 +1,29 @@ |
||||
.container { |
||||
max-width: 7.875rem; |
||||
display: flex; |
||||
flex-direction: column; |
||||
margin: 0; |
||||
} |
||||
|
||||
.img { |
||||
width: 100%; |
||||
border-radius: 50%; |
||||
margin: 0 auto; |
||||
} |
||||
|
||||
.caption { |
||||
text-align: center; |
||||
font-size: 0.875rem; |
||||
margin-top: 1.5rem; |
||||
} |
||||
|
||||
.name { |
||||
font-weight: bold; |
||||
color: var(--blue-1); |
||||
} |
||||
|
||||
.role { |
||||
font-weight: 600; |
||||
color: var(--purple-2); |
||||
line-height: 1.875; |
||||
} |
@ -0,0 +1,21 @@ |
||||
import React from "react"; |
||||
import styles from "./TeamMember.module.css"; |
||||
import { Image } from "./Image"; |
||||
|
||||
interface TeamMemberProps { |
||||
name: string; |
||||
role: string; |
||||
src: string; |
||||
} |
||||
|
||||
export const TeamMember: React.FC<TeamMemberProps> = ({ name, role, src }) => { |
||||
return ( |
||||
<div className={styles.container}> |
||||
<Image className={styles.img} src={src} alt={`${name} | ${role}`} /> |
||||
<div className={styles.caption}> |
||||
<div className={styles.name}>{name}</div> |
||||
<div className={styles.role}>{role}</div> |
||||
</div> |
||||
</div> |
||||
); |
||||
}; |
@ -0,0 +1,5 @@ |
||||
export const metadata = { |
||||
name: "Name Name", |
||||
role: "Role", |
||||
src: "images/playground/team-member.png" |
||||
} |
After Width: | Height: | Size: 210 B |
Loading…
Reference in new issue