fix link button

This commit is contained in:
Noah Swerhun 2024-04-15 12:57:58 -05:00
parent 35f334c545
commit a2d95b8d73

View file

@ -5,8 +5,12 @@ import cn from "@/scripts/cn";
const { class: cls, ...rest }: HTMLAttributes<"a"> = Astro.props; const { class: cls, ...rest }: HTMLAttributes<"a"> = Astro.props;
--- ---
<div <a
class="inline-block bg-primary text-secondary rounded-lg hover:bg-white transition-all duration-300" class={cn(
"inline-block bg-primary text-secondary rounded-lg hover:bg-white transition-all duration-300block font-body py-3 px-6 text-center",
cls,
)}
{...rest}
>
<slot /> →</a
> >
<a class="block font-body py-3 px-6 text-center" {...rest}> <slot /> →</a>
</div>