Skip to content

Commit

Permalink
UADS-69 feat: added ExecCard
Browse files Browse the repository at this point in the history
  • Loading branch information
n1cholastan committed Jul 20, 2024
1 parent 58003d9 commit 4aa208d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions web/src/components/ExecCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { ExecCardProps } from "@utils/FrontendTypes";


export default function ExecCard({ exec }: ExecCardProps) {
const { image, name, role } = exec
return (
<div className="relative w-fit aspect-square group overflow-hidden rounded-3xl bg-pink xl:m-5">
<img
src={image}
alt={name}
className="w-full h-full object-cover transition-all duration-300 ease-in-out group-hover:brightness-50"
/>
<div className="bg-pink absolute inset-0 flex flex-col items-center justify-center opacity-0 group-hover:opacity-95 transition-opacity duration-300 ease-in-out">
<h3 className="text-sm md:text-xl font-semibold text-light-pink text-center">{role}:</h3>
<p className="text-sm md:text-xl font-normal mt-2 text-light-pink text-center">{name}</p>
</div>
</div>
)
}

0 comments on commit 4aa208d

Please sign in to comment.