11---
22import PageLayout from " ../../layouts/PageLayout.astro" ;
33import Section from " ../../components/Section.astro" ;
4- import Container from " ../../components/Container.astro" ;
54import MemberSummary from " ../../components/MemberSummary.astro" ;
65import { members , POSSIBLE_ROLES , ROLE_CONFIGS , type Role } from " ../../data" ;
76import { Icon } from " astro-icon/components" ;
7+ import Link from " ../../components/Link.astro" ;
88
99export function getStaticPaths() {
1010 return [... POSSIBLE_ROLES , undefined ].map ((role ) => ({
@@ -27,21 +27,24 @@ const filteredMembers = members.filter((member) => {
2727 <div class =" flex flex-col md:flex-row justify-between items-start md:items-center gap-4" >
2828 <div class =" w-full md:w-auto" >
2929 <div class =" join hidden md:flex" >
30- <a href =" /community" class ={ ` btn join-item ${filter === undefined ? " btn-primary" : " " } ` } >
30+ <Link
31+ href =" /community"
32+ class ={ ` btn join-item ${filter === undefined ? " btn-primary" : " " } ` }
33+ >
3134 <Icon name =" lucide:users" size ={ 20 } class =" mr-2" />
3235 Everyone
33- </a >
36+ </Link >
3437 {
3538 POSSIBLE_ROLES .map ((role ) => {
3639 const config = ROLE_CONFIGS [role ];
3740 return (
38- <a
41+ <Link
3942 href = { ` /community/${role } ` }
4043 class = { ` btn join-item ${filter === role ? " btn-primary" : " " } ` }
4144 >
4245 <Icon name = { config .icon } size = { 20 } class = " mr-2" />
4346 { config .plural }
44- </a >
47+ </Link >
4548 );
4649 })
4750 }
@@ -56,20 +59,20 @@ const filteredMembers = members.filter((member) => {
5659 class =" dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box w-full"
5760 >
5861 <li >
59- <a href =" /community" class ={ filter === undefined ? " active" : " " } >
62+ <Link href =" /community" class ={ filter === undefined ? " active" : " " } >
6063 <Icon name =" lucide:users" size ={ 20 } class =" mr-2" />
6164 Everyone
62- </a >
65+ </Link >
6366 </li >
6467 {
6568 POSSIBLE_ROLES .map ((role ) => {
6669 const config = ROLE_CONFIGS [role ];
6770 return (
6871 <li >
69- <a href = { ` /community/${role } ` } class = { filter === role ? " active" : " " } >
72+ <Link href = { ` /community/${role } ` } class = { filter === role ? " active" : " " } >
7073 <Icon name = { config .icon } size = { 20 } class = " mr-2" />
7174 { config .plural }
72- </a >
75+ </Link >
7376 </li >
7477 );
7578 })
0 commit comments