29 lines
770 B
TypeScript
29 lines
770 B
TypeScript
|
import { ReactNode } from "react";
|
||
|
import { ArrowLongRightIcon } from "@heroicons/react/24/solid";
|
||
|
import Link from "next/link";
|
||
|
|
||
|
interface Props {
|
||
|
className?: string;
|
||
|
href: string;
|
||
|
target?: string;
|
||
|
children?: ReactNode;
|
||
|
}
|
||
|
|
||
|
const LearnMoreLink = ({ className, href, target, children }: Props) => {
|
||
|
return (
|
||
|
<Link
|
||
|
target={target}
|
||
|
href={href}
|
||
|
className={
|
||
|
"m-3 my-0 inline-block rounded-lg bg-primary-500 p-3 text-center align-middle font-bold text-primary-100 drop-shadow-md transition-all duration-300 hover:bg-secondary-500 hover:drop-shadow-xl " +
|
||
|
className
|
||
|
}
|
||
|
>
|
||
|
{children}{" "}
|
||
|
<ArrowLongRightIcon className="inline w-[24px]"></ArrowLongRightIcon>
|
||
|
</Link>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default LearnMoreLink;
|