mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-05 20:26:43 +02:00
🐛 fix: team members
This commit is contained in:
@@ -33,9 +33,23 @@ export function TeamMemberCard({ user, role, description }: TeamMemberCardProps)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p className="mt-4 text-gray-600 flex-grow">{description}</p>
|
||||
{/* Show full description on hover */}
|
||||
<motion.p
|
||||
className="mt-4 text-gray-600 flex-grow line-clamp-2"
|
||||
whileHover={{ opacity: 1 }}
|
||||
initial={{ opacity: 0.7 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
>
|
||||
{description}
|
||||
</motion.p>
|
||||
|
||||
<div className="mt-4 flex items-center gap-4 text-sm text-gray-500">
|
||||
{/* Additional information shown when hovering */}
|
||||
<motion.div
|
||||
className="mt-4 flex items-center gap-4 text-sm text-gray-500"
|
||||
whileHover={{ opacity: 1 }}
|
||||
initial={{ opacity: 0.5 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
>
|
||||
<div className="flex items-center gap-1">
|
||||
<Users className="h-4 w-4" />
|
||||
<span>{user.followers.toLocaleString()} followers</span>
|
||||
@@ -44,7 +58,7 @@ export function TeamMemberCard({ user, role, description }: TeamMemberCardProps)
|
||||
<Book className="h-4 w-4" />
|
||||
<span>{user.public_repos} repos</span>
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
<a
|
||||
href={user.html_url}
|
||||
|
Reference in New Issue
Block a user