Skip to content

Commit 8b96fcf

Browse files
authored
Merge pull request #450 from CodeForPhilly/website-add-volunteers
Website add volunteers, adjust sorting and rendering
2 parents df891e6 + e3c4984 commit 8b96fcf

7 files changed

Lines changed: 37 additions & 11 deletions

File tree

2.07 MB
Loading
1.15 MB
Loading
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Justin MacIntosh
3+
role: Software Engineer
4+
link: https://www.linkedin.com/in/justin-macintosh-bba6686a
5+
photo: ../../team-photos/placeholder.png
6+
photoAlt: Profile image placeholder
7+
---
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Michael Dratch
3+
role: Software Engineer
4+
link:
5+
photo: ../../team-photos/IMG_3983 - Michael Dratch.jpeg
6+
photoAlt: A smiling man with short dark hair and a light beard is wearing a light gray button-up shirt and posing outdoors against a blurred background of modern buildings.
7+
---
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Tatum Marino
3+
role: UX Designer
4+
link: https://LinkedIn.com/in/tatum-marino
5+
photo: ../../team-photos/DMM174 (edited) - Tatum Marino.jpeg
6+
photoAlt: A smiling woman with medium-length brown hair wearing a high-necked, light-colored blouse poses confidently against a neutral gray background.
7+
---

website/src/components/Team.astro

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
import { getCollection } from "astro:content";
3-
const team = await getCollection("team");
3+
4+
const team = (await getCollection("team")).sort((a, b) =>
5+
a.data.name.localeCompare(b.data.name),
6+
);
47
const teamSorted: typeof team = [];
58
team.forEach((teamMember) => {
69
if (teamMember.data.role.includes("Co-Lead")) {
@@ -33,15 +36,17 @@ import { Image } from "astro:assets";
3336
/>
3437
<h3>{teamMember.data.name}</h3>
3538
<p class="font-bold mb-2">{teamMember.data.role}</p>
36-
<p>
37-
<a
38-
href={teamMember.data.link}
39-
target="_blank"
40-
class="text-bdt-blue underline"
41-
>
42-
Connect ↗
43-
</a>
44-
</p>
39+
{teamMember.data.link && (
40+
<p>
41+
<a
42+
href={teamMember.data.link}
43+
target="_blank"
44+
class="text-bdt-blue underline"
45+
>
46+
Connect ↗
47+
</a>
48+
</p>
49+
)}
4550
</div>
4651
</li>
4752
);

website/src/content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const team = defineCollection({
1717
z.object({
1818
name: z.string(),
1919
role: z.string(),
20-
link: z.string(),
20+
link: z.nullable(z.string()),
2121
photo: image(),
2222
photoAlt: z.string(),
2323
}),

0 commit comments

Comments
 (0)