mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 19:28:16 +00:00
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import Image from 'next/image';
|
|
|
|
interface Framework {
|
|
name: string;
|
|
slug: string;
|
|
image: string;
|
|
docsLink: string;
|
|
}
|
|
|
|
const FrameworkIntegration = ({ framework }: { framework: Framework }) => {
|
|
return (
|
|
<a
|
|
href={framework.docsLink}
|
|
rel='noopener'
|
|
className={`relative flex flex-row items-center justify-center bg-bunker-500 hover:bg-gradient-to-tr duration-200 h-32 rounded-md p-0.5 items-center cursor-pointer`}
|
|
>
|
|
<div
|
|
className={`hover:bg-white/10 duration-200 cursor-pointer font-semibold bg-bunker-500 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'
|
|
></Image>
|
|
)}
|
|
{framework?.name && framework?.image && <div className='h-2'></div>}
|
|
{framework?.name && framework.name}
|
|
</div>
|
|
</a>
|
|
);
|
|
};
|
|
|
|
export default FrameworkIntegration;
|