diff --git a/src/components/Leaderboard.astro b/src/components/Leaderboard.astro index d7dadef..9693042 100644 --- a/src/components/Leaderboard.astro +++ b/src/components/Leaderboard.astro @@ -10,21 +10,47 @@ const { grouped } = Astro.props; import LeaderboardMember from "./LeaderboardMember.astro"; import { - getMembers, formatDevGroupBounds, filterInactiveMembers, groupMembers, + getMembers, getGrandTotalRaised, fmtCurrency, formatDevGroupBounds, filterInactiveMembers, groupMembers, sortMembersByDevs, DEV_GROUP_BOUNDS } from '../members.ts'; const members = filterInactiveMembers(await getMembers()); --- -{grouped ?
- {groupMembers(members).map((groupMembers, idx) => groupMembers.length > 0 &&
-

{formatDevGroupBounds(DEV_GROUP_BOUNDS[idx])}

+
+

Our members have raised a total of {fmtCurrency(await getGrandTotalRaised())}!

+ {grouped ?
+ {groupMembers(members).map((groupMembers, idx) => groupMembers.length > 0 &&
+

{formatDevGroupBounds(DEV_GROUP_BOUNDS[idx])}

+ + + + + + + + + + {sortMembersByDevs(groupMembers).map((member) => + + )} + +
Name + Devs + + $/dev +
+
)} +
: ( - - {sortMembersByDevs(groupMembers).map((member) => + {sortMembersByDevs(members).map((member) => )}
Name + Devs @@ -35,36 +61,19 @@ const members = filterInactiveMembers(await getMembers());
-
)} -
: ( - - - - - - - - - - {sortMembersByDevs(members).map((member) => - - )} - -
Name - Devs - - $/dev -
-)} + )} +