mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 22:51:53 +00:00
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import Image from "next/image";
|
|
|
|
interface Framework {
|
|
name: string;
|
|
slug: string;
|
|
image: string;
|
|
docsLink: string;
|
|
}
|
|
|
|
const FrameworkIntegration = ({ framework }: { framework: Framework }) => (
|
|
<a
|
|
href={framework.docsLink}
|
|
rel="noopener noreferrer"
|
|
target="_blank"
|
|
className="relative flex flex-row justify-center duration-200 h-32 rounded-md p-0.5 items-center cursor-pointer"
|
|
>
|
|
<div
|
|
className={`hover:bg-mineshaft-700 cursor-pointer font-semibold bg-mineshaft-800 border border-mineshaft-600 flex flex-col items-center justify-center h-full w-full rounded-md text-gray-300 group-hover:text-gray-200 duration-200 ${
|
|
framework?.name?.split(" ").length > 1 ? "text-sm px-1" : "text-xl px-2"
|
|
} text-center w-full max-w-xs`}
|
|
>
|
|
{framework?.image && (
|
|
<Image
|
|
src={`/images/integrations/${framework.image}.png`}
|
|
height={framework?.name ? 60 : 90}
|
|
width={framework?.name ? 60 : 90}
|
|
alt="integration logo"
|
|
/>
|
|
)}
|
|
{framework?.name && framework?.image && <div className="h-2" />}
|
|
{framework?.name && framework.name}
|
|
</div>
|
|
</a>
|
|
);
|
|
|
|
export default FrameworkIntegration;
|