fix link button
This commit is contained in:
parent
35f334c545
commit
a2d95b8d73
1 changed files with 8 additions and 4 deletions
|
@ -5,8 +5,12 @@ import cn from "@/scripts/cn";
|
|||
const { class: cls, ...rest }: HTMLAttributes<"a"> = Astro.props;
|
||||
---
|
||||
|
||||
<div
|
||||
class="inline-block bg-primary text-secondary rounded-lg hover:bg-white transition-all duration-300"
|
||||
<a
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue