Skip to content

Commit 1f20a80

Browse files
committed
include meshmate emeritus
Signed-off-by: Rian Cteulp <[email protected]>
1 parent 2ba2cbd commit 1f20a80

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

src/sections/Community/Meshmates/index.js

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Meshmates = () => {
1717
graphql`query meshmates {
1818
allMdx(
1919
sort: {frontmatter: {name: ASC}}
20-
filter: {fields: {collection: {eq: "members"}}, frontmatter: {meshmate: {eq: "yes"}, emeritus: {ne: "yes"}, status: { ne: "Inactive" }}}
20+
filter: {fields: {collection: {eq: "members"}}, frontmatter: {meshmate: {eq: "yes"}, status: { ne: "Inactive" }}}
2121
) {
2222
nodes {
2323
id
@@ -48,6 +48,15 @@ const Meshmates = () => {
4848
}`
4949
);
5050

51+
// Separate active and emeritus MeshMates
52+
const activeMeshMates = data.allMdx.nodes.filter(
53+
({ frontmatter }) => frontmatter.emeritus !== "yes"
54+
);
55+
56+
const emeritusMeshMates = data.allMdx.nodes.filter(
57+
({ frontmatter }) => frontmatter.emeritus === "yes"
58+
);
59+
5160
return (
5261
<MeshMatesWrapper>
5362
<Container>
@@ -72,13 +81,30 @@ const Meshmates = () => {
7281
<Row style={{
7382
flexWrap: "wrap"
7483
}}>
75-
{data.allMdx.nodes.map(({ id, frontmatter, fields }) => (
84+
{activeMeshMates.map(({ id, frontmatter, fields }) => (
7685
<Col $xs={12} $sm={6} $lg={4} key={id}>
7786
<ProfileCard frontmatter={frontmatter} cardlink={fields.slug} />
7887
</Col>
7988
))}
8089
</Row>
8190
</div>
91+
92+
{emeritusMeshMates.length > 0 && (
93+
<div className="meshmates-grid emeritus-section">
94+
<h1> Emeritus MeshMates </h1>
95+
<p> These MeshMates have previously served the Layer5 community with distinction. While they are no longer active in the MeshMate program, their contributions and impact continue to influence our community. </p>
96+
<Row style={{
97+
flexWrap: "wrap"
98+
}}>
99+
{emeritusMeshMates.map(({ id, frontmatter, fields }) => (
100+
<Col $xs={12} $sm={6} $lg={4} key={id}>
101+
<ProfileCard frontmatter={frontmatter} cardlink={fields.slug} />
102+
</Col>
103+
))}
104+
</Row>
105+
</div>
106+
)}
107+
82108
<div className="expect">
83109
<h5> What to Expect </h5>
84110
<h2> Engaging with a MeshMate</h2>

src/sections/Community/Meshmates/meshmates.style.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,20 @@ const MeshMatesWrapper = styled.div`
105105
}
106106
}
107107
}
108+
109+
.emeritus-section {
110+
margin-top: 3rem;
111+
padding-top: 1.5rem;
112+
border-top: 1px solid ${props => props.theme.grey212121Toblack};
113+
114+
h1 {
115+
color: ${props => props.theme.primaryColor};
116+
}
117+
118+
p {
119+
margin-bottom: 2rem;
120+
}
121+
}
108122
`;
109123

110124
export default MeshMatesWrapper;

0 commit comments

Comments
 (0)