Fixed dynamic text color for grid cards

This commit is contained in:
Julio Ruiz 2026-02-11 23:21:15 -05:00
parent 9f3c03fd46
commit 748dc0cd17
1 changed files with 3 additions and 3 deletions

View File

@ -11,9 +11,9 @@ const imageUrl = props.image || ''
<div class="aspect-square overflow-hidden">
<div class={`flex flex-col justify-between h-full bg-[${props.bgColor}]`}>
{ props.type === 'text' && (
<div class="p-16">
<Icon name={props.icon} class="text-8xl" />
<p>{props.text}</p>
<div class="p-16 flex flex-col justify-between h-full">
<Icon name={props.icon} class={`text-8xl text-[${textColor}]`} />
<p class={`text-[${textColor}]`}>{props.text}</p>
</div>
)}
{ props.type === 'image' && (