@@ -7,14 +7,8 @@ import { ILink } from '../../types/components';
7
7
import { Anchor } from '../anchor' ;
8
8
import { ContactTextLink } from '../contact-us' ;
9
9
import { __LANDING_WIDTHS_ID } from '../hive-layout-config' ;
10
- import {
11
- CSAStarLevelOneIcon ,
12
- DiscordIcon ,
13
- GitHubIcon ,
14
- LinkedInIcon ,
15
- TwitterIcon ,
16
- YouTubeIcon ,
17
- } from '../icons/index' ;
10
+ import { DiscordIcon , GitHubIcon , LinkedInIcon , TwitterIcon , YouTubeIcon } from '../icons/index' ;
11
+ import { SecurityBadges } from './security-badges' ;
18
12
19
13
const INNER_BOX_WIDTH_STYLE =
20
14
'max-w-[90rem] [body:has(#hive-l-widths)_&]:max-w-[75rem] [body:has(#hive-l-widths)_&]:mx-4' ;
@@ -33,6 +27,10 @@ export type HiveFooterProps = {
33
27
href ?: string ;
34
28
description ?: string ;
35
29
items ?: HiveFooterItems ;
30
+ /**
31
+ * In case this component is used outside of Hive Platform in a design-consistent but less related context,
32
+ */
33
+ showSecurityBadges ?: boolean ;
36
34
} ;
37
35
38
36
export function HiveFooter ( {
@@ -41,6 +39,7 @@ export function HiveFooter({
41
39
href = `${ siteOrigin } /` ,
42
40
description = 'Open-source GraphQL management platform' ,
43
41
items,
42
+ showSecurityBadges,
44
43
} : HiveFooterProps ) {
45
44
items = { ...HiveFooter . DEFAULT_ITEMS , ...items } ;
46
45
@@ -82,7 +81,9 @@ export function HiveFooter({
82
81
) ) }
83
82
< ContactTextLink />
84
83
</ div >
85
- < CSAStarLink className = "sm:col-start-[-1] lg:col-start-[-2]" />
84
+ < div className = "sm:col-start-[-1] lg:col-start-[-2]" >
85
+ { showSecurityBadges && < SecurityBadges /> }
86
+ </ div >
86
87
</ div >
87
88
88
89
< div className = "col-span-full flex flex-wrap justify-between gap-x-[inherit] gap-y-8 lg:w-full lg:pb-2 lg:pt-8" >
@@ -266,19 +267,3 @@ function DecorationArch(props: React.SVGProps<SVGSVGElement>) {
266
267
</ svg >
267
268
) ;
268
269
}
269
-
270
- function CSAStarLink ( { className } : { className ?: string } ) {
271
- return (
272
- < a
273
- href = "https://cloudsecurityalliance.org/star/registry/software-products-guild-ltd-the-guild/services/graphql-hive"
274
- target = "_blank"
275
- rel = "noreferrer noopener"
276
- className = { cn (
277
- 'hive-focus w-fit rounded-full focus-visible:outline-none focus-visible:ring-offset-2 focus-visible:ring-offset-[rgb(var(--nextra-bg))]' ,
278
- className ,
279
- ) }
280
- >
281
- < CSAStarLevelOneIcon className = "size-20 lg:size-[120px] dark:opacity-95" />
282
- </ a >
283
- ) ;
284
- }
0 commit comments