change(ui): example cards overlay click

This commit is contained in:
Shekar Siri 2024-06-27 18:05:50 +02:00
parent 90c6b3b536
commit 6f793582f6

View file

@ -13,12 +13,12 @@ function ExCard({
onCard: (card: string) => void;
height?: number;
}) {
console.log(type)
return (
<div
className={'rounded-lg overflow-hidden border border-transparent p-4 bg-white hover:border-blue hover:shadow-sm relative'}
style={{width: '100%', height: height || 286}}
>
<div className="absolute inset-0 z-10 cursor-pointer" onClick={() => onCard(type)}></div>
<div className={'font-medium text-lg'}>{title}</div>
<div className={'flex flex-col gap-2 mt-2 cursor-pointer'}
style={{height: height ? height - 50 : 236}}