research-index / src /components /event-content-card.tsx
ameerazampixis's picture
new
06a7653
raw
history blame
No virus
1.96 kB
import Image from "next/image";
import {
Typography,
Card,
CardHeader,
CardBody,
Avatar,
} from "@material-tailwind/react";
interface EventContentCardProps {
title: string;
des: string;
name: string;
position: string;
panel: string;
img: string;
}
export function EventContentCard({
title,
des,
name,
position,
panel,
img,
}: EventContentCardProps) {
return (
<Card placeholder={""}
color="transparent"
shadow={false}
className="lg:!flex-row mb-10 lg:items-end"
>
<CardHeader placeholder={""}
floated={false}
shadow={false}
className="h-[32rem] max-w-[28rem] shrink-0"
>
<Image
width={768}
height={768}
src={img}
alt="testimonial image"
className="h-full w-full object-cover"
/>
</CardHeader>
<CardBody className="col-span-full lg:col-span-3" placeholder={""}>
<Typography variant="h6" color="blue-gray" className="mb-4" placeholder={""}>
{panel}
</Typography>
<Typography variant="h2" color="blue-gray" className="mb-4 font-medium" placeholder={""}>
{title}
</Typography>
<Typography className="mb-12 md:w-8/12 font-medium !text-gray-500" placeholder={""}>
{des}
</Typography>
<div className="flex items-center gap-4">
<Avatar placeholder={""}
variant="circular"
src="/logos/spotify-logo.png"
alt="spotify"
size="lg"
/>
<div>
<Typography variant="h6" color="blue-gray" className="mb-0.5" placeholder={""}>
{name}
</Typography>
<Typography variant="small" className="font-normal !text-gray-500" placeholder={""}>
{position}
</Typography>
</div>
</div>
</CardBody>
</Card>
);
}
export default EventContentCard;