Remove Bill from Syscom + Fix Andrew's picture (#226)

Fixes #196

https://csclub.uwaterloo.ca/~a3thakra/csc/adi-fix-syscom/about/team/

Reviewed-on: www/www-new#226
Reviewed-by: Max Erenberg <merenber@csclub.uwaterloo.ca>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
fix-md-font
Aditya Thakral 1 year ago
parent 1074c22cb5
commit 9c6d5ccf16
  1. 7
      content/meet-the-team/systems-committee.json
  2. 4
      lib/team.ts
  3. 6
      pages/about/team.tsx
  4. BIN
      public/images/team/AndrewWang-Syscom.jpg

@ -5,11 +5,8 @@
},
{
"name": "Andrew Wang",
"role": "Member"
},
{
"name": "Bill Xiang",
"role": "Member"
"role": "Member",
"image": "/images/team/AndrewWang-Syscom.jpg"
},
{
"name": "Raymond Li",

@ -22,7 +22,9 @@ export async function getExecNames() {
export async function getExec(fileName: string, convert = true) {
const raw = await readFile(path.join(EXECS_PATH, `${fileName}${fileType}`));
const { content, data: metadata } = matter(raw);
const image = await getMemberImagePath(metadata.name);
const image =
(metadata.image as string | undefined) ??
(await getMemberImagePath(metadata.name));
return {
content: convert ? await serialize(content) : content,

@ -110,10 +110,12 @@ function MembersList(props: MembersProps) {
);
}
async function getTeamWithImages(team: Omit<Metadata, "image">[]) {
type TeamMember = Omit<Metadata, "image"> & { image?: string };
async function getTeamWithImages(team: TeamMember[]) {
return await Promise.all(
team.map(async (member) => {
const image = await getMemberImagePath(member.name);
const image = member.image ?? (await getMemberImagePath(member.name));
return {
...member,
image,

Binary file not shown.

After

Width:  |  Height:  |  Size: 907 KiB

Loading…
Cancel
Save