Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create team page #687

Merged
merged 3 commits into from
Sep 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}
}
}
`