change(ui): example cards overlay click
This commit is contained in:
parent
90c6b3b536
commit
6f793582f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue