@theguild/components
Version:
39 lines (38 loc) • 1.37 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import { cn } from "../../cn";
import { ReactComponent as CSAStarLevelOneIcon } from "../icons/csa-star-level-one";
function SecurityBadge({
href,
children,
className
}) {
return /* @__PURE__ */ jsx(
"a",
{
href,
target: "_blank",
rel: "noreferrer noopener",
className: cn(
"hive-focus size-fit rounded-full p-1 hover:bg-blue-200 focus-visible:outline-none focus-visible:ring-offset-2 focus-visible:ring-offset-[rgb(var(--nextra-bg))] dark:hover:bg-white/20 dark:hover:*:opacity-100",
className
),
children
}
);
}
function SecurityBadges() {
return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-4 max-lg:flex-col", children: [
/* @__PURE__ */ jsx(SecurityBadge, { href: "https://cloudsecurityalliance.org/star/registry/software-products-guild-ltd-the-guild/services/graphql-hive", children: /* @__PURE__ */ jsx(CSAStarLevelOneIcon, { className: "size-[88px] dark:opacity-95" }) }),
/* @__PURE__ */ jsx(SecurityBadge, { href: "https://security.graphql-hive.com/", children: /* @__PURE__ */ jsx(
"img",
{
src: "https://static.vanta.com/static/soc2_badge.ac7ad1ad.webp",
alt: "AICPA SOC 2",
className: "size-[88px] dark:opacity-95"
}
) })
] });
}
export {
SecurityBadges
};