diff --git a/apps/trust/public/logos/blank.svg b/apps/trust/public/logos/blank.svg new file mode 100644 index 000000000..ce4a70196 --- /dev/null +++ b/apps/trust/public/logos/blank.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/apps/trust/public/logos/gdpr.png b/apps/trust/public/logos/gdpr.png deleted file mode 100644 index 72510b40a..000000000 Binary files a/apps/trust/public/logos/gdpr.png and /dev/null differ diff --git a/apps/trust/public/logos/gdpr.svg b/apps/trust/public/logos/gdpr.svg new file mode 100644 index 000000000..49eacc88a --- /dev/null +++ b/apps/trust/public/logos/gdpr.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/apps/trust/public/logos/hipaa.png b/apps/trust/public/logos/hipaa.png deleted file mode 100644 index 0b453b713..000000000 Binary files a/apps/trust/public/logos/hipaa.png and /dev/null differ diff --git a/apps/trust/public/logos/hipaa.svg b/apps/trust/public/logos/hipaa.svg new file mode 100644 index 000000000..7b5432d57 --- /dev/null +++ b/apps/trust/public/logos/hipaa.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/trust/public/logos/iso27001.png b/apps/trust/public/logos/iso27001.png deleted file mode 100644 index 00dff487e..000000000 Binary files a/apps/trust/public/logos/iso27001.png and /dev/null differ diff --git a/apps/trust/public/logos/iso27001.svg b/apps/trust/public/logos/iso27001.svg new file mode 100644 index 000000000..c70dbca4c --- /dev/null +++ b/apps/trust/public/logos/iso27001.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/trust/public/logos/soc2.png b/apps/trust/public/logos/soc2.png deleted file mode 100644 index f3b9be6c8..000000000 Binary files a/apps/trust/public/logos/soc2.png and /dev/null differ diff --git a/apps/trust/public/logos/soc2.svg b/apps/trust/public/logos/soc2.svg new file mode 100644 index 000000000..a8d9938a8 --- /dev/null +++ b/apps/trust/public/logos/soc2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/trust/public/logos/sox.png b/apps/trust/public/logos/sox.png deleted file mode 100644 index 7daf0bef5..000000000 Binary files a/apps/trust/public/logos/sox.png and /dev/null differ diff --git a/apps/trust/src/components/AuditRow.tsx b/apps/trust/src/components/AuditRow.tsx index 31df66736..5829ef303 100644 --- a/apps/trust/src/components/AuditRow.tsx +++ b/apps/trust/src/components/AuditRow.tsx @@ -92,25 +92,62 @@ export function AuditRow(props: { audit: AuditRowFragment$key }) { ) - ) : ( - {__("No report")} - )} + ) : null} ); } +const logos = { + "ISO 27001 (2022)": "/trust/logos/iso27001.svg", + "SOC 2": "/trust/logos/soc2.svg", + HIPAA: "/trust/logos/hipaa.svg", + GDPR: "/trust/logos/gdpr.svg", +}; + export function AuditRowAvatar(props: { audit: AuditRowFragment$key }) { const audit = useFragment(auditRowFragment, props.audit); return ( - - - + <> + + + + + + + ); } diff --git a/apps/trust/src/components/OrganizationSidebar.tsx b/apps/trust/src/components/OrganizationSidebar.tsx index 0c5751382..e059a9c87 100644 --- a/apps/trust/src/components/OrganizationSidebar.tsx +++ b/apps/trust/src/components/OrganizationSidebar.tsx @@ -26,10 +26,10 @@ export function OrganizationSidebar({ ) : ( -
+
)}

{trustCenter.organization.name}

diff --git a/apps/trust/src/components/VendorRow.tsx b/apps/trust/src/components/VendorRow.tsx index ce231f6a4..f7e7fb68f 100644 --- a/apps/trust/src/components/VendorRow.tsx +++ b/apps/trust/src/components/VendorRow.tsx @@ -24,23 +24,27 @@ export function VendorRow(props: { vendor: VendorRowFragment$key }) { return (

{logo ? ( - + ) : ( -
+
)} -
+
{vendor.name}
{vendor.privacyPolicyUrl && ( {vendor.privacyPolicyUrl.split("//").at(-1)} )} {vendor.countries.length > 0 && ( -
+
{vendor.countries diff --git a/apps/trust/src/pages/OverviewPage.tsx b/apps/trust/src/pages/OverviewPage.tsx index b6aa8287b..44c7ac5c1 100644 --- a/apps/trust/src/pages/OverviewPage.tsx +++ b/apps/trust/src/pages/OverviewPage.tsx @@ -59,6 +59,9 @@ export function OverviewPage() { ); return (
+ edge.node)} + />

{__("Documents")}

{__("Security and compliance documentation:")} @@ -104,10 +107,6 @@ export function OverviewPage() { - - edge.node)} - />

); } @@ -121,8 +120,13 @@ type Reference = { function References({ references }: { references: Reference[] }) { const { __ } = useTranslate(); + + if (references.length === 0) { + return null; + } + return ( -
+

{__("Trusted by")}

{references.map((reference) => (