Files
better-auth/docs/components/contributors.tsx
Bereket Engida 04936e128f docs: updated og image and add merch link to community section (#6251)
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>
2025-11-23 20:35:38 -08:00

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>
);
}