mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-17 19:26:23 +00:00
docs: ⚡ added contributors
This commit is contained in:
32
packages/docs/src/components/widgets/Collaborator.tsx
Normal file
32
packages/docs/src/components/widgets/Collaborator.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
import { component$ } from '@builder.io/qwik'
|
||||
|
||||
export default component$(
|
||||
(props: {
|
||||
user: {
|
||||
id: number
|
||||
login: string
|
||||
html_url: string
|
||||
avatar_url: string
|
||||
}
|
||||
}) => {
|
||||
return (
|
||||
<figure class="bg-gray-50 rounded p-4 dark:bg-slate-800">
|
||||
<a href={props.user.html_url} target="_blank">
|
||||
<img
|
||||
class="w-16 h-16 rounded-full mx-auto object-cover"
|
||||
src={props.user.avatar_url}
|
||||
alt={props.user.login}
|
||||
width="384"
|
||||
height="512"
|
||||
/>
|
||||
</a>
|
||||
|
||||
<div class="pt-2 space-y-4 justify-center flex">
|
||||
<figcaption class="text-sm">
|
||||
<div class={'font-semibold'}>{props.user.login}</div>
|
||||
</figcaption>
|
||||
</div>
|
||||
</figure>
|
||||
)
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user