Skip to content

Commit 1e7fef1

Browse files
authored
Merge pull request #5725 from FlowFuse/JoycePlaysFootball-patch-2
Update CTA section on main navigation
2 parents 6b62eac + 0bb193f commit 1e7fef1

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

nuxt/components/AppHeader.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ onMounted(() => {
149149
150150
<!-- Mobile hamburger -->
151151
<div class="flex items-center gap-2 md:hidden relative z-20">
152-
<CtaContactUs variant="primary" position="header-mobile" />
152+
<CtaBookDemo variant="primary" position="header-mobile" />
153153
<button id="nav-toggle" class="text-gray-700 flex items-center text-red-hero">
154154
<svg class="burger fill-current h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Menu</title><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg>
155155
<svg class="close fill-current h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /></svg>
@@ -187,7 +187,7 @@ onMounted(() => {
187187
<ul class="cta hidden md:flex flex-row items-center justify-end font-medium text no-underline z-10 bg-transparent w-auto">
188188
<li class="hidden md:flex"><CtaSignUp variant="nav-text" position="main-nav" padded class="ff-nav-freetrial text-base" /></li>
189189
<li class="flex">
190-
<CtaContactUs variant="primary" position="main-nav" class="ml-2" />
190+
<CtaBookDemo variant="primary" position="main-nav" class="ml-2" />
191191
</li>
192192
</ul>
193193
</nav>
@@ -198,7 +198,7 @@ onMounted(() => {
198198
<CtaSignIn variant="primary-outlined" position="mobile-cta-bar" />
199199
<CtaSignUp variant="primary-outlined" position="mobile-cta-bar" />
200200
</div>
201-
<CtaContactUs variant="primary" position="mobile-cta-bar" />
201+
<CtaBookDemo variant="primary" position="mobile-cta-bar" />
202202
</div>
203203
</header>
204204
</template>

nuxt/content/handbook/marketing/website.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ The site has five main call-to-action destinations, each with **fixed copy** —
140140
| `<CtaBookDemo>` | `/book-demo/` | "Book a Demo" |
141141
| `<CtaPricing>` | `/pricing/` | "View Pricing" |
142142

143+
Contact Us vs. Book a Demo: these two CTAs carry different intent signals and should be treated accordingly. Contact Us is for general inquiries — support questions, partnership asks, anything that isn't a sales-ready request. Book a Demo is a high-intent motion: someone clicking it has effectively raised their hand to buy, so the path from click to booked call should have as little friction as possible. This is why Book a Demo needs to be visible from the main nav and not buried.
144+
143145
If a page needs different wording than what's listed above, that's a sign the destination needs a sixth CTA, not a new prop on these five or custom inline code.
144146

145147
**These components only exist on Nuxt-rendered pages** (`nuxt/pages/`, `nuxt/content/`), part of the site is still served by Eleventy and doesn't have access to them yet. On an Eleventy page, a CTA is still a hand-written `<a class="ff-btn ...">` link.

src/_includes/layouts/base.njk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ eleventyComputed:
183183
{% include "components/flowfuse-square.svg" %}
184184
</a>
185185
<div class="flex items-center gap-2 md:hidden relative z-20">
186-
<a class="ff-btn ff-btn--primary uppercase text-sm inline-flex whitespace-nowrap" href="/contact-us" onclick="capture('cta-talk-us', {'position': 'header-mobile'})">
187-
Contact Us
186+
<a class="ff-btn ff-btn--primary uppercase text-sm inline-flex whitespace-nowrap" href="/book-demo/" onclick="capture('cta-book-demo', {'position': 'header-mobile'})">
187+
Book a Demo
188188
</a>
189189
<button id="nav-toggle" class="text-gray-700 flex items-center text-red-hero">
190190
<svg class="burger fill-current h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Menu</title><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg>
@@ -224,8 +224,8 @@ eleventyComputed:
224224
<ul class="cta hidden md:flex flex-row items-center justify-end font-medium text no-underline z-10 bg-transparent w-auto">
225225
<li class="hidden md:flex"><a class="ff-nav-freetrial" href="{% include "sign-up-url.njk" %}" onclick="capture('cta-join', {'position': 'header'})"><span class="ff-nav-label">Free Trial</span></a></li>
226226
<li class="flex">
227-
<a class="ml-2 ff-btn ff-btn--primary uppercase text-sm inline-flex whitespace-nowrap" href="/contact-us" onclick="capture('cta-talk-us', {'position': 'header'})">
228-
Contact Us
227+
<a class="ml-2 ff-btn ff-btn--primary uppercase text-sm inline-flex whitespace-nowrap" href="/book-demo/" onclick="capture('cta-book-demo', {'position': 'header'})">
228+
Book a Demo
229229
</a>
230230
</li>
231231
</ul>
@@ -236,7 +236,7 @@ eleventyComputed:
236236
<a href="{{ site.appURL }}" class="ff-btn ff-btn--primary-outlined">Sign In</a>
237237
<a href="{% include "sign-up-url.njk" %}" onclick="capture('cta-join', {'position': 'header'})" class="ff-btn ff-btn--primary-outlined">Free Trial</a>
238238
</div>
239-
<a class="ff-btn ff-btn--primary" href="/contact-us" onclick="capture('cta-talk-to-sales', {'position': 'header'})">Contact Us</a>
239+
<a class="ff-btn ff-btn--primary" href="/book-demo/" onclick="capture('cta-book-demo', {'position': 'mobile-cta-bar'})">Book a Demo</a>
240240
</div>
241241
</header>
242242
<!-- Main Content: wrapped in the flex-grow base so the column layout still

0 commit comments

Comments
 (0)