Skip to content

Commit

Permalink
web: add badges
Browse files Browse the repository at this point in the history
  • Loading branch information
burningtree committed Oct 27, 2023
1 parent 84edd45 commit 8a524fd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion web/src/components/ItemList.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,21 @@ if (cat === 'people') {

<div class="">
{items.map((item) => (
<div class="border p-3 mb-4">
<div class="border p-3 mb-4 flex gap-2">
<div class="text-lg">
<a href={`/${item.slug}`} class="hover:underline">{item.name}</a>
</div>
<div class="">
{item.protocolGuild?.member === true &&
<div class="inline-block border bg-red-100 px-1 py-0.5 text-xs">CORE</div>
}
{item.eips && item.eips.length > 0 &&
<div class="inline-block border bg-yellow-100 px-1 py-0.5 text-xs">EIP</div>
}
{item.ercs && item.ercs.length > 0 &&
<div class="inline-block border bg-blue-100 px-1 py-0.5 text-xs">ERC</div>
}
</div>
</div>
))}
<div>
Expand Down

0 comments on commit 8a524fd

Please sign in to comment.