-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update team data and add to layout
- Loading branch information
1 parent
4fb599d
commit 826c3ca
Showing
7 changed files
with
113 additions
and
21 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,6 @@ | ||
.cardsHolder { | ||
margin-top: 20px; | ||
display: grid; | ||
gap: 16px; | ||
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); | ||
} |
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,42 @@ | ||
import React from "react" | ||
import { useStaticQuery, graphql } from "gatsby" | ||
|
||
import styles from "./styles.module.css" | ||
import AboutCards from "../About Card" | ||
|
||
const Team = () => { | ||
const teamQuery = graphql` | ||
query { | ||
allTeamYaml { | ||
edges { | ||
name | ||
role | ||
image { | ||
childImageSharp { | ||
fixed(width: 100) { | ||
...GatsbyImageSharpFixed_tracedSVG | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
` | ||
|
||
const { | ||
allTeamYaml: { edges }, | ||
} = useStaticQuery(teamQuery) | ||
|
||
return ( | ||
<div className={styles.cardsHolder}> | ||
{edges.map((teamMember, key) => { | ||
return <AboutCards key={key} teamMember={teamMember.node} /> | ||
})} | ||
{/* <AboutCards | ||
imageSrc={image} | ||
name="Anisio Mandlate" | ||
role="Software developer" | ||
/> */} | ||
</div> | ||
) | ||
} |
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
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