@ -1,5 +1,5 @@
import React from "react" ;
import { getExecContent , getExecNames , Metadata } from "../../lib/team" ;
import { getExec , getExecNames , Metadata } from "../../lib/team" ;
import { MDXRemote , MDXRemoteSerializeResult } from "next-mdx-remote" ;
import { GetStaticProps } from "next" ;
import { Image } from "../../components/Image" ;
@ -7,7 +7,6 @@ import { TeamMemberCard } from "../../components/TeamMemberCard";
import { TeamMember } from "../../components/TeamMember" ;
import { Link } from "../../components/Link" ;
import { Bubble } from "../../components/Bubble" ;
import ElectionContent from "../../content/meet-the-team/elections.mdx" ;
import programme from "../../content/meet-the-team/programme-committee.json" ;
import website from "../../content/meet-the-team/website-committee.json" ;
import systems from "../../content/meet-the-team/systems-committee.json" ;
@ -25,11 +24,11 @@ interface Props {
execs : SerializedExec [ ] ;
}
export default function MeetThe Team( { execs } : Props ) {
export default function Team ( { execs } : Props ) {
return (
< >
< div className = { styles . header_c ontainer } >
< div className = { styles . header_text_c ontainer } >
< div className = { styles . headerC ontainer } >
< div className = { styles . headerTextC ontainer } >
< h1 className = { styles . header } > Meet the Team ! < / h1 >
< div className = { styles . nav } >
< Link href = "#execs" > The Executives < / Link >
@ -57,22 +56,25 @@ export default function MeetTheTeam({ execs }: Props) {
) ;
} ) }
< / div >
< div className = { styles . programme } id = "programme" >
< div id = "programme" >
< h2 className = { styles . subheading } > Programme Committee < / h2 >
< MembersList team = { programme } / >
< / div >
< div className = { styles . website } id = "website" >
< div id = "website" >
< h2 className = { styles . subheading } > Website Committee < / h2 >
< MembersList team = { website } / >
< / div >
< div className = { styles . system } id = "system" >
< div id = "system" >
< h2 className = { styles . subheading } > Systems Committee < / h2 >
< MembersList team = { systems } / >
< / div >
< Bubble >
< div className = { styles . elections } >
< h2 className = { styles . election_subheading } > Elections < / h2 >
< ElectionContent / >
< h2 className = { styles . electionSubheading } > Elections < / h2 >
To find out when and where the next elections will be held , keep an
eye on on the < Link href = "" > News < / Link > . < br / >
For details on the elections , read our
< Link href = "/about/constitution" > Constitution < / Link >
< / div >
< / Bubble >
< / >
@ -96,7 +98,7 @@ function MembersList(props: MembersProps) {
export const getStaticProps : GetStaticProps < Props > = async ( ) = > {
const execNames = await getExecNames ( ) ;
const execs = ( await Promise . all (
execNames . map ( ( name ) = > getExecContent ( name ) )
execNames . map ( ( name ) = > getExec ( name ) )
) ) as SerializedExec [ ] ;
return {