mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-02 04:16:38 -05:00
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com> Co-authored-by: Maxwell Weru <1645026+mburumaxwell@users.noreply.github.com> Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Slava Yultyyev <yultyyev@gmail.com> Co-authored-by: Joél Solano <joelsolano@jsolano.de>
35 lines
941 B
TypeScript
35 lines
941 B
TypeScript
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
|
|
|
interface ContributorsProps {
|
|
usernames: string[];
|
|
}
|
|
|
|
export function Contributors({ usernames }: ContributorsProps) {
|
|
return (
|
|
<div className="not-prose my-8">
|
|
<div className="flex flex-wrap gap-3 items-center justify-center">
|
|
{usernames.map((username) => (
|
|
<a
|
|
href={`https://github.com/${username}`}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
key={username}
|
|
className="group relative transition-transform hover:scale-110"
|
|
title={`@${username}`}
|
|
>
|
|
<Avatar className="h-12 w-12 ring-2 ring-border group-hover:ring-primary transition-all">
|
|
<AvatarImage
|
|
src={`https://github.com/${username}.png`}
|
|
alt={`@${username}`}
|
|
/>
|
|
<AvatarFallback>
|
|
{username.charAt(0).toUpperCase()}
|
|
</AvatarFallback>
|
|
</Avatar>
|
|
</a>
|
|
))}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|