Add frameworks

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-12-16 00:48:06 +01:00
parent d702c4b7c6
commit b137f94b29
30 changed files with 26538 additions and 117 deletions

View File

@@ -65,10 +65,10 @@ export function AuditRow(props: { audit: AuditRowFragment$key }) {
};
const [hasRequested, setHasRequested] = useState(
audit.report?.hasUserRequestedAccess,
audit.report?.hasUserRequestedAccess
);
return (
<div className="text-sm border-1 border-border-solid -mt-[1px] flex gap-3 flex-col md:flex-row md:justify-between px-6 py-3">
<div className="text-sm border border-border-solid -mt-px flex gap-3 flex-col md:flex-row md:justify-between px-6 py-3">
<div className="flex items-center gap-2">
<IconMedal size={16} className="flex-none text-txt-tertiary" />
{audit.framework.name}
@@ -131,7 +131,9 @@ export function AuditRowAvatar(props: { audit: AuditRowFragment$key }) {
) : (
<div
className="bg-[#F0F7E2] aspect-square w-full rounded-full text-xs text-[#000] font-bold flex items-center justify-center pb-6 px-2"
style={{ background: `url(${getLogoUrl("blank.svg")}) no-repeat` }}
style={{
background: `url(${getLogoUrl("blank.svg")}) no-repeat`,
}}
>
<span className="line-clamp-2 overflow-hidden">
{" "}
@@ -146,7 +148,7 @@ export function AuditRowAvatar(props: { audit: AuditRowFragment$key }) {
}
function AuditDialog(
props: PropsWithChildren<{ audit: AuditRowFragment$key; logo?: string }>,
props: PropsWithChildren<{ audit: AuditRowFragment$key; logo?: string }>
) {
const audit = useFragment(auditRowFragment, props.audit);
const location = useLocation();

View File

@@ -20,7 +20,7 @@ export function OrganizationSidebar({
}
return (
<Card className="p-6 relative overflow-hidden border-b-1 border-border-low isolate">
<Card className="p-6 relative overflow-hidden border-b border-border-low isolate">
<div className="h-21 bg-[#044E4114] absolute top-0 left-0 right-0 -z-1"></div>
{trustCenter.organization.logoUrl ? (
<img
@@ -36,7 +36,7 @@ export function OrganizationSidebar({
{trustCenter.organization.description}
</p>
<hr className="my-6 -mx-6 h-[1px] bg-border-low border-none" />
<hr className="my-6 -mx-6 h-px bg-border-low border-none" />
{/* Business information */}
<div className="space-y-4">
@@ -68,7 +68,7 @@ export function OrganizationSidebar({
</BusinessInfo>
)}
<hr className="my-6 -mx-6 h-[1px] bg-border-low border-none" />
<hr className="my-6 -mx-6 h-px bg-border-low border-none" />
{/* Certifications */}
{trustCenter.audits.edges.length > 0 && (