diff --git a/nuxt/components/SocialProof.vue b/nuxt/components/SocialProof.vue index 08ce901709..34a7a24c4d 100644 --- a/nuxt/components/SocialProof.vue +++ b/nuxt/components/SocialProof.vue @@ -9,15 +9,21 @@ const logos = useState('home-logos', () => useHomeLogos()) const DEFAULT_EYEBROW = 'Over 36,000 users have trusted FlowFuse' // String to override the copy, `false` to hide it, omitted for the homepage default. -// eyebrowBg: the homepage-only radial-gradient glow behind the eyebrow — off by default. +// eyebrowBg: radial-gradient glow behind the eyebrow — off by default. `true` (or 'indigo') +// matches the homepage; 'red' is for pages themed around the red accent (e.g. /integrations/opcua/). const props = withDefaults(defineProps<{ eyebrow?: string | false - eyebrowBg?: boolean + eyebrowBg?: boolean | 'indigo' | 'red' }>(), { eyebrow: DEFAULT_EYEBROW, eyebrowBg: false, }) +const eyebrowBgClass = computed(() => { + if (!props.eyebrowBg) return '' + return props.eyebrowBg === 'red' ? 'bg-radial-red' : 'bg-radial-indigo' +}) + function altFromPath (path: string) { return path .replace('/images/home-logos/', '') @@ -29,7 +35,7 @@ function altFromPath (path: string) {