β¬ οΈ Back to Table of Contents
π TeamBio¶
π Analysis Summary¶
| Metric | Count |
|---|---|
| π§ Functions | 1 |
| π¦ Imports | 2 |
| π JSX Elements | 8 |
| π Interfaces | 1 |
π Table of Contents¶
π οΈ File Location:¶
π packages/website/src/components/team/TeamBio.tsx
π¦ Imports¶
| Name | Source |
|---|---|
React |
react |
styles |
./TeamBio.module.css |
JSX Elements¶
Functions¶
TeamBio({ description, links = [], nameβ¦: BioEntry): React.JSX.Element¶
Parameters:
{ description, links = [], name, username, }BioEntry
Returns: React.JSX.Element
Calls:
[['github',https://github.com/${username}] as const, ...links] .sort(([a], [b]) => a.localeCompare(b)) .map
Code
export function TeamBio({
description,
links = [],
name,
username,
}: BioEntry): React.JSX.Element {
return (
<li className={styles.teamBio}>
<img
alt=""
className={styles.profilePhoto}
src={`/img/team/${username}.jpg`}
/>
<div className={styles.texts}>
<strong className={styles.name}>{name}</strong>
<p className={styles.description}> {description}</p>
</div>
<ol className={styles.services}>
{[['github', `https://github.com/${username}`] as const, ...links]
.sort(([a], [b]) => a.localeCompare(b))
.map(([service, url]) => (
<li key={service}>
<a
aria-label={`${service}-link`}
className={`image-link ${service}-link social-link-icon ${styles.serviceIconLink}`}
href={url}
target="_blank"
/>
</li>
))}
</ol>
</li>
);
}
Interfaces¶
BioEntry¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
description |
string |
β | not shown |
links |
[string, string][] |
β | not shown |
name |
string |
β | not shown |
username |
string |
β | not shown |
Generated by Syntax Scribe