Skip to content

Commit e67e6c8

Browse files
committed
Add inactive MeshMates section and update filtering logic
Signed-off-by: Rian Cteulp <[email protected]>
1 parent 3027b9f commit e67e6c8

File tree

2 files changed

+38
-4
lines changed

2 files changed

+38
-4
lines changed

src/sections/Community/Meshmates/index.js

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ const Meshmates = () => {
4848
}`
4949
);
5050

51-
// Separate active and emeritus MeshMates
51+
// Separate MeshMates by status and emeritus flag
5252
const activeMeshMates = data.allMdx.nodes.filter(
53-
({ frontmatter }) => frontmatter.emeritus !== "yes"
53+
({ frontmatter }) => frontmatter.emeritus !== "yes" && frontmatter.status !== "Inactive"
54+
);
55+
56+
const inactiveMeshMates = data.allMdx.nodes.filter(
57+
({ frontmatter }) => frontmatter.emeritus !== "yes" && frontmatter.status === "Inactive"
5458
);
5559

5660
const emeritusMeshMates = data.allMdx.nodes.filter(
@@ -76,8 +80,8 @@ const Meshmates = () => {
7680
</Col>
7781
</Row>
7882
<div className="meshmates-grid">
79-
<h1> Our MeshMates </h1>
80-
<p> MeshMate is a distinction that Layer5 awards select members of the community that who innately align with the Layer5 culture of helping others, paying it forward, and have a commitment to sharing their knowledge of Layer5 projects with the community. MeshMates are Layer5 ambassadors (not employees) and their commitment to helping others and sharing their expertise has a huge impact on the Layer5 community – dont hesitate to reach out to them! </p>
83+
<h1> Active MeshMates </h1>
84+
<p> MeshMate is a distinction that Layer5 awards select members of the community that who innately align with the Layer5 culture of helping others, paying it forward, and have a commitment to sharing their knowledge of Layer5 projects with the community. MeshMates are Layer5 ambassadors (not employees) and their commitment to helping others and sharing their expertise has a huge impact on the Layer5 community – don't hesitate to reach out to them! </p>
8185
<Row style={{
8286
flexWrap: "wrap"
8387
}}>
@@ -89,6 +93,22 @@ const Meshmates = () => {
8993
</Row>
9094
</div>
9195

96+
{inactiveMeshMates.length > 0 && (
97+
<div className="meshmates-grid inactive-section">
98+
<h1> Inactive MeshMates </h1>
99+
<p> These MeshMates are currently on hiatus from active participation in the program but remain valued members of our community. </p>
100+
<Row style={{
101+
flexWrap: "wrap"
102+
}}>
103+
{inactiveMeshMates.map(({ id, frontmatter, fields }) => (
104+
<Col $xs={12} $sm={6} $lg={4} key={id}>
105+
<ProfileCard frontmatter={frontmatter} cardlink={fields.slug} />
106+
</Col>
107+
))}
108+
</Row>
109+
</div>
110+
)}
111+
92112
{emeritusMeshMates.length > 0 && (
93113
<div className="meshmates-grid emeritus-section">
94114
<h1> Emeritus MeshMates </h1>

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,20 @@ const MeshMatesWrapper = styled.div`
106106
}
107107
}
108108
109+
.inactive-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.secondaryColor};
116+
}
117+
118+
p {
119+
margin-bottom: 2rem;
120+
}
121+
}
122+
109123
.emeritus-section {
110124
margin-top: 3rem;
111125
padding-top: 1.5rem;

0 commit comments

Comments
 (0)