Skip to content

Commit

Permalink
Add year to community recipient badge
Browse files Browse the repository at this point in the history
  • Loading branch information
breezyfasano committed Sep 17, 2024
1 parent 30e7531 commit 9a128be
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions website/docs/community/spotlight/alison-stanton.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ socialLinks:
dateCreated: 2023-11-07
hide_table_of_contents: true
communityAward: true
communityAwardYear: 2023
---

## When did you join the dbt community and in what way has it impacted your career?
Expand Down
1 change: 1 addition & 0 deletions website/docs/community/spotlight/bruno-de-lima.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ socialLinks:
dateCreated: 2023-11-05
hide_table_of_contents: true
communityAward: true
communityAwardYear: 2023
---

## When did you join the dbt community and in what way has it impacted your career?
Expand Down
1 change: 1 addition & 0 deletions website/docs/community/spotlight/dakota-kelley.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ socialLinks:
dateCreated: 2023-11-08
hide_table_of_contents: true
communityAward: true
communityAwardYear: 2023
---

## When did you join the dbt community and in what way has it impacted your career?
Expand Down
1 change: 1 addition & 0 deletions website/docs/community/spotlight/fabiyi-opeyemi.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ socialLinks:
dateCreated: 2023-11-06
hide_table_of_contents: true
communityAward: true
communityAwardYear: 2023
---

## When did you join the dbt community and in what way has it impacted your career?
Expand Down
1 change: 1 addition & 0 deletions website/docs/community/spotlight/josh-devlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ socialLinks:
dateCreated: 2023-11-10
hide_table_of_contents: true
communityAward: true
communityAwardYear: 2023
---

## When did you join the dbt community and in what way has it impacted your career?
Expand Down
1 change: 1 addition & 0 deletions website/docs/community/spotlight/karen-hsieh.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ socialLinks:
dateCreated: 2023-11-04
hide_table_of_contents: true
communityAward: true
communityAwardYear: 2023
---

## When did you join the dbt community and in what way has it impacted your career?
Expand Down
1 change: 1 addition & 0 deletions website/docs/community/spotlight/oliver-cramer.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ socialLinks:
dateCreated: 2023-11-02
hide_table_of_contents: true
communityAward: true
communityAwardYear: 2023
---

## When did you join the dbt community and in what way has it impacted your career?
Expand Down
1 change: 1 addition & 0 deletions website/docs/community/spotlight/sam-debruyn.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ socialLinks:
dateCreated: 2023-11-03
hide_table_of_contents: true
communityAward: true
communityAwardYear: 2023
---

## When did you join the dbt community and in what way has it impacted your career?
Expand Down
1 change: 1 addition & 0 deletions website/docs/community/spotlight/stacy-lo.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ socialLinks:
dateCreated: 2023-11-01
hide_table_of_contents: true
communityAward: true
communityAwardYear: 2023
---

## When did you join the dbt community and in what way has it impacted your career?
Expand Down
1 change: 1 addition & 0 deletions website/docs/community/spotlight/sydney-burns.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ socialLinks:
dateCreated: 2023-11-09
hide_table_of_contents: true
communityAward: true
communityAwardYear: 2023
---

## When did you join the dbt community and in what way has it impacted your career?
Expand Down
5 changes: 3 additions & 2 deletions website/src/components/communitySpotlightCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ function CommunitySpotlightCard({ frontMatter, isSpotlightMember = false }) {
companyName,
organization,
socialLinks,
communityAward
communityAward,
communityAwardYear,
} = frontMatter

// Get meta description text
Expand All @@ -74,7 +75,7 @@ function CommunitySpotlightCard({ frontMatter, isSpotlightMember = false }) {
) : null}
{communityAward ? (
<div className={styles.awardBadge}>
<span>Community Award Recipient</span>
<span>Community Award Recipient {`${communityAwardYear}`}</span>
</div>
) : null}
{image && (
Expand Down
9 changes: 6 additions & 3 deletions website/src/components/communitySpotlightList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ function CommunitySpotlightList({ spotlightData }) {
{previousSpotlightMembers?.length ? (
<>
<h2>Previously on the Spotlight</h2>
{previousSpotlightMembers.map((member, i) => (
<CommunitySpotlightCard frontMatter={member.data} key={i} />
))}
{previousSpotlightMembers.map((member, i) => {
console.log(member.data)
return <CommunitySpotlightCard frontMatter={member.data} key={i} />
}

)}
</>
) : ''}
</>
Expand Down

0 comments on commit 9a128be

Please sign in to comment.