Skip to content

Commit

Permalink
Create team page (#687)
Browse files Browse the repository at this point in the history
* feat : team page created

* feat : added my name to contributors

* feat: member data added to team page
  • Loading branch information
KeShaKreates committed Sep 25, 2022
1 parent 4ca7fe1 commit 36bcf56
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ By contributing to this project you agree to:
- Anthony Van Ong
- Jason Fritsche
- Queen Raae
- KeSha Smith
46 changes: 46 additions & 0 deletions src/pages/team.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { FC } from 'react'
import SimpleLayout from '@layouts/Simple'
import { graphql } from 'gatsby'

type Props = {
data: {
allDaTeamMember: {
nodes: any[]
}
}
}
const TeamPage: FC<Props> = ({ data }) => {
const members = data.allDaTeamMember.nodes
return (
<SimpleLayout pageTitle="Team">
<h1 className="text-2xl">Meet the Team</h1>
<ul>
{members.map((member: any) => {
return (
<li>
<span>{member.name}</span>
<span>({member.pronouns})</span>
</li>
)
})}
</ul>
</SimpleLayout>
)
}

export default TeamPage

export const pageQuery = graphql`
query TeamQuery {
allDaTeamMember {
nodes {
bio
name
pronouns
profilePhoto {
gatsbyImageData
}
}
}
}
`

0 comments on commit 36bcf56

Please sign in to comment.