-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat : team page created * feat : added my name to contributors * feat: member data added to team page
- Loading branch information
1 parent
4ca7fe1
commit 36bcf56
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ By contributing to this project you agree to: | |
- Anthony Van Ong | ||
- Jason Fritsche | ||
- Queen Raae | ||
- KeSha Smith |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} | ||
` |