Skip to content

Commit 5e3a22f

Browse files
Merge pull request #5733 from FlowFuse/integrations-opcua-logo-carousel
Add logos carusel to OPC UA landing
2 parents 9e26eed + ff27f78 commit 5e3a22f

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

nuxt/components/SocialProof.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,21 @@ const logos = useState('home-logos', () => useHomeLogos())
99
const DEFAULT_EYEBROW = 'Over 36,000 users have trusted FlowFuse'
1010
1111
// String to override the copy, `false` to hide it, omitted for the homepage default.
12-
// eyebrowBg: the homepage-only radial-gradient glow behind the eyebrow — off by default.
12+
// eyebrowBg: radial-gradient glow behind the eyebrow — off by default. `true` (or 'indigo')
13+
// matches the homepage; 'red' is for pages themed around the red accent (e.g. /integrations/opcua/).
1314
const props = withDefaults(defineProps<{
1415
eyebrow?: string | false
15-
eyebrowBg?: boolean
16+
eyebrowBg?: boolean | 'indigo' | 'red'
1617
}>(), {
1718
eyebrow: DEFAULT_EYEBROW,
1819
eyebrowBg: false,
1920
})
2021
22+
const eyebrowBgClass = computed(() => {
23+
if (!props.eyebrowBg) return ''
24+
return props.eyebrowBg === 'red' ? 'bg-radial-red' : 'bg-radial-indigo'
25+
})
26+
2127
function altFromPath (path: string) {
2228
return path
2329
.replace('/images/home-logos/', '')
@@ -29,7 +35,7 @@ function altFromPath (path: string) {
2935

3036
<template>
3137
<div>
32-
<div v-if="props.eyebrow" class="w-full text-center min-h-14 flex justify-center items-center mt-8" :class="{ 'bg-radial-indigo': props.eyebrowBg }">
38+
<div v-if="props.eyebrow" class="w-full text-center min-h-14 flex justify-center items-center mt-8" :class="eyebrowBgClass">
3339
<h2 class="text-gray-600 text-lg font-semibold">
3440
{{ props.eyebrow }}
3541
</h2>

nuxt/pages/integrations/opcua.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function toggleFaq (i: number) {
307307

308308
<!-- Hero -->
309309
<div class="w-full px-6">
310-
<div class="max-w-screen-lg mx-auto pt-12 pb-20 md:pt-20 md:pb-24">
310+
<div class="max-w-screen-lg mx-auto pt-12 pb-3 md:pt-20">
311311
<div class="md:flex md:flex-row md:justify-between items-stretch gap-12">
312312
<div class="m-auto md:w-1/2">
313313
<h1 class="w-full mt-0 mb-6 m-auto font-medium">
@@ -327,6 +327,7 @@ function toggleFaq (i: number) {
327327
</div>
328328
</div>
329329
</div>
330+
<SocialProof class="mt-12" eyebrow-bg="red" />
330331
</div>
331332
</div>
332333

src/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,7 @@ lite-youtube::before {
23602360
}
23612361

23622362
.bg-radial-red {
2363-
background: radial-gradient(ellipse 30% 70% at center bottom, rgb(from var(--color-red-50) r g b / 0.3) 0%, rgb(from var(--color-red-50) r g b / 0) 100%);
2363+
background: radial-gradient(ellipse 30% 70% at center bottom, rgb(from var(--color-red-100) r g b / 0.3) 0%, rgb(from var(--color-red-100) r g b / 0) 100%);
23642364
}
23652365

23662366
/* AI Chat Interface Styles */

0 commit comments

Comments
 (0)