generated from UoaWDCC/react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58003d9
commit 4aa208d
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} |